Dynamic frame rate scanning head control method and system

By dynamically adjusting the frame rate of the scanning head, dynamically adjusting the frame rate of the image sensor based on whether the decoding is successful or not, the problem of excessive resource consumption at a fixed frame rate is solved, and decoding efficiency and user experience are improved.

CN119520694APending Publication Date: 2025-02-25SHENZHEN UROVO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411515008.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The continuous output of images at a fixed frame rate of the scan head results in an increase in processing time and resource consumption, affecting the equipment's energy consumption, battery life and user experience.

Method used

The dynamic frame rate scanning head control method is used to dynamically adjust the acquisition frame rate of the image sensor according to whether the decoding is successful or not. When the first frame image is decoding is unsuccessful, the frame rate is reduced to reduce the output frequency of subsequent images.

Benefits of technology

It effectively reduces the overall resource consumption of the system, improves decoding efficiency, enhances environmental adaptability and user experience, and significantly improves the response speed of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520694A_ABST
    Figure CN119520694A_ABST
Patent Text Reader

Abstract

The invention relates to a dynamic frame rate scanning head control method and system, and the method comprises the steps: carrying out the image collection at a first frame rate corresponding to a first collection parameter, and decoding the collected first image data; and if the decoding fails, continuously acquiring and decoding at a second frame rate corresponding to the second acquisition parameter, the second frame rate being lower than the first frame rate. According to the method and the device, the problems of low decoding efficiency, high energy consumption, poor resource utilization, poor environmental adaptability, poor user experience and the like are effectively solved by using a dynamic switching strategy of the first frame rate and the second frame rate. According to the method, the decoding efficiency is improved, the energy consumption is reduced, the resource utilization is optimized, the environmental adaptability is enhanced, and the response speed of equipment and the user experience are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated detection and imaging technology, and in particular to a dynamic frame rate scanning head control method and system. Background Art

[0002] The current scanning head workflow includes setting up the image sensor, starting exposure, reading the image, and the main control receives the image data and sends it to the decoding library for decoding. Ideally, the first frame of the image can be successfully decoded to achieve fast scanning. However, in actual applications, the first frame of the image often cannot be successfully decoded due to motion blur, improper scanning distance, poor lighting conditions, or inaccurate exposure adjustment. At this time, the image sensor will continuously output the image to the decoding library at a fixed frame rate to attempt decoding. Although this process can improve the decoding success rate, it will also increase processing time and resource consumption, increase device energy consumption, affect battery life, and require higher hardware configuration and increase costs. In addition, under extreme conditions, the decoding success rate may still be limited, and the continuous output of images may generate redundant data, increasing the complexity and uncertainty of decoding. If the decoding library processing speed cannot match the output frame rate of the image sensor, it may also cause system delays or freezes, affecting user experience and device response speed. Summary of the invention

[0003] The technical problem to be solved by the present invention is that the scanning head continuously outputs images at a fixed frame rate, which leads to increased processing time and resource consumption. A dynamic frame rate scanning head control method and system are provided.

[0004] The technical solution adopted by the present invention to solve the technical problem is: constructing a dynamic frame rate scanning head control method, the method steps comprising:

[0005] S1: setting the image sensor with a first acquisition parameter so that the image sensor sequentially acquires first image data at a first frame rate corresponding to the first acquisition parameter;

[0006] S2: Decoding the first image data and determining whether the decoding is successful;

[0007] If the decoding is unsuccessful, the image sensor is set with a second acquisition parameter so that the image sensor continues to acquire second image data at a second frame rate corresponding to the second acquisition parameter; the second frame rate is lower than the first frame rate.

[0008] In one embodiment, the first acquisition parameter includes a first frame length;

[0009] In the step S1, it includes:

[0010] S1-1: The image sensor sequentially acquires the first image data at the first frame rate corresponding to the first frame length at a preset time interval.

[0011] In one embodiment, the step S2 includes:

[0012] S2-1: Send the first image data to a decoding library and record a frame number N of the first image data, where N is a natural number greater than or equal to 1.

[0013] In one embodiment, the first acquisition parameter further includes an image acquisition threshold;

[0014] The step S2 comprises:

[0015] S2-2: Determine whether the first image data sent to the decoding library is decoded successfully;

[0016] If the decoding is unsuccessful, determining whether the frame number N of the first image reaches the image acquisition threshold; if so, the image sensor continues to acquire the at least one second image data at a second frame rate corresponding to the second acquisition parameter;

[0017] If not, the next first image data is sent to the decoding library and the frame number of the first image data is recorded as N+1, and it is determined whether the decoding is successful; until the frame number of the first image reaches the image acquisition threshold.

[0018] In one embodiment, it further includes S3:

[0019] The second image data is decoded and it is determined whether the decoding is successful; if the decoding is successful, a decoded image result is obtained; if the decoding is unsuccessful, it is determined that the timeout has ended.

[0020] In one embodiment, the step S1 includes:

[0021] Initializing the image sensor;

[0022] Receive scan start information.

[0023] In one embodiment, the process further includes S4: clearing the recorded frame number of the image and waiting to receive next scanning start information.

[0024] In one embodiment, the second acquisition parameter includes a second frame length;

[0025] The image sensor continues to acquire the second image data at a second frame rate corresponding to the second acquisition parameter, comprising:

[0026] The image sensor collects the second image data at the second frame rate corresponding to the second frame length.

[0027] In one embodiment, the first frame rate is 120 frames per second, and the second frame rate is 60 frames per second.

[0028] The present application also provides a dynamic frame rate scanning head control system, comprising a processor and a memory storing a computer program, wherein the processor implements the steps of any of the above-mentioned dynamic frame rate scanning head control methods when executing the computer program.

[0029] The implementation of the present invention has the following beneficial effects: The present application is a dynamic frame rate scanning head control method, and the steps of the method are: performing image acquisition at a first frame rate corresponding to a first acquisition parameter, and decoding the acquired first image data; if decoding fails, continuing acquisition and decoding at a second frame rate corresponding to a second acquisition parameter, wherein the second frame rate is lower than the first frame rate. This dynamic frame rate scanning head control method effectively solves the problems of low decoding efficiency, high energy consumption, poor resource utilization, poor environmental adaptability, and poor user experience. It improves decoding efficiency, reduces energy consumption, optimizes resource utilization, enhances environmental adaptability, and significantly improves the response speed of the device and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0031] Figure 1 It is a flowchart of an embodiment of a dynamic frame rate scanning head control method of the present application;

[0032] Figure 2 It is a flowchart diagram of another embodiment of the dynamic frame rate scanning head control method of the present application. DETAILED DESCRIPTION

[0033] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Aiming at the technical problem existing in the background technology: the problem that the scanning head continuously outputs images at a fixed frame rate, which leads to increased processing time and resource consumption. The present invention provides a dynamic frame rate scanning head control method, which dynamically adjusts the acquisition frame rate of the image sensor according to whether the decoding is successful or not, that is, when the decoding of the first frame image is unsuccessful, the frame rate is reduced to reduce the output frequency of subsequent images, thereby reducing processing time and resource consumption, and solving the problem of excessive resource consumption caused by continuous output of images at a fixed frame rate.

[0035] There is a clear linear inverse relationship between frame length and frame rate: when the frame length is set longer, the frame rate will be reduced accordingly in order to maintain the image quality or the integrity of information capture. Specifically, if the frame length is doubled, the frame rate will be reduced to half of the original. This flexible adjustment between frame length and frame rate is achieved by configuring the registers inside the image sensor, allowing the scan head to optimize performance according to the requirements of different application scenarios.

[0036] Figure 1 It is a flow chart of an embodiment of a dynamic frame rate scanning head control method of the present invention.

[0037] The scanning head includes an image sensor. Figure 1 As shown, the steps of the dynamic frame rate scanning head control method include:

[0038] S1: Setting an image sensor with a first acquisition parameter so that the image sensor sequentially acquires first image data at a first frame rate corresponding to the first acquisition parameter;

[0039] S2: Decode the first image data and determine whether the decoding is successful;

[0040] If the decoding is unsuccessful, the image sensor is set with a second acquisition parameter so that the image sensor continues to acquire second image data at a second frame rate corresponding to the second acquisition parameter; the second frame rate is lower than the first frame rate.

[0041] In this embodiment, the problem of excessive processing time and resource consumption caused by continuous image output by the scanning head at a fixed frame rate is solved through a dynamic frame rate adjustment mechanism. This mechanism can automatically reduce the frame rate when decoding fails, reduce unnecessary image output, and thus effectively reduce the overall resource consumption of the system, improve scanning efficiency and user experience.

[0042] Figure 2 It is a flow chart of another embodiment of a dynamic frame rate scanning head control method of the present invention.

[0043] like Figure 2 As shown, the steps of the dynamic frame rate scanning head control method under this embodiment include:

[0044] Initialize the image sensor;

[0045] Receive scan start information.

[0046] S1: Setting an image sensor with a first acquisition parameter so that the image sensor sequentially acquires first image data at a first frame rate corresponding to the first acquisition parameter;

[0047] Specifically, before starting scanning, the image sensor needs to be initialized to ensure that its parameters (such as resolution, exposure time, etc.) are in the preset optimal state. The system receives the command or signal to start scanning and triggers the subsequent image acquisition and decoding process.

[0048] Further, the first acquisition parameter includes a first frame length; in step S1, including:

[0049] S1-1: The image sensor sequentially collects first image data at a first frame rate corresponding to a first frame length and at a preset time interval.

[0050] Further, the second acquisition parameter includes a second frame length. The image sensor continues to acquire the second image data at a second frame rate corresponding to the second acquisition parameter, including: the image sensor acquires the second image data at a second frame rate corresponding to the second frame length. The first frame rate is 120 frames per second, and the second frame rate is 60 frames per second.

[0051] Specifically, an instruction or signal to start scanning is received. This instruction may come from a user's operation, such as pressing a scan button, or from a trigger signal in an automated process. Once this instruction is received, the system will immediately start the subsequent image acquisition and decoding process. Subsequently, the image sensor is configured according to the preset first acquisition parameters. These parameters include but are not limited to the first frame length, and other parameters that may affect the image quality and acquisition efficiency. After the configuration is completed, the image sensor will start working at a first frame rate that matches the first frame length, such as a speed of 120 frames per second, and capture image data in sequence within a preset time interval to obtain the first image data. The first frame rate and the second frame rate depend on the actual situation, and can also be adjusted according to the actual situation, but the second frame rate is required to be lower than the first frame rate, and the time interval can be set according to the actual situation, for example, the time interval can be 8ms per frame or 10ms per frame.

[0052] S2: Decode the first image data and determine whether the decoding is successful;

[0053] If the decoding is unsuccessful, the image sensor is set with a second acquisition parameter so that the image sensor continues to acquire second image data at a second frame rate corresponding to the second acquisition parameter; the second frame rate is lower than the first frame rate.

[0054] S2-1: Send the first image data to the decoding library and record the frame number N of the first image data, where N is a natural number greater than or equal to 1.

[0055] Furthermore, the first acquisition parameter also includes an image acquisition threshold.

[0056] Specifically, initially, the barcode image is quickly captured at a first frame rate (such as 120 frames per second) and decoded to improve decoding efficiency, especially when the barcode is clear and the ambient light is good. However, for special scenarios such as poor barcode quality, wrong angle, too far distance or large changes in ambient brightness, if the number of images taken is 3 frames, the interval between images taken is 8ms per frame, and the specific number of images taken and the interval between images taken are determined according to the actual situation, and decoding cannot be successful, the frame rate is adjusted, and the frame length, that is, the maximum exposure time allowed for a frame of image, is adjusted to reduce the frame rate to 1 / 2 or 1 / 4 of the original (such as reduced to 60 frames or lower) to reduce power consumption and maintain sufficient image data input for the decoder to continue trying. Compared with most scanning heads on the market that use a fixed 60 frames, the high frame rate strategy used in the first three frames of this application significantly speeds up the decoding speed, and when the decoding of the first few frames is unsuccessful, the second image data is continuously acquired by reducing the frame rate, thereby improving decoding efficiency, reducing energy consumption, optimizing resource utilization, enhancing environmental adaptability, and significantly improving the response speed and user experience of the device.

[0057] S2-2: Determine whether the first image data sent to the decoding library is decoded successfully;

[0058] If the decoding is unsuccessful, determining whether the frame number N of the first image reaches the image acquisition threshold; if so, the image sensor continues to acquire at least one second image data at a second frame rate corresponding to the second acquisition parameter;

[0059] If not, the next first image data is sent to the decoding library and the frame number of the first image data is recorded as N+1, and it is determined whether the decoding is successful; until the frame number of the first image reaches the image acquisition threshold.

[0060] Specifically, after the first image data is sent to the decoding library, the decoder will attempt to decode it. If the decoding is successful, the entire decoding process will end smoothly. If the decoding is unsuccessful, first determine whether the frame number N of the first image data that has been attempted to be decoded has reached the preset image acquisition threshold. The image acquisition threshold is a pre-set value used to limit the amount of data collected using the first frame rate. If the frame number N has reached the image acquisition threshold, the current first acquisition parameter may not be suitable for the current scanning environment or barcode characteristics. The frame rate of the image sensor should be adjusted to a second frame rate, which is lower than the first frame rate, to reduce power consumption and possibly increase the decoding success rate. Subsequently, the image sensor will continue to capture at least one second image data at this second frame rate and send it to the decoding library for decoding attempts. If the frame number N has not reached the image acquisition threshold, continue to capture the next first image data and send it to the decoding library for decoding attempts. At the same time, update and record the frame number of the image data currently being attempted to be decoded as N+1. This process will be repeated until the frame number N reaches the image acquisition threshold. If the decoding is successful in this process, the entire decoding process will end.

[0061] S3: Decode the second image data and determine whether the decoding is successful; if the decoding is successful, obtain the decoded image result; if the decoding is unsuccessful, determine that the timeout has ended.

[0062] Furthermore, the method further includes S4: clearing the frame number of the recorded image and waiting to receive the next scanning start information.

[0063] Specifically, if the decoder still fails to decode the second image data after trying, it believes that the current task has timed out and cannot be decoded successfully, then it will be judged as a scanning task failure, and may trigger a timeout error handling process. This process may display an error message to the user, indicating that the scanning task cannot be completed, and suggesting that the user check the barcode quality, scanning environment or device status, etc.

[0064] In step S4, regardless of whether the decoding is successful or not, the system will perform some cleanup work. First, the system will clear the frame numbers of previously recorded images, which are used to track and record the image data that is attempted to be decoded during the decoding process. Since these frame numbers no longer have practical significance after each scanning task, the system needs to clear them to maintain neatness and accuracy. Secondly, the system will enter a waiting state, ready to receive the next scan start information. This waiting state is an important feature of the system, which allows the user to start the next scan at any time after completing a scanning task. When the user needs to scan again, just send a scan start instruction or signal to the system (such as pressing a scan button or triggering a scan event in an automated process), and the system will respond immediately and start a new scanning task.

[0065] The present application also provides a dynamic frame rate scanning head control system, including a processor and a memory storing a computer program, and the processor implements the steps of any of the above-mentioned dynamic frame rate scanning head control methods when executing the computer program.

[0066] The present application is a dynamic frame rate scanning head control method, the steps of which are: performing image acquisition at a first frame rate corresponding to a first acquisition parameter, and decoding the acquired first image data; if decoding fails, continuing acquisition and decoding at a second frame rate corresponding to a second acquisition parameter, wherein the second frame rate is lower than the first frame rate. This dynamic frame rate scanning head control method effectively solves the problems of low decoding efficiency, high energy consumption, poor resource utilization, poor environmental adaptability, and poor user experience. It improves decoding efficiency, reduces energy consumption, optimizes resource utilization, enhances environmental adaptability, and significantly improves the response speed of the device and user experience.

[0067] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.

Claims

1. A method for controlling a dynamic frame rate scanning head, wherein the scanning head comprises an image sensor; characterized in that: The method comprises: S1: setting the image sensor with a first acquisition parameter so that the image sensor sequentially acquires first image data at a first frame rate corresponding to the first acquisition parameter; S2: Decoding the first image data and determining whether the decoding is successful; If the decoding is unsuccessful, the image sensor is set with a second acquisition parameter so that the image sensor continues to acquire second image data at a second frame rate corresponding to the second acquisition parameter; the second frame rate is lower than the first frame rate.

2. The dynamic frame rate scanning head control method according to claim 1, characterized in that: The first acquisition parameter includes a first frame length; In the step S1, it includes: S1-1: The image sensor sequentially acquires the first image data at the first frame rate corresponding to the first frame length at a preset time interval.

3. The dynamic frame rate scanning head control method according to claim 2, characterized in that: In the step S2, it includes: S2-1: Send the first image data to a decoding library and record a frame number N of the first image data, where N is a natural number greater than or equal to 1.

4. The dynamic frame rate scanning head control method according to claim 3, characterized in that: The first acquisition parameter also includes an image acquisition threshold; The step S2 comprises: S2-2: Determine whether the first image data sent to the decoding library is decoded successfully; If the decoding is unsuccessful, determining whether the frame number N of the first image reaches the image acquisition threshold; if so, the image sensor continues to acquire the at least one second image data at a second frame rate corresponding to the second acquisition parameter; If not, the next first image data is sent to the decoding library and the frame number of the first image data is recorded as N+1, and it is determined whether the decoding is successful; until the frame number of the first image reaches the image acquisition threshold.

5. The dynamic frame rate scanning head control method according to claim 4, characterized in that: Also includes S3: The second image data is decoded and it is determined whether the decoding is successful; if the decoding is successful, a decoded image result is obtained; if the decoding is unsuccessful, it is determined that the timeout has ended.

6. The dynamic frame rate scanning head control method according to claim 5, characterized in that: The step S1 includes: Initializing the image sensor; Receive scan start information.

7. The dynamic frame rate scanning head control method according to claim 6, characterized in that: The process also includes S4: clearing the recorded frame number of the image and waiting to receive next scanning start information.

8. The dynamic frame rate scanning head control method according to claim 7, characterized in that: The second acquisition parameter includes a second frame length; The image sensor continues to acquire the second image data at a second frame rate corresponding to the second acquisition parameter, comprising: The image sensor collects the second image data at the second frame rate corresponding to the second frame length.

9. The dynamic frame rate scanning head control method according to claim 8, characterized in that: The first frame rate is 120 frames per second, and the second frame rate is 60 frames per second.

10. A dynamic frame rate scanning head control system, comprising a processor and a memory storing a computer program, characterized in that: The processor implements the steps of the dynamic frame rate scanning head control method according to any one of claims 1 to 9 when executing the computer program.