Two-dimensional bar code initial positioning method
A two-dimensional barcode and initial positioning technology, which is applied in the field of image processing, can solve problems such as uneven illumination, blurring, and difficulty in identifying two-dimensional barcodes, and achieve the effects of uneven illumination, reduced calculations, and faster overall recognition efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] Such as figure 1 As shown, a two-dimensional barcode initial positioning method includes the following steps:
[0050] S1: Collect the original image containing the two-dimensional barcode captured by the camera and preprocess the original image;
[0051] S2: Downsampling the preprocessed images with different resolutions;
[0052] S3: Use the improved Bernsen local binarization algorithm to process the down-sampled image to obtain a Min-Max binarization image;
[0053] S4: Create a corresponding integral map based on the binarized image, count the number of foreground in the window, and filter out scattered foreground pixels;
[0054] S5: Calculate the candidate rectangular area through the edge detection operator, extract the edge of the candidate rectangular area, calculate the direction gradient histogram EOH of the edge point in the window, and map the coordinates of the candidate area that meet the feature judgment to On the grayscale image of the original size...
Embodiment 2
[0083] More specifically, on the basis of Example 1, with figure 2 The most common QR code shown is taken as an example to further describe the present invention in detail.
[0084] In the specific implementation process, the gray-scale transformation is performed on the color RGB image containing the two-dimensional barcode captured by the input camera to reduce the amount of calculation in the later stage. The specific calculation formula is:
[0085] Gray=0.3R+0.59G+0.11B
[0086] Then, the 3*3 median filter is used for denoising processing. Experiments have proved that the 3*3 median filter can effectively eliminate the noise caused by camera shooting.
[0087] In the specific implementation process, the adaptive downsampling interval m and n are calculated, and for pictures with different resolutions, according to the aspect ratio of the original picture, the pictures are uniformly downsampled to pictures within 100*100. The specific calculation formula is:
[0088] ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


