Exercise R1: Recognize Machine-Printed Text

In this exercise you change machine-printed raster text to AutoCAD text and Mtext in your drawing.

The settings you select in the Text Recognition Setup dialog box define the parameters for the search engine. The results from the search are displayed in the Verify Text window where you can make the necessary corrections and then enter the new text into the drawing.

In this exercise you:

Related Exercises

Before doing this exercise, ensure that AutoCAD Raster Design toolset options are set as described in the exercise Exercise A1: Setting AutoCAD Raster Design Toolset Options.

Exercise

  1. In the ..\Program Files\Autodesk\ApplicationPlugins\RasterDesign2022.Bundle\Contents\Tutorials\Tutorial9 folder, open the drawing file textrec_01.dwg.

    Choose an image to insert

  2. To display the Insert Image dialog box, click RasterInsert.
  3. From the Files of Type list, choose All Image Files.
  4. If necessary, navigate to the \Tutorial9 folder. Select the image file text_rec_mach.tif.
  5. In the Insert Options area, click Quick Insert and Zoom to Image. Click Open.

    The image is inserted.

    Convert machine-printed raster text to AutoCAD Mtext

  6. To display the Text Recognition Setup dialog box, click RasterText RecognitionRecognize Setup.
  7. In the Input section, select the following settings:
    • Selection Shape is Rectangular.
    • Select the Spelling dictionary.
    • Select English in the Spelling Language list.
    • Select the AutoCAD Custom dictionary.
    • Click Language Character Set and select English then click OK.
    • In the Recognize section, select only Uppercase and Punctuation, clearing other check boxes.
  8. In the AutoCAD Output section, select the following settings:
    • Output Type is MText.
    • AutoCAD Style is Standard.
    • Text Height is Automatic.
    • Removal Method is Rub.
  9. In the Verification Display section, select the Underline check box and clear the check boxes for Bold, Italic and Enable Verifier.
  10. Click OK.
  11. Click Raster menu Text RecognitionRecognize Text.
  12. Draw a rectangle around the word “NOTES” as follows: click the upper left corner, press Enter to set the angle to 0, then click the bottom right corner.

    The Verify Text window displays the word NOTES: in both the View pane (upper pane) and the Edit pane (lower pane). If the word NOTES: is not underlined in the Edit pane, click and drag to select the word and click the underline formatting option on the Edit toolbar. If the recognition engine has inserted any unwanted characters, delete them from the Edit pane.

  13. Click OK to insert the word NOTES: into the drawing as AutoCAD Mtext.

    The following example shows how the Mtext displays in the drawing.

  14. Enter s at the command line to display the Text Recognition Setup dialog box.
  15. Change the following settings:
    • In the Input section, select the check boxes for Uppercase, Numbers, Punctuation, and Miscellaneous.
    • In the AutoCAD Output section, set the Output Type to MText and set AutoCAD Style to TR1.
    • In the Verification Display section, clear the formatting check boxes and select Enable Verifier.
    Click OK.
  16. Draw a rectangle around steps 1 through 3 as follows: click the upper left corner, press Enter to set the angle to 0, then click the bottom right corner.

    The Verify Text window opens. The View pane displays the original raster text; the Edit pane displays the output from the recognition engine.

  17. Review the areas of highlighted text in the Edit pane. Click Find Next to display the first suspect word or rejected character in the Change To box. Select a word from the Change To list or enter the correct word in the box and click Replace. Click Add to Dictionary if you want to add the word or acronym to the recognition dictionary. When you click OK, you are prompted to add the word to the AutoCAD custom dictionary too.
    Attention: Because no recognition engine is 100% accurate, you should carefully check the results in the Edit pane, not just the highlighted areas, and make all necessary changes.
  18. After making changes, click OK to insert the new AutoCAD text in the image.
    Tip: You can use the AutoCAD MOVE command to align the text block. To edit the text, select it, then right-click and click MText Edit.
  19. Close the drawing without saving changes.