Optical information collecting device and method

The optical information collecting device manages image data collection and decoding through a central processing unit to minimize energy waste and decoding errors by removing residual frames, enhancing efficiency and accuracy.

JP2024533025AActive Publication Date: 2024-09-12WUXI IDATA TECHNOLOGY COMPANY LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024504480
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-11
Filing Date
2023-07-27
Publication Date
2024-09-12
Estimated Expiration
2043-07-27

AI Technical Summary

Technical Problem

Conventional optical information collection methods face issues with energy consumption and decoding errors due to continuous image sensing and unnecessary image data collection, leading to inefficiencies and potential decoding errors from residual image data.

Method used

An optical information collecting device and method that controls image data collection and decoding through a central processing unit, removing a predetermined number of frames of residual image data and employing fixed frame or mixed modes to minimize energy waste and decoding errors.

Benefits of technology

The solution effectively reduces energy consumption and avoids decoding errors by managing image data collection and decoding, ensuring efficient and accurate optical information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024533025000001
    Figure 2024533025000001
Patent Text Reader

Abstract

The present invention provides an optical information collecting device and a method thereof. The optical information collecting device includes an image sensor, a decode unit, and a central processing unit. The image sensor collects image data of optical information. The decode unit decodes the image data according to a preset decoding algorithm. When the central processing unit is triggered, the central processing unit controls the image sensor to collect image data and controls the decode unit to decode the image data. When the central processing unit is triggered, the central processing unit sends a command to remove image data of N frames having a predetermined frame number. The image data of N frames having a predetermined frame number is image data collected by a previous trigger and remaining in the optical information collecting device. This can avoid the remaining image data being decoded and output, avoid decoding errors, and improve decoding efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of optical information collection technology, and more particularly to an optical information collection device and method. [Background technology]

[0002] Collecting optical information through image scanning includes collecting various optical information that can be read by the device, including one-dimensional codes, two-dimensional codes, OCR graphics and text, ultraviolet anti-counterfeiting codes, infrared anti-counterfeiting codes, etc.

[0003] When collecting optical information, supplemental illumination is usually used to obtain a clear image. In the conventional supplemental illumination method, supplemental illumination is continued when collecting optical information, which may result in a large amount of heat emission from the device and a large amount of energy consumption.

[0004] The Chinese patent with application number CN201810098421.0 discloses a low power consumption supplemental lighting method invented by the inventor of the present application, the contents of which are incorporated herein by reference. An optical imaging unit activates supplemental lighting during the exposure time of a frame period, and turns off supplemental lighting during the collection time of the frame period. Periodically opening and closing the supplemental lighting device can reduce energy consumption.

[0005] The frame period of the optical imaging unit is less than 50 ms, and the preferred frame period of the optical imaging unit is less than 20 ms. Thus, the optical imaging unit can collect tens of frames of images within 1 s. The optical imaging unit usually collects images continuously by digital streaming method, and the successfully recognized optical information corresponds to the image of any one frame. Once the optical information is successfully recognized, the optical imaging unit will not collect other images again and will stop collecting optical information.

[0006] When the optical information is successfully recognized, the optical imaging unit continuously collects images in a digital stream manner. When the optical information is successfully recognized for any one frame of image, and multiple frame images are subsequently collected continuously, the multiple frame images collected later are not used for recognizing the optical information, which may result in energy waste.

[0007] The Chinese patent with application number CN201811485945.1 discloses a low-power consumption barcode scanning system and method invented by the inventor of the present application, and the contents of the above application are incorporated herein by reference. The image sensor is in standby before being triggered, and when the decoding is successfully performed or the decoding time exceeds a predetermined duration, the image sensor is again in standby. The above method is different from the usage method of a mobile phone. When a mobile phone starts an application related to a camera, the camera scans images all the time, which may increase the energy consumption. However, since a mobile phone does not use the camera for a long time, the energy consumption can be ignored. Although the method of scanning a barcode is different, the image sensor is kept in an active state all the time due to the long use of the image sensor to scan the barcode. This may reduce the battery life.

[0008] However, the above may cause other problems. According to the research of the inventor of the present application, when the image sensor continuously collects images by a digital stream method, if the decoding is successfully performed or the decoding time exceeds a predetermined duration, the image sensor stops collecting images (at that time, the barcode scanning system is put into a standby state, and the image sensor is powered on, but the image sensor does not scan or output images, thereby reducing energy consumption). Although the probability of the image sensor having already collected an image is low, it may cause certain effects. In that case, the collected image is not output and remains in the storage area of ​​the image sensor (in an image sensor with a buffer, the image remains in the buffer). In an image sensor without a buffer, the electric signal of the image remains in the PN junction of the pixel unit of the image sensor, so when the image sensor collects the next image, the image remaining in the PN junction is output first.

[0009] According to the research of the inventors of the present application, when adopting a platform of Qualcomm Company or MediaTek Company, the image is not only stored in the image sensor, but also in other storage devices, for example, the image is also stored in the buffer of the image signal processing device.

[0010] Therefore, it is necessary to solve the shortcomings of the conventional techniques by proposing new technical matters. Summary of the Invention [Problem to be solved by the invention]

[0011] SUMMARY OF THE PRESENTLY PREFERRED EMBODIMENTS An object of the present invention is to provide an optical information collecting apparatus and method capable of avoiding decoding errors and reducing energy consumption. [Means for solving the problem]

[0012] In order to achieve the above object, the present invention employs the following technical features. The present invention provides an optical information collecting device. The optical information collecting device includes an image sensor, a decode unit and a central processing unit, the image sensor collects image data of optical information, and the decode unit decodes the image data according to a preset decoding algorithm. When the central processing unit is triggered, the central processing unit controls the image sensor to collect image data, and controls the decode unit to decode the image data. When the central processing unit is triggered, the central processing unit sends a command to remove image data of N frames having a predetermined frame number, and the image data of N frames having a predetermined frame number is image data collected by a previous trigger and remaining in the optical information collecting device.

[0013] N frames of image data having a predetermined frame number include image data remaining in the storage area of ​​the image sensor.

[0014] The optical information collecting device further includes an image signal processor, which receives image data collected by the image sensor and transmits image data to the decoding unit, and N frames of image data having a predetermined number of frames include image data remaining in the image signal processor.

[0015] The N frames of image data from which a predetermined number of frames have been removed include N frames of image data that are not received by the decoding unit and have a predetermined number of frames, N frames of image data that are not decoded by the decoding unit and have a predetermined number of frames, or image data for which the decoding unit does not output or display decoded information for N frames of image data having a predetermined number of frames.

[0016] The decoding unit starts decoding from the image data of the N+1th frame.

[0017] The present invention further provides the following optical information collecting method. triggering the central processing unit to control the image sensor to collect and output image data; A step of removing N frames of image data having a predetermined frame number by a central processing unit receiving the image data and sending a command, the N frames of image data having the predetermined frame number being image data collected by a previous trigger and remaining in the light information collecting device; A decoding unit decodes the image data.

[0018] N frames of image data having a predetermined frame number include image data remaining in the storage area of ​​the image sensor.

[0019] An image signal processor receives image data collected by the image sensor, and the image signal processor further transmits the image data to the decode unit, and N frames of image data having a predetermined number of frames include image data remaining in the image signal processor.

[0020] The N frames of image data from which a predetermined number of frames have been removed include N frames of image data that are not received by the decoding unit and have a predetermined number of frames, N frames of image data that are not decoded by the decoding unit and have a predetermined number of frames, or image data for which the decoding unit does not output or display decoded information for N frames of image data having a predetermined number of frames.

[0021] The decoding unit starts decoding from the image data of the N+1th frame.

[0022] The present invention further provides an optical information collecting device, which includes an image sensor, a decode unit, and a central processing unit. The image sensor collects image data of optical information. The decode unit receives and decodes the image data. The central processing unit controls the image sensor to collect image data, and controls the decode unit to decode the image data. When the central processing unit is triggered, the central processing unit controls the image sensor to collect and output image data of a fixed number of frames in a fixed frame mode, and controls the decode unit to decode the image data. When the image data of any one frame is successfully decoded, the decoding of the remaining image data in the image data of the fixed number of frames is stopped.

[0023] The fixed frame mode includes image data of a fixed number of frames that the image sensor has not yet collected when the decoding unit is successful, and the image sensor further collects the image data of the fixed number of frames that have not yet been collected and outputs the image data of the fixed number of frames.

[0024] The fixed frame mode includes a fixed number of frames of image data that the decode unit sequentially receives and decodes under the control of the central processing unit, and controls the image sensor to collect the fixed number of frames of image data again when the image data of the last frame in the fixed number of frames is not successfully decoded or before it is decoded.

[0025] The optical information collecting device does not include an image signal processor or does not use an image signal processor to optimize the image data collected by the image sensor.

[0026] The image sensor is configured to collect image data in the following order: a fixed frame mode having a pre-set number of frames, or a digital streaming mode that continuously collects image data.

[0027] The present invention further provides the following optical information collecting method. A step of controlling the image sensor to acquire and output image data of a fixed number of frames in a fixed frame mode by triggering the central processing unit; The decoding unit receives and decodes image data, and when the image data of any one frame is successfully decoded, stops decoding remaining image data in the image data of the fixed number of frames.

[0028] When the decoding unit is successful but the image sensor has not yet collected all the image data for the fixed number of frames, the image sensor further collects the image data for the fixed number of frames that have not yet been collected and outputs the image data for the fixed number of frames.

[0029] The decoding unit sequentially receives and decodes a fixed number of frames of image data under the control of the central processing unit, and controls the image sensor to collect the fixed number of frames of image data again when the image data of the last frame in the fixed number of frames is not successfully decoded or before it is decoded.

[0030] The optical information gathering method does not include an image signal processor or an image signal processor for optimizing the image data gathered by the image sensor.

[0031] The image sensor is configured to collect image data in the following order: a fixed frame mode having a pre-set number of frames, or a digital streaming mode that continuously collects image data.

[0032] The present invention further provides an optical information collecting device, which includes an image sensor, a storage device, a decode unit, and a central processing unit. The image sensor collects image data of optical information. The storage device has one or more decode algorithms pre-installed therein. The decode unit receives and decodes the image data. The central processing unit controls the image sensor to continuously collect image data in a digital streaming mode, and controls the decode unit to sequentially decode the image data. When the decoding by the decode unit is successful or the decoding time exceeds a predetermined duration, the central processing unit controls the image sensor to stop continuously collecting image data in a digital streaming mode, and controls the image sensor to continuously collect and output image data of a fixed number of frames.

[0033] The optical information gathering device does not include an image signal processor or does not optimize image data using an image signal processor.

[0034] The image sensor outputs image data in RAW format, and the decoding unit obtains grayscale image data according to the image data in RAW format, and performs decoding according to the grayscale image data.

[0035] The fixed frame number of image data is one frame or two frames.

[0036] The image data collected by the image sensor is directly transmitted to the decoding unit for decoding.

[0037] The present invention further provides the following optical information collecting method. the central processing unit controls the image sensor to continuously collect and output image data in a digital streaming mode; a decoding unit receiving and decoding the image data, and stopping the image sensor from collecting image data in a digital streaming mode when the decoding unit is successful; and controlling the image sensor to continuously collect and output a fixed number of frames of image data.

[0038] The optical information gathering device does not include an image signal processor or does not optimize image data using an image signal processor.

[0039] The image sensor outputs image data in RAW format, and the decoding unit obtains grayscale image data according to the image data in RAW format, and performs decoding according to the grayscale image data.

[0040] The fixed frame number of image data is one frame or two frames.

[0041] The image data collected by the image sensor is directly transmitted to the decoding unit for decoding. [Brief description of the drawings]

[0042] [Figure 1] 1 is a block diagram showing an outline of an optical information collecting device according to an embodiment of the present invention. [Diagram 2] 1 is a diagram showing an optical information collecting device according to an embodiment of the present invention. [Diagram 3] FIG. 3 is a perspective view showing the optical information collecting device of FIG. 2. [Figure 4] 1 is a block diagram showing a structure of an optical information collecting device according to an embodiment of the present invention. [Diagram 5]4 is a timing diagram illustrating an optical information collecting device according to an embodiment of the present invention collecting optical information in a digital streaming mode. [Figure 6] 4 is a timing diagram illustrating the optical information collecting device according to the embodiment of the present invention collecting optical information. [Figure 7] 5 is another timing diagram illustrating the optical information collecting device according to the embodiment of the present invention collecting optical information. [Figure 8] FIG. 13 is a block diagram showing the structure of an optical information collecting device according to another embodiment of the present invention. [Figure 9] 6 is a timing diagram illustrating an optical information collecting device according to another embodiment of the present invention collecting optical information. [Figure 10] 11 is a timing diagram illustrating an optical information collecting device according to another embodiment of the present invention collecting optical information in a fixed frame mode. [Figure 11] 11 is a timing diagram illustrating an optical information collecting device according to another embodiment of the present invention collecting optical information in a mixed mode. [Figure 12] 11 is a timing diagram illustrating an optical information collecting device according to another embodiment of the present invention collecting optical information in another mixed mode. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0043] In order to make the object, structure, features, and effects of the present invention more clearly understood, the present invention will be described in more detail below with reference to the drawings and specific embodiments.

[0044] Referring to Fig. 1, Fig. 1 is a block diagram showing an outline of an optical information collector 10 according to an embodiment of the present invention. As described below, the optical information collector 100 can collect one or more types of optical information, such as one-dimensional code, two-dimensional code, OCR graphics and text, ultraviolet anti-counterfeiting code, infrared anti-counterfeiting code, etc.

[0045] The optical information collecting device 100 includes at least one camera 1, and the camera 1 includes an optical system 2 (lens) that collects light, and an image sensor 3 (sensor) that performs photoelectric conversion on the light collected by the optical system 2. The optical system 2 includes one or more reflectors, prisms, lenses, or a combination thereof, and the number of the image sensors 3 may be one or more. One image sensor 3 corresponds to one or one set of the optical system 2, or multiple image sensors 3 may share one or one set of the optical system 2, or multiple or multiple sets of the optical system 2 may share one image sensor 3. The image sensor 3 may be a CCD, CMOS, or other type of image sensor. The image sensor 3 converts the optical signal into an electrical signal and then outputs a digital signal of image data.

[0046] The light information collecting device 100 includes one or more fill lights 4, which increase the brightness of the light information by shining light when the camera 1 collects image data. When the brightness of the surrounding environment is high, the fill light 4 may be omitted to provide supplementary lighting, or the fill light 4 may not be provided in the light information collecting device 100. There are various supplementary lighting methods for the fill light 4. For example, the fill light 4 may continue to provide supplementary lighting when the camera 1 collects light information, or the fill light 4 may provide supplementary lighting during the exposure period of the image sensor 3 of the camera 1. A Chinese patent with application number CN201810098421.0 discloses that the fill light 4 provides supplementary lighting during the exposure period of the image sensor 3, and the contents of the above application are incorporated herein by reference. The fill light 4 provides pulsed supplementary lighting, and a pulse time of the fill light 4 and a part of the exposure time of the image sensor 3 may overlap.

[0047] The optical information collecting device 100 may further include a central processing unit 5 for carrying out various commands.

[0048] The optical information collecting device 100 may further include a storage device 6 that is provided outside the optical information collecting device or integrated in the optical information collecting device. One or more decode algorithms may be pre-installed in the storage device 6 as required. Other programs or instructions may also be stored in the storage device 6. The storage device 6 may include one or more non-transient storage media, such as a volatile memory that may be portable or non-portable and / or a non-volatile memory. The storage device 6 may store information, data, applications, instructions, etc., so that the processing module may perform various functions according to the embodiment of the present invention. For example, the storage device 6 may buffer input data so that the central processing unit 5 processes the data. In another embodiment, the storage device 6 may be configured to store instructions processed by the central processing unit 5. The storage device 6 may be a main storage device and may be included in a RAM or other volatile memory. The volatile memory may maintain the contents stored in the volatile memory only during the operation period. The storage device 6 may also be included in a non-volatile memory, such as a ROM, an EPROM, an EEPROM, a FLASH, or other storage device. The non-volatile memory maintains the contents stored in the non-volatile memory by being operated in conjunction with the power supply of the processing module. The storage device 6 may also be included in an auxiliary storage device for storing a large amount of data, such as an external magnetic disk storage device. In an embodiment of the present invention, the storage device 6 may communicate with the central processing unit 5 through input / output components and a data bus or other parts. The auxiliary storage device may include a hard disk, a compact disk, a DVD, a storage card, or other large-capacity storage device commonly used by those skilled in the art. The storage device 6 may store one or more steps or methods related to the collection, transmission, processing, and decoding of various optical information of the present invention.

[0049] The optical information collecting device 100 further includes an image signal processor 7 (abbreviated as ISP), which performs optimization processing on the image data collected by the camera 1. The optimization processing can be one or more of linear correction, noise removal, bad point repair, color interpolation, white balance correction, exposure correction, etc. The quality of the image data can be improved by performing the optimization processing. For optical information that does not require color recognition, some or all steps of the optimization processing may not be performed. For example, color interpolation, etc. may not be performed. The image signal processor 7 can process image data of one frame per processing by using a single core single thread. The image signal processor 7 can process image data of multiple frames simultaneously by using a multi-core multi-thread. In other embodiments, the optical information collecting device 100 does not include an image signal processor 7 or does not perform optimization processing of the image data by the image signal processor 7 .

[0050] The optical information collecting device 100 further includes a decode unit 8, which decodes the image data collected by the camera 1 according to a pre-installed decoding algorithm and thereby recognizes optical information, such as decoding one-dimensional or two-dimensional codes, recognizing OCR graphics, or recognizing ultraviolet / infrared anti-counterfeiting codes, etc. The decode unit 8 can process one frame of image data per processing using a single core and single thread, or can simultaneously decode multiple frames of image data using multiple cores and multi-threads.

[0051] In another embodiment, some or all of the functional modules of the image signal processor 7 can be integrated into the central processing unit 5. For example, a Chinese patent with application number CN201811115589.4 discloses a central processing unit 5 with an integrated image signal processor 7, the contents of which are incorporated herein by reference. In another embodiment, some or all of the functional modules of the image signal processor 7 can be integrated into the image sensor 3. In another embodiment, the decode unit 8 can be integrated into the central processing unit 5, and the storage device 6 can be integrated into the central processing unit 5. In the following embodiment, when the image signal processor 7 performs the optimization process of the image data, it is preferred to integrate the image signal processor 7 and the decode unit 8 into the central processing unit 5, which can reduce costs. The image signal processor 7 and the decode unit 8 do not have to be integrated into the central processing unit 5.

[0052] 2 and 3 show a handheld terminal as a specific embodiment of the optical information collecting device 100. The handheld terminal includes a case 9, a display panel 11, and a button 12. A scanning window 10 is formed at the front end of the case 9, and the camera 1 housed inside the case 9 can collect optical information through the scanning window 10. In another embodiment, the optical information collecting device 100 may not include the display panel 11. In that case, the optical information collecting device 100 can transmit information to the external display panel 11 for display. The optical information collecting device 100 may be a fixed terminal, a desktop terminal, or other types of terminals. The optical information collecting device 100 may be integrated into another device as a part of the other device.

[0053] The central processing unit 5 can output a trigger command according to an external trigger. The external trigger is generated when a user presses a predetermined button 12, touches a predetermined area of ​​the display panel 11, or operates the optical information collecting device 100 with a predetermined gesture. When the central processing unit 5 is triggered by an external trigger, the central processing unit 5 outputs a trigger command according to a preset algorithm, thereby triggering the image sensor 3 to collect image data.

[0054] The image signal processor 7 performs optimization processing on the image data collected by the image sensor 3, and then outputs the optimization processing to the decode unit 8 so that the decode unit 8 decodes the image data. Referring to FIG. 4, it is shown that a bar code is collected by the optical information collecting device 100 according to a specific embodiment of the present invention. A user can press a button 12 to trigger supplementary illumination of the fill light 4 and collection of image data by the image sensor 3. The image signal processor 7 sequentially receives image data collected by the image sensor 3 through a MIPI interface (Mobile Industry Processor Interface, abbreviated as MIPI) and can perform optimization processing on the image data. The decode unit 8 decodes the image data optimized by the image signal processor 7. When the image data of one frame is successfully decoded, the decode unit 8 stops decoding and informs the central processing unit 5 of the result of successful decoding. The central processing unit 5 outputs a command to stop the image sensor 3 from collecting image data.

[0055] The image sensor 3 continuously collects image data in a digital streaming mode. The digital streaming mode means that the image sensor 3 continuously collects image data within a preset time according to a preset algorithm. The decode unit 8 sequentially decodes the image data continuously collected by a single thread, or simultaneously decodes the image data continuously collected by a multi-thread. When the decoding is successfully performed or the decoding time exceeds a predetermined duration, the image sensor 3 stops collecting image data and the decode unit 8 stops decoding. For example, when the preset time is 5 seconds, it means that the image sensor 3 continuously collects image data within 5 seconds. When all the image data collected by the image sensor 3 within 5 seconds are decoded, it is determined that the decoding time exceeds the predetermined duration. When the image data of any one frame is successfully decoded, the central processing unit 5 stops the image sensor 3 collecting image data and the decode unit 8 decoding, even if the time is not full 5 seconds.

[0056] FIG. 5 shows a timing diagram 200 in which the optical information collecting device 100 according to the embodiment of the present invention collects optical information in a digital streaming mode. The timing diagram 200 shows a trigger signal 201 by an external trigger, a supplementary illumination timing 202 of the fill light 4, an image data collection timing 203 in which the image sensor 3 continuously collects image data, and a decode timing 204 of the decode unit 8. The trigger signal 201 triggers the collection of image data by the image sensor 3 and the supplementary illumination by the fill light 4 at a high level, and stops the collection of image data by the image sensor 3 and the supplementary illumination by the fill light 4 at a low level. The fill light 4 performs supplementary illumination at the high level of the supplementary illumination timing 202 and stops the supplementary illumination at the low level. The image data collection timing 203 and the supplementary illumination timing 202 of the image sensor 3 are operated simultaneously, and the image sensor 3 performs exposure at the high level of the image data collection timing 203 and outputs image data at the low level. The dashed arrow in FIG. 5 indicates that the image data of the first frame is output to the decoding unit 8 for decoding. The decoding unit 8 receives the image data of the first frame at timing a, successfully decodes the image data of the first frame at timing b, and feeds back the successfully decoded information to the central processing unit 5. The central processing unit 5 stops the image sensor 3 from collecting image data and stops the supplementary illumination of the fill light 4 at timing c. Due to the signal delay, the rising edge of the high level of the trigger signal 201 is slightly earlier than the rising edge of the high level of the image data collection timing 203, and the falling edge of the high level of the trigger signal is slightly earlier than the timing c at which the image sensor 3 stops collecting image data. Please note that when the environmental brightness is high, supplementary illumination is not required.

[0057] As shown in the timing diagram 200, when the decode unit 8 decodes image data, the image sensor 3 simultaneously collects new image data, and when the image data of the first frame is decoded by the decode unit 8, the image sensor 3 collects image data of seven frames. The image data of the first frame to the seventh frame are image data that are not sent to the decode unit 8, and are stored (remain) in the storage area 13 (cache or PN junction) of the image sensor 3 or stored in the register 14 corresponding to the image signal processor 7. According to the first in, first out principle, the image data collected later covers the image data collected earlier, the image data of the seventh frame is stored in the register 14 of the image signal processor 7, the image data of the sixth frame is stored in the storage area 13 of the image sensor 3, and the image data of the second frame to the fifth frame are removed by being covered by the new image data.

[0058] When the light information collecting device 100 is triggered again to collect new light information, the decoding unit 8 first receives and decodes the image data remaining in the storage area 13 of the image sensor 3 or the register 14 of the image signal processor 7, which may cause a decoding error because the remaining image data is not the image data of the new light information.

[0059] The present invention can solve the above problem and avoid the decoding error by the following method.

[0060] As shown in the timing diagram 300 of FIG. 6, the method according to the embodiment of the present invention can avoid a decoding error by removing image data of N frames having a predetermined frame number and starting to decode image data of the N+1th frame (N≧1). The timing diagram 300 shows a trigger signal 301 by an external trigger, a supplementary illumination timing 302 of the fill light 4, an image data collection timing 303 in which the image sensor 3 continuously collects image data, and a decode timing 304 of the decode unit 8. The trigger signal 301 triggers the image sensor 3 to collect image data and the supplementary illumination of the fill light 4 at a high level, and stops the image sensor 3 to collect image data and the supplementary illumination of the fill light 4 at a low level. The fill light 4 performs supplementary illumination at a high level of the supplementary illumination timing 302, and stops supplementary illumination at a low level. The image data collection timing 303 and the supplementary illumination timing 302 of the image sensor 3 are operated simultaneously, and the image sensor 3 performs exposure at a high level of the image data collection timing 303, and outputs image data at a low level. The image sensor 3 and the image signal processor 7 each have one frame of image data remaining, and the image data of the predetermined number of frames N being two frames is removed, and the image data of the previous two frames during the image data collection timing 303 is not sent to the decoding unit 8. The dashed arrow in FIG. 6 indicates that the image data of the third frame is output to the decoding unit 8 for decoding. At the decoding timing 304, the decoding unit 8 receives and decodes the image data of the third frame at timing d, successfully decodes the image data of the third frame at timing e, and feeds back the successfully decoded information to the central processing unit 5. Due to the signal delay, the image sensor 3 stops collecting image data and the fill light 4 stops supplementary illumination at timing f. Please note that when the brightness of the environment is high, supplementary illumination is not required.As shown in image data collection timing 303, the image sensor 3 collects image data of an eighth frame, and the image data of the eighth frame remains in the register 14 of the image signal processor 7, and the image data of the seventh frame remains in the storage area 13 of the image sensor 3. When the light information collecting device 100 is triggered again to collect new light information, the light information collecting device 100 again removes the image data remaining in the image sensor 3 and the image signal processor 7, and decodes and outputs the image data of the third frame, thereby avoiding a decoding error.

[0061] As is well known, the predetermined number of frames N removed is greater than or equal to the number of frames of image data remaining when the image data is collected previously, and the predetermined number of frames N is not limited to only two frames. For example, when removing the image data remaining in the image sensor 3 and the image signal processor 7, the predetermined number of frames N of the remaining image data removed is greater than or equal to two frames. The image data from which the remaining is removed may include the remaining image data not received by the decode unit 8, the remaining image data received by the decode unit 8 but not decoded, or the remaining image data decoded by the decode unit 8. The decoded information is not output or is not displayed on the display panel 11. The information output and displayed on the display panel 11 is the decoded information of the new light information. For example, the image data collected by the previous trigger is stored in the storage area 13 of the image sensor 3 and the register 14 of the image signal processor 7, respectively, and when new light information is collected by the next decoding, the image data of the previous two frames is removed, the image data of the third frame and the following frames are made into the image data of the new light information, and the image data of the third frame and following frames are decoded. The steps are repeated until the decoding is successfully performed or the time for decoding exceeds a predetermined duration.

[0062] In an embodiment of the present invention, the optical information collecting device 100 may not perform optimization processing of image data by the image signal processor 7. In this case, the image signal processor 7 receives only image data in RAW format from the image sensor 3, and transmits the image data that has not been optimized to the decode unit 8 for decoding. When the data image directly received by the decode unit 8 is grayscale image data (collecting only the luminance signal of the RAW image data), binary decoding can be easily performed on the image data. The image signal processor 7 is merely used as a data transmission path, and no image data remains in the register 14 of the image signal processor 7. In another embodiment, the optical information collecting device 100 may not include the image signal processor 7. The RAW image data collected by the image sensor 3 is directly transmitted to the decode unit 8 via a DVP (Digital Video Port) interface or an LVDS (Low Voltage Differential Signaling) interface, etc. When only one frame of image data remains in the storage area 13 of the image sensor 3, new optical information is collected. In this case, the image data of one frame is removed, the image data of the second frame and the following frames are made into the image data of new light information, and the image data of the second frame and the following frames are decoded. The above steps are repeated until the decoding is successfully performed or the decoding time exceeds a predetermined duration. In this embodiment, the light information is decoded starting from the second frame. Compared with the above method of decoding the light information starting from the third frame, this embodiment can reduce the time for processing the image data of one frame and the time for supplementary illumination, improve the decoding speed, and reduce the energy consumption. In a specific embodiment of the present invention, the light information collecting device 100 does not perform the optimization process of the image data by the image signal processor 7, so that the time for processing the image data can be slightly reduced.

[0063] Referring to the timing diagram 400 of FIG. 7, the timing diagram 400 shows a trigger signal 401 by an external trigger, a supplementary illumination timing 402 of the fill light 4, an image data collection timing 403 in which the image sensor 3 continuously collects image data, and a decode timing 404 of the decode unit 8. The trigger signal 401 triggers the image sensor 3 to collect image data and the fill light 4 to provide supplementary illumination at a high level, and stops the image sensor 3 to collect image data and the fill light 4 to provide supplementary illumination at a low level. The fill light 4 provides supplementary illumination at a high level of the supplementary illumination timing 402, and stops supplementary illumination at a low level. The light information collecting device 100 may not perform optimization processing of image data by the image signal processor 7. In this case, only one frame of image data remains in the storage area 13 of the image sensor 3 in the previously collected image data, and the light information collecting device 100 removes the image data of the first frame. The dashed arrow in FIG. 7 indicates that the image data of the second frame is output to the decode unit 8 for decoding. The decoding unit 8 receives and decodes the image data of the second frame at timing g, successfully decodes the image data of the second frame at timing h, and feeds back the successfully decoded information to the central processing unit 5. Due to the signal delay, the central processing unit 5 stops the image sensor 3 from collecting image data and stops the fill light 4 from providing supplementary illumination at timing i. Note that supplementary illumination is not required when the brightness of the environment is high. As shown in the image data collection timing 403, the image sensor 3 collects six frames of image data, and the image data of the sixth frame remains in the storage area 13 of the image sensor 3. When the light information collecting device 100 is triggered again to collect new light information, the light information collecting device 100 again removes the image data of one frame remaining in the image sensor 3, and decodes and outputs the image data of the second frame. This can avoid decoding errors.

[0064] In the above method, every time new light information is collected, image data of one or two frames remaining in the image sensor 3 or image signal processor 7 is removed, thereby solving the problem of image data remaining in the image sensor 3 or image signal processor 7. Image data of two or more frames remaining in the image sensor 3 or image signal processor 7 can also be removed according to actual needs.

[0065] The above method has certain drawbacks, namely, when collecting new light information, the image sensor 3 needs to output one frame of image data or various remaining image data for removal, and the decoding unit 8 needs to decode at least the second frame of image data, which results in time waste. As is well known, when collecting new light information, the image data of the first frame output by the image sensor 3 is valid image data (image data of new light information), which can improve efficiency.

[0066] As is well known, by emptying the storage area 13 of the image sensor 3 or the register 14 of the image signal processor 7 every time decoding is successfully performed, it is possible to prevent image data information from remaining when collecting new light information. The image data of the first frame is image data of new light information, and by starting decoding from the image data of the first frame, it is possible to improve the decoding speed. The above step can be performed by a preset algorithm. That is, by controlling with an algorithm, it is possible to control to empty the storage area 13 of the image sensor 3 or the register 14 of the image signal processor 7 after decoding is successfully performed. The preset algorithm for emptying the storage area 13 of the image sensor 3 or the register 14 of the image signal processor 7 is usually pre-installed by the manufacturer of the image sensor 3 or the image signal processor 7 (or the central processing unit 5 in which the image signal processor 7 is integrated). The manufacturer of the light information collecting device 100 usually purchases and uses the image sensor 3 or the image signal processor 7. The arithmetic logic for processing image data is usually pre-installed in the image sensor 3 or the image signal processor 7, and cannot be easily changed. That is, the manufacturer's settings must be used as is. When image data stored in the image sensor 3 or image signal processor 7 is not decoded, the image data of the last frame is still stored in the image sensor 3 or image signal processor 7, and the manufacturer of the optical information collecting device 100 cannot easily change it or directly remove the image data remaining in the image signal processor 7. The calculation logic installed in the image sensor 3 may differ depending on the manufacturer that manufactures the image sensor 3. The calculation logic installed in the image signal processor 7 may differ depending on the manufacturer that manufactures the image signal processor 7.Although image data remaining in the image sensor 3 or image signal processor 7 can be directly removed by adjustment at the manufacturer of the optical information collecting device 100, when using an image sensor 3 or image signal processor 7 of another manufacturer, the image sensor 3 or image signal processor 7 must be adjusted again, which may significantly increase the amount of work. Therefore, it is necessary to reduce the amount of work by proposing a versatile method that can empty image data remaining in image sensors 3 or image signal processors 7 of different model numbers.

[0067] In the block diagram shown in FIG. 8, the image data processing method preset in the image signal processor 7 can be omitted, and the remaining image data can be removed by other methods. The light information collecting device 100 of this embodiment does not perform optimization processing of the image data by the image signal processor 7. The image data collected by the image sensor 3 is sent to the image signal processor 7 by a conventional MIPI interface, and stored in a buffer 15 attached to the light information collecting device 100. The buffer 15 can be integrated in the image signal processor 7 or attached outside the image signal processor 7. The decode unit 8 can read and decode the image data in the buffer 15. In this embodiment, the image data collected by the image sensor 3 can be sent to the image signal processor 7 by a conventional MIPI interface, and then sent to the decode unit 8. The use of the conventional MIPI interface can simplify the transmission of image data. In another embodiment, the image data collected by the image sensor 3 can be directly sent to the decode unit 8 for decoding without being sent to the image signal processor 7. Since the image signal processor 7 does not perform optimization processing of the image data, only one frame of image data remains in the storage area 13 of the image sensor 3. In that case, the image data of one frame remaining in the storage area 13 of the image sensor 3 can be removed by a predetermined method.

[0068] In an embodiment of the present invention, when the original decoding step is completed, for example when the decoding is successfully performed, the central processing unit 5 stops the image sensor 3 from collecting image data by sending a stop command. Then, the central processing unit 5 again sends a command to the image sensor 3 to control the image sensor 3 to collect one frame of image data or image data of multiple frames, and the image sensor 3 outputs the image data of the one frame. Preferably, the image sensor 3 is controlled to collect one frame of image data, so that the image data in the storage area 13 of the image sensor 3 can be emptied and new light information can be collected next. The image data of the first frame output by the image sensor 3 is the image data of the new light information. The image data of one frame last output by the image sensor 3 can be output to the buffer 15 attached to the light information collecting device 100 and then removed. Finally, the image data remaining in the image sensor 3 is removed.

[0069] 9 according to an embodiment of the present invention, the timing diagram 500 shows a trigger signal 501 of the central processing unit 5, a supplementary illumination timing 502 of the fill light 4, an image data collection timing 503 in which the image sensor 3 continuously collects image data, and a decode timing 504 of the decode unit 8. The trigger signal 501 triggers the image sensor 3 to collect image data and the fill light 4 to provide supplementary illumination at a high level, and stops the image sensor 3 to collect image data and the fill light 4 to provide supplementary illumination at a low level. The fill light 4 provides supplementary illumination at a high level of the supplementary illumination timing 502, and stops supplementary illumination at a low level. The image data collection timing 503 and the supplementary illumination timing 502 of the image sensor 3 are operated simultaneously, and the image sensor 3 exposes at a high level of the image data collection timing 503, and outputs image data at a low level. The dashed arrow in FIG. 9 indicates that the image data of the first frame is output to the decode unit 8 for decoding. The decoding unit 8 receives the image data of the first frame at timing j, successfully decodes the image data of the first frame at timing k, and feeds back the successfully decoded information to the central processing unit 5. The central processing unit 5 sends a trigger signal at timing i to stop the image sensor 3 from collecting image data and to stop the fill light 4 from supplementary illumination. The difference from the above embodiment is that the central processing unit 5 sends a control signal 510 again to control the image sensor 3 to collect one frame of image data at high level 530 and output the image data of the one frame. Thereby, no image data remains in the image sensor 3, and the next trigger triggers the collection of new light information. The image data of the first frame collected and output by the image sensor 3 is the image data of new light information, and the decoding unit 8 can directly receive and decode the image data of the first frame. The fill light 4 is at low level 520 and does not provide supplementary illumination, which can save energy consumption.Please note that when the environmental brightness is high, supplemental lighting may not be needed all the time.

[0070] In the above embodiments, the image data is continuously collected and decoded in the digital streaming mode, and the image data of the first frame received by the decode unit 8 is successfully decoded, and the image sensor 3 has collected image data of multiple frames. For example, in the timing diagram 200, when the image sensor 3 collects image data of seven frames, the energy consumption may increase due to collecting the image data of the second to seventh frames. The optical information collecting devices 100 manufactured by companies such as iData, Honeywell, and Zebra can all successfully decode image data when collecting only three frames of image data. That is, when the image sensor 3 collects only the image data of the previous three frames, the decode unit 8 can decode at least one frame of image data. As described above, when the optical information collecting device 100 successfully decodes the image data of the third frame, the image sensor 3 has already collected image data of three or more frames, for example, six or seven frames. When collecting the image data of the fourth to seventh frames, the image sensor 3 needs to be operated or supplemented with illumination by the fill light 4. Since there is no need to decode the image data of the fourth to seventh frames, collecting the image data of the fourth to seventh frames may result in energy waste. It should be noted that in the embodiment of the present invention, supplemental illumination may not be required when the environmental brightness is high. For example, supplemental illumination may not be required when scanning a barcode with a mobile phone.

[0071] In a preferred embodiment of the present invention, the optical information collecting device 100 collects image data in a fixed frame mode, which is different from the continuous collection of image data in a digital streaming mode. In the fixed frame mode, the central processing unit 5 controls the image sensor 3 to collect image data of a fixed number of frames, and the decode unit 8 decodes the image data of the fixed number of frames. When the currently collected image data of the fixed number of frames is successfully decoded (one frame of image data is successfully decoded or none of the image data of the fixed number of frames is successfully decoded) or the decoding is completed, the central processing unit 5 judges whether the image data of the fixed number of frames needs to be collected again. The above steps are repeated until the decoding is successfully performed or the decoding time exceeds a predetermined duration. In the fixed frame mode, there is a time interval between two image data of the fixed number of frames collected one after the other. The time interval between the two image data allows the central processing unit 5 to have time to make a judgment.

[0072] Referring to the timing diagram 600 of FIG. 10 according to an embodiment of the present invention, the timing diagram 600 shows a trigger signal 601 of the central processing unit 5, a supplementary illumination timing 602 of the fill light 4, an image data collection timing 603 in which the image sensor 3 continuously collects image data, and a decode timing 604 of the decode unit 8. The trigger signal 601 triggers the collection of image data of the image sensor 3 and the supplementary illumination of the fill light 4 at a high level, and stops the collection of image data of the image sensor 3 and the supplementary illumination of the fill light 4 at a low level. The fill light 4 performs supplementary illumination at a high level of the supplementary illumination timing 602, and stops the supplementary illumination at a low level. The image data collection timing 603 and the supplementary illumination timing 602 of the image sensor 3 are operated simultaneously, and the image sensor 3 performs exposure at a high level of the image data collection timing 603, and outputs image data at a low level. Four dashed arrows in FIG. 10 arranged from left to right indicate that image data of the first frame to the fourth frame are output to the decode unit 8 for decoding. None of the image data of the first to third frames are successfully decoded, and the image data of the fourth frame is successfully decoded. As shown in the image data collection timing 603, there is a time interval between the time when the image data of the first three fixed frames is collected and the time when the image data of the last three fixed frames is collected. Thus, the central processing unit 5 can determine whether the image data of the first three fixed frames is successfully decoded, and control the image sensor 3 to collect the image data of the last three fixed frames.

[0073] The image data collection timing 603 shows that the image sensor 3 collects image data in a fixed frame mode with a fixed frame number of three frames. The central processing unit 5 controls the image sensor 3 to first collect image data with a fixed frame number of three frames, and transmits the image data of the three frames to the decode unit 8. When the image data of the three frames is not successfully decoded, the central processing unit 5 controls the image sensor 3 to collect image data of the three frames again, and transmits the image data of the three frames again to the decode unit 8 for decoding. The above steps are repeated until the decoding is successfully performed (or the decoding time exceeds a predetermined duration). As shown in the timing diagram 600, when the image data of the fourth frame collected by the image sensor 3 is successfully decoded, if the image sensor 3 has not yet collected image data of the three frames of the fixed frame number, the image sensor 3 continues to perform the fixed frame mode until the image data of the fixed frame number is completely collected. That is, the image data of the fifth frame and the image data of the sixth frame are continued to be collected, and the image data of the fifth frame and the image data of the sixth frame of the fixed frame number are all output. Next, the image sensor 3 stops collecting image data. As a result, no image data remains in the image sensor 3. Conversely, if the decoding is successfully performed, the image sensor 3 stops collecting image data. Even if there is a fixed number of frames of image data that the image sensor 3 has not yet collected, the image sensor 3 stops collecting image data. This can reduce energy consumption, but there is a risk that image data will remain in the image sensor 3. When new light information is collected, the image data remaining in the image sensor 3 can be removed.

[0074] In the above embodiment, after the image data of the previous three frames is decoded (whether the decoding is successful or not successful), the image sensor 3 is controlled to collect three frames of image data. There is a time interval between the steps of collecting the image data of the previous and next three frames. If the image data of the fixed number of frames of the previous three frames is not successfully decoded, there is a delay in collecting the image data of the fixed number of frames of the next three frames. In another embodiment, when the image data of the second frame of the image data of the previous three frames is not successfully decoded or the image data of the third frame is input to the decoding unit 8 for decoding, the image sensor 3 is controlled to collect three frames of image data again, so that a balance can be achieved between energy consumption and the decoding speed. The time to start collecting the image data of the next three frames can be determined according to actual needs. This can prevent a delay from occurring between the steps of collecting the image data of the previous and next three frames.

[0075] In the above embodiment, the fixed frame number in the fixed frame mode is three frames. That is, the image sensor 3 collects three frames of image data at a time. In other embodiments, the fixed frame number can be specifically determined according to the performance of the optical information collecting device 100. For example, when the image data of the previous two frames or the image data of the first frame is successfully decoded, the optical information collecting device 100 sets the fixed frame number in the fixed frame mode to two frames or one frame, so as to avoid increasing energy consumption due to collecting a large amount of image data. When the image data of one frame is decoded but not successfully decoded, the image sensor 3 collects the image data of the next frame. The fixed frame number can also be set to two frames, four frames, five frames, or more frames. As shown in the above embodiment, the current optical information collecting device 100 can usually successfully decode image data after collecting the previous three frames of image data, and the fixed frame number needs to be smaller than or equal to the timeout for the decoding unit 8 to decode one frame of image data. In the conventional technology, the timeout is usually set to 100 ms, and if the time taken by the decode unit 8 to decode one frame of image data reaches 100 ms but the image data is not successfully decoded, the decoding of the one frame of image data is stopped and the next image data is decoded. The number of fixed frames under the fixed frame mode is preferably 5 frames or less (20 ms*5=100 ms), and more preferably 3 frames to 5 frames. This ensures that the image data of the fixed number of frames collected in the first fixed frame mode is successfully decoded, avoids collecting a large amount of image data, and reduces energy consumption compared to the conventional digital streaming mode. When the optical information collecting device 100 uses the digital streaming mode, if the image data cannot be successfully decoded without using 5 frames of image data, the number of fixed frames needs to be set to 5 frames or more than 5 frames.

[0076] In the embodiment of the present invention, a mixed mode that combines the advantages of the fixed frame mode and the digital streaming mode is adopted, so that the present invention can be used in various fields and can balance energy consumption and decoding speed. When recognizing optical information that is difficult to recognize, such as a high-density two-dimensional code, DPM (Direct Part Mark) or complex character code, image data can be first collected and decoded using the fixed frame mode. If the decoding is not successful, image data can be continuously collected and decoded using the digital streaming mode. The mixed mode can also be used to recognize simple optical information.

[0077] As is well known, mixed modes can include many different combinations.

[0078] The camera 1 may be configured to collect image data by using the fixed frame mode a preset number of times, and then collect image data by the digital streaming mode. For example, image data of a fixed number of frames may be collected once by the fixed frame mode, and then image data may be collected continuously by the digital streaming mode. Referring to the timing diagram 700 of FIG. 11, the timing diagram 700 shows a trigger signal 701 of the central processing unit 5, a supplementary illumination timing 702 of the fill light 4, an image data collection timing 703 in which the image sensor 3 continuously collects image data, and a decoding timing 704 of the decoding unit 8. The light information collecting device 100 may first collect image data of three frames by the fixed frame mode, which has a fixed number of frames, and if the image data is not successfully decoded, may continuously collect and decode image data by the digital streaming mode. The decoding unit 8 may successfully decode image data according to the image data of the first frame collected by the digital streaming mode.

[0079] In another embodiment, image data may be collected by using the fixed frame mode multiple times, and if the image data is not successfully decoded, the image data may be collected and decoded by the digital streaming mode. For example, image data may be collected by using the fixed frame mode twice, and then the image data may be collected by the digital streaming mode. That is, image data having a fixed number of frames of three may be collected and decoded first, and if the image data is not successfully decoded, image data having a fixed number of frames of three may be collected and decoded again. If the image data is still not decoded, the image data may be decoded again by the digital streaming mode. As described above, the image data may be decoded by using the fixed frame mode three or more times, and if the image data is not successfully decoded, the image data may be decoded again by the digital streaming mode.

[0080] As described above, when decoding image data in digital streaming mode, if the image data is successfully decoded, there is a risk that the image data may remain in the image sensor 3. To solve this problem, a mixed mode can be used, i.e., first a fixed frame mode is used, then a digital streaming mode is used, and finally a fixed frame mode is used again.

[0081] 12 according to an embodiment of the present invention, the timing diagram 800 shows a trigger signal 801 of the central processing unit 5, a supplementary illumination timing 802 of the fill light 4, an image data collection timing 803 in which the image sensor 3 continuously collects image data, and a decode timing 804 of the decode unit 8. The light information collecting device 100 first collects image data of three frames by using a fixed frame mode in which the fixed number of frames is three frames, and if the image data is not successfully decoded, collects and decodes the image data again by the digital streaming mode. When the decode unit 8 successfully decodes the image data of the first frame of image data collected by the digital streaming mode and successfully decodes the image data of the fourth frame of image data, it stops the image data collection of the image sensor 3 and the supplementary illumination of the fill light 4. The difference from the embodiment is that the central processing unit 5 again sends a control signal 810 to control the image sensor 3 to collect image data of one frame at a high level 830 and output the image data of the one frame. As a result, no image data remains in the image sensor 3. In this case, the image signal processor 7 is not used, so no image data remains in the image signal processor 7 either. The next trigger triggers the collection of new light information, and the image data of the first frame collected and output by the image sensor 3 is the image data of the new light information, so that the decoding unit 8 can directly receive and decode the image data of the first frame. The fill light 4 is at a low level 820 and no supplementary illumination is provided, thereby saving energy consumption. Please note that when the brightness of the environment is high, supplementary illumination does not need to be provided all the time.

[0082] As is well known, when using the mixed mode, image data is first collected and decoded in the digital streaming mode, and if the image data is successfully decoded, the image sensor 3 is controlled to collect image data for a fixed number of frames again by using the fixed frame mode, and to output all of the image data for the fixed number of frames. As a result, no image data remains in the image sensor 3. In the above embodiment, a special form of the present invention has been described. That is, after successfully decoding image data in the digital streaming mode, the image sensor 3 collects image data for one frame again.

[0083] As is well known, when the optical information collecting device 100 collects image data in a mixed mode, the optical information collecting device 100 performs an optimization process on the image data by the image signal processor 7. In order to remove the image data remaining in the image signal processor 7, a method of removing image data having a predetermined number of frames N can be used. The amount of the predetermined number of frames N that needs to be removed can be determined according to the remaining image data. For example, when the remaining image data is stored in the image sensor 3 and the image signal processor 7, respectively, it is necessary to remove two frames of image data when collecting image data again. When no image data remains in the image sensor 3 and one frame of image data remains in the image signal processor 7, only the image data of one frame remaining in the image signal processor 7 can be removed when collecting new image data. In another embodiment, the optical information collecting device 100 does not need to perform an optimization process on the image data by the image signal processor 7. When one frame of image data remains in the image sensor 3, only the image data of the remaining one frame can be removed when collecting new image data. In an embodiment using the mixed mode, when the fixed frame mode is used last, there is no image data remaining in the image sensor 3, so there is no need to remove the remaining image data when collecting the image data again.

[0084] The optical information collecting device and method of the present invention can provide the following inventive effects. 1. The image sensor 3 collects image data by a trigger, and the central processing unit 5 sends a command to remove N frames of image data having a predetermined number of frames. The N frames of image data having a predetermined number of frames are image data collected by the previous trigger and remaining, thereby avoiding the decoding error caused by the remaining image data being decoded and output, and reducing energy consumption by not decoding the remaining image data.

[0085] 2. The image sensor 3 collects and outputs image data for a fixed number of frames at a time in the fixed frame mode, thereby reducing energy consumption compared to the conventional method of continuously collecting and outputting image data in the digital streaming mode, and avoiding the need to continuously collect image data in the digital streaming mode. In addition, when decoding is successfully performed, there is no need to decode the image data of multiple frames collected later, thereby avoiding energy waste.

[0086] 3. The image sensor 3 collects image data in a digital streaming mode and does not perform optimization processing of the image data by the image signal processor 7, thereby preventing image data from remaining in the image signal processor 7. In addition, when decoding is successfully performed or the decoding time exceeds a predetermined duration, the image sensor 3 stops collecting image data and controls the image sensor 3 to collect and output image data in a fixed frame mode. This prevents image data from remaining in the image sensor 3, prevents decoding errors from occurring when collecting the next optical information, and improves efficiency.

[0087] Although the preferred embodiment of the present invention has been described in detail above, the above embodiment is merely an example of the present invention, and the present invention is not limited to the configuration of the above embodiment. Those skilled in the art may change, improve, substitute, or modify the design without departing from the spirit of the present invention, and it is natural that such changes are included in the scope of the claims of the present invention. [Explanation of symbols]

[0088] 100 Optical information gathering device 1 Camera 2. Optical System 3. Image Sensor 4. Fill Light 5 Central Processing Unit 6 Storage device 7 Image Signal Processor 8 Decoding Unit 9 Cases 10 Scanning window 11 Display Panel 12 Buttons 13 Storage Area 14 Register 15 Buffer

Claims

1. An optical information collecting device including an image sensor, a storage device, a decoding unit and a central processing unit, The image sensor collects image data of optical information; the storage device having one or more pre-installed decoding algorithms; The decoding unit decodes the image data according to a preset decoding algorithm; When the central processing unit is triggered, the central processing unit controls the image sensor to continuously collect image data in a digital streaming mode and controls the decode unit to decode the image data, and when the central processing unit is triggered, the central processing unit removes a predetermined number of frames of image data by sending a command, the image data of the predetermined number of frames being image data collected by a previous trigger and remaining in the optical information collecting device.

2. 2. The optical information collecting device of claim 1, wherein the image data for the predetermined number of frames includes image data remaining in a storage area of ​​the image sensor.

3. 2. The optical information collecting device of claim 1, further comprising an image signal processor, the image signal processor receiving image data collected by the image sensor and transmitting the image data to the decoding unit, and the image data for a predetermined number of frames includes image data remaining in the image signal processor.

4. The optical information collecting device of claim 1, characterized in that the image data from which a predetermined number of frames have been removed includes image data of a predetermined number of frames that is not received by the decoding unit, image data of a predetermined number of frames that is not decoded by the decoding unit, or image data for which the decoding unit does not output or display decoded information for image data of a predetermined number of frames.

5. The optical information collecting device according to claim 1 , wherein the decoding unit starts decoding from image data of an (N+1)th frame.

6. An optical information collecting device including an image sensor, a storage device, a decoding unit and a central processing unit, The image sensor collects image data of optical information; the storage device having one or more pre-installed decoding algorithms; The decoding unit receives and decodes image data; The central processing unit controls the image sensor to continuously collect image data in a digital streaming mode and controls the decode unit to sequentially decode the image data, and when the decoding unit is successful in decoding or the decoding time exceeds a predetermined duration, controls the image sensor to stop continuously collecting image data in the digital streaming mode and controls the image sensor to continuously collect and output image data of a fixed number of frames in a fixed frame mode.

7. 7. The optical information collecting device of claim 6, wherein the fixed frame mode includes a fixed number of frames of image data in which the image sensor collects and outputs image data for a fixed number of frames that have not yet been collected when the decoding unit is successful or the decoding time exceeds a predetermined duration.

8. 7. The optical information collecting device according to claim 6, wherein the optical information collecting device does not include an image signal processor or does not perform optimization processing of image data by an image signal processor.

9. 7. The optical information collecting device of claim 6, wherein the image sensor outputs image data in a RAW format, and the decoding unit obtains grayscale image data from the image data in the RAW format and performs decoding based on the grayscale image data.

10. 7. The optical information collecting device of claim 6, wherein the image sensor collects and outputs a fixed number of frames of image data in a fixed frame mode before continuously collecting image data in a digital streaming mode.

11. The central processing unit controls the image sensor to continuously collect and output image data in a digital streaming mode; a decoding unit receiving and decoding the image data, and stopping the image sensor from collecting image data in a digital streaming mode when the decoding unit is successful; and controlling the image sensor to continuously collect and output a fixed number of frames of image data.

12. 12. The optical information collecting method of claim 11, wherein the fixed frame mode includes a fixed number of frames of image data in which the image sensor collects and outputs all of the fixed number of frames of image data when the decoding unit is successful or the decoding time exceeds a predetermined duration.

13. 12. The optical information collecting method according to claim 11, wherein the optical information collecting device does not include an image signal processor or the image data is not optimized by the image signal processor.

14. 12. The optical information collecting method of claim 11, wherein the image sensor outputs image data in a RAW format, and the decoding unit obtains grayscale image data according to the image data in the RAW format, and performs decoding according to the grayscale image data.

15. 12. The method of claim 11, wherein the image sensor collects and outputs a fixed number of frames of image data in a fixed frame mode before continuously collecting image data in a digital streaming mode.

Citation Information

Patent Citations

  • Mobile phone two-dimensional bar code coding and decoding method

    CN104992207A

  • Scanning code processing method, device and system

    CN106934318A

  • Barcode scanning system and method

    CN109740393A

  • Device and method for decoding multiple bar codes

    JP1993250509A

  • Optical information reader

    JP1999203392A