Bar code automatic identification method

By calculating the identification value and change data of the image collected by barcodes, filtering the optimal barcode, and analyzing and adjusting the transmission speed according to mobile factors, the problems of mobile barcode recognition accuracy and efficiency are solved, and high-quality barcode recognition and automatic control are achieved.

CN119272786AActive Publication Date: 2025-01-07SHENZHEN IDATA TECH CO LTD

Patent Information

Application Number
CN202411354798.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2025-01-07
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

In the prior art, it is difficult to quickly select the highest quality barcodes for image acquisition of mobile barcodes, resulting in limited recognition accuracy. The abnormal change in the barcode speed during movement affects the recognition efficiency and cannot be effectively controlled.

Method used

By obtaining the barcode data and change data of the image, the identification value is calculated to determine the image quality, the optimal barcode is selected, and the transmission speed is adjusted according to the mobile factor analysis to improve the identification accuracy and efficiency.

Benefits of technology

It realizes high-quality identification of mobile barcodes, accurately evaluates the quality of barcode collection, accurately regulates transmission speed, and improves the accuracy and efficiency of barcode identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272786A_ABST
    Figure CN119272786A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of bar code recognition, in particular to a bar code-based automatic recognition method, which comprises the following steps of: acquiring bar code data of a bar code acquisition image; based on the barcode data, acquiring an identification value of the barcode acquisition image, and determining the quality of the barcode acquisition image; if the identification value of the bar code acquisition image is greater than or equal to the identification threshold value of the bar code acquisition image, generating a bar code identification qualified signal; determining an optimal bar code based on the data qualified bar code acquisition image and the change qualified bar code acquisition image, and completing automatic identification work through a bar code identifier; according to the invention, the bar code acquisition quality can be effectively evaluated, the qualified bar code image can be determined, the bar code can be better identified, and the bar code identification quality can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This divisional application is a divisional application of the Chinese patent application with application date of June 24, 2024, application number 202410813462.9, and invention name “A barcode automatic recognition method, system, storage medium and electronic device”. Technical Field

[0002] The present invention relates to the technical field of barcode recognition, and in particular to a barcode-based automatic recognition method, system, storage medium and electronic equipment. Background Art

[0003] A barcode is composed of bars (dark parts, usually black) and spaces (light parts, usually white) of different widths and reflectivities. These bars and spaces are arranged according to certain coding rules (code system) to express a set of digital or letter symbol information.

[0004] In the prior art, a large number of barcode images will be obtained through image acquisition for mobile barcodes. During the processing, the barcode images cannot be effectively and quickly screened to obtain the barcode with the highest quality, thereby limiting the accuracy of barcode recognition. In addition, when the barcode is moving, abnormal changes in speed will greatly affect the barcode recognition. At present, it is impossible to analyze the problem, communicate with the transmission equipment end, and automatically control the barcode transmission speed to ensure the high efficiency of barcode recognition. Summary of the invention

[0005] The purpose of the present invention is to provide a method, system, storage medium and electronic device based on automatic barcode recognition. The technical problem solved by the present invention is that the barcode image cannot be screened effectively and quickly to obtain the barcode with the highest quality, thereby limiting the accuracy of barcode recognition.

[0006] The purpose of the present invention can be achieved through the following technical solutions: A barcode automatic recognition method comprises the following steps: Step 1: Obtain barcode data of the barcode acquisition image; The barcode data includes the barcode contrast of each frame of the barcode image; Step 2: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; Among them, the recognition value of the barcode acquisition image is calculated by summing the data qualified rate value and the change qualified rate value; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; If the recognition value of the barcode acquisition image is less than the recognition threshold of the barcode acquisition image, a barcode recognition failure signal is generated; Step 3: Based on the data qualified barcode acquisition image and the change qualified barcode acquisition image, determine the optimal barcode, and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Get the maximum value of the barcode contrast in the candidate image and mark the candidate image as the selected image.

[0007] As a further solution of the present invention: in step 2, the data pass rate value of the barcode acquisition image is obtained in the following manner: Obtain data-qualified barcode acquisition images, count the number of statistically qualified barcode acquisition images, calculate the ratio of the number of data-qualified barcode acquisition images to the total number of barcode acquisition images, and obtain the data qualification rate value of the barcode acquisition images.

[0008] As a further solution of the present invention: the method for obtaining the change pass rate value of the barcode acquisition image is: Obtain the qualified barcode acquisition images with changes, count the number of qualified barcode acquisition images with changes, calculate the ratio of the number of qualified barcode acquisition images with changes to the total number of barcode acquisition images, and obtain the qualified rate value of the barcode acquisition images with changes.

[0009] As a further solution of the present invention: the process of acquiring the data qualified barcode acquisition image is as follows: Obtain the barcode contrast of each frame of the barcode image. If the barcode contrast is greater than the barcode contrast threshold, a good barcode contrast signal is generated, and the barcode image corresponding to the good barcode contrast signal is marked as a data qualified barcode acquisition image. If the barcode contrast is less than or equal to the barcode contrast threshold, a barcode contrast difference signal is generated, and the barcode image corresponding to the barcode contrast difference signal is marked as a barcode acquisition image with unqualified data.

[0010] As a further solution of the present invention: the acquisition process of changing the qualified barcode acquisition image is: Obtain the barcode contrast of each frame of the barcode image, and perform difference calculation with the barcode contrast of the barcode images of adjacent frames to obtain the barcode change contrast; If the barcode change contrast is less than or equal to the barcode change contrast threshold, a barcode change contrast good signal is generated, and the barcode image corresponding to the barcode change contrast good signal is marked as a change qualified barcode acquisition image.

[0011] As a further solution of the present invention: the following steps are also included: Based on the barcode recognition unqualified signal, the mobile factor resolution value is obtained, and a judgment is made to generate an object-affected signal or an object-unaffected signal; Among them, by analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; If the motion factor resolution value is greater than or equal to the motion factor resolution threshold, an object impact signal is generated.

[0012] As a further solution of the present invention: the motion factor resolution value is calculated by adding the duration corresponding ratio and the time point corresponding ratio.

[0013] As a further solution of the present invention: the process of obtaining the duration correspondence ratio is: The total duration of the speed abnormality time and the total duration of the signal abnormality time are calculated to obtain the duration corresponding value, and the corresponding value of the duration is calculated to obtain the duration corresponding ratio by ratio calculation.

[0014] As a further solution of the present invention: the process of obtaining the time point corresponding ratio is: Obtain each time point of the speed abnormality and each time point of the signal abnormality, extract the non-overlapping points of each time point of the speed abnormality and each time point of the signal abnormality, obtain the time point corresponding value, calculate the ratio of the time point corresponding value to the total abnormal time points, and obtain the time point corresponding ratio.

[0015] As a further solution of the present invention: the process of obtaining the speed abnormality time is: When a barcode recognition failure signal is obtained, the abnormal speed of the barcode object is obtained, and the time corresponding to the abnormal speed is marked as the speed abnormal time.

[0016] As a further solution of the present invention: the process of obtaining the signal abnormal time is: The time when the signal corresponding to the barcode acquisition image with unqualified data is generated is obtained and marked as the signal abnormality time.

[0017] As a further solution of the present invention: the following steps are also included: Step 5: Obtain the control factor and the preset speed value, and output the speed control value; feed the obtained speed control value back to the object transmission device, and adjust the current preset transmission speed according to the speed control value.

[0018] As a further solution of the present invention: the process of obtaining the regulatory factor is: Obtain the barcode unqualified reflection ratio and the speed unqualified reflection ratio, perform weighted processing on the barcode unqualified reflection ratio and the speed unqualified reflection ratio to obtain the control factor.

[0019] As a further solution of the present invention: the method for obtaining the barcode unqualified reflection ratio is: The data unqualified rate value of the barcode collection image and the change unqualified rate value of the barcode collection image are averaged to obtain the barcode unqualified reflection ratio.

[0020] As a further solution of the present invention: the process of obtaining the data unqualified rate value of the barcode acquisition image is as follows: Obtain barcode acquisition images with unqualified data, count the number of barcode acquisition images with unqualified data, calculate the ratio of the number of barcode acquisition images with unqualified data to the total number of barcode acquisition images, and obtain the data unqualified rate value of the barcode acquisition images.

[0021] As a further solution of the present invention: the process of obtaining the change failure rate value of the barcode acquisition image is as follows: The number of barcode acquisition images with unqualified changes is counted, and the ratio of the number of barcode acquisition images with unqualified changes to the total number of barcode acquisition images is calculated to obtain the unqualified change rate value of the barcode acquisition images.

[0022] As a further solution of the present invention, the method for obtaining the speed unqualified reflection ratio is as follows: The ratio of the abnormal speed deviation mean to the real-time moving speed threshold is calculated to obtain the proportion of unqualified speed reflection.

[0023] As a further solution of the present invention: the process of obtaining the mean value of abnormal speed deviation is: The difference between the abnormal speed and the real-time moving speed threshold is calculated to obtain the abnormal speed deviation value, and all the abnormal speed deviation values ​​within the total duration of the speed abnormality are added and averaged to obtain the abnormal speed deviation mean; As a further solution of the present invention: the system is used to perform the above method, the system comprising: Barcode acquisition module: obtains barcode data of barcode acquisition image; The barcode data includes the barcode contrast of each frame of the barcode image; Barcode evaluation module: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; The recognition value of the barcode acquisition image is calculated by summing the data qualified rate value and the change qualified rate value; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; Identification optimization module: Based on the data qualified barcode collection image and the change qualified barcode collection image, determine the optimal barcode and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Get the maximum value of the barcode contrast in the candidate image and mark the candidate image as the selected image.

[0024] A storage medium stores a computer software program, which implements the above-mentioned barcode automatic recognition method when executed by a processor.

[0025] An electronic device, comprising: Memory for storing computer software programs; The processor is used to read and execute the computer software program to implement the above-mentioned barcode automatic recognition method.

[0026] Beneficial effects of the present invention: (1) The present invention obtains barcode data of a barcode acquisition image; based on the barcode data, obtains the recognition value of the barcode acquisition image and determines the quality of the barcode acquisition image; based on the data-qualified barcode acquisition image and the variation-qualified barcode acquisition image, determines the optimal barcode, and completes the automatic recognition work through a barcode recognizer; the present invention acquires a moving image containing a barcode, and uses the barcode data containing the barcode deformation degree and the barcode contrast to analyze and obtain a data qualification rate value and a variation qualification rate value, which can firstly effectively evaluate the barcode acquisition quality, and secondly determine a qualified barcode image, which can better recognize the barcode, and will greatly improve the barcode recognition quality; (2) The present invention obtains the moving factor resolution value based on the barcode recognition unqualified signal, and makes a judgment to generate whether the object affects the signal. Since the barcode moves too fast, the scanner may not be able to capture and recognize the barcode in time. The present invention makes an impact judgment from the reflection time dimension between the abnormal speed of the object and the unqualified barcode data, so as to effectively and accurately analyze the influencing factors, and facilitate the precise regulation of the factors of poor barcode recognition efficiency according to the feedback of the influencing factors. (3) When the object does not affect the signal, the present invention arranges technical personnel to perform a fault check on the barcode acquisition device first; when the object affects the signal, the control factor and the preset speed value are obtained, and the speed control value is output; the obtained speed control value is fed back to the object transmission device, and the current preset transmission speed is adjusted according to the speed control value; based on the above-mentioned factors that make the barcode difficult to recognize, the present invention analyzes the degree of influence according to the proportion of barcode failure at the current speed and the proportion of speed failure, and controls the transmission speed of the barcode object, so that the barcode can be automatically recognized at a reasonable speed and with high quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The present invention will be further described below in conjunction with the accompanying drawings.

[0028] Figure 1 It is a flowchart of a barcode automatic recognition method provided in Example 1 of the present invention; Figure 2 is a flowchart of a barcode automatic recognition method provided in Embodiment 2 of the present invention; Figure 3 It is a flowchart of a barcode automatic recognition method provided by Embodiment 3 of the present invention; Figure 4 is a system block diagram of a barcode automatic recognition system provided by Embodiment 4 of the present invention; Figure 5 is a system block diagram of an electronic device based on a barcode automatic recognition method provided by Embodiment 5 of the present invention; Figure 6 It is a system block diagram of a storage medium based on a barcode automatic recognition method provided in Example 6 of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example 1

[0030] See also Figure 1 As shown, the present invention is a barcode-based automatic recognition method, which is applicable to a movable barcode (i.e., the barcode is set on an object, and the object moves through a conveyor belt), and includes the following steps: Step 1: Obtain barcode data of the barcode acquisition image; Wherein, the barcode data includes barcode contrast or barcode deformation; In some embodiments, a barcode video on each object is acquired through a barcode acquisition device, and each frame of a barcode image is obtained based on the barcode video, and then a barcode contrast of each frame of the barcode image is acquired; It needs to be explained that barcode contrast refers to the difference in brightness between the bar color (usually black or dark) and the background color (usually white or light) in the barcode. The greater the contrast, the higher the barcode recognition rate; The barcode contrast can be calculated by measuring the reflectivity of the bar color and the background color. Reflectivity refers to the ability of an object surface to reflect light. In a barcode, the greater the difference between the reflectivity of the bar (RL) and the reflectivity of the space (RD), the higher the contrast. The formula for calculating contrast ratio (PCS) is: PCS = (RL - RD) / RL × 100%. This formula can help us quantify the degree of contrast; In other embodiments, a barcode video on each object is obtained by a barcode acquisition device, and each frame of a barcode image is obtained based on the barcode video, and then the barcode deformation degree of each frame of the barcode image is obtained; It needs to be explained that the barcode deformation refers to the deformation difference between the bar color (usually black or dark) and the background color (usually white or light) in the barcode. The greater the barcode deformation, the lower the barcode recognition rate; The calculation process of barcode deformation is as follows: Obtain the length and width of each black bar, and compare them with the standard length and width of the black bar (the standard length and width of the black bar can be obtained by measuring before being recognized, or directly collected from the barcode generation process); perform difference calculation between the black bar length and the standard length to obtain the black bar length deformation value, and perform difference calculation between the black bar length and the standard width to obtain the black bar width deformation value; The deformation value of the black bar length is multiplied by the deformation value of the black bar width to obtain the deformation area value of each black bar; Then obtain the number of tangent points of each black bar and mark the value of the deformation point of each black bar; The deformation area value and the deformation point value of each black bar are weighted to obtain the deformation degree of each black bar; The deformation degree of all black bars is calculated by summing up to obtain the barcode deformation degree; For example, the barcode collection device may be a barcode scanner, a barcode collection device disclosed in patent number CN109598173B, etc.; The deformation area value and deformation point value of each black bar are weighted as follows: The deformation area value and the deformation point value are marked as Bs and Bd, and the deformation degree DBH of each black bar is calculated by the formula DBH=a1×Bs+a2×Bd; a1 and a2 are weight ratio coefficients, a1 is 0.61, and a2 is 0.49; Step 2: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; In some implementation schemes, based on the barcode data, a data pass rate value and a change pass rate value of the barcode acquisition image are obtained; The data qualified rate value and the change qualified rate value are summed up to obtain the recognition value of the barcode acquisition image, and the recognition value of the barcode acquisition image is compared with the recognition threshold of the barcode acquisition image; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; If the recognition value of the barcode acquisition image is less than the recognition threshold of the barcode acquisition image, a barcode recognition failure signal is generated; Among them, the recognition threshold of the barcode acquisition image ranges from 1.6 to 2.0; It should be explained that: the qualified barcode recognition signal indicates that the barcode acquisition device has a high degree of qualification and stability when acquiring the moving barcode, that is, a large number of barcodes that can be directly recognized by the barcode recognizer can be obtained; the unqualified barcode recognition signal indicates that the barcode acquisition device has a low degree of qualification and stability when acquiring the moving barcode, that is, a small number of barcodes that can be directly recognized by the barcode recognizer can be obtained; Specifically, the data pass rate value of the barcode acquisition image is obtained in the following way: Obtain data-qualified barcode acquisition images, count the number of statistically qualified barcode acquisition images, calculate the ratio of the number of data-qualified barcode acquisition images to the total number of barcode acquisition images, and obtain the data qualification rate value of the barcode acquisition images; The method for obtaining the change pass rate value of the barcode acquisition image is as follows: Obtaining the barcode acquisition images that have been changed and qualified, counting the number of the barcode acquisition images that have been changed and qualified, calculating the ratio of the number of the barcode acquisition images that have been changed and qualified to the total number of the barcode acquisition images, and obtaining the qualified rate value of the barcode acquisition images; Exemplarily, the process of acquiring the data-qualified barcode acquisition image is as follows: Obtain the barcode contrast of each frame of the barcode image and compare it with the barcode contrast threshold; If the barcode contrast is greater than the barcode contrast threshold, a good barcode contrast signal is generated, and the barcode image corresponding to the good barcode contrast signal is marked as a data qualified barcode acquisition image; If the barcode contrast is less than or equal to the barcode contrast threshold, a barcode contrast difference signal is generated, and the barcode image corresponding to the barcode contrast difference signal is marked as a barcode acquisition image with unqualified data; The acquisition process of the changed qualified barcode acquisition image is as follows: Obtain the barcode contrast of each frame of the barcode image, and perform difference calculation with the barcode contrast of the barcode images of adjacent frames to obtain the barcode change contrast; Obtain the barcode change contrast of each frame of the barcode image, and compare it with the barcode change contrast threshold; If the barcode change contrast is greater than the barcode change contrast threshold, a barcode change contrast difference signal is generated, and the barcode image corresponding to the barcode change contrast difference signal is marked as a barcode acquisition image with unqualified change; If the barcode change contrast is less than or equal to the barcode change contrast threshold, a barcode change contrast good signal is generated, and the barcode image corresponding to the barcode change contrast good signal is marked as a change qualified barcode acquisition image; In another exemplary embodiment, the process of acquiring the data-qualified barcode acquisition image is as follows: Obtain the barcode deformation degree of each frame of the barcode image and compare it with the barcode deformation degree threshold; If the barcode deformation degree is less than the barcode deformation degree threshold, a barcode deformation degree good signal is generated, and the barcode image corresponding to the barcode deformation degree good signal is marked as a data qualified barcode acquisition image; If the barcode deformation degree is greater than or equal to the barcode deformation degree threshold, a barcode deformation degree difference signal is generated, and the barcode image corresponding to the barcode deformation degree difference signal is marked as a barcode acquisition image with unqualified data; The acquisition process of the changed qualified barcode acquisition image is as follows: Obtain the barcode deformation degree of each frame of the barcode image, and perform difference calculation with the barcode deformation degrees of the barcode images of adjacent frames to obtain the barcode change deformation degree; Obtain the barcode change deformation degree of each frame of the barcode image, and compare it with the barcode change deformation degree threshold; If the barcode change deformation degree is less than the barcode change deformation degree threshold, a barcode change deformation degree difference signal is generated, and the barcode image corresponding to the barcode change deformation degree difference signal is marked as a barcode acquisition image with unqualified change; If the barcode change deformation degree is greater than or equal to the barcode change deformation degree threshold, a barcode change deformation degree good signal is generated, and the barcode image corresponding to the barcode change deformation degree good signal is marked as a change qualified barcode acquisition image; Step 3: Based on the data qualified barcode acquisition image and the change qualified barcode acquisition image, determine the optimal barcode, and complete the automatic recognition work through the barcode recognizer; In some embodiments, all data-qualified barcode acquisition images are extracted to obtain a set of data-qualified barcode acquisition images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the maximum value of the barcode contrast in the candidate image, mark the candidate image as the selected image, and perform barcode recognition on the selected image; In other embodiments, all data-qualified barcode acquisition images are extracted to obtain a set of data-qualified barcode acquisition images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the minimum value of the barcode deformation degree in the candidate image, mark the candidate image as the selected image, and perform barcode recognition on the selected image; The technical solution of the embodiment of the present invention is as follows: barcode data of a barcode acquisition image is acquired; based on the barcode data, an identification value of the barcode acquisition image is acquired to determine the quality of the barcode acquisition image; based on a data-qualified barcode acquisition image and a variation-qualified barcode acquisition image, an optimal barcode is determined, and automatic recognition is completed by a barcode recognizer; the present invention acquires a moving image containing a barcode, utilizes barcode data containing a barcode deformation degree and a barcode contrast, and analyzes to obtain a data qualification rate value and a variation qualification rate value, which can firstly effectively evaluate the barcode acquisition quality, and secondly determine a qualified barcode image, which can better identify the barcode and greatly improve the barcode recognition quality.

[0031] Example 2 See also Figure 2 As shown, the present invention is a barcode-based automatic recognition method, which is applicable to a scenario of a movable barcode (i.e., the barcode is set on an object, and the object moves through a conveyor belt), and further includes the following steps: Step 4: Based on the barcode identification signal, obtain the mobile factor resolution value and make a judgment to determine whether the generated object affects the signal; Wherein, whether the object affects the signal includes whether the object affects the signal or the object does not affect the signal; In some implementation schemes, when a barcode recognition failure signal is obtained, the abnormal speed of the barcode object is obtained, and the time corresponding to the abnormal speed is marked as the speed abnormal time; And, obtaining the time when the signal corresponding to the barcode acquisition image with unqualified data is generated, and marking it as the signal abnormality time; By analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; comparing the motion factor discrimination value to the motion factor discrimination threshold; If the motion factor resolution value is less than the motion factor resolution threshold, an object impact signal is generated; If the motion factor resolution value is greater than or equal to the motion factor resolution threshold, the generated object does not affect the signal; It needs to be explained that: the object affects the signal indicating that the abnormality of the object movement has a large overlap in time with the abnormality of the barcode data, and the movement of the object has a large impact on the collection of qualified barcode data; the object does not affect the signal indicating that the abnormality of the object movement has a small overlap in time with the abnormality of the barcode data, and the movement of the object has a small impact on the collection of qualified barcode data; The process of obtaining the abnormal speed of the barcode object is as follows: Obtain the real-time moving speed of the barcode object during the barcode collection time, and compare the real-time moving speed with the real-time moving speed threshold; If the real-time moving speed is greater than or equal to the real-time moving speed threshold, a speed abnormality signal is generated and the real-time moving speed is marked as an abnormal speed; If the real-time moving speed is less than the real-time moving speed threshold, a normal speed signal is generated and the real-time moving speed is marked as a normal speed; For example, the abnormal speed time and abnormal signal time are analyzed, and the specific process is as follows: Obtain the total duration of the speed abnormality time and the total duration of the signal abnormality time, perform difference calculation on the total duration of the speed abnormality time and the total duration of the signal abnormality time to obtain a duration corresponding value, perform ratio calculation on the duration corresponding value and the total duration of the abnormality (the total duration of the abnormality is the sum of the total duration of the speed abnormality time and the total duration of the signal abnormality time) to obtain a duration corresponding ratio; Obtain each time point of the speed abnormality time and each time point of the signal abnormality time, extract the number of non-overlapping points of each time point of the speed abnormality time and each time point of the signal abnormality time, obtain the time point corresponding value, calculate the ratio of the time point corresponding value to the total number of abnormal time points (the total abnormal time points are the sum of the number of time points of the speed abnormality time and the time points of the signal abnormality time), and obtain the time point corresponding ratio; The duration corresponding ratio and the time point corresponding ratio are added and summed to calculate the motion factor resolution value; The technical solution of the embodiment of the present invention is as follows: based on the barcode recognition unqualified signal, the moving factor resolution value is obtained, and a judgment is made to generate whether the object affects the signal; since the barcode moves too fast, the scanner may not be able to capture and recognize the barcode in time. The present invention makes an impact judgment from the reflection time dimension between the abnormal speed of the object and the unqualified barcode data, so that the influencing factors can be effectively and accurately analyzed, which is convenient for accurately adjusting the factors of poor barcode recognition efficiency according to the feedback influencing factors.

[0032] Example 3 See also Figure 3 As shown, the present invention is a barcode-based automatic recognition method, which is applicable to a scenario of a movable barcode (i.e., the barcode is set on an object, and the object moves through a conveyor belt), and further includes the following steps: Step 5: Based on whether the feedback object affects the signal, complete the corresponding barcode recognition failure processing; In some implementation schemes, when it is obtained that the object does not affect the signal, a technician is arranged to perform a fault check on the barcode acquisition device first; When the object impact signal is obtained, the control factor and the preset speed value are obtained, and the speed control value is output; the obtained speed control value is fed back to the object transmission device, and the current preset transmission speed is adjusted according to the speed control value; Specifically, the process of obtaining regulatory factors is as follows: Obtain the barcode failure reflection ratio and the speed failure reflection ratio, perform weighted processing on the barcode failure reflection ratio and the speed failure reflection ratio to obtain a control factor; Furthermore, the method for obtaining the percentage of barcode failure reflection is as follows: Obtaining barcode collection images with unqualified data, counting the number of barcode collection images with unqualified data, calculating the ratio of the number of barcode collection images with unqualified data to the total number of barcode collection images, and obtaining a data unqualified rate value of the barcode collection images; Obtaining barcode acquisition images with unqualified changes, counting the number of barcode acquisition images with unqualified changes, calculating the ratio of the number of barcode acquisition images with unqualified changes to the total number of barcode acquisition images, and obtaining a barcode acquisition image change unqualified rate value; The data unqualified rate value of the barcode collection image and the change unqualified rate value of the barcode collection image are averaged to obtain the barcode unqualified reflection ratio; The method for obtaining the speed failure reflection ratio is as follows: The total duration of the speed abnormality time and the abnormal speed are obtained, the abnormal speed is calculated to be different from the real-time moving speed threshold to obtain the abnormal speed deviation value, and all the abnormal speed deviation values ​​within the total duration of the speed abnormality time are added and averaged to obtain the abnormal speed deviation mean; The ratio of the abnormal speed deviation mean to the real-time moving speed threshold is calculated to obtain the speed failure reflection ratio; Exemplarily, the weighted processing method of the barcode unqualified reflection ratio and the speed unqualified reflection ratio is as follows: The proportion of barcode failure and speed failure are marked as BBt and BBv, and the control factor KT is calculated by the formula KT=b1×BBt+b2×BBv. Both b1 and b2 are weight ratio coefficients, b1 is 0.34, and b2 is 0.66. The solution of the embodiment of the present invention is as follows: when it is obtained that the object does not affect the signal, a technician is arranged to perform a fault check on the barcode acquisition device first; when it is obtained that the object affects the signal, a control factor and a preset speed value are obtained, and a speed control value is output; the obtained speed control value is fed back to the object transmission device, and the current preset transmission speed is adjusted according to the speed control value; based on the above-mentioned factors that make the barcode difficult to recognize, the present invention analyzes the degree of influence according to the proportion of the barcode unqualified degree and the proportion of the speed unqualified at the current speed, and controls the transmission speed of the barcode object, so that the effect of automatic barcode recognition can be completed at a reasonable speed and with high quality.

[0033] Example 4 See also Figure 4 As shown, the present invention is a barcode automatic recognition system, comprising: Barcode acquisition module: obtains barcode data of barcode acquisition image; In some implementation schemes, a barcode video on each object is obtained by a barcode acquisition device, and each frame of a barcode image is obtained based on the barcode video, and then a barcode contrast of each frame of the barcode image is obtained; In other embodiments, a barcode video on each object is obtained by a barcode acquisition device, and each frame of a barcode image is obtained based on the barcode video, and then the barcode deformation degree of each frame of the barcode image is obtained; Barcode evaluation module: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; Wherein, in some implementation schemes, based on the barcode data, a data pass rate value and a change pass rate value of the barcode acquisition image are obtained; The data qualified rate value and the change qualified rate value are summed up to obtain the recognition value of the barcode acquisition image, and the recognition value of the barcode acquisition image is compared with the recognition threshold of the barcode acquisition image; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; If the recognition value of the barcode acquisition image is less than the recognition threshold of the barcode acquisition image, a barcode recognition failure signal is generated; Among them, the recognition threshold of the barcode acquisition image ranges from 1.6 to 2.0; Specifically, the data pass rate value of the barcode acquisition image is obtained in the following way: Obtain data-qualified barcode acquisition images, count the number of statistically qualified barcode acquisition images, calculate the ratio of the number of data-qualified barcode acquisition images to the total number of barcode acquisition images, and obtain the data qualification rate value of the barcode acquisition images; The method for obtaining the change pass rate value of the barcode acquisition image is as follows: Obtaining the barcode acquisition images that have been changed and qualified, counting the number of the barcode acquisition images that have been changed and qualified, calculating the ratio of the number of the barcode acquisition images that have been changed and qualified to the total number of the barcode acquisition images, and obtaining the qualified rate value of the barcode acquisition images; Identification optimization module: Based on the data qualified barcode collection image and the change qualified barcode collection image, determine the optimal barcode and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the maximum value of the barcode contrast in the candidate image, and mark the candidate image as the selected image; Factor identification module: when a barcode recognition failure signal is obtained, the abnormal speed of the barcode object is obtained, and the corresponding time of the abnormal speed is marked as the speed abnormal time; And, obtaining the time when the signal corresponding to the barcode acquisition image with unqualified data is generated, and marking it as the signal abnormality time; By analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; comparing the motion factor discrimination value to the motion factor discrimination threshold; If the motion factor resolution value is greater than or equal to the motion factor resolution threshold, an object impact signal is generated; If the motion factor resolution value is less than the motion factor resolution threshold, the generated object does not affect the signal; The process of obtaining the abnormal speed of the barcode object is as follows: Obtain the real-time moving speed of the barcode object during the barcode collection time, and compare the real-time moving speed with the real-time moving speed threshold; If the real-time moving speed is greater than or equal to the real-time moving speed threshold, a speed abnormality signal is generated and the real-time moving speed is marked as an abnormal speed; If the real-time moving speed is less than the real-time moving speed threshold, a normal speed signal is generated and the real-time moving speed is marked as a normal speed; For example, the abnormal speed time and abnormal signal time are analyzed, and the specific process is as follows: Obtain the total duration of the speed abnormality time and the total duration of the signal abnormality time, perform difference calculation on the total duration of the speed abnormality time and the total duration of the signal abnormality time to obtain a duration corresponding value, perform ratio calculation on the duration corresponding value and the total duration of the abnormality (the total duration of the abnormality is the sum of the total duration of the speed abnormality time and the total duration of the signal abnormality time) to obtain a duration corresponding ratio; Obtain each time point of the speed abnormality time and each time point of the signal abnormality time, extract the non-overlapping points of each time point of the speed abnormality time and each time point of the signal abnormality time, obtain the time point corresponding value, calculate the ratio of the time point corresponding value to the total abnormal time point (the total abnormal time point is the sum of each time point of the speed abnormality time and each time point of the signal abnormality time), and obtain the time point corresponding ratio; The duration corresponding ratio and the time point corresponding ratio are added and summed to calculate the motion factor resolution value; Automatic control module: When the object does not affect the signal, arrange technicians to check the barcode collection equipment for faults first; When the object impact signal is obtained, the control factor and the preset speed value are obtained, and the speed control value is output; the obtained speed control value is fed back to the object transmission device, and the current preset transmission speed is adjusted according to the speed control value; Specifically, the process of obtaining regulatory factors is as follows: Obtain the barcode failure reflection ratio and the speed failure reflection ratio, perform weighted processing on the barcode failure reflection ratio and the speed failure reflection ratio to obtain a control factor; Furthermore, the method for obtaining the percentage of barcode failure reflection is as follows: Obtaining barcode collection images with unqualified data, counting the number of barcode collection images with unqualified data, calculating the ratio of the number of barcode collection images with unqualified data to the total number of barcode collection images, and obtaining a data unqualified rate value of the barcode collection images; Obtaining barcode acquisition images with unqualified changes, counting the number of barcode acquisition images with unqualified changes, calculating the ratio of the number of barcode acquisition images with unqualified changes to the total number of barcode acquisition images, and obtaining a barcode acquisition image change unqualified rate value; The data unqualified rate value of the barcode collection image and the change unqualified rate value of the barcode collection image are averaged to obtain the barcode unqualified reflection ratio; The method for obtaining the speed failure reflection ratio is as follows: The total duration of the speed abnormality time and the abnormal speed are obtained, the abnormal speed is calculated to be different from the real-time moving speed threshold to obtain the abnormal speed deviation value, and all the abnormal speed deviation values ​​within the total duration of the speed abnormality time are added and averaged to obtain the abnormal speed deviation mean; The ratio of the abnormal speed deviation mean to the real-time moving speed threshold is calculated to obtain the proportion of unqualified speed reflection.

[0034] Example 5 See also Figure 5 , Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 5As shown, an embodiment of the present invention provides an electronic 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, the following steps are implemented: Step 1: Obtain barcode data of the barcode acquisition image; The barcode data includes the barcode contrast of each frame of the barcode image; Step 2: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; The recognition value of the barcode acquisition image is calculated by summing the data qualified rate value and the change qualified rate value; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; Step 3: Based on the data qualified barcode acquisition image and the change qualified barcode acquisition image, determine the optimal barcode, and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the maximum value of the barcode contrast in the candidate image, and mark the candidate image as the selected image; Step 4: Based on the barcode identification signal, obtain the mobile factor resolution value and make a judgment to determine whether the generated object affects the signal; Among them, by analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; If the motion factor resolution value is greater than or equal to the motion factor resolution threshold, an object impact signal is generated; Step 5: Obtain the control factor and the preset speed value, and output the speed control value; feed the obtained speed control value back to the object transmission device, and adjust the current preset transmission speed according to the speed control value.

[0035] Example 6 See also Figure 6 , Figure 6 A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 6 As shown, 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, the following steps are implemented: Step 1: Obtain barcode data of the barcode acquisition image; The barcode data includes the barcode contrast of each frame of the barcode image; Step 2: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; Among them, the recognition value of the barcode acquisition image is calculated by summing the data qualified rate value and the change qualified rate value; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; Step 3: Based on the data qualified barcode acquisition image and the change qualified barcode acquisition image, determine the optimal barcode, and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the maximum value of the barcode contrast in the candidate image, and mark the candidate image as the selected image; Step 4: Based on the barcode identification signal, obtain the mobile factor resolution value and make a judgment to determine whether the generated object affects the signal; Among them, by analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; If the motion factor resolution value is greater than or equal to the motion factor resolution threshold, an object impact signal is generated; Step 5: Obtain the control factor and the preset speed value, and output the speed control value; feed the obtained speed control value back to the object transmission device, and adjust the current preset transmission speed according to the speed control value.

[0036] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0037] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented 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.

[0038] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0039] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0040] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0041] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0042] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A barcode-based automatic recognition method, characterized in that: The following steps are involved: Step 1: Obtain barcode data of the barcode acquisition image; The barcode data includes the barcode deformation degree of each frame of the barcode image; Step 2: Based on the barcode data, obtain the recognition value of the barcode acquisition image and determine the quality of the barcode acquisition image; Among them, the recognition value of the barcode acquisition image is calculated by summing the data qualified rate value and the change qualified rate value; If the recognition value of the barcode captured image is greater than or equal to the recognition threshold of the barcode captured image, a barcode recognition qualified signal is generated; If the recognition value of the barcode acquisition image is less than the recognition threshold of the barcode acquisition image, a barcode recognition failure signal is generated; Step 3: Based on the data qualified barcode acquisition image and the change qualified barcode acquisition image, determine the optimal barcode, and complete the automatic recognition work through the barcode recognizer; Among them, the optimal barcode determination process is: Extract all data-qualified barcode collection images to obtain a set of data-qualified barcode collection images; Then, the changed qualified barcode collection image is extracted from the set of data qualified barcode collection images to obtain the image to be selected; Obtain the minimum barcode deformation value in the candidate image, and mark the candidate image as the selected image; In step 2, the data pass rate value of the barcode acquisition image is obtained in the following manner: Count the number of barcode collection images with qualified data, calculate the ratio of the number of barcode collection images with qualified data to the total number of barcode collection images, and obtain the data qualified rate value of the barcode collection images; The method for obtaining the change pass rate value of the barcode acquisition image is as follows: Counting the number of barcode acquisition images that have been changed and qualified, calculating the ratio of the number of barcode acquisition images that have been changed and qualified to the total number of barcode acquisition images, and obtaining a qualified rate value of the barcode acquisition image change; The process of acquiring the data qualified barcode collection image is as follows: Obtain the barcode deformation degree of each frame of the barcode image. If the barcode deformation degree is less than the barcode deformation degree threshold, generate a barcode deformation degree good signal, and mark the barcode image corresponding to the barcode deformation degree good signal as a data qualified barcode acquisition image. If the barcode deformation degree is greater than or equal to the barcode deformation degree threshold, a barcode deformation degree difference signal is generated, and the barcode image corresponding to the barcode deformation degree difference signal is marked as a barcode acquisition image with unqualified data; The acquisition process of the changed qualified barcode acquisition image is as follows: Obtain the barcode deformation degree of each frame of the barcode image, and perform difference calculation with the barcode deformation degrees of the barcode images of adjacent frames to obtain the barcode change deformation degree; If the barcode change deformation degree is greater than or equal to the barcode change deformation degree threshold, a barcode change deformation degree good signal is generated, and the barcode image corresponding to the barcode change deformation degree good signal is marked as a change qualified barcode acquisition image.

2. The barcode automatic recognition method according to claim 1, characterized in that: The following steps are also included: Step 4: Based on the barcode recognition signal, obtain the mobile factor resolution value, make a judgment, and generate an object-affected signal or an object-unaffected signal; Among them, by analyzing the abnormal speed time and abnormal signal time, the mobile factor resolution value is obtained; If the motion factor resolution value is less than the motion factor resolution threshold, an object impact signal is generated.

3. The barcode-based automatic recognition method according to claim 2, characterized in that: The motion factor resolution value is calculated by adding the duration corresponding ratio and the time point corresponding ratio.

4. The barcode-based automatic recognition method according to claim 3, characterized in that: The process of obtaining the duration ratio is as follows: The total duration of the speed abnormality time and the total duration of the signal abnormality time are calculated to obtain the duration corresponding value, and the corresponding value of the duration is calculated to obtain the duration corresponding ratio by ratio calculation.

5. The barcode-based automatic recognition method according to claim 4, characterized in that: The process of obtaining the time point correspondence ratio is as follows: Obtain each time point of the speed abnormality and each time point of the signal abnormality, extract the number of non-overlapping points of each time point of the speed abnormality and each time point of the signal abnormality, obtain the time point corresponding value, calculate the ratio of the time point corresponding value to the total abnormal time points, and obtain the time point corresponding ratio.

6. The barcode-based automatic recognition method according to claim 5, characterized in that: The process of obtaining speed abnormal time is as follows: When a barcode recognition failure signal is obtained, the abnormal speed of the barcode object is obtained, and the time corresponding to the abnormal speed is marked as the speed abnormal time.

7. The barcode-based automatic recognition method according to claim 6, characterized in that: The process of obtaining the signal abnormal time is as follows: The time when the signal corresponding to the barcode acquisition image with unqualified data is generated is obtained and marked as the signal abnormality time.

8. The barcode-based automatic recognition method according to claim 2, characterized in that: The following steps are also included: Step 5: Obtain the control factor and the preset speed value, and output the speed control value; feed the obtained speed control value back to the object transmission device, and adjust the current preset transmission speed according to the speed control value.

9. The barcode-based automatic recognition method according to claim 8, characterized in that: The process of obtaining regulatory factors is as follows: Obtain the barcode unqualified reflection ratio and the speed unqualified reflection ratio, perform weighted processing on the barcode unqualified reflection ratio and the speed unqualified reflection ratio to obtain the control factor.

10. The barcode-based automatic recognition method according to claim 9, characterized in that: The method for obtaining the percentage of barcode failure reflection is as follows: The data unqualified rate value of the barcode collection image and the change unqualified rate value of the barcode collection image are averaged to obtain the barcode unqualified reflection ratio; The process of obtaining the data failure rate value of the barcode acquisition image is as follows: Obtaining barcode collection images with unqualified data, counting the number of barcode collection images with unqualified data, calculating the ratio of the number of barcode collection images with unqualified data to the total number of barcode collection images, and obtaining a data unqualified rate value of the barcode collection images; The process of obtaining the change failure rate value of the barcode acquisition image is as follows: Counting the number of barcode acquisition images that fail to change, calculating the ratio of the number of barcode acquisition images that fail to change to the total number of barcode acquisition images, and obtaining a change failure rate value of the barcode acquisition images; The method for obtaining the speed failure reflection ratio is as follows: The ratio of the abnormal speed deviation mean to the real-time moving speed threshold is calculated to obtain the speed failure reflection ratio; The process of obtaining the mean value of abnormal speed deviation is as follows: The difference between the abnormal speed and the real-time moving speed threshold is calculated to obtain the abnormal speed deviation value, and all abnormal speed deviation values ​​within the total duration of the speed abnormality time are added and averaged to obtain the abnormal speed deviation mean.

Citation Information

Patent Citations

  • A scanning device and its scanning method

    CN109598173B

  • Image processing device, image processing method, program, and recording medium

    BR112013013425A2

  • Equipment, process monitoring method and device thereof, electronic equipment and storage medium

    CN115910856A

  • Method and device for identifying bar code, controller and bar code identification terminal

    CN116432677A

  • Industrial DPM bar code self-learning contrast scanning method, system and device and medium

    CN118013990A

Cited By

  • Data tracing method and device of package inspection machine

    CN120430327A

  • A data tracing method and device for a parcel inspection machine

    CN120430327B

  • Intelligent barcode data conversion printing method and system based on image recognition

    CN120863225A