Industrial-video small digital identification method based on template matching and SVM
A technology of template matching and digital recognition, which is applied in character recognition, character and pattern recognition, instruments, etc., can solve the problems of not being suitable for industrial production sites, weak system specialization, slow recognition speed, etc., to improve the recognition rate and system Reliability, avoid slowing down of recognition speed, achieve simple and efficient results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Existing digital recognition methods are applied to industrial scenarios, but the recognition effect of digits in videos cannot meet the requirements of industrial scenarios. The main problems are low digital recognition rate, slow recognition speed, and unrobust systems.
[0029] In order to solve the above deficiencies of the prior art, the present invention proposes a kind of industrial video digital recognition monitoring method based on template matching and support vector machine through research and experiment, see figure 1 , including the following steps:
[0030] (1) Initialization of industrial automation scene image data: it is necessary to first create a structural feature array strFeature, a training file svm.xml, and a digital sample set VecImg for the sample. Read the initialization file param.xml of the industrial automation scene, and obtain the template sample of the automation scene, the threshold threshold of binarization, the output condition parame...
Embodiment 2
[0042] The industrial video small digit recognition monitoring method based on template matching and support vector machine is the same as embodiment 1-1,
[0043] Wherein the described in step (2) carries out inverse gamma correction to input video image, comprises the following steps:
[0044] (2a) Get all rects of the current image i Region Image Mat i , to Mat i The sample is inversely corrected with gamma=0.4, and the RGB value of each pixel is adjusted to restore the image to the previous state of the display device.
[0045] (2b) Repeat step (2a) until num rects i All regions are corrected.
[0046] Because the video stream involved in the industrial scene is the sequence obtained by the acquisition card and the monitoring display device, the display device has its own gamma proofreading to adapt to the human eye observation mode; in order to obtain the true value of the data, we need to perform gamma on the images of all the areas to be recognized Anti-correction ...
Embodiment 3
[0048] The industrial video small digit recognition monitoring method based on template matching and support vector machine is the same as embodiment 1-2,
[0049] Wherein the image segmentation of the digital sample in the step (3) comprises the following steps:
[0050] (3a) For the extracted Mat i Call the minGray() adaptive binarization function to convert it into a binary image binaryImg; where the minGray() function selects the minimum value of the RGB component as its gray value and converts the input image into a gray image gray, and performs grayscale processing according to the threshold threshold Perform binarization.
[0051] (3b) Create the ImgCut class of the binary image binaryImg and call the preCut() method to obtain the horizontal and vertical projections of the numbers; the preCut() method preprocesses the binaryImg before cutting, mainly including two operations of image expansion and sharpening.
[0052] (3c) Call the Cut() method to cut the number group...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com