QR Code Decoding via Pixel Distribution Analysis
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing graphic code scanning technologies fail to decode QR codes due to the image being excessively small or incomplete, often because it cannot be fully captured within the scan frame, especially in restricted environments.
Innovation Solution
A method and apparatus that allow for the identification and decoding of graphic codes by adjusting the capture orientation to ensure the code is completely imaged in a preview interface, using pixel distribution analysis to determine a scanning step length and adaptively scanning the image to obtain a complete graphic code image, even if it cannot be fully captured in the scan frame.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If the user adjusts the capture orientation to make the graphic code completely imaged in the scan frame, then the decoding accuracy is improved, but the ease of operation deteriorates
Solution Approach 1:
The patent applies partial action by decoding the graphic code from the preview interface image without requiring it to be completely framed in the scan frame. The system attempts decoding on the captured image as-is, and only if that fails, it then tries to locate and extract the code within the scan frame region. This partial approach to framing requirements reduces operational difficulty while maintaining decoding capability.
Solution Approach 2:
The system performs preliminary decoding attempts on the entire preview interface image before restricting analysis to the scan frame region. By trying to decode the complete captured image first, the system can successfully decode codes that are partially outside the scan frame, eliminating the need for precise manual alignment and reducing user operational burden.
2Reliability
If the user adjusts the capture orientation to make the graphic code completely imaged in the scan frame, then the decoding success rate is improved, but the adaptability deteriorates
Solution Approach 1:
The patent makes the decoding system universal by accepting graphic codes in multiple states: completely within the scan frame, partially within the scan frame, or even mostly outside the scan frame but visible in the preview interface. The dual decoding strategy (first on full preview image, then on scan frame region) provides multi-functional capability that adapts to various environmental constraints and code positioning scenarios.
Solution Approach 2:
The system dynamically adjusts its decoding approach based on the captured image content. It first attempts decoding on the entire preview interface image, and only if that fails does it proceed to locate and decode within the scan frame region. This dynamic, conditional decoding process allows the system to adapt to different environmental conditions and code positions, maintaining high success rates across diverse scenarios.
3Measurement precision
If the system requires the graphic code to be completely imaged in the scan frame for decoding, then the measurement precision is improved, but the ease of operation worsens
Solution Approach 1:
The patent inverts the traditional approach by attempting to decode the graphic code from the preview interface image without requiring it to be completely framed in the scan frame. Instead of requiring precise manual alignment to frame the code completely, the system tries decoding on the captured image as-is, reversing the conventional requirement and significantly easing operational difficulty.
Data Source
Figure 1-1~1-2
Figure 1-3~2-1
Figure 2-2
AI summary
Disclosed are a graphical code processing method and apparatus, and a storage medium. The method comprises: collecting an image of an environment containing a graphical code; determining continuous distribution areas of pixels of the collected image in different reference directions, and recognizing an overlapped area of the continuous distribution areas as a potential distribution area of the graphical code; recognizing a scan step length from a local image corresponding to the potential distribution area, and scanning the local image based on the scan step length to obtain a graphical code image; and performing decoding based on the graphical code image, until the decoding succeeds and information modulated in the graphical code is obtained. By utilizing the embodiments of the present invention, the problem that a graphical code image cannot be recognized because it is too small in size or is incomplete is solved.