WO2023011155A1 - Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage - Google Patents

Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage Download PDF

Info

Publication number
WO2023011155A1
WO2023011155A1 PCT/CN2022/106288 CN2022106288W WO2023011155A1 WO 2023011155 A1 WO2023011155 A1 WO 2023011155A1 CN 2022106288 W CN2022106288 W CN 2022106288W WO 2023011155 A1 WO2023011155 A1 WO 2023011155A1
Authority
WO
WIPO (PCT)
Prior art keywords
neural network
network model
sequence
target
sample
Prior art date
Application number
PCT/CN2022/106288
Other languages
English (en)
Chinese (zh)
Inventor
姚恒志
苏步升
杨泽同
赵泽林
刘枢
吕江波
沈小勇
Original Assignee
深圳思谋信息科技有限公司
上海思谋科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳思谋信息科技有限公司, 上海思谋科技有限公司 filed Critical 深圳思谋信息科技有限公司
Publication of WO2023011155A1 publication Critical patent/WO2023011155A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent

Definitions

  • the present application relates to the technical field of image processing, in particular to a barcode recognition method, device, computer equipment and storage medium.
  • a barcode image restoration method, device, computer equipment and storage medium are provided.
  • the application provides a barcode recognition method, including:
  • the target prediction sequence is identified according to the encoding rule matched with the coding system identifier and the encoding information, and an identification result is obtained.
  • the present application also provides a barcode recognition device, including:
  • the sequence output module is used to input the barcode image into the pre-built target neural network model to obtain the predicted sequence output by the target neural network model; wherein the predicted sequence carries a code system identification;
  • a sequence decoding module configured to decode the predicted sequence to obtain a target predicted sequence containing coding information
  • a sequence identification module configured to identify the target predicted sequence according to the coding rule matched with the coding system identifier and the coding information, and obtain a recognition result.
  • the present application also provides a computer device, including a memory and a processor, the memory stores computer-readable instructions, and the processor implements the following steps when executing the computer-readable instructions:
  • the target prediction sequence is identified according to the encoding rule matched with the coding system identifier and the encoding information, and an identification result is obtained.
  • the present application also provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the following steps are implemented:
  • the target prediction sequence is identified according to the encoding rule matched with the coding system identifier and the encoding information, and an identification result is obtained.
  • the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
  • the target prediction sequence is identified to obtain the identification result.
  • Fig. 1 is an application environment diagram of a barcode recognition method in an embodiment.
  • Fig. 2 is a schematic flowchart of a barcode recognition method in an embodiment.
  • Fig. 3 is a schematic flowchart of the steps of obtaining a target prediction sequence including encoding information in an embodiment.
  • Fig. 4 is a schematic flowchart of the step of identifying the target prediction sequence in an embodiment.
  • Fig. 5 is a schematic flowchart of the steps of training the initial neural network model in one embodiment.
  • Fig. 6 is a structural block diagram of a barcode recognition device in an embodiment.
  • Figure 7 is an internal block diagram of a computer device in one embodiment.
  • the barcode recognition method provided by this application can be independently applied to the terminal device deployed with the target neural network model; specifically, the terminal device captures a barcode image containing barcode information; the terminal device inputs the barcode image into the pre-deployed terminal device
  • the target neural network model obtains the prediction sequence output by the target neural network model; the prediction sequence carries a code system identification; the terminal device decodes the prediction sequence to obtain the target prediction sequence containing coding information; the terminal device matches the code system identification
  • the coding rules and coding information are used to identify the target prediction sequence and obtain the recognition result.
  • the barcode recognition method provided in this application can also be applied to the application environment shown in FIG. 1 .
  • the terminal 11 communicates with the server 12 through the network.
  • the terminal 11 sends the barcode image to the server 12, and the server 12 inputs the received barcode image into the pre-built target neural network model to obtain the predicted sequence output by the target neural network model;
  • the predicted sequence carries a code system identification;
  • the server 12 pairs the predicted sequence Perform decoding processing to obtain the target prediction sequence including coding information;
  • the server 12 identifies the target prediction sequence according to the coding rules and coding information matching the code system identifier, and obtains the recognition result;
  • the server 12 returns the recognition result to the terminal 11.
  • the terminal 11 can be, but not limited to, various code scanning devices, personal computers, notebook computers, smart phones, tablet computers and portable wearable devices
  • the server 12 can be realized by an independent server or a server cluster composed of multiple servers .
  • a barcode recognition method is provided, and the method is applied to the server 12 in FIG. 1 as an example for illustration, including the following steps:
  • Step 21 inputting the barcode image into the pre-built target neural network model to obtain a predicted sequence output by the target neural network model; wherein the predicted sequence carries a code system identifier.
  • the barcode image refers to the image containing the barcode information
  • the target neural network model refers to the pre-trained neural network model that can identify the barcode information in the barcode image and output the corresponding results
  • the prediction sequence refers to the target neural network model. The result of the sequence output after the model recognizes the barcode image
  • the code system identification refers to the code system corresponding to the barcode information in the barcode image recognized by the target neural network model, that is, the code system predicted by the neural network meets the coding requirements of the barcode image.
  • the server inputs the barcode image into the pre-built target neural network model; the target neural network model extracts image features corresponding to the barcode image according to information such as weight parameters determined in the pre-training process, performs convolution operations on the features, pools Output the final prediction result as the prediction sequence.
  • the code system identification can be determined by the number of activations of corresponding neurons in the target neural network model.
  • Step 22 decoding the prediction sequence to obtain a target prediction sequence including coding information.
  • the server performs an Argmax operation on the predicted sequence, and obtains the decoded sequence by extracting the Top-N maximum position at position i of each sequence;
  • the decoding process can be performed by various algorithms such as greedy search, beam search, and prefix beam search, which can be determined according to actual needs.
  • the placeholders in the sequence are further removed to obtain the target prediction sequence containing coding information; for example, CODO128 specifies No. 106 as a placeholder, then 106 needs to be removed from the above sequence, and the transformed sequence becomes into [1,2,2,7,5,3]; so far, the target prediction sequence including the start symbol, content, check digit, and terminator as coding information is obtained.
  • Step 23 according to the encoding rules and encoding information matched with the code system identifier, identify the target prediction sequence, and obtain the identification result.
  • the server determines the encoding rule corresponding to the target prediction sequence according to the coding system identifier; identifies the start symbol, check digit, terminator and content in the target prediction sequence according to the coding information, and analyzes the target prediction sequence; for example, the coding rule is CODE128
  • the target prediction sequence is [104, 35, 19, 99, 91, 24, 56, 78, 89, 106]
  • the server further determines that the target prediction sequence is the CODE128-B sub-coding rule through the start character 104, then according to the CODE128-B sub-coding rule
  • the coding rules further analyze the target prediction sequence to obtain the analysis result.
  • the analysis result can be output as the recognition result after passing the verification.
  • the above-mentioned barcode recognition method includes: inputting the barcode image into a pre-built target neural network model to obtain a predicted sequence output by the target neural network model; the predicted sequence carries a code system identification; decoding the predicted sequence to obtain a The target prediction sequence: according to the coding rules and coding information matched with the code system identifier, the target prediction sequence is identified, and the recognition result is obtained.
  • This application recognizes the barcode image through the pre-built target neural network model, and outputs the predicted sequence and the corresponding code system identification; after decoding the predicted sequence, the target predicted sequence with coding information is obtained; finally, the coded information and code system are used Identify the corresponding coding rules, identify the target prediction sequence to obtain the recognition result, and realize the recognition of barcode images of any code system; without manual switching and adjustment according to the code system of the barcode image, the barcode image can be directly recognized, improving Improve the efficiency of barcode recognition.
  • step 21, inputting the barcode image into the pre-built target neural network model to obtain the predicted sequence output by the target neural network model includes: if the size of the barcode image is not equal to the preset size, adjusting the barcode image to the preset size After setting the size, input the pre-built target neural network model to obtain the predicted sequence output by the target neural network model.
  • the preset size can be set according to the size of the sample barcode image when the target neural network model is trained.
  • the input barcode image is consistent with the sample barcode image, so that the target neural network model can predict and recognize the barcode image on a consistent basis, improving the efficiency and accuracy of the target neural network model in recognizing barcode images.
  • the above step 22 is to decode the predicted sequence to obtain the target predicted sequence containing coding information, including:
  • Step 31 obtaining position information corresponding to at least one maximum value in the prediction sequence, and generating a decoding sequence according to the position information;
  • Step 32 after removing duplicate items and preset placeholders in the decoding sequence, a target prediction sequence including coding information is obtained.
  • the preset placeholder is set according to the CTC algorithm used to construct the loss function in the target neural network model, so the preset placeholder needs to be deleted after decoding.
  • argmax is a function, which is a function for finding parameters (sets) of a function; that is, argmax(f(x)) is the variable point x (or set of x) corresponding to the maximum value of f(x).
  • the decoding sequence can be obtained through the beam search algorithm; beam search (Beam Search) is a heuristic graph search algorithm, which can affect the algorithm delay and final effect through the preset empirical parameter K (the empirical parameter K can be used according to the actual scene and experience to set).
  • Beam Search is a heuristic graph search algorithm, which can affect the algorithm delay and final effect through the preset empirical parameter K (the empirical parameter K can be used according to the actual scene and experience to set).
  • the decoded sequence can also be processed in a naive decoding manner, that is, the first line in the decoded sequence is directly obtained as the decoded decoded sequence, that is, the sequence corresponding to the position of the Top-1 maximum value.
  • the predicted sequence output by the model can be gradually adjusted to the target predicted sequence close to the barcode encoding format by generating the decoded sequence by position, obtaining the decoded decoded sequence, and removing duplicates in the decoded decoded sequence, improving the The efficiency of barcode recognition.
  • the above-mentioned step 23 identifies the target prediction sequence, and obtains the identification result, including:
  • Step 41 Analyze the target prediction sequence according to the encoding rules and encoding information matched with the code system identifier, and obtain the analysis result;
  • Step 42 constructing a subsequence of the target prediction sequence according to the parsing result
  • Step 43 verifying the subsequence of the target prediction sequence according to the encoding rule, and determining the recognition result according to the verification result.
  • the process of identifying the target prediction sequence mainly includes parsing and verification; if the result of the parsing is in the state of passing the verification, it can be confirmed that the target prediction sequence has been identified; otherwise, if the result of the parsing is in the state of failing the verification, it can be confirmed that The target prediction sequence has not been identified.
  • the process of parsing needs to determine the specific parsing method through coding rules, which are used to identify different components in the sequence.
  • the encoding rules can also verify the analysis results, and according to the verification results, it can be judged whether the analysis results can be used as credible identification results. For example, when a terminator appears when parsing to the end of the sequence, a new sequence is constructed according to the elements before the terminator as a subsequence of the target prediction sequence, and the subsequence is verified.
  • the verification of the target predicted sequence and the analysis result is realized by constructing a corresponding subsequence through the analysis result, which improves the efficiency and accuracy of barcode recognition.
  • the above step 21, before inputting the barcode image into the pre-built target neural network model to obtain the predicted sequence output by the target neural network model further includes:
  • Step 51 acquiring sample barcode images and corresponding sample coding information
  • Step 52 inputting the sample barcode image into the initial neural network model to obtain the prediction result of the sample barcode image at a preset height
  • Step 53 Train the initial neural network model according to the prediction result and sample encoding information to obtain the target neural network model.
  • the sample barcode image refers to an image that contains clear barcode information and is used for training the model;
  • the sample encoding information refers to encoding information corresponding to the sample barcode image one-to-one.
  • the corresponding sample code information can be obtained from the sample barcode image, and the corresponding sample barcode image can also be obtained according to the sample code information.
  • sample barcode images If you have obtained sample barcode images and need to obtain their corresponding sample code information, you can use the existing decoding software to directly identify the sample barcode images on the basis of knowing the code rules used by the sample barcode images to obtain the corresponding sample code information .
  • the height of the output can be fixed by the maximum pooling layer in the initial neural network model; for example, in the case of h-height sample barcode image input, the initial neural network model output height is recorded as h_model. If the value of h_model is not 1, the output can be max-pooled through the maximum pooling layer with height h_model, width 1, step size 1, and padding 0, so that the initial neural network model output is a height of 1
  • the two-dimensional matrix of is used as the prediction result of the sample barcode image.
  • the prediction result of the sample barcode image can also be controlled at a preset height by means of specific parameters such as pooling, convolution, resize (size adjustment function), interpolation, and the like.
  • the initial neural network model including the maximum pooling layer keeps the prediction result of the output sample barcode image uniform in size, which improves the training efficiency of the initial neural network model and the prediction accuracy of the target neural network model.
  • the above step 51, acquiring the sample barcode image and the corresponding sample coding information includes: randomly generating a plurality of original coding information according to different coding rules; generating the original coded image according to the corresponding coding rules from the original coding information; The original coded image is used as a sample barcode image, and the original coded information is used as corresponding sample coded information.
  • the initial neural network model needs to use the information pair composed of the sample code information and the sample barcode image in the training process, so one of the sample barcode image and the sample code information can be obtained, and the other can be generated through related technologies.
  • information to complete the accumulation of training data in addition to using the randomly generated original coding information to generate the corresponding sample barcode image, the sample barcode image can also be decoded according to the sample barcode image that has been obtained to obtain the corresponding original coding information as a sample Encoding information, that is, an information pair of sample barcode image-sample coding information is obtained.
  • corresponding sample barcode images are generated from a plurality of randomly generated original coding information, and the accumulation of sample barcode images and sample coding information is realized; the accumulation of samples can improve the effect of initial neural network model training.
  • the above step 53 is to train the initial neural network model according to the prediction result and sample encoding information to obtain the target neural network model, including: constructing a loss function based on the degree of difference between the prediction result and the sample encoding information; The initial neural network model is trained according to the loss function until the trained initial neural network model meets the preset training conditions, and the trained initial neural network model is used as the target neural network model.
  • the loss function can be constructed using the CTC (Connectionist temporal classification, a temporal classification algorithm) algorithm; the loss function value is obtained by calculating the difference between the prediction results and the sample encoding information through the CTC loss function, and the loss function value is reversed according to the loss function value. Propagate to the initial neural network model, and adjust each weight parameter; until the initial neural network model meets the preset training conditions, such as training for a certain number of times, or the loss function value is lower than a preset threshold, etc.
  • CTC Connectionist temporal classification, a temporal classification algorithm
  • the process of model training is continuously carried out towards reducing the degree of difference between prediction results and sample coding information, thereby improving the effect of initial neural network model training.
  • the sample barcode image before inputting the sample barcode image into the initial neural network model to obtain the prediction result of the sample barcode image at a preset height, it also includes: performing data enhancement processing on the sample barcode image, and adjusting the height of the sample barcode image to the preset height to obtain the processed sample barcode image;
  • Input the sample barcode image into the initial neural network model to obtain the prediction result of the sample barcode image at the preset height including: input the processed sample barcode image into the initial neural network model to obtain the prediction result of the sample barcode image at the preset height .
  • yet another barcode identification method including:
  • sample barcode image and sample coding information the coding rules that the sample barcode image and sample coding information can follow are EAN series, CODE code series, UPC code series, and ITF code series, and the sample coding information usually includes the start symbol, content, check digit and terminator.
  • the initial neural network model standardize all sample barcode images to a uniform height h. Perform data enhancement processing on all sample barcode images, including: blurring, adjusting image brightness, cropping images, adding noise, etc. The purpose is to reduce the quality of relatively regular images; obtain the changed sample barcode image. Select a neural network model, and calculate the output height value h_model of the model in the case of h-height image input; if the value of h_model is not 1, then pass the model output through a layer with a height of h_model and a width of 1 and a step size of 1, padding (fill Recharge) is the MaxPooling (maximum pooling) layer of 0.
  • the number of output channels C is the total number of codes that may appear in the barcode. For example, for Code128, the output dimension is 106+1, where +1 is required by the placeholder "Blank" designed in the CTC algorithm.
  • Decode the predicted sequence perform Argmax operation on the predicted sequence, extract the Top_N maximum value position at each position i, and obtain the sequence T.
  • Naive decoding method take out the first row of the sequence T, which is the position of the maximum value of Top 1 in the predicted sequence.
  • BeamSearch decoding method Select the empirical parameter K (K affects the algorithm delay and final effect; usually weighed according to the actual scene). Taking K as the optimal K sequence for alternative decoding, the sequence T is searched by BeamSearch.
  • the target prediction sequence includes original coding information such as start character, content, check digit, and terminator.
  • the encoding rules and encoding information identify the target prediction sequence and obtain the recognition result: use the encoding rule to decode the target prediction sequence; ,89,106] as an example, according to the start character 104, it is judged that the code is a CODE128-B sub-standard, and the subsequent value is analyzed through the CODE128-B sub-standard, and when the end character 106 appears at the end, it is backward 1 bit from the terminator, Construct a subsequence, and pass the subsequence through the CODE128 verification method, that is, verify [104, 35, 19, 99, 91, 24, 56, 78, 89]. If it passes the verification, the target prediction sequence is considered valid. Complete barcode recognition.
  • the above barcode recognition method recognizes the barcode image through the pre-built target neural network model, and outputs the predicted sequence and the corresponding code system identification; after decoding the predicted sequence, the target predicted sequence with coding information is obtained; finally, using the coding information And the coding rules corresponding to the code system logo, identify the target prediction sequence to get the recognition result, and realize the recognition of barcode images of any code system; without manual switching and adjustment according to the code system of the barcode image in advance, the barcode image can be directly processed Recognition, improve the efficiency of barcode recognition.
  • a barcode recognition device including:
  • the sequence output module 61 is used to input the barcode image into the pre-built target neural network model to obtain the predicted sequence output by the target neural network model; wherein the predicted sequence carries a code system identification;
  • a sequence decoding module 62 configured to decode the predicted sequence to obtain a target predicted sequence containing coding information
  • the sequence identification module 63 is configured to identify the target predicted sequence according to the coding rules and coding information matched with the coding system identifier, and obtain the recognition result.
  • the sequence output module 61 is also used to adjust the barcode image to the preset size and then input the pre-built target neural network model to obtain the target neural network model output if the size of the barcode image is not equal to the preset size. Prediction sequence.
  • the sequence decoding module 62 is further configured to obtain position information corresponding to at least one maximum value in the predicted sequence, and generate a decoding sequence according to the position information; after removing duplicates and preset placeholders in the decoding sequence, Obtain the target prediction sequence containing the coding information.
  • the sequence identification module 63 is further configured to analyze the target prediction sequence according to the coding rules and coding information matched with the code system identifier to obtain the analysis result; according to the analysis result, construct a subsequence of the target prediction sequence; The subsequence of the target prediction sequence is verified according to the coding rules, and the recognition result is determined according to the verification result.
  • the barcode recognition device also includes a model training module, which is used to obtain sample barcode images and corresponding sample coding information; input the sample barcode images into the initial neural network model to obtain the prediction results of the sample barcode images at a preset height ; Train the initial neural network model according to the prediction result and sample encoding information to obtain the target neural network model.
  • a model training module which is used to obtain sample barcode images and corresponding sample coding information; input the sample barcode images into the initial neural network model to obtain the prediction results of the sample barcode images at a preset height ; Train the initial neural network model according to the prediction result and sample encoding information to obtain the target neural network model.
  • the model training module is also used to randomly generate a plurality of original encoding information according to different encoding rules; generate the original encoding image according to the corresponding encoding rules; use the original encoding image as a sample barcode image, and convert the original The encoding information serves as the corresponding sample encoding information.
  • the model training module is also used to construct a loss function based on the difference between the prediction results and the sample encoding information; train the initial neural network model according to the loss function until the trained initial neural network model meets the preset When training conditions, the trained initial neural network model is used as the target neural network model.
  • the model training module is also used to perform data enhancement processing on the sample barcode image, and adjust the height of the sample barcode image to a preset height to obtain the processed sample barcode image; the processed sample barcode image Input the initial neural network model to obtain the prediction result of the sample barcode image at the preset height.
  • the symbolic identity is determined by the number of activations of corresponding neurons in the target neural network model.
  • Each module in the above-mentioned barcode recognition device can be fully or partially realized by software, hardware and a combination thereof.
  • the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 7 .
  • the computer device includes a processor, memory and a network interface connected by a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions and a database.
  • the internal memory provides an environment for the execution of the operating system and computer readable instructions in the non-volatile storage medium.
  • the database of the computer device is used to store barcode identification data.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer-readable instructions are executed by the processor, a barcode recognition method is realized.
  • FIG. 7 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied.
  • the specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • a computer device including a memory and a processor, where computer-readable instructions are stored in the memory, and the processor implements the following steps when executing the computer-readable instructions:
  • the target prediction sequence is identified to obtain the identification result.
  • the following steps are also implemented when the processor executes the computer-readable instructions: if the size of the barcode image is not equal to the preset size, then adjust the barcode image to the preset size and input the pre-built target neural network model to obtain the target The sequence of predictions output by the neural network model.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: obtaining the position information corresponding to at least one maximum value in the prediction sequence, generating a decoding sequence according to the position information; eliminating duplicates and presets in the decoding sequence After the placeholder, the target prediction sequence containing the coding information is obtained.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: according to the encoding rules and encoding information matched with the code system identifier, the target prediction sequence is analyzed to obtain the analysis result; according to the analysis result, the target prediction sequence is constructed The subsequence of the sequence; the subsequence of the target prediction sequence is verified according to the coding rules, and the recognition result is determined according to the verification result.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: acquiring the sample barcode image and corresponding sample coding information; inputting the sample barcode image into the initial neural network model to obtain the sample barcode image at a preset height Prediction results: train the initial neural network model according to the prediction results and sample encoding information to obtain the target neural network model.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: randomly generating a plurality of original encoding information according to different encoding rules; generating an original encoded image from the original encoding information according to corresponding encoding rules; using the original encoded image as The sample barcode image uses the original coded information as the corresponding sample coded information.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: constructing a loss function based on the prediction results and the degree of difference between the coded information of the samples; training the initial neural network model according to the loss function until the initial neural network model after training When the neural network model meets the preset training conditions, the trained initial neural network model is used as the target neural network model.
  • the processor when the processor executes the computer-readable instructions, the following steps are also implemented: performing data enhancement processing on the sample barcode image, and adjusting the height of the sample barcode image to a preset height to obtain the processed sample barcode image;
  • the processed sample barcode image is input to the initial neural network model to obtain the prediction result of the sample barcode image at a preset height.
  • the processor when the processor executes the computer-readable instructions, the following steps are further implemented: determining the code system identification by the number of times corresponding neurons in the target neural network model are activated.
  • a computer-readable storage medium on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the following steps are implemented:
  • the target prediction sequence is identified to obtain the identification result.
  • the following steps are also implemented: if the size of the barcode image is not equal to the preset size, then adjust the barcode image to the preset size and input the pre-built target neural network model to obtain The sequence of predictions output by the target neural network model.
  • the following steps are further implemented: obtaining the position information corresponding to at least one maximum value in the prediction sequence, generating a decoding sequence according to the position information; eliminating duplicates and predictions in the decoding sequence After the placeholder is set, the target prediction sequence containing the coding information is obtained.
  • the following steps are further implemented: analyzing the target prediction sequence according to the encoding rules and encoding information matched with the code system identifier to obtain the analysis result; according to the analysis result, constructing the target The subsequence of the predicted sequence; the subsequence of the target predicted sequence is verified according to the coding rules, and the recognition result is determined according to the verification result.
  • the following steps are also implemented: obtaining the sample barcode image and corresponding sample coding information; inputting the sample barcode image into the initial neural network model to obtain the sample barcode image at a preset height The prediction results; according to the prediction results and sample coding information, the initial neural network model is trained to obtain the target neural network model.
  • the following steps are further implemented: randomly generating a plurality of original encoding information according to different encoding rules; generating the original encoding image from the original encoding information according to the corresponding encoding rule; converting the original encoding image As a sample barcode image, the original coding information is used as corresponding sample coding information.
  • the following steps are also implemented: constructing a loss function based on the prediction result and the degree of difference between the coded information of the samples; training the initial neural network model according to the loss function until the trained When the initial neural network model meets the preset training conditions, the trained initial neural network model is used as the target neural network model.
  • the following steps are further implemented: performing data enhancement processing on the sample barcode image, and adjusting the height of the sample barcode image to a preset height to obtain the processed sample barcode image;
  • the processed sample barcode image is input into the initial neural network model to obtain the prediction result of the sample barcode image at a preset height.
  • the following step is further implemented: determining the code system identification by the number of activation times of corresponding neurons in the target neural network model.
  • Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc.
  • Volatile memory can include Random Access Memory (RAM) or external cache memory.
  • RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Electromagnetism (AREA)
  • Toxicology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage, le procédé consistant : à entrer une image de code à barres dans un modèle de réseau neuronal cible pré-construit pour obtenir une séquence prédite portant un identifiant de système de code (21) ; à décoder la séquence prédite pour obtenir une séquence de prédiction cible comprenant des informations de codage (22) ; et à identifier la séquence de prédiction cible selon des règles de codage et des informations de codage correspondant à l'identifiant de système de code de façon à obtenir un résultat d'identification (23).
PCT/CN2022/106288 2021-08-02 2022-07-18 Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage WO2023011155A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110881245.XA CN113627207B (zh) 2021-08-02 2021-08-02 条码识别方法、装置、计算机设备和存储介质
CN202110881245.X 2021-08-02

Publications (1)

Publication Number Publication Date
WO2023011155A1 true WO2023011155A1 (fr) 2023-02-09

Family

ID=78382272

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106288 WO2023011155A1 (fr) 2021-08-02 2022-07-18 Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage

Country Status (2)

Country Link
CN (1) CN113627207B (fr)
WO (1) WO2023011155A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118171673A (zh) * 2024-05-14 2024-06-11 杭州海康威视数字技术股份有限公司 一种正位识别方法、装置、电子设备及摆正系统
CN118278955A (zh) * 2024-05-29 2024-07-02 建筑材料工业信息中心 一种基于标识解析技术的建材产品追溯方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627207B (zh) * 2021-08-02 2024-03-22 深圳思谋信息科技有限公司 条码识别方法、装置、计算机设备和存储介质
CN114022558B (zh) * 2022-01-05 2022-08-26 深圳思谋信息科技有限公司 图像定位方法、装置、计算机设备和存储介质
CN115578464A (zh) * 2022-12-07 2023-01-06 深圳思谋信息科技有限公司 条码识别方法、装置、计算机设备及可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809094A (zh) * 2014-12-31 2016-07-27 研祥智能科技股份有限公司 基于机器视觉的条形码识别方法
CN109241806A (zh) * 2018-08-10 2019-01-18 北京龙贝世纪科技股份有限公司 一种多码同时识别方法及识别系统
CN110532825A (zh) * 2019-08-21 2019-12-03 厦门壹普智慧科技有限公司 一种基于人工智能目标检测的条码识别装置与方法
WO2020034850A1 (fr) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Procédé d'identification pour code d'identification, dispositif, appareil informatique et support d'informations
CN111144161A (zh) * 2020-04-03 2020-05-12 支付宝(杭州)信息技术有限公司 条形码的识别方法及装置、商品信息确定方法及支付方法
CN113627207A (zh) * 2021-08-02 2021-11-09 深圳思谋信息科技有限公司 条码识别方法、装置、计算机设备和存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2665273C2 (ru) * 2016-06-03 2018-08-28 Автономная некоммерческая образовательная организация высшего образования "Сколковский институт науки и технологий" Обучаемые визуальные маркеры и способ их продуцирования
CN108416412B (zh) * 2018-01-23 2021-04-06 浙江瀚镪自动化设备股份有限公司 一种基于多任务深度学习的物流复合码识别方法
US11334731B2 (en) * 2018-04-24 2022-05-17 University of Pittsburgh—of the Commonwealth System of Higher Education System and method of decoding a barcode using machine learning
CN110427793B (zh) * 2019-08-01 2022-04-26 厦门商集网络科技有限责任公司 一种基于深度学习的条码检测方法及其系统
CN111783495B (zh) * 2020-06-30 2023-07-14 创新奇智(南京)科技有限公司 一种条形码识别方法、装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105809094A (zh) * 2014-12-31 2016-07-27 研祥智能科技股份有限公司 基于机器视觉的条形码识别方法
CN109241806A (zh) * 2018-08-10 2019-01-18 北京龙贝世纪科技股份有限公司 一种多码同时识别方法及识别系统
WO2020034850A1 (fr) * 2018-08-16 2020-02-20 腾讯科技(深圳)有限公司 Procédé d'identification pour code d'identification, dispositif, appareil informatique et support d'informations
CN110532825A (zh) * 2019-08-21 2019-12-03 厦门壹普智慧科技有限公司 一种基于人工智能目标检测的条码识别装置与方法
CN111144161A (zh) * 2020-04-03 2020-05-12 支付宝(杭州)信息技术有限公司 条形码的识别方法及装置、商品信息确定方法及支付方法
CN113627207A (zh) * 2021-08-02 2021-11-09 深圳思谋信息科技有限公司 条码识别方法、装置、计算机设备和存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118171673A (zh) * 2024-05-14 2024-06-11 杭州海康威视数字技术股份有限公司 一种正位识别方法、装置、电子设备及摆正系统
CN118278955A (zh) * 2024-05-29 2024-07-02 建筑材料工业信息中心 一种基于标识解析技术的建材产品追溯方法

Also Published As

Publication number Publication date
CN113627207A (zh) 2021-11-09
CN113627207B (zh) 2024-03-22

Similar Documents

Publication Publication Date Title
WO2023011155A1 (fr) Procédé et appareil d'identification de code à barres, dispositif informatique et support de stockage
CN110162669B (zh) 视频分类处理方法、装置、计算机设备及存储介质
Song et al. Unified binary generative adversarial network for image retrieval and compression
CN110288980A (zh) 语音识别方法、模型的训练方法、装置、设备及存储介质
CN105718502B (zh) 用于高效特征匹配的方法和设备
US20190311259A1 (en) Content-Specific Neural Network Distribution
Duan et al. Compact descriptors for visual search
CN113254654B (zh) 模型训练、文本识别方法、装置、设备和介质
CN111767697B (zh) 文本处理方法、装置、计算机设备以及存储介质
Baroffio et al. Coding local and global binary visual features extracted from video sequences
KR20230046946A (ko) 타겟 화자를 식별하는 전자 장치 및 이의 동작 방법
CN116434741A (zh) 语音识别模型训练方法、装置、计算机设备及存储介质
CN114332500A (zh) 图像处理模型训练方法、装置、计算机设备和存储介质
CN116364061A (zh) 多场景语音识别方法、装置、计算机设备及存储介质
CN114328898A (zh) 文本摘要生成方法及其装置、设备、介质、产品
CN114207676A (zh) 手写体识别方法、装置、电子设备及存储介质
CN114973229A (zh) 文本识别模型训练、文本识别方法、装置、设备及介质
CN113220874B (zh) 一种多标签文本分类方法及系统
CN113254575B (zh) 一种基于多步证据推理的机器阅读理解方法与系统
CN112837673B (zh) 基于人工智能的语音合成方法、装置、计算机设备和介质
CN115797949A (zh) 优化场景文本识别系统及方法
CN112749539B (zh) 文本匹配方法、装置、计算机可读存储介质和计算机设备
CN111143619B (zh) 视频指纹生成方法、检索方法、电子设备及介质
CN116798044A (zh) 文本识别方法、装置,以及电子设备
CN112559750B (zh) 文本数据的分类方法、装置、非易失性存储介质、处理器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22851869

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22851869

Country of ref document: EP

Kind code of ref document: A1