Method and system for performing adaptive modulation on basis of scanning gun, and apparatus and storage medium

By acquiring and analyzing the light intensity of the light source incident on the barcode area from the scanner, the qualified scanning area is determined and the light source is adjusted, which solves the problem of scanning success rate when the light source is insufficient, and improves the accuracy and adaptability of the scanner.

WO2026000552A1PCT designated stage Publication Date: 2026-01-02SHENZHEN IDATA TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/111415
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-25
Filing Date
2024-08-12
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

Existing barcode scanners struggle to analyze and judge the relationship between the barcode area and the light source area when the light source intensity is insufficient or the ambient light is weak, resulting in a lower scanning success rate.

Method used

By acquiring the light intensity incident on the barcode area, a qualified scanning area is determined. The light source sufficiency and light stability values ​​are judged by comparing them with the barcode area, and corresponding signals are generated. The light source is then adjusted based on these signals, including light source intensity adjustment values ​​QT1 and QT2, to ensure the normal operation of the scanning process.

Benefits of technology

It improves the scanning accuracy of the scanner under different light intensities and environments. Through adaptive adjustment of the light source, it ensures that the scanner operates normally under stable light and area matching conditions, and realizes automatic compensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024111415_02012026_PF_FP_ABST
    Figure CN2024111415_02012026_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of scanning guns, and specifically relates to a method and system for performing adaptive modulation, and an apparatus and a storage medium. The method comprises the following steps: acquiring the intensity of light incident onto a barcode region from a light source, and determining a scannable region; on the basis of the scannable region, performing comparative determination with the barcode region, so as to output a light source sufficiency value, and generating a signal for indicating whether a light source region is normal, wherein the light source sufficiency value is obtained by means of calculating the ratio of the area of an overlapping region to the area of the barcode region; and on the basis of the signal which indicates that the light source region is normal, acquiring a light stability value of the light incident onto the barcode region from the light source, and determining whether to perform barcode scanning, wherein the light stability value is obtained by means of calculating the sum of an anomaly count ratio and a minimum anomaly interval distribution value. By means of the present invention, the normal scanning operation of a scanner is achieved, and a light source for a barcode region is adaptively adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Adaptive control method, system, device, and storage medium based on barcode scanner Technical Field

[0001] This invention relates to the field of barcode scanner technology, and more specifically to an adaptive control method, system, device, and storage medium based on a barcode scanner. Background Technology

[0002] A barcode scanner can read product information such as price, name, and item number by scanning the product's graphic code. When the scanning light source of the barcode scanner is weak, or the ambient light is too low, the amount of light transmitted from the graphic code to the lens of the scanning device is insufficient, thus reducing the success rate of scanning the graphic code.

[0003] In the existing technology, if the light intensity incident on the barcode area by the light source does not meet the scanning requirements during the barcode scanning process, the barcode scanner will be unable to complete the scanning work more efficiently. Based on this situation, it is currently difficult to analyze and judge the situation of the barcode area and the light source area to make adaptive adjustments to the light source of the barcode area and ensure the normal operation of the barcode scanner.

[0004] Summary of the Invention

[0005] The purpose of this invention is to provide an adaptive control method, system, device, and storage medium based on a barcode scanner. The technical problem solved by this invention is that it is currently difficult to analyze and judge the situation of the barcode area and the light source area to complete the adaptive adjustment of the light source in the barcode area and ensure the normal operation of the barcode scanner.

[0006] The objective of this invention can be achieved through the following technical solutions:

[0007] An adaptive control method based on a scanner includes the following steps:

[0008] Step 1: Obtain the light intensity incident on the barcode area and determine the qualified scanning area;

[0009] Step 2: Based on the qualified scan area, compare it with the barcode area to determine whether the light source is sufficient and generate a signal indicating whether the light source area is normal.

[0010] The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area.

[0011] Step 3: Based on the normal signal in the light source area, obtain the stable value of the light incident on the barcode area to determine whether to perform barcode scanning.

[0012] The light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution.

[0013] As a further aspect of the present invention: In step 1, the process of determining the qualified scanning area is as follows:

[0014] Extract the qualified light intensity and mark the corresponding position points as the edge points of the scanning area;

[0015] Draw lines connecting the edge points of the scanned area to obtain the qualified scanned area.

[0016] As a further aspect of the present invention: the process for determining the qualified light intensity is as follows:

[0017] If the light intensity is within the range required for barcode recognition, the light intensity is marked as qualified.

[0018] As a further aspect of the present invention: in step 2, if the light source sufficiency value is greater than or equal to the light source sufficiency threshold, a normal light source region signal is generated;

[0019] If the light source sufficiency value is less than the light source sufficiency threshold, an abnormal signal for the light source area is generated.

[0020] As a further aspect of the present invention: the process of obtaining the overlapping region is as follows:

[0021] The overlapping area is obtained by comparing the scanned qualified area with the barcode area.

[0022] As a further aspect of the present invention: in step 3, if the light stability value is greater than or equal to the light stability threshold, a scanning working signal is generated;

[0023] If the light stability value is less than the light stability threshold, a scanning adaptation signal is generated.

[0024] As a further aspect of the present invention: the process for obtaining the percentage of abnormal numbers is as follows:

[0025] The scanning time is divided into n acquisition nodes. The signal indicating whether the light source area is normal is obtained at each acquisition node. The number of abnormal signals in the light source area is counted. The ratio of the number of abnormal signals in the light source area to the total number of acquisition nodes is calculated to obtain the percentage of abnormal signals.

[0026] As a further aspect of the present invention: the process for obtaining the minimum value of the abnormal interval distribution is as follows:

[0027] The time interval between abnormal signals in adjacent light source areas is obtained and marked as the adjacent abnormal signal interval. The minimum value of the adjacent abnormal signal interval is extracted, and the ratio of the minimum value of the adjacent abnormal signal interval to the scanning time is calculated to obtain the minimum value of the abnormal interval distribution.

[0028] As a further aspect of the present invention, it also includes the following steps:

[0029] Step 4: When an abnormal signal is received in the light source area, obtain the size offset value, midpoint offset value, and light intensity reserve value. Sum the size offset value and midpoint offset value to obtain the total deviation value. Then, calculate the ratio between the light intensity reserve value and the total deviation value to obtain the adaptability value.

[0030] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0031] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0032] As a further aspect of the present invention: the process of obtaining the dimension offset value is as follows:

[0033] The difference between the diameter of the qualified scan area and the diagonal length of the barcode area is calculated to obtain the length difference of the qualified scan area.

[0034] The size offset value is obtained by calculating the ratio of the length difference of the qualified scanned area to the diagonal length of the barcode area.

[0035] As a further aspect of the present invention: the process of obtaining the midpoint offset value is as follows:

[0036] Measure the distance between the center point of the scanned qualified area and the center point of the barcode area to obtain the distance difference between the centers of the areas;

[0037] The length offset value is obtained by calculating the ratio of the difference in distance between the points in the region to the length of the diagonal of the barcode region.

[0038] Using the center point of the barcode area as the reference point, measure the deviation angle between the center point of the scanned qualified area and the reference point, calculate the sine value of the deviation angle, and mark it as the angle offset value;

[0039] The midpoint offset value is obtained by multiplying the length offset value and the angle offset value.

[0040] As a further aspect of the present invention: the process of obtaining the light intensity reserved value is as follows:

[0041] The difference between the maximum light intensity and the maximum light intensity range required for barcode recognition is calculated to obtain the light intensity control difference.

[0042] The light intensity reserve value is obtained by calculating the ratio of the light intensity control difference to the maximum value of the light intensity range.

[0043] As a further aspect of the present invention, it also includes the following steps:

[0044] Step 5: Based on the easily adjustable light source signal, obtain the light source intensity adjustment value and adjust the light source incident on the barcode area;

[0045] The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

[0046] As a further aspect of the present invention: the process of obtaining the first light source intensity control value QT1 is as follows:

[0047] Obtain the center point of the scanned qualified area, measure the maximum distance between the boundary point of the barcode area and the center point of the scanned qualified area, and mark it as the maximum distance between the center and boundary points;

[0048] The difference between the maximum distance from the center boundary point and the radius of the qualified scan area is calculated to obtain the expansion value of the first qualified scan area, which is marked as RK1;

[0049] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0050] Through formula The intensity control value of the first light source, QT1, was calculated.

[0051] As a further aspect of the present invention, the control process is as follows:

[0052] The actual light source intensity after adjustment is obtained by summing the first light source intensity adjustment value QT1 with the current light intensity QY.

[0053] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0054] If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, the light intensity of the barcode will be automatically compensated according to the actual light intensity of the adjusted light source.

[0055] As a further aspect of the present invention: the process for obtaining the second light source intensity control value QT2 is as follows:

[0056] If the actual light intensity of the light source after adjustment is not within the light intensity range required for barcode recognition, obtain the radius of the qualified scanning area and the length of half the diagonal of the barcode area, and calculate the difference to obtain the expansion value of the second qualified scanning area, which is marked as RK2.

[0057] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0058] Through formula The intensity control value of the second light source, QT2, was calculated.

[0059] As a further aspect of the present invention: the second light source intensity adjustment value QT2 is summed with the current light intensity QY to obtain the actual light source intensity after adjustment.

[0060] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0061] If the actual light intensity of the adjusted light source is within the range required for barcode recognition, align the center point of the qualified scanning area with the center point of the barcode area, and then automatically compensate the light for the barcode according to the actual light intensity of the adjusted light source.

[0062] An adaptive control system based on a barcode scanner, the system comprising:

[0063] Area determination module: acquires the light intensity incident on the barcode area and determines the qualified scanning area;

[0064] Sufficient light source judgment module: Based on the scanned qualified area, it compares with the barcode area to judge, outputs the light source sufficiency value, and generates a signal indicating whether the light source area is normal;

[0065] The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area.

[0066] Stability determination module: Based on the normal signal in the light source area, obtain the stability value of the light incident on the barcode area and determine whether to perform barcode scanning.

[0067] The light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution.

[0068] As a further aspect of the present invention, it also includes:

[0069] Adaptation Judgment Module: When an abnormal signal is received in the light source area, the module obtains the size offset value, midpoint offset value, and light intensity reserve value, sums the size offset value, midpoint offset value, and light intensity reserve value, and calculates the adaptability value.

[0070] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0071] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0072] Adaptive control module: Based on the easily adjustable light source signal, it obtains the light source intensity control value and controls the light source incident on the barcode area;

[0073] The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

[0074] A storage medium storing a computer software program, which, when executed by a processor, implements the adaptive control method described above.

[0075] An apparatus comprising:

[0076] Memory, used to store computer software programs;

[0077] The processor is used to read and execute the computer software program, thereby implementing the above-mentioned adaptive control method.

[0078] The beneficial effects of this invention are:

[0079] (1) This invention obtains the light intensity incident on the barcode area and determines the qualified scanning area; based on the qualified scanning area, it compares and judges with the barcode area, outputs the light source sufficiency value, and generates a signal indicating whether the light source area is normal; based on the abnormal light source area signal, it obtains the light stability value incident on the barcode area and judges whether to perform barcode scanning; this invention performs area judgment analysis on the light source data when the scanner is to scan the barcode, and then performs light stability analysis, so that the scanner operation meets the scanning requirements in three states: light intensity, area, and fluctuation, thereby improving the accuracy of the scanner scanning work;

[0080] (2) Based on the abnormal signal of the light source area, the present invention obtains the adaptability value, evaluates the light applicability adjustment capability, and generates an adaptability level signal; the present invention judges the degree of offset of the qualified scanning area in terms of size and position, and judges the difficulty of subsequent readjustment of the light condition of the barcode based on the degree of offset; the present invention can complete the corresponding adjustment work according to the adaptability level signal generated to ensure the normal operation of the subsequent scanner.

[0081] (3) Based on the easily adjustable light source signal, the present invention obtains the light source intensity adjustment value and performs adjustment processing on the light source incident on the barcode area; by analyzing the current light source, the present invention can adjust the light source intensity without moving the light source to meet the light requirements of the barcode, complete the automatic light compensation work for the barcode, and realize the normal scanning work of the scanner. It can also adjust the light source intensity while moving the light source to meet the light requirements of the barcode, complete the automatic light compensation work for the barcode, and realize the normal scanning work of the scanner, and make adaptive adjustments to the light source in the barcode area. Attached Figure Description

[0082] The invention will now be further described with reference to the accompanying drawings.

[0083] Figure 1 is a flowchart of an adaptive control method based on a scanner provided in Embodiment 1 of the present invention;

[0084] Figure 2 is a flowchart of an adaptive control method based on a scanner provided in Embodiment 2 of the present invention;

[0085] Figure 3 is a flowchart of an adaptive control method based on a scanner provided in Embodiment 3 of the present invention;

[0086] Figure 4 is a system block diagram of an adaptive control system based on a scanner provided in Embodiment 4 of the present invention;

[0087] Figure 5 is a system block diagram of an adaptive control device based on a scanner provided in Embodiment 5 of the present invention;

[0088] Figure 6 is a system block diagram of a storage medium based on an adaptive control method for a scanner provided in Embodiment 6 of the present invention. Detailed Implementation

[0089] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0090] Example 1

[0091] Please refer to Figure 1. This invention is an adaptive control method based on a barcode scanner, suitable for scenarios where a ring light source illuminates a barcode and a barcode scanner is used to read the barcode information. The method includes the following steps:

[0092] Step 1: Obtain the light intensity incident on the barcode area and determine the qualified scanning area;

[0093] In some implementations, the light intensity at the barcode area is obtained, the maximum light intensity value is extracted, and the location point corresponding to the maximum light intensity value is marked as the center point of the qualified scanning area;

[0094] Next, extract the qualified light intensity and mark the position points corresponding to the qualified light intensity as the edge points of the scanning area;

[0095] Draw lines connecting the edge points of the scanned area to obtain a closed, qualified scanned area;

[0096] Specifically, the process for determining the acceptable light intensity is as follows:

[0097] The acquired light intensity is compared with the light intensity range required for barcode recognition;

[0098] If the light intensity is within the range required for barcode recognition, it means that the light intensity meets the requirements for barcode scanning and recognition, and the light intensity is marked as qualified light intensity;

[0099] If the light intensity is not within the range required for barcode recognition, it means that the light intensity does not meet the requirements for barcode scanning and recognition, and the light intensity is marked as unqualified light intensity;

[0100] Among them, the light intensity can be detected by a photosensitive sensor;

[0101] Step 2: Based on the qualified scan area, compare it with the barcode area to determine whether the light source is sufficient and generate a signal indicating whether the light source area is normal.

[0102] Among them, the signal indicating whether the light source area is normal includes a normal signal or an abnormal signal in the light source area;

[0103] In some implementation schemes, the scanned qualified area is compared with the barcode area to obtain the overlapping area;

[0104] Obtain the area of ​​the overlapping region and the area of ​​the barcode region, calculate the ratio of the area of ​​the overlapping region to the area of ​​the barcode region, and obtain the light source sufficiency value.

[0105] Compare the light source sufficiency value with the light source sufficiency threshold;

[0106] If the light source sufficiency value is greater than or equal to the light source sufficiency threshold, it means that the light source in the qualified scanning area can fully cover the barcode, so that the barcode can be scanned normally within the light source range, and a normal light source area signal is generated.

[0107] If the light source sufficiency value is less than the light source sufficiency threshold, it means that the light source in the qualified scanning area cannot fully cover the barcode, so the barcode cannot be scanned normally within the light source range, and an abnormal light source area signal is generated.

[0108] For example, the threshold value for sufficient light source should be greater than or equal to 1, and can be 1, 1.2, etc.;

[0109] Step 3: Based on the normal signal in the light source area, obtain the stable value of the light incident on the barcode area to determine whether to perform barcode scanning.

[0110] In some implementations, a stable light value is acquired when a normal signal is obtained from the light source area;

[0111] Compare the light stability value with the light stability threshold;

[0112] If the light stability value is greater than or equal to the light stability threshold, it means that the light incident on the barcode area has a large stability performance within the area and under time fluctuations during the scanning time, which meets the conditions for the barcode to be recognized by the scanner, and a scanning signal is generated.

[0113] If the light stability value is less than the light stability threshold, it means that the light incident on the barcode area has low stability performance within the area and under time fluctuations during the scanning time, which does not meet the conditions for the barcode to be recognized by the scanner. In this case, a scanning adaptation signal is generated.

[0114] Furthermore, the process of obtaining the light stability value is as follows:

[0115] The sum of the percentage of anomalies and the minimum value of the anomaly interval distribution is used to obtain the light stability value;

[0116] Furthermore, the scanning time is divided into n acquisition nodes, and the signal of whether the light source area is normal is obtained at each acquisition node. The number of abnormal signals in the light source area is counted, and the ratio of the number of abnormal signals in the light source area to the total number of acquisition nodes is calculated to obtain the percentage of abnormal signals.

[0117] The time interval between abnormal signals in adjacent light source areas is obtained and marked as the adjacent abnormal signal interval. The minimum value of the adjacent abnormal signal interval is extracted, and the ratio of the minimum value of the adjacent abnormal signal interval to the scanning time is calculated to obtain the minimum value of the abnormal interval distribution.

[0118] It should be explained that the light stability value is calculated by the ratio of the number of abnormal signals in the light source area to the interval ratio during the entire scanning time. The larger the light stability value, the greater the probability of abnormalities occurring in the qualified area during the scanning time. The smaller the light stability value, the lower the probability of abnormalities occurring in the qualified area during the scanning time. A larger light stability value will reduce the accuracy of the barcode scanner.

[0119] Furthermore, since the abnormal signal of the light source area is obtained based on the comparison of light source intensity, its light stability value will also indicate the fluctuation of the light source intensity between qualified and unqualified within the scanning time. The smaller the light stability value, the smaller and more stable the light source intensity fluctuation within the scanning time. The larger the light stability value, the larger and more unstable the light source intensity fluctuation within the scanning time.

[0120] The technical solution of this invention is as follows: The light intensity incident on the barcode area is obtained, and a qualified scanning area is determined. Based on the qualified scanning area, a sufficient light source value is output by comparing it with the barcode area, and a signal indicating whether the light source area is normal is generated. Based on the abnormal light source area signal, the stability value of the light incident on the barcode area is obtained, and a judgment is made on whether to perform barcode scanning. This invention performs area judgment analysis and light stability analysis on the light source data when the scanner is about to scan, thereby ensuring that the scanner operation meets the scanning requirements under the three conditions of light intensity, area, and fluctuation, thus improving the accuracy of the scanner scanning work.

[0121] Example 2

[0122] Please refer to Figure 2. This invention is an adaptive control method based on a barcode scanner, suitable for scenarios where a ring light source illuminates a barcode and a barcode scanner is used to read the barcode information. It also includes the following steps:

[0123] Step 4: Based on the abnormal signals in the light source area, obtain the adaptability value, evaluate the ability to adjust the light suitability, and generate an adaptability level signal;

[0124] Among them, the adaptability level signal includes the light source easy-to-adjust signal and the light source difficult-to-adjust signal;

[0125] In some implementations, when an abnormal signal is received in the light source area, the size offset value, the midpoint offset value, and the light intensity reserve value are obtained. The size offset value and the midpoint offset value are summed to obtain the total deviation value. Then, the ratio of the light intensity reserve value to the total deviation value is calculated to obtain the adaptability value.

[0126] Compare the adaptability value with the adaptability threshold;

[0127] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0128] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0129] It should be explained that the adaptability value indicates the offset in size and position between the scanned qualified area and the barcode area. The larger the adaptability value, the greater the offset between the scanned qualified area and the barcode area; the smaller the adaptability value, the smaller the offset between the scanned qualified area and the barcode area. The greater the offset between the scanned qualified area and the barcode area, the more difficult it will be to adjust the light source subsequently. When a signal indicating that the light source is difficult to adjust is obtained, a different model of light source can be directly replaced.

[0130] Furthermore, the adaptability value also represents the gap between the current maximum light intensity and the light intensity range required for barcode recognition. In other words, it represents the light source control space corresponding to the current qualified scanning area. The larger the light intensity reserve value, the greater the ability to control the light source; the smaller the light intensity reserve value, the smaller the ability to control the light source.

[0131] Furthermore, the process of obtaining the dimension offset value is as follows:

[0132] Obtain the diameter of the qualified scan area and the diagonal length of the barcode area. Calculate the difference between the diameter of the qualified scan area and the diagonal length of the barcode area to obtain the length difference of the qualified scan area.

[0133] The size offset value is obtained by calculating the ratio of the length difference of the qualified scanned area to the diagonal length of the barcode area;

[0134] The process of obtaining the midpoint offset value is as follows:

[0135] Obtain the center point of the scanned qualified area and the center point of the barcode area, measure the distance between the center point of the scanned qualified area and the center point of the barcode area, and obtain the center distance difference between the areas;

[0136] The length offset value is obtained by calculating the ratio of the difference in distance between the points in the region to the length of the diagonal of the barcode region.

[0137] Using the center point of the barcode area as the reference point, measure the deviation angle between the center point of the scanned qualified area and the reference point, calculate the sine value of the deviation angle, and mark it as the angle offset value;

[0138] The midpoint offset value is obtained by multiplying the length offset value and the angle offset value.

[0139] The explanation is that the deviation angle ranges from 0 to 45°.

[0140] The standard for measuring the deviation angle is:

[0141] Using the center point of the barcode area as the origin, construct a two-dimensional coordinate line with the origin. Connect the center point of the scanned qualified area with the origin to obtain the angle measurement line. Obtain the angle between the angle measurement line and the nearest X-axis and Y-axis respectively to obtain the X-axis angle and Y-axis angle. Compare the X-axis angle and Y-axis angle and mark the smallest angle as the deviation angle.

[0142] The process of obtaining the light intensity reserve value is as follows:

[0143] Obtain the maximum current light intensity and the light intensity range required for barcode recognition. Calculate the difference between the maximum light intensity and the maximum light intensity range required for barcode recognition to obtain the light intensity control difference.

[0144] The light intensity reserve value is obtained by calculating the ratio of the light intensity control difference value to the maximum value of the light intensity range;

[0145] The technical solution of this invention is as follows: Based on the abnormal signal of the light source area, an adaptability value is obtained, the light applicability adjustment capability is evaluated, and an adaptability level signal is generated; This invention judges the degree of offset of the qualified scanning area in terms of size and position, and judges the difficulty of subsequent readjustment of the light conditions of the barcode based on the magnitude of the offset; Based on the generated adaptability level signal, corresponding adjustment work can be completed to ensure the normal operation of the subsequent scanner.

[0146] Example 3

[0147] Please refer to Figure 3. This invention is an adaptive control method based on a barcode scanner, suitable for scenarios where a ring light source illuminates a barcode and a barcode scanner is used to read the barcode information. It also includes the following steps:

[0148] Step 5: Based on the easily adjustable light source signal, obtain the light source intensity adjustment value and adjust the light source incident on the barcode area;

[0149] In some implementation schemes, when an easily adjustable light source signal is obtained, the center point of the scanned qualified area is acquired, and the maximum distance between the boundary point of the barcode area and the center point of the scanned qualified area is measured and marked as the maximum distance between the center and boundary points.

[0150] The difference between the maximum distance from the center boundary point and the radius of the qualified scan area is calculated to obtain the expansion value of the first qualified scan area, which is marked as RK1;

[0151] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0152] Through formula The intensity control value of the first light source, QT1, is calculated.

[0153] Based on the first light source intensity control value QT1 obtained from the above implementation scheme, the first light source intensity control value QT1 is summed with the current light intensity QY to obtain the actual light source intensity after control.

[0154] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0155] If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, it means that the adjusted light intensity meets the requirements for barcode scanning and recognition without moving the light source position. The light intensity of the adjusted light source is used to automatically compensate for the light intensity of the barcode.

[0156] In other implementations, if the actual light intensity of the light source after adjustment is not within the light intensity range required for barcode recognition, the radius of the qualified scanning area and the length of half the diagonal of the barcode area are obtained, and the difference is calculated to obtain the expansion value of the second qualified scanning area, which is marked as RK2.

[0157] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0158] Through formula The intensity control value of the second light source, QT2, was calculated.

[0159] Based on the second light source intensity control value QT2 obtained from the above implementation scheme, the second light source intensity control value QT2 is summed with the current light intensity QY to obtain the actual light source intensity after control.

[0160] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0161] If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, it means that the adjusted light intensity meets the requirements for barcode scanning and recognition under the condition of moving the light source position. That is, by moving the light source, the center point of the qualified scanning area can be aligned with the center point of the barcode area, and then the light of the barcode can be automatically compensated according to the actual light intensity of the adjusted light source.

[0162] If the actual light intensity of the light source after adjustment is not within the range of light intensity required for barcode recognition, it means that the light intensity does not meet the requirements for barcode scanning and recognition, and a different model of light source can be directly replaced.

[0163] The technical solution of this invention is as follows: Based on the easily adjustable light source signal, the light source intensity adjustment value is obtained, and the light source incident on the barcode area is adjusted. By analyzing the current light source, this invention can adjust the light source intensity without moving the light source to meet the light requirements of the barcode, complete the automatic light compensation work for the barcode, and realize the normal scanning work of the scanner. It can also adjust the light source intensity while moving the light source to meet the light requirements of the barcode, complete the automatic light compensation work for the barcode, and realize the normal scanning work of the scanner, thus adaptively adjusting the light source of the barcode area.

[0164] Example 4

[0165] Please refer to Figure 4. This invention is an adaptive control system based on a barcode scanner, suitable for scenarios where a ring light source illuminates a barcode and a barcode scanner is used to read the barcode information, including:

[0166] Area determination module: acquires the light intensity incident on the barcode area and determines the qualified scanning area;

[0167] Specifically, the light intensity in the barcode area is obtained, the maximum light intensity value is extracted, and the location point corresponding to the maximum light intensity value is marked as the center point of the qualified scanning area;

[0168] Next, extract the qualified light intensity and mark the position points corresponding to the qualified light intensity as the edge points of the scanning area;

[0169] Draw lines connecting the edge points of the scanned area to obtain a closed, qualified scanned area;

[0170] Specifically, the process for determining the acceptable light intensity is as follows:

[0171] The acquired light intensity is compared with the light intensity range required for barcode recognition;

[0172] If the light intensity is within the range required for barcode recognition, it means that the light intensity meets the requirements for barcode scanning and recognition, and the light intensity is marked as qualified light intensity;

[0173] If the light intensity is not within the range required for barcode recognition, it means that the light intensity does not meet the requirements for barcode scanning and recognition, and the light intensity is marked as unqualified light intensity;

[0174] Sufficient light source judgment module: Based on the scanned qualified area, it compares with the barcode area to judge, outputs the light source sufficiency value, and generates a signal indicating whether the light source area is normal;

[0175] The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area.

[0176] Specifically, the scanned qualified area is compared with the barcode area to obtain the overlapping area;

[0177] Obtain the area of ​​the overlapping region and the area of ​​the barcode region, calculate the ratio of the area of ​​the overlapping region to the area of ​​the barcode region, and obtain the light source sufficiency value.

[0178] Compare the light source sufficiency value with the light source sufficiency threshold;

[0179] If the light source sufficiency value is greater than or equal to the light source sufficiency threshold, it means that the light source in the qualified scanning area can fully cover the barcode, so that the barcode can be scanned normally within the light source range, and a normal light source area signal is generated.

[0180] If the light source sufficiency value is less than the light source sufficiency threshold, it means that the light source in the qualified scanning area cannot fully cover the barcode, so the barcode cannot be scanned normally within the light source range, and an abnormal light source area signal is generated.

[0181] Stability determination module: Based on the normal signal in the light source area, obtain the stability value of the light incident on the barcode area and determine whether to perform barcode scanning.

[0182] Among them, the light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution;

[0183] Specifically, when a normal signal is obtained from the light source area, a stable light value is acquired;

[0184] Compare the light stability value with the light stability threshold;

[0185] If the light stability value is greater than or equal to the light stability threshold, it means that the light incident on the barcode area has a large stability performance within the area and under time fluctuations during the scanning time, which meets the conditions for the barcode to be recognized by the scanner, and a scanning signal is generated.

[0186] If the light stability value is less than the light stability threshold, it means that the light incident on the barcode area has low stability performance within the area and under time fluctuations during the scanning time, which does not meet the conditions for the barcode to be recognized by the scanner. In this case, a scanning adaptation signal is generated.

[0187] Adaptation Judgment Module: When an abnormal signal is received in the light source area, the module acquires the size offset value, midpoint offset value, and light intensity reserve value. The module sums the size offset value and midpoint offset value to obtain the total deviation value. Then, the module calculates the ratio between the light intensity reserve value and the total deviation value to obtain the adaptability value.

[0188] Compare the adaptability value with the adaptability threshold;

[0189] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0190] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0191] Adaptive control module: Based on the easily adjustable light source signal, it obtains the light source intensity control value and controls the light source incident on the barcode area;

[0192] The light source intensity control values ​​include a first light source intensity control value QT1 and a second light source intensity control value QT2;

[0193] Specifically, when an easily adjustable light source signal is obtained, the center point of the qualified scanning area is acquired, the maximum distance between the boundary point of the barcode area and the center point of the qualified scanning area is measured, and this maximum distance is marked as the maximum distance between the center and boundary points.

[0194] The difference between the maximum distance from the center boundary point and the radius of the qualified scan area is calculated to obtain the expansion value of the first qualified scan area, which is marked as RK1;

[0195] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0196] Through formula The intensity control value of the first light source, QT1, is calculated.

[0197] Based on the first light source intensity control value QT1 obtained from the above implementation scheme, the first light source intensity control value QT1 is summed with the current light intensity QY to obtain the actual light source intensity after control.

[0198] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0199] If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, it means that the adjusted light intensity meets the requirements for barcode scanning and recognition without moving the light source position. The light intensity of the adjusted light source is used to automatically compensate for the light intensity of the barcode.

[0200] More specifically, if the actual light intensity of the light source after adjustment is not within the light intensity range required for barcode recognition, the radius of the qualified scanning area and half the length of the diagonal of the barcode area are obtained, and the difference is calculated to obtain the expansion value of the second qualified scanning area, which is marked as RK2.

[0201] Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively;

[0202] Through formula The intensity control value of the second light source, QT2, was calculated.

[0203] Based on the second light source intensity control value QT2 obtained from the above implementation scheme, the second light source intensity control value QT2 is summed with the current light intensity QY to obtain the actual light source intensity after control.

[0204] The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition.

[0205] If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, it means that the adjusted light intensity meets the requirements for barcode scanning and recognition under the condition of moving the light source position. That is, by moving the light source, the center point of the qualified scanning area can be aligned with the center point of the barcode area, and then the light of the barcode can be automatically compensated according to the actual light intensity of the adjusted light source.

[0206] If the actual light intensity of the adjusted light source is not within the range of light intensity required for barcode recognition, it means that the light intensity does not meet the requirements for barcode scanning and recognition, and a different model of light source can be directly replaced.

[0207] Example 5

[0208] Please refer to Figure 5, which is a schematic diagram of an embodiment of the device provided in this invention. As shown in Figure 5, this invention provides a device 500, including a memory 510, a processor 520, and a computer program 511 stored in the memory 510 and executable on the processor 520. When the processor 520 executes the computer program 511, it performs the following steps:

[0209] Step 1: Obtain the light intensity incident on the barcode area and determine the qualified scanning area;

[0210] Step 2: Based on the qualified scan area, compare it with the barcode area to determine whether the light source is sufficient and generate a signal indicating whether the light source area is normal.

[0211] The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area.

[0212] Step 3: Based on the normal signal in the light source area, obtain the stable value of the light incident on the barcode area to determine whether to perform barcode scanning.

[0213] Among them, the light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution;

[0214] Step 4: When an abnormal signal is received in the light source area, obtain the size offset value, midpoint offset value, and light intensity reserve value. Sum the size offset value, midpoint offset value, and light intensity reserve value to calculate the adaptability value.

[0215] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0216] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0217] Step 5: Based on the easily adjustable light source signal, obtain the light source intensity adjustment value and adjust the light source incident on the barcode area;

[0218] The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

[0219] Example 6

[0220] Please refer to Figure 6, which is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in Figure 6, this embodiment provides a computer-readable storage medium 600, on which a computer program 611 is stored. When the computer program 611 is executed by a processor, it performs the following steps:

[0221] Step 1: Obtain the light intensity incident on the barcode area and determine the qualified scanning area;

[0222] Step 2: Based on the qualified scan area, compare it with the barcode area to determine whether the light source is sufficient and generate a signal indicating whether the light source area is normal.

[0223] The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area.

[0224] Step 3: Based on the normal signal in the light source area, obtain the stable value of the light incident on the barcode area to determine whether to perform barcode scanning.

[0225] Among them, the light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution;

[0226] Step 4: When an abnormal signal is received in the light source area, obtain the size offset value, midpoint offset value, and light intensity reserve value. Sum the size offset value, midpoint offset value, and light intensity reserve value to calculate the adaptability value.

[0227] If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated;

[0228] If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

[0229] Step 5: Based on the easily adjustable light source signal, obtain the light source intensity adjustment value and adjust the light source incident on the barcode area;

[0230] The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

[0231] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0232] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0233] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more blocks of the flowchart illustrations and / or one or more blocks of the block diagrams.

[0234] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.

[0235] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.

[0236] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0237] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. An adaptive control method based on a scanner, characterized in that, Includes the following steps: Step 1: Obtain the light intensity incident on the barcode area and determine the qualified scanning area; Step 2: Based on the qualified scan area, compare it with the barcode area to determine whether the light source is sufficient and generate a signal indicating whether the light source area is normal. The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area. Step 3: Based on the normal signal in the light source area, obtain the stable value of the light incident on the barcode area to determine whether to perform barcode scanning. The light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution.

2. The adaptive control method based on a scanner according to claim 1, characterized in that, In step 1, the process for determining the qualified scanning area is as follows: Extract the qualified light intensity and mark the position points corresponding to the qualified light intensity as the edge points of the scanning area; Draw lines connecting the edge points of the scanned area to obtain the qualified scanned area.

3. The adaptive control method based on a scanner according to claim 2, characterized in that, The process for determining the acceptable light intensity is as follows: If the light intensity is within the range required for barcode recognition, the light intensity will be marked as qualified.

4. The adaptive control method based on a scanner according to claim 1, characterized in that, In step 2, if the light source sufficiency value is greater than or equal to the light source sufficiency threshold, a normal light source region signal is generated. If the light source sufficiency value is less than the light source sufficiency threshold, an abnormal signal for the light source area is generated.

5. The adaptive control method based on a scanner according to claim 4, characterized in that, The process of obtaining the overlapping region is as follows: The overlapping area is obtained by comparing the scanned qualified area with the barcode area.

6. The adaptive control method based on a scanner according to claim 1, characterized in that, In step 3, if the light stability value is greater than or equal to the light stability threshold, a scanning working signal is generated; If the light stability value is less than the light stability threshold, a scanning adaptation signal is generated.

7. The adaptive control method based on a scanner according to claim 6, characterized in that, The process of obtaining the percentage of anomalies is as follows: The scanning time is divided into n acquisition nodes. The number of abnormal signals in the light source area of ​​each acquisition node is obtained. The ratio of the number of abnormal signals in the light source area to the total number of acquisition nodes is calculated to obtain the percentage of abnormal signals.

8. The adaptive control method based on a scanner according to claim 7, characterized in that, The process of obtaining the minimum value of the abnormal interval distribution is as follows: The time interval between abnormal signals in adjacent light source areas is obtained and marked as the adjacent abnormal signal interval. The minimum value of the adjacent abnormal signal interval is extracted, and the ratio of the minimum value of the adjacent abnormal signal interval to the scanning time is calculated to obtain the minimum value of the abnormal interval distribution.

9. The adaptive control method based on a scanner according to claim 4, characterized in that, It also includes the following steps: Step 4: When an abnormal signal is received in the light source area, obtain the size offset value, midpoint offset value, and light intensity reserve value. Sum the size offset value and midpoint offset value to obtain the total deviation value. Then, calculate the ratio between the light intensity reserve value and the total deviation value to obtain the adaptability value. If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated; If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control.

10. The adaptive control method based on a scanner according to claim 9, characterized in that, The process of obtaining the dimension offset value is as follows: The difference between the diameter of the qualified scan area and the diagonal length of the barcode area is calculated to obtain the length difference of the qualified scan area. The size offset value is obtained by calculating the ratio of the length difference of the qualified scanned area to the diagonal length of the barcode area.

11. The adaptive control method based on a scanner according to claim 10, characterized in that, The process of obtaining the midpoint offset value is as follows: Measure the distance between the center point of the scanned qualified area and the center point of the barcode area to obtain the distance difference between the centers of the areas; The length offset value is obtained by calculating the ratio of the difference in distance between the points in the region to the length of the diagonal of the barcode region. Using the center point of the barcode area as the reference point, measure the deviation angle between the center point of the scanned qualified area and the reference point, calculate the sine value of the deviation angle, and mark it as the angle offset value; The midpoint offset value is obtained by multiplying the length offset value and the angle offset value.

12. The adaptive control method based on a scanner according to claim 11, characterized in that, The process of obtaining the light intensity reserve value is as follows: The difference between the maximum light intensity and the maximum light intensity range required for barcode recognition is calculated to obtain the light intensity control difference. The light intensity reserve value is obtained by calculating the ratio of the light intensity control difference to the maximum value of the light intensity range.

13. The adaptive control method based on a scanner according to claim 9, characterized in that, It also includes the following steps: Step 5: Based on the easily adjustable light source signal, obtain the light source intensity adjustment value and adjust the light source incident on the barcode area; The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

14. The adaptive control method based on a scanner according to claim 13, characterized in that, The process of obtaining the first light source intensity control value QT1 is as follows: Obtain the center point of the scanned qualified area, measure the maximum distance between the boundary point of the barcode area and the center point of the scanned qualified area, and mark it as the maximum distance between the center and boundary points; The difference between the maximum distance from the center boundary point and the radius of the qualified scan area is calculated to obtain the expansion value of the first qualified scan area, which is marked as RK1; Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively; Through formula The intensity control value of the first light source, QT1, was calculated.

15. The adaptive control method based on a scanner according to claim 14, characterized in that, The process of regulation and control is as follows: The actual light source intensity after adjustment is obtained by summing the first light source intensity adjustment value QT1 with the current light intensity QY. The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition. If the actual light intensity of the adjusted light source is within the range of light intensity required for barcode recognition, the light intensity of the barcode will be automatically compensated according to the actual light intensity of the adjusted light source.

16. The adaptive control method based on a scanner according to claim 15, characterized in that, The process of obtaining the intensity control value QT2 of the second light source is as follows: If the actual light intensity of the light source after adjustment is not within the light intensity range required for barcode recognition, obtain the radius of the qualified scanning area and the length of half the diagonal of the barcode area, and calculate the difference to obtain the expansion value of the second qualified scanning area, which is marked as RK2. Next, obtain the illumination intensity of the light source corresponding to the currently qualified scan area, and the radius of the qualified scan area, and label them as QY and RQ respectively; Through formula The intensity control value of the second light source, QT2, was calculated.

17. The adaptive control method based on a scanner according to claim 16, characterized in that, The actual light source intensity after adjustment is obtained by summing the second light source intensity adjustment value QT2 with the current light intensity QY. The actual light intensity of the adjusted light source is compared with the light intensity range required for barcode recognition. If the actual light intensity of the adjusted light source is within the range required for barcode recognition, align the center point of the qualified scanning area with the center point of the barcode area, and then automatically compensate the light for the barcode according to the actual light intensity of the adjusted light source.

18. An adaptive control system based on a barcode scanner, characterized in that, The system is used to perform the method according to any one of claims 1-17, the system comprising: Area determination module: acquires the light intensity incident on the barcode area and determines the qualified scanning area; Sufficient light source judgment module: Based on the scanned qualified area, it compares with the barcode area to judge, outputs the light source sufficiency value, and generates a signal indicating whether the light source area is normal; The sufficient light source value is calculated by the ratio of the area of ​​the overlapping area to the area of ​​the barcode area. Stability determination module: Based on the normal signal in the light source area, obtain the stability value of the light incident on the barcode area and determine whether to perform barcode scanning. The light stability value is obtained by summing the percentage of anomalies and the minimum value of the anomaly interval distribution.

19. The adaptive control system based on a scanner according to claim 18, characterized in that, The system also includes: Adaptive Judgment Module: When an abnormal signal is received in the light source area, the module acquires the size offset value, midpoint offset value, and light intensity reserve value. It then sums the size offset value and midpoint offset value to calculate the deviation. The total value is then used to calculate the adaptability value by comparing the light intensity reserve value with the deviation from the total value. If the adaptability value is greater than or equal to the adaptability threshold, a light source easily adjustable signal is generated; If the adaptability value is less than the adaptability threshold, the generated light source signal will be difficult to control. Adaptive control module: Based on the easily adjustable light source signal, it obtains the light source intensity control value and controls the light source incident on the barcode area; The light source intensity control value includes the first light source intensity control value QT1 and the second light source intensity control value QT2.

20. A storage medium, characterized in that, The storage medium stores a computer software program, which, when executed by a processor, implements the adaptive control method as described in any one of claims 1-17.

21. An adaptive control device based on a scanner, characterized in that, include: Memory, used to store computer software programs; A processor is configured to read and execute the computer software program, thereby implementing the adaptive control method according to any one of claims 1-17.

Citation Information

Patent Citations

  • Adaptive dimming scanning gun, control method and device thereof and storage medium

    CN112183128A

  • Automatic exposure method for improving mobile scanning effect of scanning head

    CN114302066A

  • Data processing method and device based on scanning gun

    CN117708180A

  • Self-adaptive regulation and control method, system and device based on scanning gun and storage medium

    CN118378647A

  • Self-adaptive regulation and control system based on scanning gun

    CN118862913A