Request a Personalized Demo

Learn how to accurately convert your designs with Scan2CAD

  • This field is for validation purposes and should be left unchanged.
  • Join thousands of happy customers worldwide

Add characters to the training set

 

You can add characters to a training set using one or a combination of the following methods.

You can extract example characters from any number of raster images and add them to the training set at any time. You do not have to build the whole training set from one image in one session. Use Train Menu > Load Training Set to load an existing training set so you can continue to add example characters to it.

 

Add a batch of characters from a raster image – Method 1

Add a batch of characters from a raster image – Method 2

“Grab” individual characters from a raster image

Add a character by drawing it in the View/Edit Training Set Shapes dialog

Add a character by copying an existing character

 

See What is a training set to find out how many characters you should add to the training set and which characters you can’t add.

 

Add a batch of characters from a raster image – Method 1

1. Use Train Menu > Initialize Training Set to create a new training set, or use Train Menu > Load Training Set to load an existing training set that you want to add more example characters to.
2. Click to load a raster image that contains text in the font you want to train Scan2CAD to recognize.
3. Thin the raster image using Train Menu > Thin Image.
4. Select OCR settings appropriate for recognizing the text on the raster image you have loaded.
5. Click or select Run Menu > OCR to convert the raster text on the image to vector text.
6. Select Train Menu > OCR>Training Set. All the converted characters are added to the training set.
7. Select Train Menu > View/Edit Training Set.

The View/Edit Training Set Shapes dialog appears.

The characters you have just added to the training set will have been added to the end of the training set, so you can scroll through them using the Down Arrow key.

Alternatively, you may want to sort the characters into ASCII value order before scrolling through them. To do this, click on the Sort Shapes button in the dialog.

 

 

8. Make sure that each character illustrated in the dialog matches the ASCII Char. If it doesn’t, edit the ASCII Char.
9. When you have edited all the characters, click on OK to exit the dialog.

 

Add a batch of characters from a raster image – Method 2

1. Use Train Menu > Initialize Training Set to create a new training set, or use Train Menu > Load Training Set to load an existing training set that you want to add more example characters to.
2. Click to load a raster image that contains text in the font you want to train Scan2CAD to recognize.
3. Thin the raster image using Train Menu > Thin Image.
4. Select OCR settings appropriate for recognizing the text on the raster image you have loaded.
5. In OCR Menu > Settings, set Display Mode to Chars.
6. Click or select Run Menu > OCR to convert the raster text on the image to vector text.
7. Edit all the incorrectly identified characters and delete any characters that have been recognized but that you don’t want to include in the training set.
8. Select Train Menu > OCR>Training Set. All the converted characters are added to the training set.

 

You must do Step 8 before you use Run Menu > OCR to convert any more text or the text you converted and edited in Steps 6 and 7 will not be added to the training set.
It is very important to set Display Mode back to Strings once you have finished font training as Scan2CAD will not save text that has been recognized with Display Mode set to Chars.

 

“Grab” individual characters from a raster image

1. Use Train Menu > Initialize Training Set to create a new training set, or use Train Menu > Load Training Set to load an existing training set that you want to add more example characters to.
2. Click to load a raster image that contains text in the font you want to train Scan2CAD to recognize.
3. Thin the raster image using Train Menu > Thin Image.
4. Select Train Menu > Pick>Training Set.
5. On the raster image, place the cursor over a black pixel of a character you want to add to the training set and click. The selected character is box-outlined and a small dialog appears.

Type what the character is (for example A, B, C etc.) into the dialog and press Enter. The character is added to the training set.

If you are selecting characters with different orientations, you need to make sure that the correct Character Rotation is set before you select a character. The easiest way to do this is to press F1 (sets Character Rotation to 0 degrees), F2 (90 degrees), F3 (180 degrees) or F4 (270 degrees) before clicking on the character. For example if you are about to select a character oriented at 90 degrees, press F2 then click on the character.

6. Repeat Step 5 until you have chosen all the example shapes you want to add to the training set.
7. To stop picking characters, go to the Train Menu. You will see that the Pick>Training Set option is checked. Click on it. This ends Pick>Training Set.

 

If you accidentally enter the wrong character in Step 5, you can correct it later using the View/Edit Training Set Shapes dialog.

 

Add a character by drawing it in the View/Edit Training Set Shapes dialog

1. Select Train Menu > View/Edit Training Set.

The View/Edit Training Set Shapes dialog appears.

2. Click on the Add Shape button.
3. Draw a character by clicking on the squares in the character grid – clicking on a white square makes it black. Clicking on a black square makes it white.
4. In the ASCII Char input box, type the character that the character you have drawn represents (e.g. A).

 

Add a character by copying an existing character

You can add a new character to the training set by copying an existing character and then editing it. You may want to do this for example if you already have an example of an A in the training set but want to add further examples or create a few variations to allow better general recognition of the letter A:

 

1. Select Train Menu > View/Edit Training Set.

The View/Edit Training Set Shapes dialog appears.

2. Scroll through the characters in the training set until you come to the one you want to copy, or step through the characters using the Up Arrow and Down Arrow keys (to sort the characters into ASCII value order click on the Sort Shapes button).

 

 

3. Click on the Copy Shape button to copy the character.
4. Click on the Add Shape button to create a new character.
5. Click on the Paste Shape button to paste the copied character into the new character.
6. If necessary edit the pasted character by clicking on the squares in the character display – clicking on a white square makes it black. Clicking on a black square makes it white.

 

Have questions on this topic? Talk to us