Method and device for identifying segment code in image

A recognition device and image technology, applied in the field of image recognition, can solve problems such as wrong segment code range, wrong data acquisition, segment code recognition error, etc., and achieve strong anti-interference and normality guarantee effects

Active Publication Date: 2015-04-29
FEITIAN TECHNOLOGIES
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the prior art, the method of identifying the segment code in the image needs to preset fixed coordinates, and the segment code can only be identified in the case of less interference in the image. This method of preset fixed coordinates makes the recognition device extremely It is possible to delineate the wrong segment code range when there is a lot of interference in the image, and obtain wrong data during the process of analyzing the segment code in the delineated segment code range, resulting in a segment code recognition error

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for identifying segment code in image
  • Method and device for identifying segment code in image
  • Method and device for identifying segment code in image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Embodiment 1 of the present invention provides a method for identifying segment codes in an image, such as figure 2 shown, including:

[0032] Step S1: The recognition device acquires the width of the image as the maximum abscissa value, and acquires the height of the image as the maximum ordinate value;

[0033] Step S2: The recognition device obtains the first abscissa value and the second abscissa value of the segment code in the image according to the color of the pixel in the image, the maximum abscissa value, and the maximum ordinate value;

[0034] Step S3: The recognition device obtains the first ordinate value and the second ordinate value of the segment code in the image according to the first abscissa value, the second abscissa value and the color of the pixel in the image;

[0035] Step S4: The recognition device obtains the coordinates of each stroke sampling area according to the first abscissa value, the second abscissa value, the first ordinate value a...

Embodiment 2

[0038] Embodiment 2 of the present invention provides a method for identifying a segment code in an image by taking a segment code in an image as an example, such as image 3 shown, including:

[0039] Step 101: The recognition device obtains the corresponding image according to the received image path, and judges whether the corresponding image can be obtained, and if so, obtains the width of the image as the maximum abscissa value, obtains the height of the image as the maximum ordinate value, and executes the step 102, otherwise display an error message and end;

[0040] For example, the image acquired by the recognition device is as Figure 4 shown;

[0041] In step 101, after the recognition device acquires the image, it may further include: the recognition device corrects the acquired image;

[0042] In step 101, after the recognition device acquires the image, it may also include: the recognition device traverses the pixels in the obtained image to obtain the average...

Embodiment 3

[0240] Embodiment 3 of the present invention provides a method for identifying segment codes in an image by taking multiple segment codes in an image as an example, such as Figure 11 shown, including:

[0241] Step 201: The recognition device acquires the corresponding image according to the received image path, and judges whether the corresponding image can be acquired, and if so, acquires the length of the image as the maximum abscissa value, and acquires the height of the image as the maximum ordinate value, and executes the step 202, otherwise display an error message and end;

[0242] For example, the image acquired by the recognition device is as Figure 12 shown;

[0243] In this step, after the recognition device acquires the image, it may further include: the recognition device corrects the acquired image;

[0244] In step 201, after the recognition device acquires the image, it may further include: the recognition device traverses the pixels in the obtained image...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a device for identifying a segment code in an image. The method comprises the following steps: acquiring the width of an image as the maximum horizontal axis value by using an identification device, and acquiring the height of the image as the maximum longitudinal axis value; acquiring a first horizontal axis value and a second horizontal axis value of the segment code according to the color of a pixel point, the maximum horizontal axis value and the maximum longitudinal axis value; acquiring a first longitudinal axis value and a second longitudinal axis value of the segment code according to the first horizontal axis value, the second horizontal axis value and the color of the pixel point; obtaining coordinates of each stroke segment sampling area according to the first horizontal axis value, the second horizontal axis value, the first longitudinal axis value and the second longitudinal axis value; performing sampling in the stroke segment sampling areas to obtain a stroke segment distribution situation of the segment code according to a sampling result of each stroke segment sampling area; identifying a number represented by the segment code according to the stroke segment distribution situation, and marking the number represented by the segment code.

Description

technical field [0001] The invention relates to the field of image recognition, in particular to a method and device for recognizing segment codes in an image. Background technique [0002] In the prior art, the method of identifying the segment code in the image needs to preset fixed coordinates, and the segment code can only be identified when there is less interference in the image. This method of presetting the fixed coordinates makes the recognition device extremely It is possible to delineate a wrong segment code range when there is a lot of interference in the image, and obtain wrong data during the process of analyzing the segment codes in the delineated segment code range, resulting in a segment code recognition error. Contents of the invention [0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method and device for identifying segment codes in an image, which do not depend on preset fixed coordinates, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06K9/32G06K9/36
CPCG06V10/245G06V2201/09
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products