When converting a raster image Scan2CAD will first inspect the image to find any potential problems which could cause a less accurate conversion.
The image inspection begins whenever you start a vectorization and/or OCR by clicking the ‘Run’ button on the Vectorization Settings dialog.
You will only see the Image Inspection Results dialog if your raster image has failed one or more of the checks.
Scan2CAD will list the problems that it has found with the image.
In the majority of cases you should fix the issues before continuing to the conversion.
Remember: Whatever exists in the image will be converted to vector. Therefore cleaning an image is always beneficial if you want to achieve the best conversion results.
Result | Recommendation |
---|---|
This image has n colors. Consider reducing them. | The fewer the colors, the better the expected conversion results. In most cases an image can be represented as 2 colors; black and white (monochrome). You can reduce your image to black and white using the ‘Threshold’ tool in Raster Effects. If you need extra colors you can use the ‘Segment’ tool to reduce the colors. |
This image contains n speckles. Consider removing them. | Speckles are small clusters of black pixels. These are typical in low quality images. Use the ‘Remove Speckles’ tool in Raster Effects to reduce the speckles. Please note: this number could include ‘false positives’ for example a ‘.’ text character could be identified as a speckle. Keep this in mind when removing speckles. |
This image contains n holes. Consider removing them. | Holes are the opposite to speckles. They are clusters of white pixels encapsulated in colored areas. These are typical in low quality images. Use the ‘Remove Holes’ tool in Raster Effects to reduce the holes. Please note: this number could include ‘false positives’ for example the center part of an ‘o’ text character could be identified as a hole. Keep this in mind when removing holes. |
In this video we show how changing the ‘raster line width’ value can provide center-line or ‘outline’ tracing of raster lines in your drawings.
The most common reason for poor raster to vector conversion results is an unsuitable raster image.
Scan2CAD can only give results as good as the raster image you give it to vectorize. Nowhere is the saying “Garbage In, Garbage Out” truer than in raster to vector conversion!
Time appropriately spent on acquiring the best possible quality raster image will greatly increase conversion accuracy and reduce the need for manual editing after conversion.
In most cases, our recommended scanner settings are:
If you wish to get a greater understanding of the appropriate scanner settings, we’ve broken down the scenarios below.
Not all drawings can be scanned to create a raster image that can be used for raster to vector conversion. For example:
However, given a suitable drawing in good enough condition to scan well, you can eliminate many raster to vector conversion problems by being aware of the information on this page.
Most scanners give you the option of scanning in color, grayscale or monochrome. These options have different names depending on the make of scanner you have.
Color
Your scanner’s color option will normally create a raster image that contains 16.7 million colors.
You should only use this option if you are scanning a color drawing with a view to converting it to a color DXF file. Do not use your scanner’s color option if you are scanning a black and white drawing – it is easy to do this by accident as most scanners default to color.
If you are scanning a color drawing with a view to converting it to a color DXF file, experiment with your scanner’s settings until the colors on the raster image are as high contrast, vibrant and saturated as possible.
Warning: Color images can be very large. An E/A0 size drawing scanned in color at 300 dpi will take up about 385Mb of memory.
Grayscale
Your scanner’s grayscale option (often called black and white photo) will normally create an image that contains 256 shades of gray.
Grayscale images are not normally suitable for raster to vector conversion. You should only select grayscale if you are going to convert the grayscale image to black and white after scanning using Scan2CAD’s Threshold functions.
Warning: Grayscale images can be very large. An E/A0 size drawing scanned in grayscale at 300 dpi will take up about 128Mb of memory.
Monochrome
Your scanner’s monochrome option (often called line art, black and white drawing or 1 bit) will create a much smaller image that contains two colors – black and white. This is the option you should normally choose when scanning a drawing for raster to vector conversion.
When you scan a drawing in monochrome your scanner or scanning software has to make a decision about which parts of the drawing to set to black in the raster image and which to set to white. This is called thresholding.
If your drawing is clean and sharp this is not normally a problem. However if your drawing has faint lines or a dirty or tinted background you will have to experiment with your scanner’s settings until you get a raster image where, as far as possible, the parts of the raster image that are supposed to be black are black and the parts that are supposed to be white are white.
If your scanner or scanning software sets too much of the drawing to white, it may contain breaks and holes and faint parts may be lost. If your scanner or scanning software sets too much of the drawing to black, text characters may “bleed” so that white spaces within them or between them become filled and speckles and dirt may appear in the background.
Too much white
Too much black
Optimal
While some scanners have good automatic thresholding and / or have software that makes setting an appropriate threshold easy, getting the best threshold on other scanners requires endless rescans.If this is the case with your scanner, you may find it easier to scan your drawing in grayscale. You can then use Scan2CAD’s Threshold functions to create a black and white image after scanning. This will allow you to experiment with different levels of black and white without having to rescan the drawing.
It is not true that “the higher the scanner resolution, the better the vectorization results”. In fact, a high resolution scan can sometimes give you worse results than a low resolution scan!
That said, you should be aware that while you can decrease the resolution of an image after scanning you cannot increase it. Increasing resolution after scanning will not regain any lost detail. It will simply exacerbate “steps” in the image that will decrease the quality of any raster to vector conversion.
Therefore, it is better to err on the side of too high resolution rather than too low resolution when scanning. For most drawings, a scan resolution of 200 to 400 dpi is optimal. However, if a drawing is small (e.g. a logo) or has fine detail, you may need a higher resolution.
Here are some pointers for choosing the right resolution:
Smooth – GOOD
Stepped – BAD
Completely separated – GOOD
Incompletely separated – BAD
Completely unseparated – BAD
Note that the separation of close together entities is dependent on selecting an appropriate threshold (see above) as well as on selecting an appropriate resolution.
We recommend that you save your scanned drawings as TIFF files. If your scanned drawing is black and white, save it as a Group 4 TIFF file. This will compress the file without causing a loss in its quality.
Do not save your scans as multi layer/page TIFF files.
DO NOT save your images as JPEG. JPEG uses “lossy compression”, which means that it discards data it thinks you can do without. This causes it to decrease the quality of scanned drawings by blurring the details and adding speckle artifacts.
The smudging and gray “clouds” surrounding the lines in the image below are typical artifacts caused by saving a drawing as JPEG.
Once you have damaged an image by saving it as JPEG, you cannot undo the damage by simply converting the JPEG image to TIFF. You will need to rescan the drawing.
After scanning, check your scan.
If they are broken, you need to experiment with your threshold settings and or scanning resolution.
Scan2CAD is copyright and a registered trademark of Avia Systems.
Headquartered in Worcester, United Kingdom. Registered in England & Wales, company no. 7557200.
More information: Legal Security Minimum Requirements