Batch two-dimensional code identification method and related equipment

By preset array cutting of image data of the combined encoder circuit board, multiple target image areas are acquired, batch decoding of multiple QR codes is realized, and the problem of insufficient batch recognition efficiency and accuracy in the prior art is solved, and the recognition speed and accuracy are significantly improved.

CN119514575APending Publication Date: 2025-02-25临海市新睿电子科技股份有限公司

Patent Information

Application Number
CN202411685868.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-23
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, when facing multiple combined encoder circuit boards with QR codes attached, it is difficult to achieve efficient and accurate batch identification, especially in the case of processing large amounts of data and high accuracy requirements, the identification efficiency and accuracy are insufficient.

Method used

By obtaining the current image data of the combined encoder circuit board and preset array cutting of the image data, multiple target image areas are obtained, thereby realizing batch decoding of multiple QR codes. This method uses preset array position cutting technology to quickly locate and extract the QR code on each encoder chip to simplify the decoding process.

Benefits of technology

It realizes efficient identification of multiple QR codes, improves recognition speed and accuracy, reduces processing time, and improves overall identification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119514575A_ABST
    Figure CN119514575A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of two-dimensional code recognition, in particular to a batch two-dimensional code recognition method and related equipment. The method comprises the following steps: acquiring current image data of a combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips attached with two-dimensional codes; preset array cutting is carried out on the current image data, a plurality of target image areas are obtained, and each target image area is in one-to-one correspondence with the encoder chip attached with the two-dimensional code; and decoding the two-dimensional codes in the plurality of target image areas in batches to obtain two-dimensional code identification data. According to the invention, the two-dimensional code recognition efficiency and accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of two-dimensional code recognition, and in particular to a batch two-dimensional code recognition method and related equipment. Background Art

[0002] In modern industrial production and logistics management, QR codes are widely used in many fields such as information tracking, inventory management and parts identification. Especially in the semiconductor manufacturing process, QR code recognition technology can achieve accurate traceability and management of precision components such as encoder chips, improve production efficiency and reduce human errors. With the continuous expansion of production scale, how to quickly and accurately identify QR codes in batches has become one of the key links to improve production line efficiency, which is directly related to the smooth progress of the entire production process and its economic benefits.

[0003] In response to the needs of batch QR code recognition, existing technical means generally include using fixed code readers to scan and identify QR codes one by one or using cameras to obtain images and automatically identify QR codes through image processing software. Fixed code readers usually have a high recognition rate, but when processing multiple QR codes, additional mechanical mechanisms are required to scan them one by one, resulting in a complex overall recognition process and limited efficiency. Image processing software can realize automatic recognition of QR codes through algorithms, but the algorithms used are often complex, resulting in a long decoding time for QR codes, which is not suitable for applications where real-time QR code recognition is required.

[0004] Therefore, the existing technical solutions are often unable to achieve efficient and accurate batch recognition when faced with multiple combined encoder circuit boards with QR codes attached. Especially in situations where large amounts of data and high precision requirements need to be processed, the limitations of the existing technology are more significant. Summary of the invention

[0005] The purpose of this application is to overcome the above-mentioned technical problems and provide a batch QR code recognition method and related equipment.

[0006] In the first aspect, an embodiment of the present application discloses a batch QR code recognition method, which adopts the following scheme: A batch two-dimensional code recognition method comprises: obtaining current image data of a combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips with two-dimensional codes attached thereto; performing a preset array cutting on the current image data to obtain a plurality of target image areas, wherein each of the target image areas corresponds one-to-one to each of the encoder chips with two-dimensional codes attached thereto; and batch decoding the two-dimensional codes in the plurality of target image areas to obtain two-dimensional code recognition data.

[0007] By adopting the above technical solution, the current image data on the combined encoder circuit board can be efficiently acquired, and multiple target image areas can be acquired by cutting at preset array positions, thereby realizing batch decoding of multiple QR codes and improving recognition efficiency and accuracy.

[0008] Optionally, the preset array position is determined by the coordinates of the upper left corner point and the lower right corner point of each target image area; wherein the coordinates of the upper left corner point of the (i, j)th rectangular area in the i-th row and the j-th column are: (x0, y0) = (j*X, i*Y); the coordinates of the lower right corner point are: (x1, y1) = ((j+1)*X, (i+1))*Y); wherein X is the width of each target image area, and Y is the height of each target image area.

[0009] By adopting the above technical solution, the preset array position is determined by the coordinates of the upper left corner point and the lower right corner point of each target image area, thereby realizing rapid positioning of multiple encoder chips with QR codes attached on the combined encoder circuit board, thereby improving the efficiency and accuracy of batch decoding.

[0010] Optionally, it also includes: determining whether the QR code data of the previous frame image is stored in the memory; if so, determining whether the length of the identification data is longer than the length of the QR code data of the previous frame image; if so, overwriting the identification data with the QR code data of the previous frame image; if not, discarding the identification data.

[0011] By adopting the above technical solution, a judgment and update mechanism for the previous frame of image data in the memory is added, which effectively avoids repeated processing of the same image data or image data obtained due to erroneous scanning, and improves the processing efficiency and resource utilization of the system.

[0012] Optionally, it also includes: recording the corresponding two-dimensional code attached to each of the encoder chips; wherein, decoding the two-dimensional codes in the multiple target image areas to obtain identification data of batches of two-dimensional codes includes: decoding the two-dimensional codes in the multiple target image areas to obtain the two-dimensional code identification data corresponding to each of the encoder chips.

[0013] By adopting the above technical solution, the QR code corresponding to each encoder chip is recorded, and the QR codes in multiple target image areas are decoded in batches to obtain the QR code recognition data corresponding to each encoder chip, thereby achieving efficient recognition and management of batch QR codes, and improving the QR code recognition accuracy and work efficiency.

[0014] Optionally, the decoding of the QR codes in the multiple target image areas to obtain identification data of batches of QR codes also includes: detecting the QR code in each of the target image areas based on a CNN detection model; and identifying the QR code in each of the target image areas based on a CNN enhanced recognition model.

[0015] By adopting the above technical solution, the accuracy and efficiency of QR code recognition are improved, especially by using the CNN detection model for QR code detection and the CNN enhanced recognition model for QR code recognition, the recognition ability of complex or fuzzy QR codes is significantly enhanced.

[0016] Optionally, the obtaining of current image data of the combined encoder circuit board further includes: obtaining a frame of image data byte stream of the combined encoder circuit board; and converting the image data byte stream into the current image data in BMP format.

[0017] By adopting the above technical solution, the acquired byte stream of a frame of image data is converted into an image in BMP format. This process can ensure that there is no loss of image quality when the byte stream data is converted into image data, thereby further improving the overall accuracy and speed of QR code recognition.

[0018] Optionally, before decoding the two-dimensional codes in the multiple target image areas to obtain identification data of batches of two-dimensional codes, the method further includes: performing preset image optimization processing on the multiple target image areas.

[0019] By adopting the above technical solution, preset image optimization processing is performed on multiple target image areas, which improves the accuracy and efficiency of two-dimensional code recognition, thereby ensuring that the two-dimensional code recognition data can be obtained more accurately in the subsequent decoding process.

[0020] In a second aspect, an embodiment of the present application discloses a batch QR code recognition system, which adopts the following scheme: A batch two-dimensional code recognition system comprises: a camera module, used for performing image acquisition on a combined encoder circuit board to obtain current image data of the combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips with two-dimensional codes attached thereto; an image processing module, used for performing preset array cutting on the current image data to obtain a plurality of target image areas, wherein each of the target image areas corresponds one-to-one to each of the encoder chips with two-dimensional codes attached thereto; and a two-dimensional code recognition module, used for decoding the two-dimensional codes in the plurality of the target image areas to obtain recognition data of batch two-dimensional codes.

[0021] By adopting the above technical solution, the batch QR code recognition system can efficiently acquire and process the current image data on the combined encoder circuit board. By performing preset array cutting on the image data, the target image area of ​​each encoder chip with a QR code attached can be accurately acquired, thereby improving the accuracy and efficiency of QR code recognition.

[0022] In a third aspect, an embodiment of the present application discloses a batch QR code recognition device, which adopts the following scheme: A batch two-dimensional code recognition device comprises: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of a batch two-dimensional code recognition method as described in any one of the above items when executing the computer program.

[0023] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, which adopts the following scheme: A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of a batch two-dimensional code recognition method as described above.

[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. By acquiring the current image data of the combined encoder circuit board and performing preset array cutting on the current image data, multiple target image areas can be acquired, thereby realizing efficient recognition of the QR codes on multiple encoder chips, thereby improving recognition speed and accuracy; 2. Decode the QR codes in multiple target image areas and obtain the recognition data of batches of QR codes, which reduces the processing time and improves the overall recognition efficiency; 3. Determine whether the QR code data of the previous frame image exists in the memory, and decide whether to update it based on the QR code data of the current image and the length of the QR code data of the previous frame image, thereby avoiding repeated processing of the same data and further improving recognition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of a process of batch QR code recognition method disclosed in one embodiment of the present application; Figure 2 for Figure 1 A specific flow chart of a disclosed batch QR code recognition method; Figure 3 A schematic diagram of segmenting a combined encoder circuit board with multiple QR codes attached thereto; Figure 4 This is a schematic structural diagram of a batch QR code recognition system disclosed in another embodiment of the present application.

[0026] Figure 5 This is a schematic structural diagram of a batch QR code recognition device disclosed in yet another embodiment of the present application. DETAILED DESCRIPTION

[0027] The present application is further described in detail below in conjunction with the accompanying drawings.

[0028] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0029] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0031] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0032] [First embodiment] In this embodiment, the two-dimensional code to be identified is attached to the encoder chip, and the encoder chips are combined into a combined encoder circuit board according to certain specifications, such as a 2×5 array, and are arranged in the positioning board. The application machine uses visual technology to identify all the two-dimensional code information in the positioning board to record the two-dimensional code information corresponding to each encoder chip, so as to facilitate the subsequent rapid burning, testing and writing of two-dimensional codes for batch encoder chips.

[0033] See also Figure 1 ,In the first embodiment of the present application, a batch two-dimensional code recognition method is disclosed, including the following steps: S10, acquiring current image data of the combined encoder circuit board; Among them, a plurality of QR codes are attached to the combined encoder circuit board, each QR code corresponds to each encoder chip one by one, and the current image data corresponds to the combined encoder circuit board with multiple QR codes attached scanned and photographed by the industrial array camera, such as Figure 3 As shown in a.

[0034] In this embodiment, the industrial area array camera is responsible for real-time acquisition at a high frame rate and generation of high-quality frame images. The current image data is image data generated corresponding to the byte stream of a frame of image data of the acquired combined encoder circuit board, and is converted into an image in BMP format during the generation process. This ensures that there will be no image quality loss when the byte stream data is converted into image data.

[0035] Specifically, the industrial area array camera, for example, the MV-CS060-10UC-PRO model, has 6 million pixels and an IMX178 configuration, and can capture color images, thereby capturing high-definition images to facilitate subsequent accurate recognition of the QR code.

[0036] S20, performing preset array cutting on the current image data to obtain multiple target image areas; Among them, each target image area corresponds to each encoder chip with a QR code attached. The preset array cutting is determined by the coordinates of the upper left corner point and the lower right corner point of each target image area; The coordinates of the upper left corner and the lower right corner are determined as follows: The coordinates of the upper left corner point of the (i, j)th target image area in the i-th row (starting from 0) and the j-th column (starting from 0) are: (x0, y0) = (j*X, i*Y); The coordinates of the lower right corner are: (x1, y1) = ((j+1)*X, (i+1)*Y); Where X is the width of each target image region, and Y is the height of each target image region.

[0037] Thus, by obtaining the coordinates of the upper left corner point and the lower right corner point of each target image area, each target image area can be positioned and cut to obtain multiple target image areas with the same width and height (abbreviated as rectangles in the following example).

[0038] For example, Figure 3 As shown in FIG. 2 , a 2×5 array is cut as an example. The corresponding j value range is a positive integer from 0 to 4, and the i value range is a positive integer from 0 to 1. The width of each small area is: X=W / 5, W is the side width of the combined encoder circuit board. The height of each small area is: Y=H / 2, H is the side height of the combined encoder circuit board.

[0039] Rectangle 1: When i is 0 and j is 0, the coordinates of the lower left corner are: (x0, y0) = (0, 0); the coordinates of the lower right corner are: (x1, y1) = (1X, 1Y); Rectangle 2: When i is 0 and j is 1, (x0, y0) = (1X, 0); the coordinates of the lower right corner are: (x1, y1) = (2X, 1Y); Rectangle 3: When i is 0 and j is 2, (x0, y0) = (2X, 0); the coordinates of the lower right corner are: (x1, y1) = (3X, 1Y); Rectangle 4: When i is 0 and j is 3, (x0, y0) = (3X, 0); the coordinates of the lower right corner are: (x1, y1) = (4X, 1Y); Rectangle 5: When i is 0 and j is 4, (x0, y0) = (4X, 0); the coordinates of the lower right corner are: (x1, y1) = (5X, 1Y); Rectangle 6: When i is 1 and j is 0, (x0, y0) = (0, 1Y); the coordinates of the lower right corner are: (x1, y1) = (1X, 2Y); Rectangle 7: When i is 1 and j is 1, (x0, y0) = (1X, 1Y); the coordinates of the lower right corner are: (x1, y1) = (2X, 2Y); Rectangle 8: When i is 1 and j is 2, (x0, y0) = (2X, 1Y); the coordinates of the lower right corner are: (x1, y1) = (3X, 2Y); Rectangle 9: When i is 1 and j is 3, (x0, y0) = (3X, 1Y); the coordinates of the lower right corner are: (x1, y1) = (4X, 2Y); Rectangle 10: When i is 1 and j is 4, (x0, y0) = (4X, 1Y); the coordinates of the lower right corner are: (x1, y1) = (5X, 2Y).

[0040] It is explained here that X and Y are known parameters, for example, both are 1, which is of course not limited and can be preset according to actual conditions.

[0041] Thus, through the above coordinate calculation method, the positions of the 10 target image areas corresponding to the cutouts of the 2×5 array can be accurately obtained.

[0042] S30, decoding the two-dimensional codes in the plurality of target image areas to obtain identification data of the batch of two-dimensional codes.

[0043] like Figure 3 As shown, Figure 2The multiple image areas (corresponding to the target image areas) obtained by segmentation can be used to decode the two-dimensional codes of the multiple image areas in sequence to obtain all the two-dimensional code recognition data in the combined encoder circuit board. In this way, batch decoding of multiple two-dimensional codes in the combined encoder circuit board can be achieved, improving recognition efficiency and accuracy.

[0044] It is explained here that in this embodiment, during step S20, the QR code attached to each encoder chip is recorded, so that in step S30, the QR codes in multiple target image areas are decoded, and the QR code recognition data corresponding to each encoder chip can be obtained more accurately.

[0045] Furthermore, in this embodiment, since the industrial area array camera is a real-time acquisition with a high frame rate, during the acquisition process, if the combined encoder circuit board is not replaced in time, repeated shooting and acquisition of repeated image data may occur, and when the operator replaces the combined encoder circuit board, that is, when the combined encoder circuit board is put in or taken out, the captured image data may be incomplete. Therefore, in order to effectively avoid repeated processing of image data or processing of incomplete image data, such as Figure 2 As shown, this embodiment also includes the following steps: S40, determining whether the QR code data of the previous frame image is stored in the memory; The purpose of this step is to determine whether other two-dimensional code data is pre-stored in the memory.

[0046] S50. If so, determine whether the length of the identification data is longer than the length of the QR code data of the previous frame image; wherein the length of the identification data is the length of the QR code data of the current frame image. If the length of the QR code data of the current frame image is greater than the length of the QR code data of the stored previous frame image, it is considered that the current frame image contains more valid information.

[0047] In addition, if not, it is immediately stored in the memory, providing the prerequisite for the client's quick test.

[0048] S60: If yes, overlay the identification data on the QR code data of the previous frame image; The identification data, that is, the two-dimensional code data of the current frame image, is used to overwrite the two-dimensional code data of the previous frame image in the memory, which can further ensure the integrity and accuracy of the data.

[0049] S70: If not, discard the identification data.

[0050] If not, it means that the length of the QR code data recognized by the current frame image is less than or equal to the length of the QR code of the previous frame, and the system will automatically discard the data of this frame image to avoid incomplete or erroneous QR code data covering the original correct data.

[0051] For example, setting: Lprev: the length of the QR code data of the previous frame (stored in shared memory); Lcurr: the length of the QR code data of the current frame image; Sprev: QR code data of the previous frame image (stored in shared memory); Scurr: current frame image QR code data; Decision logic: When the QR code data of a new frame image is generated, determine whether its data length Lcurr is greater than the length Lprev of the QR code of the previous frame image, and decide whether to overwrite the data in the shared memory based on the comparison result.

[0052] Overlay condition: If Lcurr>Lprev, Scurr covers Sprev; That is, if the two-dimensional code data length Lcurr of the current frame image is greater than the data length Lprev of the previous frame, the data Scurr of the current frame will overwrite the data Sprev of the previous frame in the shared memory.

[0053] Discarding condition: If Lcurr≤Lprev, Scurr is discarded, that is, if the QR code data length Lcurr of the current frame is less than or equal to the data length Lprev of the previous frame, the data Scurr of the current frame is discarded, and the previous frame data in the shared memory remains unchanged.

[0054] Summarize: Furthermore, in order to accurately detect and identify the QR code in each target image area, in this embodiment, the QR code in each target image area is detected based on a CNN (Convolutional Neural Networks) detection model, and the QR code in each target image area is identified based on a CNN enhanced recognition model, so that the system's recognition ability for complex or fuzzy QR codes can be significantly enhanced. It is noted that there is no limitation on the detection model and the enhanced recognition model, as long as the same functional effect can be achieved.

[0055] Furthermore, in order to improve the accuracy and efficiency of two-dimensional code recognition and ensure that the two-dimensional code recognition data can be obtained more accurately in the subsequent decoding process, in this embodiment, before step S30, it also includes: S21, performing preset image optimization processing on multiple target image areas.

[0056] Among them, the preset image optimization includes grayscale processing and binarization processing of the image to improve the QR code recognition rate.

[0057] In addition, it is worth mentioning that, in this embodiment, it also includes: The QR code data sharing and synchronization between the server and the client are realized through the shared memory area (a shared memory module is set up accordingly); and the data in the memory area is obtained and cleared to perform program burning, program testing and QR code writing steps on the combined encoder (a burning test module is set up accordingly) to realize the whole process of batch recognition of QR codes.

[0058] In summary, a batch two-dimensional code recognition method disclosed in the first embodiment of the present invention significantly improves the speed and accuracy of two-dimensional code recognition by efficiently batch decoding multiple two-dimensional codes on a combined encoder circuit board; adopts a preset array position cutting method to quickly locate and extract the two-dimensional code on each encoder chip, thereby simplifying the decoding process; enhances the effect of two-dimensional code recognition by optimizing the current image data; and through the judgment and update mechanism of the two-dimensional code data length of the previous frame image in the memory, effectively avoids repeated processing of the same image data or image data obtained by erroneous scanning, thereby improving the processing efficiency and resource utilization of the system.

[0059] [Second embodiment] See also Figure 4 In the second embodiment of the present application, a batch two-dimensional code recognition system is disclosed, which includes: a camera module 110, an image processing module 120 and a two-dimensional code recognition module 130.

[0060] Among them, the camera module 110 is used to capture images of the combined encoder circuit board to obtain current image data of the combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips with QR codes attached thereto; the image processing module 120 is used to perform a preset array cutting on the current image data to obtain a plurality of target image areas, wherein each of the target image areas corresponds one-to-one to each of the encoder chips with QR codes attached thereto; the QR code recognition module 130 is used to decode the QR codes in the plurality of target image areas to obtain recognition data of batch QR codes.

[0061] It should be noted that the batch QR code recognition method implemented by the batch QR code recognition system disclosed in the second embodiment of the present application is the same as the first embodiment, so it will not be described in detail here. Optionally, each module in this embodiment and the above other operations or functions are respectively for implementing the methods in the above embodiments.

[0062] [Third embodiment] See also Figure 5In the third embodiment of the present application, a batch two-dimensional code recognition device is disclosed, and the device includes: a memory 210 and a processor 220, the memory 210 is used to store a computer program; the processor 220 is used to implement the steps of a batch two-dimensional code recognition method described in the first embodiment when executing the computer program, and the details can be referred to above, so it will not be described in detail here. The technical effect of a batch two-dimensional code recognition device provided by this embodiment in actual application is the same as the technical effect of a batch two-dimensional code recognition method in the first embodiment.

[0063] [Fourth embodiment] In the fourth embodiment of the present application, a computer-readable storage medium is disclosed. The computer-readable storage medium is, for example, a non-volatile memory, such as: a magnetic medium (such as a hard disk, a floppy disk, and a magnetic tape), an optical medium (such as a CDROM disk and a DVD), a magneto-optical medium (such as an optical disk), and a hardware device specially constructed to store and execute computer-executable instructions (such as a read-only memory (ROM), a random access memory (RAM), a flash memory, etc.). A computer program is stored on the computer-readable storage medium. The computer-readable storage medium can be executed by one or more processors or processing devices to implement a batch two-dimensional code recognition method in the aforementioned embodiment.

[0064] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0065] In the several embodiments provided by the present invention, it should be understood that the disclosed methods, systems and devices can be implemented in other ways. For example, the modules included in the system described above are only schematic, and the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0066] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0067] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional units / modules.

[0068] The above-mentioned integrated unit / module implemented in the form of a software functional unit / module can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling one or more processors of a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A batch QR code recognition method, characterized in that: include: Acquire current image data of a combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips with two-dimensional codes attached thereto; Cutting the current image data at a preset array position to obtain a plurality of target image areas, wherein each of the target image areas corresponds one-to-one to each of the encoder chips with a QR code attached thereto; Decode the two-dimensional codes in the target image area to obtain identification data of the batch of two-dimensional codes.

2. The method according to claim 1, characterized in that The preset array position is determined by the coordinates of the upper left corner point and the lower right corner point of each target image area; Among them, the coordinates of the upper left corner point of the (i, j)th rectangular area in the i-th row and j-th column are: (x0, y0) = (j * X , i * Y); The coordinates of the lower right corner are: (x1, y1) = ((j + 1) * X, (i + 1)) * Y); Wherein, X is the width of each target image region, and Y is the height of each target image region.

3. The method according to claim 1, characterized in that Also includes: Determine whether the QR code data of the previous frame image is stored in the memory; If yes, determine whether the length of the identification data is longer than the length of the two-dimensional code data of the previous frame image; If yes, overlay the identification data on the QR code data of the previous frame image; If not, the identification data is discarded.

4. The method according to claim 1, characterized in that Also includes: Recording the corresponding two-dimensional code attached to each encoder chip; The decoding of the two-dimensional codes in the target image area to obtain identification data of the batch of two-dimensional codes includes: The two-dimensional codes in the plurality of target image areas are decoded to obtain two-dimensional code recognition data corresponding to each encoder chip.

5. The method according to claim 1, characterized in that The decoding of the two-dimensional codes in the plurality of target image regions to obtain identification data of batches of two-dimensional codes also includes: Detect the QR code in each target image area based on the CNN detection model; The QR code in each target image area is identified based on the CNN enhanced recognition model.

6. The method according to claim 1, characterized in that The obtaining of current image data of the combined encoder circuit board also includes: Get a frame of image data byte stream from the combined encoder circuit board; The image data byte stream is converted into the current image data in BMP format.

7. The method according to claim 1, characterized in that Before decoding the two-dimensional codes in the plurality of target image areas to obtain identification data of batches of two-dimensional codes, the method further includes: Perform preset image optimization processing on the plurality of target image regions.

8. A batch QR code recognition system, characterized in that: include: A camera module is used to capture an image of a combined encoder circuit board to obtain current image data of the combined encoder circuit board, wherein the combined encoder circuit board is provided with a plurality of encoder chips with two-dimensional codes attached thereto; An image processing module, used for performing a preset array cutting on the current image data to obtain a plurality of target image areas, wherein each of the target image areas corresponds one-to-one to each of the encoder chips attached with a QR code; The two-dimensional code recognition module is used to decode the two-dimensional codes in the target image area to obtain the recognition data of the batch of two-dimensional codes.

9. A batch QR code recognition device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of a batch two-dimensional code recognition method as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a batch two-dimensional code recognition method as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Batch scanning method of two-dimensional codes, and scanning equipment

    CN102880850A

  • Two-dimensional code recognition method and device, electronic equipment and storage medium

    CN112580383A

  • Two-dimensional code recognition method and device, electronic equipment and storage medium

    CN115510888A

  • Hotel access control system using two-dimensional code recognition technology

    CN118053227A

  • Data security transmission method and system based on intelligent pipe network

    CN118214813A

Cited By

  • High-throughput sorting system of nucleic acid synthesis chip and nucleic acid synthesis system

    CN120228063A