Legal claims defining the scope of protection. Each claim is shown in both the original legal language and a plain English translation.
1. A method for presenting a graphic code, comprising: detecting that a graphic code page is invoked on a device, the graphic code page including a graphic code; capturing an image using the device; determining that the captured image includes a feature of a code scanning module by performing image recognition on the captured image; calculating an offset distance between the code scanning module and a location of the graphic code as currently presented on the device, wherein the capturing an image, the determining that the image includes the feature of the code scanning module, and the calculating an offset distance are performed repeatedly; determining that a difference between a number of calculated offset distances is within a threshold; in response to the determining that the difference between the number of calculated offset distances is within the threshold, calculating a target location for presenting the graphic code on the device based, at least in part, on the offset distance; and presenting the graphic code at the target location.
2. The method according to claim 1 , wherein the capturing an image includes: detecting that the device is in a still state and remains in the still state for a duration that exceeds a threshold; and wherein the performing image recognition is conducted responsive to the detecting.
A method for improving image capture and recognition in electronic devices addresses the problem of unnecessary processing when a device is in motion, which can lead to inefficient battery usage and inaccurate results. The method involves capturing an image only when the device is in a stable, still state, ensuring higher-quality input for subsequent image recognition tasks. Specifically, the device detects when it is in a still state and remains motionless for a duration that exceeds a predefined threshold. Once this condition is met, the device captures an image and performs image recognition on the captured image. This approach reduces unnecessary processing by triggering image recognition only when the device is stable, thereby conserving computational resources and improving recognition accuracy. The method is particularly useful in mobile or handheld devices where motion-induced blur or instability can degrade image quality and recognition performance. By integrating motion detection with image capture, the system ensures that recognition is performed only on high-quality, stable images, enhancing overall efficiency and reliability.
3. The method according to claim 1 , wherein the capturing an image includes: responsive to the detecting that the graphic code page is invoked, determining whether the device has a front-facing image capture module; and responsive to determining that the device has the front-facing image capture module, starting the front-facing image capture module to perform image capturing.
A method for capturing images of graphic codes, such as QR codes, on a device involves detecting when a graphic code page is invoked. Upon detection, the method checks whether the device has a front-facing image capture module, such as a front-facing camera. If the device has such a module, the method activates it to capture an image of the graphic code. This approach ensures that the device uses the most convenient and user-friendly camera for scanning graphic codes, particularly when the code is displayed on the device's screen or in close proximity. The method may also include additional steps, such as processing the captured image to decode the graphic code or displaying a user interface that guides the user through the scanning process. The solution addresses the need for efficient and intuitive graphic code scanning, especially in scenarios where the user may not have easy access to a rear-facing camera or when the code is displayed on the device itself. The use of a front-facing camera streamlines the process, reducing the need for manual adjustments or multiple attempts to capture the code.
4. The method according to claim 1 , wherein the capturing an image includes: responsive to detecting that the graphic code page is invoked, determining whether the device has a front-facing image capture module; and responsive to determining that the mobile device does not have a front-facing image capture module, presenting the graphic code based on a presentation policy, the presentation policy including at least a policy for presenting the graphic code based on different presentation locations.
5. The method according to claim 4 , wherein presenting the graphic code based on the presentation policy includes: moving and presenting the graphic code up and down along a central symmetry axis of the device based on a speed.
6. The method according to claim 4 , wherein presenting the graphic code based on the presentation policy includes: setting a plurality of presentation locations and a presentation time interval; and presenting the graphic code at different presentation locations of the plurality of presentation locations based on the set presentation time interval.
7. An apparatus for presenting a graphic code, comprising: an image capture module, configured to: detect that a graphic code page is invoked on the apparatus, the graphic code page including a graphic code; and capture an image; an offset calculation module, configured to: detect that the apparatus is in a still state and remains in the still state for a duration that exceeds a threshold; determine that the captured image includes a feature of a code scanning module by performing image recognition on a captured image, wherein the performing image recognition is responsive to the detecting that the apparatus is in a still state and remains in the still state for a duration that exceeds a threshold; and calculate an offset distance between the code scanning module and a location of the graphic code as currently presented on the apparatus; and a calculation and presentation module, configured to: calculate a target location for presenting the graphic code on the apparatus based, at least in part, on the offset distance; and present the graphic code at the target location.
8. The apparatus according to claim 7 , wherein the offset calculation module is further configured to: determine that the captured image includes indication of a code scanning module, wherein responsive to the determining that the captured image includes indication of a code scanning module, the capturing an image, the determining that the image includes the feature of the code scanning module, and the calculating an offset distance are performed repeatedly; and determine that a difference between a number of calculated offset distances is within a threshold, wherein the target presentation location is calculated responsive to the determining that a difference between a number of calculated offset distances is within a threshold.
9. The apparatus according to claim 7 , wherein the image capture module is further configured to: responsive to detecting that the graphic code page is invoked, determine whether the apparatus has an image capture module; and responsive to determining that the current device has the image capture module, start the image capture module to perform image capturing.
10. The apparatus according to claim 7 , wherein the image capture module is further configured to: responsive to detecting that the graphic code page is invoked, determine whether the apparatus has an image capture module; and responsive to determining that the apparatus does not have an image capture module, present the graphic code based on a presentation policy, the presentation policy including at least a policy for presenting the graphic code based on different presentation locations.
11. The apparatus according to claim 10 , wherein presenting the graphic code based on the presentation policy includes: moving the graphic code up and down along a central symmetry axis of a screen of the apparatus.
12. The apparatus according to claim 10 , wherein presenting the graphic code based on the presentation policy includes: setting a plurality of presentation locations and a presentation time interval; and presenting the graphic code at different presentation locations of the plurality of presentation locations based, at least in part, on the set presentation time interval.
13. A computer device, comprising a memory, a processor, and a computer program that is stored on the memory and that can run on the processor, the processor implementing a method when executing the program, the method comprises: detecting that a graphic code page is invoked on the computer device, the graphic code page including a graphic code; responsive to the detecting that the graphic code page is invoked, determining whether the computer device has a front-facing image capture module; and responsive to determining that the device has the front-facing image capture module; starting the front-facing image capture module to perform image capturing; capturing an image; determining that the captured image includes a feature of a code scanning module by performing image recognition on the captured image; calculating an offset distance between the code scanning module and a location of the graphic code as currently presented on the computer device; calculating a target location for presenting the graphic code on the computer device based, at least in part, on the offset distance; and presenting the graphic code at the target location.
14. The computer device according to claim 13 , wherein the capturing an image includes: detecting that the computer device is in a still state and remains in the still state for a duration that exceeds a threshold; and wherein the performing image recognition is conducted responsive to the detecting.
15. The computer device according to claim 13 , wherein the capturing an image, the determining that the image includes the feature of the code scanning module, and the calculating an offset distance are performed repeatedly, the method further comprising, responsive to determining that the device has the front-facing image capture module: determining that a difference between a number of calculated offset distances is within a threshold; and calculating the target location in response to the determining that the difference between the number of calculated offset distances is within the threshold.
This invention relates to computer devices equipped with image capture modules, particularly for improving the accuracy of code scanning operations. The problem addressed is the variability in image capture positioning, which can lead to misalignment when scanning codes like barcodes or QR codes. The solution involves repeatedly capturing images, analyzing them to detect a feature of the code scanning module, and calculating an offset distance between the detected feature and a target location. If the device has a front-facing image capture module, the system further refines the process by comparing multiple calculated offset distances. When the difference between these distances falls within a predefined threshold, the system determines a stable target location for accurate code scanning. This iterative approach ensures that the device compensates for positional inconsistencies, enhancing scanning reliability. The method leverages repeated measurements to filter out noise and improve precision, particularly in dynamic environments where the device or the code may move slightly between captures. The invention is applicable to mobile devices, tablets, or other computing systems with image capture capabilities, aiming to optimize code scanning performance by dynamically adjusting the target location based on real-time image analysis.
16. The computer device according to claim 13 , wherein the capturing an image includes: responsive to determining that the computer device does not have the front-facing image capture module, presenting the graphic code based on a presentation policy, the presentation policy including at least a policy for presenting the graphic code based on different presentation locations.
17. The computer device according to claim 16 , wherein presenting the graphic code based on the presentation policy includes: setting a plurality of presentation locations and a presentation time interval; and presenting the graphic code at different presentation locations of the plurality of presentation locations based on the set presentation time interval.
Unknown
January 26, 2021
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.