Screen-Based Two-Dimensional Code Recognition Without Camera
Solution Overview
Problem
Conventional two-dimensional code recognition methods require cameras to capture images, which limits recognition capabilities when images of two-dimensional codes cannot be obtained by cameras.
Innovation Solution
A method and apparatus for two-dimensional code recognition that determines the presence of a two-dimensional code in a picture displayed on a device's screen, allowing for identification without camera usage, through operations like full-screen scanning, positioning, segmentation, and decoding, and providing options for users to choose which codes to identify.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If camera-based image capture is used for two-dimensional code recognition, then the recognition system can capture images of codes in the physical environment, but the system cannot recognize codes displayed on screens and hardware resources are wasted when no code is present
Solution Approach 1:
The recognition system is designed to handle multiple input sources (camera-captured images and screen-displayed pictures) through a unified processing framework. The system can automatically detect whether the input comes from a camera or screen and apply appropriate processing methods, making the hardware requirements flexible rather than fixed.
Solution Approach 2:
The system performs preliminary detection to determine whether a two-dimensional code is present in the input picture before initiating full recognition processing. This preliminary check prevents unnecessary processing when no code is present and enables the system to switch between camera and screen input modes based on detection results.
2Adaptability or versatility
If full-screen scanning is performed to detect two-dimensional codes in displayed pictures, then codes can be identified without camera usage, but processing time increases when no code is present
Solution Approach 1:
Instead of performing complete full-screen scanning on all displayed pictures, the system applies a lightweight preliminary detection mechanism that scans only critical areas or uses simplified algorithms to quickly determine code presence. Full recognition processing is triggered only when a code is detected, avoiding unnecessary processing time.
3Productivity
If automatic code identification is performed without user selection, then recognition efficiency is improved, but user control over which codes to process is lost
Solution Approach 1:
The system provides dynamic operation modes that can switch between automatic identification and user-selectable identification based on user preferences or contextual requirements. The interface allows users to choose their preferred mode, and the system adapts its behavior accordingly, maintaining both efficiency and control.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
The embodiments of the disclosure provide a two-dimensional code recognition method and associated apparatus. The two-dimensional code recognition method comprises steps of determining whether there is a picture displayed on a screen; determining whether the picture includes a two-dimensional code, when the picture is displayed on the screen; and identifying the two-dimensional code, when the picture includes the two-dimensional code. According to the disclosure only when determining the picture includes a two-dimensional code, the two-dimensional code is identified, and cameras are not required for the recognition of the local two-dimensional code picture.