Share this

Machine Vision Motion Control All-in-One Machine Application Examples | OCR Character Recognition Applications

2026-04-06 02:59:28 · · #1

What is OCR recognition?

It uses technologies such as optics and image processing to read the characters printed on items, convert them into a format that computers can accept and understand, and output the corresponding detection results and signals.

Application Background

OCR character recognition has a wide range of applications. For example, in the manufacturing sector, OCR has diverse applications, such as reading text on instruments for real-time monitoring, reading production dates and batch numbers on products to obtain product information and trace the production status of products on the same day, and intelligently matching and recognizing printed information on products for sorting, among other applications.

One of the most common applications of OCR is to recognize characters on materials before sorting them. By recognizing corresponding character samples, the production line can intelligently match and sort the materials. Positive motion technology's machine vision OCR character recognition technology can automatically avoid misjudgments caused by human fatigue or distraction, thereby improving the sorting accuracy and output of the production line.

This solution features fast detection speed, high reliability, and high production efficiency. It has good applicability in OCR character recognition, matching, and sorting in automated production lines, and also has a wide range of market application scenarios.

In the last lesson, we discussed the application case of hook detection in the packaging box production process using machine vision solutions. In this lesson, we will share with you how to implement OCR character recognition applications.

Instructional Videos

01 Detection Principle

(I) Testing Requirements

Perform OCR character recognition to identify the character samples on the sample and display the recognized string results on the main interface.

(II) Software Algorithm

First, we use string comparison commands to obtain the training character library samples we input. Then, we set the relevant parameters for character segmentation and perform character segmentation. After that, we create an OCR classifier and trainer to generate our character training sample library. Finally, we display our character recognition results on the HMI main interface.

(III) Pre-class Preparation

1. One computer with ZDevelop 3.10.04 software installed. 2. One VPLC516E controller. 3. One 24V DC power supply. 4. Several network cables. 5. Several power cords. 6. The controller needs to be updated to the latest firmware and the latest emulator (to recognize updated OCR-related commands).

Latest firmware and emulator download address

02 Software Implementation

1. Open ZDevelop software: Create a new project named "OCR Character Recognition.zpj" → Create a new "HMI" file → Create a new "mian.bas" file (for writing the interface response function) → Create a new "global_variable.bas" file (for storing global variables and enabling HMI to run tasks automatically) → Create a new "InitParam.bas" file (for initializing measurement parameters) → Create a new "draw.bas" file (for updating and drawing ROI data) → Create a new "camera.bas" file (for implementing camera acquisition function) → Add the files to the project.

2. Design the HMI main interface.

3. Associate HMI main interface control variables.

4. The main functions implemented in the code of this course use the following instructions.

Full code and sample image download address

03 Operation Demonstration

(I) Operating Procedures

To check the running effect: Download the project to the controller → Use local images → Single capture → Input the character library samples to be trained → Set the relevant character parameter settings (for segmenting and extracting the required character samples) → Click Extract Training (to train OCR characters) → Click Recognize (to view the character recognition results) → End.

(II) Effect Demonstration

This concludes our sharing of the Zhengdong Technology Machine Vision Motion Control All-in-One Machine Application Example | OCR Character Recognition Application.

For more exciting content, please follow the "Zheng Motion Assistant" WeChat official account. For related development environment and example code, please contact Zheng Motion's technical sales engineer: 400-089-8936.

This article is original content from Zheng Motion Technology. We welcome everyone to reprint it for mutual learning and to jointly improve China's intelligent manufacturing level. Copyright belongs to Zheng Motion Technology. Please indicate the source if you reprint this article.


Read next

CATDOLL CATDOLL 115CM Shota Doll Laura (Customer Photos)

Height: 115cm Male Weight: 19.5kg Shoulder Width: 29cm Bust/Waist/Hip: 57/53/64cm Oral Depth: 3-5cm Vaginal Depth: N/A ...

Articles 2026-02-22