Automatic exposure adjusting system and method
By using an automatic exposure adjustment system to perform exposure compensation and two-level exposure evaluation on the image, the problem of inappropriate exposure in the barcode area is solved, the success rate of barcode detection and decoding is improved, and the reliability of the barcode is ensured.
Patent Information
- Application Number
- CN202511376322.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-25
- Publication Date
- 2026-01-23
AI Technical Summary
In existing technologies, due to environmental issues and background problems in the area where the barcode is located, the overall image may be properly exposed, but the barcode area may be underexposed or overexposed, making it impossible to detect the barcode and decode it.
An automatic exposure adjustment system is adopted, including an image acquisition unit, an exposure compensation unit, a target detection unit, a first exposure evaluation unit, a second exposure evaluation unit, and a decoding unit. The system ensures successful decoding of barcodes in the image through two-stage exposure adjustment. The system compensates the image exposure through the exposure compensation unit, performs an overall exposure evaluation on the image where the target detection fails, and performs a target exposure evaluation on the image of the target area where decoding fails.
It improves the detection hit rate and decoding success rate of barcode areas in images, ensuring reliable barcode decoding.
Smart Images

Figure CN121397374A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image vision technology, and in particular to an automatic exposure adjustment system and method. Background Technology
[0002] Currently, most barcode scanning devices use automatic exposure algorithms to adjust the exposure value to obtain a properly bright barcode image for decoding. However, due to environmental factors and background issues in the barcode area, such as strong backlighting or high-contrast environments, the overall image may be properly exposed, but the barcode area may be underexposed or overexposed. In such cases, the exposure will not be adjusted further, the barcode cannot be detected, and decoding will be impossible. Summary of the Invention
[0003] To address the shortcomings of existing technologies where the overall image is properly exposed due to environmental issues and background problems in the barcode area, resulting in underexposure or overexposure of the barcode area, making it impossible to detect the barcode and decode it, this invention provides an automatic exposure adjustment system and method.
[0004] An automatic exposure adjustment system of the present invention includes an image acquisition unit, an exposure compensation unit, a target detection unit, a first exposure evaluation unit, a second exposure evaluation unit, and a decoding unit. The image acquisition unit acquires an image to be identified based on exposure parameters. The input of the exposure compensation unit is data-connected to the output of the image acquisition unit to acquire the image to be identified, and performs exposure compensation on the image to be identified to obtain an exposure-compensated image. The input of the target detection unit is data-connected to the output of the exposure compensation unit to acquire the exposure-compensated image, and performs target detection on the exposure-compensated image. The input of the first exposure evaluation unit is data-connected to the output of the target detection unit to acquire the exposure-compensated image when the target detection unit fails to perform target detection on the exposure-compensated image, and performs an overall exposure evaluation on the exposure-compensated image. (Figure) The image acquisition unit's input is connected to the output of the first exposure evaluation unit to obtain the overall exposure evaluation result, and the exposure parameters are adjusted for primary exposure based on the overall exposure evaluation result. The decoding unit's input is connected to the output of the target detection unit to acquire the target region image when the target detection unit successfully detects the target in the exposure-compensated image, and the target region image is decoded. The second exposure evaluation unit's input is connected to the output of the decoding unit to acquire the target region image when the decoding unit fails to decode the target region image, and the target region image is evaluated for target exposure. The image acquisition unit's input is connected to the output of the second exposure evaluation unit to obtain the target exposure evaluation result, and the exposure parameters are adjusted for secondary exposure based on the target exposure evaluation result.
[0005] Preferably, the system also includes a control unit, wherein the output of the decoding unit is data-connected to the input of the control unit to transmit decoding success information to the control unit, and the output of the control unit is data-connected to the input of the image acquisition unit to control the image acquisition unit to work after receiving the decoding success information.
[0006] Preferably, the mid-brightness ratio of the exposure-compensated image is higher than that of the image to be identified.
[0007] Preferably, the target detection unit includes a judgment module, a storage module, and a detection module. The input of the judgment module is data-connected to the output of the exposure compensation unit to obtain an exposure compensation image; the input of the judgment module is data-connected to the output of the storage module to obtain stored information and determine whether the stored information is target area location information; the output of the judgment module is data-connected to the input of the decoding unit so that when the judgment module determines that the stored information is target area location information, it transmits the target area image to the decoding unit; the input of the detection module is data-connected to the output of the judgment module so that when the judgment module determines that the stored information is not target area information, it obtains the exposure compensation image and performs target detection on the exposure compensation image; the output of the detection module is data-connected to the input of the decoding unit so that when the detection module successfully performs target detection on the exposure compensation image, it transmits the target area image to the decoding unit; the output of the detection module is data-connected to the input of the first exposure evaluation unit so that when the detection module fails to perform target detection on the exposure compensation image, it transmits the exposure compensation image to the first exposure evaluation unit; the input of the storage module is data-connected to the output of the detection module so that when the detection module successfully performs target detection on the exposure compensation image, it stores the target area location information.
[0008] Furthermore, the input of the storage module is connected to the output of the decoding unit to delete the target area location information when the decoding unit successfully decodes the target area image.
[0009] Preferably, the image acquisition unit includes an exposure adjustment module, a parameter storage module, and an image acquisition module. The input of the exposure adjustment module is data-connected to the output of the parameter storage module to obtain the original exposure parameters. The input of the exposure adjustment module is data-connected to the output of the first exposure evaluation unit to perform a first-level exposure adjustment on the original exposure parameters based on the overall exposure evaluation result after obtaining the overall exposure evaluation result, thus obtaining the current exposure parameters. The input of the exposure adjustment module is data-connected to the output of the second exposure evaluation unit to perform a second-level exposure adjustment on the original exposure parameters based on the target exposure evaluation result after obtaining the target exposure evaluation result, thus obtaining the current exposure parameters. When neither the overall exposure evaluation result nor the target exposure evaluation result is obtained, the exposure adjustment module assigns the current exposure parameters to the original exposure parameters. The input of the parameter storage module is data-connected to the output of the exposure adjustment module to obtain the current exposure parameters and replaces the original exposure parameters with the current exposure parameters. The input of the image acquisition module is data-connected to the output of the exposure adjustment module to obtain the current exposure parameters and acquires the image to be recognized based on the current exposure parameters. The output of the image acquisition module is data-connected to the input of the exposure compensation unit to transmit the image to be recognized to the exposure compensation unit.
[0010] Furthermore, the exposure adjustment module includes a judgment submodule, a first adjustment submodule, and a second adjustment submodule. The judgment submodule is used to judge the information content acquired by the exposure adjustment module. The input of the judgment submodule is data-connected to the output of the parameter storage module to obtain the original exposure parameters. The output of the judgment submodule is data-connected to the input of the image acquisition module so that when the information content is not the overall exposure evaluation result or the target exposure evaluation result, the original exposure parameters are transmitted to the image acquisition module, and the image acquisition module acquires the image to be identified based on the original exposure parameters. The output of the judgment submodule is data-connected to the input of the first adjustment submodule so that when the information content is the overall exposure evaluation result, the original exposure parameters and the information content are transmitted to the first adjustment submodule, and the first adjustment submodule adjusts the original exposure parameters based on the information content. The light parameters are adjusted at the first level to obtain the current exposure parameters. The output of the judgment submodule is connected to the input of the second adjustment submodule to transmit the original exposure parameters and information content to the second adjustment submodule when the information content is the target exposure evaluation result. The second adjustment submodule adjusts the original exposure parameters at the second level according to the information content to obtain the current exposure parameters. The outputs of both the first and second adjustment submodules are connected to the input of the parameter storage module to transmit the current exposure parameters to the parameter storage module. The parameter storage module replaces the original exposure parameters with the current exposure parameters. The outputs of both the first and second adjustment submodules are connected to the input of the image acquisition module to transmit the current exposure parameters to the image acquisition module. The image acquisition module acquires the image to be recognized according to the current exposure parameters.
[0011] Furthermore, the system also includes a control unit. The output of the decoding unit is connected to the input of the control unit to transmit the decoding success information to the control unit. The output of the control unit is connected to the input of the judgment submodule to transmit working information to the judgment submodule after receiving the decoding success information.
[0012] The present invention also provides an automatic exposure adjustment method for the above-mentioned automatic exposure adjustment system, the method comprising the following steps: S1. The image acquisition unit acquires the image to be recognized based on the exposure parameters; S2. The exposure compensation unit performs exposure compensation on the image to be recognized to obtain an exposure-compensated image; S3. The target detection unit performs target detection on the exposure-compensated image. If the target detection fails, proceed to step S4; if the target detection succeeds, proceed to step S7. S4. The first exposure evaluation unit performs an overall exposure evaluation on the exposure-compensated image; S5. The image acquisition unit performs a first-level exposure adjustment on the exposure parameters based on the overall exposure evaluation result; S6. Repeat steps S1 to S3; S7. The decoding unit decodes the target area image. If decoding fails, proceed to step S8. S8. The second exposure evaluation unit performs target exposure evaluation on the target area image; S9. The image acquisition unit performs secondary exposure adjustment on the exposure parameters based on the target exposure evaluation result; S10. Repeat steps S1 to S3.
[0013] Compared with existing technologies, the automatic exposure adjustment system and method of the present invention, through an exposure compensation unit, performs exposure compensation on the image to be identified, making the overall image softer, thereby improving the detection hit rate of barcode areas in the image; through a first exposure evaluation unit, it performs an overall exposure evaluation on the exposure-compensated image where the target detection unit fails to detect the target, and passes the overall exposure evaluation result to the image acquisition unit for primary adjustment of exposure parameters, ensuring that an image with appropriate brightness can be acquired for target detection, further improving the detection hit rate of barcode areas in the image to be identified; through a second exposure evaluation unit, it performs target exposure evaluation on the target area image where the decoding unit fails to decode, and passes the target exposure evaluation result to the image acquisition unit for secondary adjustment of exposure parameters, ensuring that an image with appropriate brightness can be acquired for decoding, improving the decoding success rate. The automatic exposure adjustment system and method of the present invention, sequentially using the ability to detect the target in the image to be identified and the ability to decode the barcode in the target area image as the criteria for judging whether the image brightness is appropriate, ensures the reliability of successful barcode decoding in the image through two-stage exposure adjustment. Attached Figure Description
[0014] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0015] Figure 1 This is a schematic diagram of an automatic exposure adjustment system according to an embodiment of the present invention.
[0016] Figure 2 This is a schematic diagram of an automatic exposure adjustment system according to another embodiment of the present invention.
[0017] Figure 3 This is a schematic diagram of an automatic exposure adjustment system according to another embodiment of the present invention.
[0018] Figure 4 This is a schematic diagram of the exposure adjustment module according to an embodiment of the present invention.
[0019] Figure 5 This is a schematic diagram of an automatic exposure adjustment system according to the fourth embodiment of the present invention. Detailed Implementation
[0020] To provide a further understanding of the purpose, structure, features, and functions of the present invention, detailed descriptions are provided below with reference to specific embodiments.
[0021] In the description of this invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.
[0022] Please see Figure 1 The present invention provides an automatic exposure adjustment system, comprising an image acquisition unit 10, an exposure compensation unit 20, a target detection unit 30, a first exposure evaluation unit 40, a second exposure evaluation unit 50, and a decoding unit 60.
[0023] The image acquisition unit 10 is used to acquire the image to be identified based on the exposure parameters.
[0024] The input terminal of the exposure compensation unit 20 is connected to the output terminal of the image acquisition unit 10 to acquire the image to be identified, and exposure compensation is performed on the image to be identified to obtain an exposure compensated image.
[0025] In a preferred embodiment, the proportion of the central brightness of the exposure-compensated image is higher than that of the central brightness of the image to be identified. That is, the exposure compensation unit 20 brightens the dark areas of the image to be identified and darkens the overall brightness, making the image softer and thus improving the detection hit rate of the barcode area in the image.
[0026] The input terminal of the target detection unit 30 is connected to the output terminal of the exposure compensation unit 20 to obtain an exposure-compensated image, and target detection is performed on the exposure-compensated image. Through the cooperation of the exposure compensation unit 20 and the target detection unit 30, for images to be identified acquired in low-contrast environments, the target can be detected without exposure adjustment, reducing the number of first-level exposure adjustments and improving the efficiency of first-level exposure adjustment and target detection.
[0027] The input terminal of the first exposure evaluation unit 40 is connected to the output terminal of the target detection unit 30 to acquire the exposure compensation image when the target detection unit 30 fails to perform target detection on the exposure compensation image, and to perform an overall exposure evaluation on the exposure compensation image; the input terminal of the image acquisition unit 10 is connected to the output terminal of the first exposure evaluation unit 40 to acquire the overall exposure evaluation result, and to perform a first-level exposure adjustment on the exposure parameters based on the overall exposure evaluation result.
[0028] The input terminal of the decoding unit 60 is connected to the output terminal of the target detection unit 30 to acquire the target area image and decode the target area image when the target detection unit 30 successfully detects the target in the exposure-compensated image.
[0029] The input terminal of the second exposure evaluation unit 50 is connected to the output terminal of the decoding unit 60 to acquire the target area image when the decoding unit 60 fails to decode the target area image, and to perform target exposure evaluation on the target area image; the input terminal of the image acquisition unit 10 is connected to the output terminal of the second exposure evaluation unit 50 to acquire the target exposure evaluation result, and to perform secondary exposure adjustment on the exposure parameters according to the target exposure evaluation result.
[0030] Preferably, the system further includes a control unit (not shown in the figure), the output of the decoding unit 60 is connected to the input of the control unit to transmit the decoding success information to the control unit, and the output of the control unit is connected to the input of the image acquisition unit 10 to control the image acquisition unit to work after receiving the decoding success information, thereby ensuring the smooth and complete execution of the automatic exposure adjustment process.
[0031] Working process: Initially, the control unit controls the image acquisition unit 10 to acquire the image to be recognized according to the original exposure parameters; the exposure compensation unit 20 performs exposure compensation on the image to be recognized to obtain an exposure-compensated image; the target detection unit 30 performs target detection on the exposure-compensated image. If target detection fails, the target detection unit 30 transmits the exposure-compensated image to the first exposure evaluation unit 40. The first exposure evaluation unit 40 performs an overall exposure evaluation on the exposure-compensated image and transmits the overall exposure evaluation result to the image acquisition unit 10. The image acquisition unit 10 performs a first-level exposure adjustment on the original exposure parameters according to the overall exposure evaluation result to obtain the current exposure parameters, and then acquires the image to be recognized again according to the current exposure parameters and transmits it to the exposure compensation unit 20; if target detection is successful, the target acquisition unit 10 performs a first-level exposure adjustment on the original exposure parameters ... original exposure parameters. The target detection unit 30 transmits the target area image to the decoding unit 60. The decoding unit 60 decodes the target area image. If decoding fails, the decoding unit 60 transmits the target area image to the second exposure evaluation unit 50. The second exposure evaluation unit 50 performs target exposure evaluation on the target area image and transmits the target exposure evaluation result to the image acquisition unit 10. The image acquisition unit 10 performs secondary exposure adjustment on the original exposure parameters according to the target exposure evaluation result to obtain the current exposure parameters, and then acquires the image to be identified again according to the current exposure parameters and transmits it to the exposure compensation unit 20. If decoding is successful, the current exposure parameters are the optimal exposure parameters under the current environment, and the control unit can control the image acquisition unit 10 to acquire the next image to be identified according to the exposure parameters.
[0032] The automatic exposure adjustment system of this embodiment uses the exposure compensation unit 20 to compensate the exposure of the image to be identified, making the overall image softer and thus improving the detection hit rate of the barcode area in the image. The first exposure evaluation unit 40 performs an overall exposure evaluation on the exposure-compensated images where the target detection unit 30 failed to detect the target, and transmits the overall exposure evaluation result to the image acquisition unit 10 for primary adjustment of the exposure parameters, ensuring that an image with suitable brightness can be acquired for target detection, further improving the detection hit rate of the barcode area in the image to be identified. The second exposure evaluation unit 50 performs a target exposure evaluation on the target area image that the decoding unit 60 failed to decode, and transmits the target exposure evaluation result to the image acquisition unit 10 for secondary adjustment of the exposure parameters, ensuring that an image with suitable brightness can be acquired for decoding, thus improving the decoding success rate. This automatic exposure adjustment system of this embodiment uses the ability to detect the target in the image to be identified and the ability to decode the barcode in the target area image as the criteria for judging whether the image brightness is appropriate. Through two levels of exposure adjustment, the reliability of successful barcode decoding in the image is ensured.
[0033] To improve the efficiency of the system's secondary exposure adjustment, please refer to [link / reference]. Figure 2 , Figure 2This is a schematic diagram of an automatic exposure adjustment system according to another embodiment of the present invention. In this embodiment, it is related to... Figure 1 Compared to the previous embodiment, the target detection unit 30 includes a judgment module 31, a storage module 32, and a detection module 33.
[0034] The input terminal of the judgment module 31 is connected to the output terminal of the exposure compensation unit 20 to obtain an exposure compensation image; the input terminal of the judgment module 31 is connected to the output terminal of the storage module 32 to obtain stored information and determine whether the stored information is target area location information; the output terminal of the judgment module 31 is connected to the input terminal of the decoding unit 60 so that when the judgment module 31 determines that the stored information is target area location information, it transmits the target area image to the decoding unit 60. Here, the target area image is obtained by the judgment module 31 based on the exposure compensation image and the target area location information.
[0035] The input of the detection module 33 is connected to the output of the judgment module 31 to acquire an exposure-compensated image and perform target detection on the image when the judgment module 31 determines that the stored information is not the target area location information. The output of the detection module 33 is also connected to the input of the decoding unit 60 to transmit the target area image to the decoding unit 60 when the detection module 33 successfully performs target detection on the exposure-compensated image. Furthermore, the output of the detection module 33 is connected to the input of the first exposure evaluation unit 40 to transmit the exposure-compensated image to the first exposure evaluation unit 40 when the detection module 33 fails to perform target detection on the exposure-compensated image. The target area image here is obtained by the detection module 33 performing target detection on the exposure-compensated image.
[0036] The input terminal of the storage module 32 is connected to the output terminal of the detection module 33 to store the target area location information when the detection module 33 successfully detects the target in the exposure-compensated image. At this time, the stored information of the storage module 32 is the target area location information.
[0037] Preferably, the input terminal of the storage module 32 is connected to the output terminal of the decoding unit 60 to delete the target region location information when the decoding unit 60 successfully decodes the target region image. At this time, the storage information of the storage module 32 is empty, which can avoid the target region location information of the previous image affecting the target detection of the next image when the target region location information of different images to be identified is different. At the same time, it simplifies the judgment of the judgment module 31. When the storage information is not empty, the storage information is the target region location information.
[0038] In actual use, the initial storage information of storage module 32 is empty.
[0039] Working process: The image acquisition unit 10 acquires the image to be identified according to the original exposure parameters; the exposure compensation unit 20 performs exposure compensation on the image to be identified to obtain an exposure compensation image, and transmits the exposure compensation image to the judgment module 31; the judgment module 31 acquires the storage information of the storage module 32, and determines whether the storage information is the target area location information.
[0040] If so, the judgment module 31 transmits the target area image obtained based on the exposure compensation image and the target area location information to the decoding unit 60. The decoding unit 60 decodes the target area image. If the decoding is successful, the storage module 32 deletes the target area location information and resets the stored information to empty. If the decoding fails, the decoding unit 60 transmits the target area image to the second exposure evaluation unit 50. The second exposure evaluation unit 50 performs target exposure evaluation on the target area image and transmits the target exposure evaluation result to the image acquisition unit 10. The image acquisition unit 10 performs secondary exposure adjustment on the original exposure parameters based on the target exposure evaluation result to obtain the current exposure parameters, and then acquires the image to be identified again based on the current exposure parameters and transmits it to the exposure compensation unit 20.
[0041] If not, the judgment module 31 transmits the exposure-compensated image to the detection module 33. The detection module 33 performs target detection on the exposure-compensated image. If target detection fails, the detection module 33 transmits the exposure-compensated image to the first exposure evaluation unit 40. The first exposure evaluation unit 40 performs an overall exposure evaluation on the exposure-compensated image and transmits the overall exposure evaluation result to the image acquisition unit 10. The image acquisition unit 10 adjusts the original exposure parameters by one level based on the overall exposure evaluation result to obtain the current exposure parameters, and then acquires the image to be identified again based on the current exposure parameters and transmits it to the exposure compensation unit 20. If target detection is successful, the detection module 33 transmits the target area location information to the storage module 32. The storage module 32... The target area location information is stored. The detection module 33 transmits the target area image to the decoding unit 60. The decoding unit 60 decodes the target area image. If the decoding is successful, the storage module 32 deletes the target area location information and resets the stored information to empty. If the decoding fails, the decoding unit 60 transmits the target area image to the second exposure evaluation unit 50. The second exposure evaluation unit 50 performs target exposure evaluation on the target area image and transmits the target exposure evaluation result to the image acquisition unit 10. The image acquisition unit 10 performs secondary exposure adjustment on the original exposure parameters according to the target exposure evaluation result to obtain the current exposure parameters, and then acquires the image to be identified again according to the current exposure parameters and transmits it to the exposure compensation unit 20.
[0042] The automatic exposure compensation system in this embodiment stores the target area location information successfully detected by the detection module 33 through the storage module 32. The judgment module 31 determines whether the stored information in the storage module 32 is the target area location information. If the stored information is the target area location information, the judgment module 31 can obtain the target area image by combining the exposure compensation image and the target area location information. The detection module 33 does not need to perform target detection on the entire exposure compensation image, which improves the efficiency of obtaining the target area image, and thus improves the efficiency of secondary exposure adjustment and decoding.
[0043] Because exposure compensation has been applied to the image to be recognized, the exposure parameters of the image acquisition unit 11 cannot be determined from the exposure-compensated image and the target area image. To ensure the smooth operation of the first-level and second-level exposure adjustments, please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a schematic diagram of an automatic exposure adjustment system according to another embodiment of the present invention. In this embodiment, it is related to... Figure 1 Compared to the previous embodiment, the image acquisition unit 10 includes an exposure adjustment module 11, a parameter storage module 12, and an image acquisition module 13.
[0044] The input terminal of the exposure adjustment module 11 is connected to the output terminal of the parameter storage module 12 to obtain the original exposure parameters; the input terminal of the exposure adjustment module 11 is connected to the output terminal of the first exposure evaluation unit 40 to perform a first-level exposure adjustment on the original exposure parameters based on the overall exposure evaluation result after obtaining the overall exposure evaluation result to obtain the current exposure parameters; the input terminal of the exposure adjustment module 11 is connected to the output terminal of the second exposure evaluation unit 50 to perform a second-level exposure adjustment on the original exposure parameters based on the target exposure evaluation result after obtaining the target exposure evaluation result to obtain the current exposure parameters; when the overall exposure evaluation result and the target exposure evaluation result are not obtained, the exposure adjustment module 11 assigns the current exposure parameters to the original exposure parameters.
[0045] The input terminal of the parameter storage module 12 is connected to the output terminal of the exposure adjustment module 11 to obtain the current exposure parameters, and the current exposure parameters replace the original exposure parameters.
[0046] The input terminal of the image acquisition module 13 is connected to the output terminal of the exposure adjustment module 11 to obtain the current exposure parameters, and the image to be identified is acquired according to the current exposure parameters; the output terminal of the image acquisition module 13 is connected to the input terminal of the exposure compensation unit 20 to transmit the image to be identified to the exposure compensation unit 20.
[0047] In practical use, the exposure parameters can be a combination of exposure time and signal gain; the parameter storage module 12 can initially store the initial combination of exposure time and signal gain values.
[0048] In this embodiment, the working process of the image acquisition unit 10 is as follows: the exposure adjustment module 11 acquires the original exposure parameters stored in the parameter storage module 12; after acquiring the overall exposure evaluation result, the exposure adjustment module 11 performs a first-level exposure adjustment on the original exposure parameters based on the overall exposure evaluation result to obtain the current exposure parameters; after acquiring the target exposure evaluation result, the exposure adjustment module 11 performs a second-level exposure adjustment on the original exposure parameters based on the target exposure evaluation result to obtain the current exposure parameters; when the exposure adjustment module 11 does not acquire the overall exposure evaluation result and the target exposure evaluation result (for example, when the exposure adjustment module 11 acquires working information), the current exposure parameters are assigned the value of the original exposure parameters; the exposure adjustment module 11 transmits the current exposure parameters to the parameter storage module 12, and the parameter storage module 12 replaces the original exposure parameters with the existing exposure parameters; the exposure adjustment module 11 transmits the current exposure parameters to the image acquisition module 13, and the image acquisition module 13 acquires the image to be identified based on the current exposure parameters and transmits the image to be identified to the exposure compensation unit 20.
[0049] The automatic exposure adjustment system in this embodiment stores the exposure parameters before exposure adjustment by setting the parameter storage module 12 and replaces and stores the exposure parameters after exposure adjustment by the exposure adjustment module 11, thus ensuring the smooth progress of the automatic exposure adjustment process.
[0050] To allow for different adjustment methods for primary and secondary exposure settings, please refer to [link to relevant documentation]. Figure 4 , Figure 4 This is a schematic diagram of the structure of an exposure adjustment module 11 according to an embodiment of the present invention. The exposure adjustment module 11 includes a judgment submodule 111, a first adjustment submodule 112, and a second adjustment submodule 113.
[0051] The judgment submodule 111 is used to judge the information content acquired by the exposure adjustment module 11; the input terminal of the judgment submodule 111 is connected to the output terminal of the parameter storage module 12 to obtain the original exposure parameters; the output terminal of the judgment submodule 111 is connected to the input terminal of the image acquisition module 13 to transmit the original exposure parameters to the image acquisition module 13 when the information content is not the overall exposure evaluation result or the target exposure evaluation result, and the image acquisition module 13 acquires the image to be identified according to the original exposure parameters; the output terminal of the judgment submodule 111 is connected to the input terminal of the first adjustment submodule 112 to transmit the original exposure parameters and the information content to the first adjustment submodule 112 when the information content is the overall exposure evaluation result, and the first adjustment submodule 112 performs a first-level exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters; the output terminal of the judgment submodule 111 is connected to the input terminal of the second adjustment submodule 113 to transmit the original exposure parameters and the information content to the second adjustment submodule 113 when the information content is the target exposure evaluation result, and the second adjustment submodule 113 performs a second-level exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters.
[0052] The output terminals of both the first adjustment submodule 112 and the second adjustment submodule 113 are connected to the input terminal of the parameter storage module 12 to transmit the current exposure parameters to the parameter storage module 12, and the parameter storage module 12 replaces the original exposure parameters with the current exposure parameters.
[0053] The output terminals of both the first adjustment submodule 112 and the second adjustment submodule 113 are connected to the input terminal of the image acquisition module 13 to transmit the current exposure parameters to the image acquisition module 13. The image acquisition module 13 acquires the image to be identified based on the current exposure parameters.
[0054] Preferably, the system further includes a control unit (not shown in the figure), the output of the decoding unit 60 is connected to the input of the control unit to transmit the decoding success information to the control unit, and the output of the control unit is connected to the input of the judgment submodule 111 to transmit working information to the judgment submodule 111 after receiving the decoding success information, thereby ensuring the smooth and complete execution of the automatic exposure adjustment process.
[0055] In this embodiment, the working process of the exposure adjustment module 11 is as follows: the judgment submodule 111 obtains the original exposure parameters stored in the parameter storage module 12, and judges the information content obtained by the exposure adjustment module 11.
[0056] If the information content is the overall exposure evaluation result, the judgment submodule 111 passes the original exposure parameters and information content to the first adjustment submodule 112. The first adjustment submodule 112 performs a first-level exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters. The first adjustment submodule 112 passes the current exposure parameters to the parameter storage module 12, and the parameter storage module 12 replaces the original exposure parameters with the current exposure parameters. The first adjustment submodule 112 passes the current exposure parameters to the image acquisition module 13, and the image acquisition module 13 acquires the image to be identified according to the current exposure parameters.
[0057] If the information content is the target exposure evaluation result, the judgment submodule 111 passes the original exposure parameters and the information content to the second adjustment submodule 113. The second adjustment submodule 113 performs secondary exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters. The second adjustment submodule 113 passes the current exposure parameters to the parameter storage module 12, and the parameter storage module 12 replaces the original exposure parameters with the current exposure parameters. The second adjustment submodule 113 passes the current exposure parameters to the image acquisition module 13, and the image acquisition module 13 acquires the image to be identified according to the current exposure parameters.
[0058] If the information content is not the overall exposure evaluation result or the target exposure evaluation result (e.g., work information), the judgment submodule 111 passes the original exposure parameters to the image acquisition module 13, and the image acquisition module 13 acquires the image to be identified based on the original exposure parameters.
[0059] The automatic exposure adjustment system of this embodiment, by setting a first adjustment submodule 112 and a second adjustment submodule 113, enables different adjustment methods for primary and secondary exposure adjustment, thereby improving the flexibility of exposure adjustment and adapting to different needs of target detection and target region image decoding in the image to be identified.
[0060] Please see Figure 5 , Figure 5 This is a schematic diagram of an automatic exposure adjustment system according to a fourth embodiment of the present invention. In this embodiment, it is related to... Figure 1 Compared to the Chinese embodiment, Figure 2 The target detection unit in the embodiment and Figure 3 By combining the image acquisition unit in the embodiment, an automatic exposure adjustment system is obtained that can ensure the smooth progress of the automatic exposure adjustment process while improving the exposure adjustment efficiency and decoding efficiency. Since the structure and working process of each part have been described in detail above, they will not be repeated here.
[0061] The present invention also provides an automatic exposure adjustment method for the above-mentioned automatic exposure adjustment system, the method comprising the following steps: S1. The image acquisition unit acquires the image to be recognized based on the exposure parameters; S2. The exposure compensation unit performs exposure compensation on the image to be recognized to obtain an exposure-compensated image; S3. The target detection unit performs target detection on the exposure-compensated image. If the target detection fails, proceed to step S4; if the target detection succeeds, proceed to step S7. S4. The first exposure evaluation unit performs an overall exposure evaluation on the exposure-compensated image; S5. The image acquisition unit performs a first-level exposure adjustment on the exposure parameters based on the overall exposure evaluation result; S6. Repeat steps S1 to S3; S7. The decoding unit decodes the target area image. If decoding fails, proceed to step S8. S8. The second exposure evaluation unit performs target exposure evaluation on the target area image; S9. The image acquisition unit performs secondary exposure adjustment on the exposure parameters based on the target exposure evaluation result; S10. Repeat steps S1 to S3.
[0062] This invention discloses an automatic exposure adjustment system and method. An exposure compensation unit performs exposure compensation on the image to be identified, making the overall image softer and thus improving the detection hit rate of barcode regions in the image. A first exposure evaluation unit performs an overall exposure evaluation on the exposure-compensated image where target detection fails, and transmits the overall exposure evaluation result to an image acquisition unit for initial adjustment of exposure parameters, ensuring that an image with suitable brightness can be acquired for target detection, further improving the detection hit rate of barcode regions in the image to be identified. A second exposure evaluation unit performs target exposure evaluation on the target region image where decoding fails, and transmits the target exposure evaluation result to the image acquisition unit for secondary adjustment of exposure parameters, ensuring that an image with suitable brightness can be acquired for decoding, improving the decoding success rate. This automatic exposure adjustment system and method uses the ability to detect the target in the image to be identified and the ability to decode the barcode in the target region image as the criteria for judging whether the image brightness is appropriate. Through two levels of exposure adjustment, the reliability of successful barcode decoding in the image is ensured.
[0063] The present invention has been described by the above-described embodiments; however, these embodiments are merely examples for implementing the present invention. Furthermore, the technical features involved in the different embodiments of the present invention described above can be combined with each other as long as they do not conflict with each other. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, any modifications and refinements made without departing from the spirit and scope of the present invention are within the scope of patent protection of the present invention.
Claims
1. An automatic exposure adjustment system, characterized in that, It includes an image acquisition unit, an exposure compensation unit, a target detection unit, a first exposure evaluation unit, a second exposure evaluation unit, and a decoding unit. The image acquisition unit is used to acquire the image to be identified based on the exposure parameters; The input terminal of the exposure compensation unit is connected to the output terminal of the image acquisition unit to obtain the image to be identified, and the exposure compensation is performed on the image to be identified to obtain the exposure compensation image. The input terminal of the target detection unit is connected to the output terminal of the exposure compensation unit to obtain an exposure compensation image, and target detection is performed on the exposure compensation image; The input terminal of the first exposure evaluation unit is connected to the output terminal of the target detection unit to obtain the exposure compensation image and perform an overall exposure evaluation on the exposure compensation image when the target detection unit fails to perform target detection on the exposure compensation image. The input end of the image acquisition unit is connected to the output end of the first exposure evaluation unit to obtain the overall exposure evaluation result, and the exposure parameters are adjusted according to the overall exposure evaluation result. The input terminal of the decoding unit is connected to the output terminal of the target detection unit to acquire the target region image and decode the target region image when the target detection unit successfully detects the target in the exposure-compensated image. The input terminal of the second exposure evaluation unit is connected to the output terminal of the decoding unit to acquire the target area image and perform target exposure evaluation on the target area image when the decoding unit fails to decode the target area image. The input end of the image acquisition unit is connected to the output end of the second exposure evaluation unit to obtain the target exposure evaluation result, and the exposure parameters are adjusted for secondary exposure based on the target exposure evaluation result.
2. The automatic exposure adjustment system as described in claim 1, characterized in that, It also includes a control unit, wherein the output of the decoding unit is connected to the input of the control unit to transmit decoding success information to the control unit, and the output of the control unit is connected to the input of the image acquisition unit to control the image acquisition unit to work after receiving the decoding success information.
3. The automatic exposure adjustment system as described in claim 1, characterized in that, The exposure-compensated image has a higher median brightness percentage than the image to be identified.
4. The automatic exposure adjustment system as described in claim 1, characterized in that, The target detection unit includes a judgment module, a storage module, and a detection module. The input terminal of the judgment module is connected to the output terminal of the exposure compensation unit to obtain an exposure compensation image; the input terminal of the judgment module is connected to the output terminal of the storage module to obtain stored information and determine whether the stored information is target area location information; the output terminal of the judgment module is connected to the input terminal of the decoding unit to transmit the target area image to the decoding unit when the judgment module determines that the stored information is target area location information. The input terminal of the detection module is data-connected to the output terminal of the judgment module so that when the judgment module determines that the stored information is not the target area information, it acquires the exposure compensation image and performs target detection on the exposure compensation image; the output terminal of the detection module is data-connected to the input terminal of the decoding unit so that when the detection module successfully performs target detection on the exposure compensation image, it transmits the target area image to the decoding unit. The output of the detection module is connected to the input of the first exposure evaluation unit to transmit the exposure compensation image to the first exposure evaluation unit when the detection module fails to perform target detection on the exposure compensation image. The input terminal of the storage module is connected to the output terminal of the detection module to store the target area location information when the detection module successfully detects the target in the exposure-compensated image.
5. An automatic exposure adjustment system as described in claim 4, characterized in that, The input terminal of the storage module is connected to the output terminal of the decoding unit to delete the target area location information when the decoding unit successfully decodes the target area image.
6. The automatic exposure adjustment system as described in claim 1, characterized in that, The image acquisition unit includes an exposure adjustment module, a parameter storage module, and an image acquisition module. The input terminal of the exposure adjustment module is connected to the output terminal of the parameter storage module to obtain the original exposure parameters; The input of the exposure adjustment module is connected to the output of the first exposure evaluation unit to perform a first-level exposure adjustment on the original exposure parameters based on the overall exposure evaluation results after obtaining the overall exposure evaluation results, so as to obtain the current exposure parameters. The input of the exposure adjustment module is connected to the output of the second exposure evaluation unit to perform secondary exposure adjustment on the original exposure parameters based on the target exposure evaluation result after obtaining the target exposure evaluation result, so as to obtain the current exposure parameters. When the exposure adjustment module does not obtain the overall exposure evaluation result and the target exposure evaluation result, it assigns the current exposure parameter to the original exposure parameter. The input terminal of the parameter storage module is connected to the output terminal of the exposure adjustment module to obtain the current exposure parameters, and the current exposure parameters replace the original exposure parameters. The input terminal of the image acquisition module is connected to the output terminal of the exposure adjustment module to obtain the current exposure parameters, and the image to be identified is obtained according to the current exposure parameters; the output terminal of the image acquisition module is connected to the input terminal of the exposure compensation unit to transmit the image to be identified to the exposure compensation unit.
7. An automatic exposure adjustment system as described in claim 6, characterized in that, The exposure adjustment module includes a judgment submodule, a first adjustment submodule, and a second adjustment submodule. The judgment submodule is used to judge the information content obtained by the exposure adjustment module; the input end of the judgment submodule is data-connected to the output end of the parameter storage module to obtain the original exposure parameters; the output end of the judgment submodule is data-connected to the input end of the image acquisition module so that when the information content is not the overall exposure evaluation result and the target exposure evaluation result, the original exposure parameters are passed to the image acquisition module, and the image acquisition module obtains the image to be identified according to the original exposure parameters. The output of the judgment submodule is connected to the input of the first adjustment submodule to transmit the original exposure parameters and information content to the first adjustment submodule when the information content is the overall exposure evaluation result. The first adjustment submodule performs a first-level exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters. The output of the judgment submodule is connected to the input of the second adjustment submodule to transmit the original exposure parameters and information content to the second adjustment submodule when the information content is the target exposure evaluation result. The second adjustment submodule performs secondary exposure adjustment on the original exposure parameters according to the information content to obtain the current exposure parameters. The output terminals of both the first adjustment submodule and the second adjustment submodule are connected to the input terminal of the parameter storage module to transmit the current exposure parameters to the parameter storage module, and the parameter storage module replaces the original exposure parameters with the current exposure parameters. The output terminals of both the first adjustment submodule and the second adjustment submodule are connected to the input terminal of the image acquisition module to transmit the current exposure parameters to the image acquisition module, and the image acquisition module acquires the image to be identified based on the current exposure parameters.
8. An automatic exposure adjustment system as described in claim 7, characterized in that, It also includes a control unit, wherein the output of the decoding unit is data-connected to the input of the control unit to transmit decoding success information to the control unit, and the output of the control unit is data-connected to the input of the judgment submodule to transmit working information to the judgment submodule after receiving decoding success information.
9. The automatic exposure adjustment method of the automatic exposure adjustment system as described in any one of claims 1 to 8, characterized in that, Includes the following steps: S1. The image acquisition unit acquires the image to be recognized based on the exposure parameters; S2. The exposure compensation unit performs exposure compensation on the image to be recognized to obtain an exposure-compensated image; S3. The target detection unit performs target detection on the exposure-compensated image. If the target detection fails, proceed to step S4; if the target detection succeeds, proceed to step S7. S4. The first exposure evaluation unit performs an overall exposure evaluation on the exposure-compensated image; S5. The image acquisition unit performs a first-level exposure adjustment on the exposure parameters based on the overall exposure evaluation result; S6. Repeat steps S1 to S3; S7. The decoding unit decodes the target area image. If decoding fails, proceed to step S8. S8. The second exposure evaluation unit performs target exposure evaluation on the target area image; S9. The image acquisition unit performs secondary exposure adjustment on the exposure parameters based on the target exposure evaluation result; S10. Repeat steps S1 to S3.