Understand OCR Model | Zoho Creator Help

Understand OCR Model

AI Models have undergone a major revamp and is now rechristened as AI Modeler that lets you build, train, and publish models to be used across your apps. If you've created models prior to this revamp, click here to know more. 
The Optical Character Recognition (OCR) model is a text-recognition model that identifies and extracts text (both printed and handwritten) from digital images and PDFs. You can train the model to scan either a digital image or a PDF and extract only the required information by using machine learning. This is especially useful when you want to process and retrieve structured data from a large volume of unstructured data. This structured data can then be stored and processed by the businesses whenever required, thereby helping them simplify and automate their data entry processes. For example, structured data is the date and time of an email, whereas unstructured data is the entire content of the email itself. 

Creator supports two types of OCR models: you can build custom models suited to your business needs, or choose a ready-to-use (prebuilt) model that is ready to deployed in your applications for many common business scenarios.
You can build custom OCR models that can be trained to identify and extract only the required values. The custom OCR model utilizes an ensemble of industry leading text recognition technologies to identity and highlight the text in the case of custom OCR models. All the extractable text identified by the model will be now be highlighted to show that they're untagged values. You can then add and tag the fields whose values you want to extract from the images. The model can then be trained to extract and process the required text found in your images. 
  1. - The OCR model can extract text from images irrespective of font types. 
  2. - The model can detect both printed and handwritten text. It is recommended to use printed text. If there's too much variation w.r.t handwritten text, then the model might find it hard to process the required text. 




OCR model prerequisites

You can build and train custom OCR models tailored to suit your business needs. Additionally, you can utilize our ready-to-use OCR model, which can be directly deployed into your applications.

Let's say you want to extract text from a certain set of input images. In this case, a custom OCR model would be better suited. In some cases, you might want to extract all the detected text from the input image. The ready-to-use OCR model can be used in this case. This applies to extracting text from PDFs as well in both custom and ready-to-use OCR models.

What skills do you need?

  1. As the admin, you can create and use OCR models, whereas your users can only consume the models you've created. 
  2. You should know enough about all your business requirements to determine the dataset that'll be used for training your model.
  3. As a low-code platform, Creator doesn't require you and your users to have prior coding and Machine Learning (ML) skills to create and consume the prediction models.
Note : PDFs or images won't be uploaded if they fail to meet training data criteria.

What data do you need?

Image based OCR models
  1. You must have at least five images of similar layout to be uploaded as training data. 
  2. The images can also be of different layouts, provided you tag the extraction values correctly.
PDF based OCR models
  1. In the case of custom OCR models, you must have at least five PDFs containing upto 2 pages of similar layout to extract the required text. 

Which pricing plan must you be in?

  1. AI Models will be available for users in all paid plans. Refer to our pricing page to know more.

Which version of Creator should you be using?

  1. You must be using Zoho Creator 6 (C6) to be able to create custom AI models, whereas the ready-to-use AI models are available in both C6 and C5.

Example

Let's assume that you've built Zylker Invoice Processing app using Creator. You've a form named Invoice Details, in which you add the details of your invoice along with a digital copy of those invoices. You need to extract certain data from the invoice such as the invoice date, invoice number, due date, and the billing address. This can be done manually by relying on paper invoices to process payments and maintain accounts. However, when multiple entries are involved, automating the extraction process saves a great deal of time and manual work.


Here's how you would use the OCR model in the above case:
  1. Create a model :
    1. Identify the values to be extracted and select fields with their respective field types to store the values. Here, Invoice numberInvoice date, Due date, and Billing address will be the values to be extracted.
    2. Upload sufficient training data of similar/different layouts and tagging the defined fields whose values need to be extracted. Here, you'll need to upload images or PDFs of your Invoices.
  2. Train the model
  3. Deploy the model :
    1. Select an image or a file upload field in the form which will contain the input for the model.
    2. Add the fields defined earlier to store the extracted values from the image field. Here, Invoice number, Invoice dateDue date and Billing address will be the fields that'll store the values to be extracted (refer above GIF).
    3. Upload an image or a PDF in live to get the required values. The input in this case will be the either an image or a PDF of your Invoice.

OCR Model Flow


Setting up your model

Add training data

Training data is the initial dataset that is used by the model to analyze data patterns, make interpretations, and arrive at a conclusion that helps it recognize text from the training data. To train an OCR model, you need to gather sufficient images or PDFs of similar and different layouts. Next, you need to identify the values that you want to extract from the images you've gathered or PDFs you've created. Once the training data has been finalized, you can proceed to add fields to your OCR model.
  1. The model outcomes may not be always accurate, which is also the case with any AI.
  2. The model outcomes are dynamic. The same input can produce different outcomes at different times based on how much the machine has learned. This implies that as you continuously retrain a model, it is learning continuously.
In Creator, form fields store the values entered by users. Similarly, the values that you want to extract will be displayed in the respective fields. Adding fields is used establish their definition them so that when the model is implemented in your Creator application, these fields will be listed in that application's form. You can select/deselect the pre-defined fields as required. Now that you've identified the values you need to extract from your training data, you need to add fields and their corresponding data types.
The supported data types include textnumber, and date

Add Training Data

The images that you gathered or the PDFs you created earlier will come in handy now. The images or PDFs can be pictures can be documents that include bills, checks, invoices, passports, receipts, and so on. The text in these documents can be handwritten and/or printed, although printed text is preferable.
Note : You can upload both handwritten and printed images or PDFs. Make sure to tag the extraction values correctly in all images so that the model can identify and extract the values as desired.

Tag Fields

After tagging all the added fields, you can add new fields directly from here if required. Just click Add New Field in the tag fields dropdown. This option will be shown only if the fields added is less than 10 per model.
Once you've uploaded the required training data, the text in each of them will appear highlighted. Next, you need to tag values for the fields you'd added earlier in all the uploaded images/PDFs. Tagging here refers to mapping or associating the added field to the value it must extract and display. You can tag a value by selecting and dragging over the corresponding value in all the images/PDF pages. For example, if you've added an Invoice Number field whose datatype is number, you must tag the value of the invoice number in the image. This is done so that the OCR model recognizes that these are the field values that need to be extracted from the input data.


Guidelines

Format

  1. Supported formats for images include JPEG, PNG, BMP, TIF.

Size

  1. Maximum size of each uploaded image cannot exceed 5 MB.
  2. Overall model size must not exceed 150 MB.
  3. Maximum size of each uploaded PDF cannot exceed 5 MB file.
  4. Maximum 2 pages of similar layout per PDF is required in case of custom OCR models.

Language (for print and handwritten text)

  1. Currently only English is supported.

Others

  • Upload clear images.
  • If you upload images of different layouts, ensure you tag the extraction values properly.
  • A minimum of five images of similar layout needs to be uploaded for proper recognition and extraction.
  • You have to tag each field to its corresponding values in a minimum of five images for the training to be successful.
  • A minimum of 1 field with its field type and a maximum of 10 fields with their field types can be extracted per model.
  • To add an OCR field in your form, you must have an image field as the source field in that form. Source field here refers to the field in which the input image will be uploaded for the model to identify and extract text. If the supported field type isn't available in the form, you will need to first create one in order to deploy the OCR model. 

Model Summary

After adding the training data, you can review the model details such as Model NameModel Typetraining data, and number of images added. If you need to make any modifications, you can go back and make them. Otherwise, you can proceed to train the model. 

Train model

Before you can actually use your OCR model in your application, you have to train it to perform the way you want. After you've selected and reviewed your training data, click Train to train your model.

Note : Training might take some time, so you can stay on the same page and wait, or you can close the page and come back later. The training time depends on the model size and the number of training models in the queue.

View and manage model details

Once training your model is complete, you can view the model details, the model's versions, and its deployment details, if any. The model is now ready to be published and deployed into your apps.


You can manage your model in the following ways:

  • Retrain - Since new data is always being generated, we recommend that you periodically retrain your model. This helps in improving the OCR model's reliability and accuracy in extracting values. 
  • You can click Re-train model and your model will be retrained.
  • After each retraining is over, a new version of the model will be created. You can switch between different versions according to your needs.
  • If you want to delete a version that is currently being used, you need to switch to another version before proceeding to delete it. 
  • If the model training fails, you'll see 'Model training has failed!' Meanwhile, the previous working model will be used for prediction. 
Note:
  1. The retrain option is available only when you add training data via form fields. This is because you can train your model as and when new records are continuously added to your application. 
  2. When adding data via CSV file, you can delete the model, upload a new file, and then train the model again.
  • Rename - You can rename your model if required.
  • Delete - If you want to delete your model due to inconsistent or wrongly-added data, you can use the Delete option.

Test model

It is recommended (but not mandatory) to test your model before publishing and deploying it in your applications. 
After training and before publishing, you can test your model to check and know how your model works and if the training is satisfactory, before deploying it in your applications. You can upload test data and after testing your model, you'll get the extracted values as outcome. 
  1. If you don't find your outcomes as expected, you can either retrain your model or edit your model details and train the model again. Retrain refers to simply training the model (without making any edits) again as the model is continuously learning. 
  2. While testing your model, you can upload only one image at a time. 
  3. For OCR model guidelines, click here.

Improve your OCR model performance

After you've trained, tested, and evaluated your model, you can tweak your model to improve its performance. Now here are some things you can try to help improve your model's performance.
  1. While gathering images or creating PDFs, ensure that they contain well-aligned characters so that the model can easily recognize the text.
  2. Ensure to gather and upload high-quality images and PDFs. The higher the original training data's quality, the easier it is to separate the characters from the rest, and the higher the accuracy of the OCR model would be.
  3. You can try to increase the contrast between text and background to bring more clarity to the output. 
  4. When employed on printed text, the OCR engine is highly accurate.
  5. Ensure that the images or PDF pages aren't turned upside down. Make sure you get the image in the right format and the text should appear horizontal and not inclined. 

Publish model

After you train your model, you can publish it to make it available to your users and start making predictions. Learn how
You can publish your model only once. In case you don’t want your users to use the model, you can delete the model.
To use your OCR model in an environment-enabled Creator application, you must have at least one version of that application published in the production environment. After deploying your model in the application, you can filter between different stages of the environment to check which stage is the model deployed in. Learn how

Use model

After you've published your model, you need to select the application and form in which you want to deploy your model. You'll be redirected to the chosen form, where the fields that you defined earlier will be listed in the form builder. You can select/deselect the fields as required. The fields that have been deselected will not be added in that form. For example, you might be using the same OCR model in two forms. You might not require the same set of fields in both the forms and can deselect the ones that are not required. 
A new OCR field will be added in your form, in which you can upload an image of your choice. The OCR model will analyze and display the extracted values in the defined fields.
Note: Ensure to add an image or a file upload field without references i.e these fields haven't been used anywhere, to your form before selecting a trained model.

Get started with sample data

To help you get started quickly with OCR, we provide sample data that you can readily use in your Creator applications. You can scroll down and download the attachment

    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION





                          Quick Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          CRM Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal
                          Mobile App
                          Form Designer HR
                          Mobile Forms
                          Card Forms Food Offline Forms
                          Assign Forms Photography
                          Mobile Forms Features
                          Translate Forms Real Estate Kiosk in Mobile Forms
                          Electronic Forms

                          Notification Emails for Forms Alternatives Security & Compliance
                          Holiday Forms Google Forms alternative  GDPR
                          Form to PDF Jotform alternative HIPAA Forms
                          Email Forms
                          Encrypted Forms
                          Embeddable Forms
                          Secure Forms
                          Drag and Drop form builder
                          WCAG


                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Understand OCR field

                                                                                                                The OCR field enables you to perform optical character recognition on an image. In other words, it extracts text from the images stored in an image field. For example, you can use the OCR field to extract the text from the images of invoices, ...
                                                                                                              • Build and Manage OCR Model

                                                                                                                AI Models have undergone a major revamp and is now rechristened as AI Modeler that lets you build, train, and publish models to be used across your apps. If you've created models prior to this revamp, click here to know more. In this page, we will be ...
                                                                                                              • Shared Responsibility Model

                                                                                                                Building a secure, reliable, and robust low-code application platform that complies with ISO, SOC, HIPAA, and other international standards is our top priority at Zoho Creator. While we strive towards providing you with an uncompromised cloud ...
                                                                                                              • Understand Objection Detection model

                                                                                                                AI Models have undergone a major revamp and is now rechristened as AI Modeler that lets you build, train, and publish models to be used across your apps. If you've created models prior to this revamp, click here to know more. Refer to this page to ...
                                                                                                              • Retrain prediction model

                                                                                                                Refer to this page to learn about model training and retraining We recommend retraining the model when your data set has grown considerably beyond the last used train When the model is being retrained, the previous working model will be used for ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources