Decoding method and terminal of one-dimensional code cmos camera engine
A decoding method and a decoding terminal technology, which are applied to the decoding method of a one-dimensional code CMOS camera engine and the terminal field, and can solve problems such as slow decoding speed and inability to decode
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0102] Please refer to figure 2 , Embodiment 1 of the present invention is:
[0103] The invention provides a decoding method of a one-dimensional code CMOS camera engine, comprising the following steps:
[0104] S1: controlling the CMOS camera engine to take a picture, the picture includes a one-dimensional code and a red cross;
[0105] S2: Calculate the position of the red cross in the picture, and obtain the offset of the red cross relative to the center of the picture according to the calculation result;
[0106] S3: According to the offset, adjust the priority decoding area of the picture by the CPU in the next decoding.
[0107] The S3 is specifically:
[0108] The CMOS camera engine includes a preset memory;
[0109] storing the offset in the memory;
[0110] In the next decoding, after the CPU reads the offset in the memory, it adjusts the priority decoding area of the picture according to the read result.
Embodiment 2
[0112] The invention provides a decoding method of a one-dimensional code CMOS camera engine, comprising the following steps:
[0113] S1: controlling the CMOS camera engine to take a picture, the picture includes a one-dimensional code and a red cross;
[0114] S2: Calculate the position of the red cross in the picture, and obtain the offset of the red cross relative to the center of the picture according to the calculation result;
[0115] Processing the picture to obtain a plurality of coordinate points whose pixel color is red;
[0116] Obtaining position information of the red cross line according to the plurality of coordinate points;
[0117] According to the position information, the offset of the red cross line relative to the center of the picture is calculated.
[0118] "Process the image to obtain a plurality of coordinate points whose pixel color is red" is specifically:
[0119] Acquire the RGB value of each pixel of the picture, and obtain multiple coordinate...
Embodiment 3
[0143] Please refer to image 3 , Embodiment three of the present invention is:
[0144] The invention provides a decoding terminal of a one-dimensional code CMOS camera engine, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, and the processor implements the following steps when executing the program:
[0145] S1: controlling the CMOS camera engine to take a picture, the picture includes a one-dimensional code and a red cross;
[0146] S2: Calculate the position of the red cross in the picture, and obtain the offset of the red cross relative to the center of the picture according to the calculation result;
[0147] S3: According to the offset, adjust the priority decoding area of the picture by the CPU in the next decoding.
[0148] The S3 is specifically:
[0149] The CMOS camera engine includes a preset memory;
[0150] storing the offset in the memory;
[0151] In the next decoding, after the CPU reads the o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


