Information card processing method and device based on positioning code, equipment and storage medium
By extracting and identifying the code value information of the positioning code in the information card image to guide the image segmentation processing, the problem of low efficiency of the information card image segmentation processing in the prior art is solved, and more efficient information card image segmentation is achieved.
Patent Information
- Application Number
- CN202411058201.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-17
AI Technical Summary
The existing information card image segmentation processing method relies on manual operations, resulting in low efficiency and convenience.
By extracting the code diagram of the positioning code at four corner positions in the information card image, the binary matrix is identified to obtain code value information, and the image segmentation process is performed based on this information, and the positioning code is used to guide the segmentation process.
It improves the efficiency and convenience of image segmentation processing of information card, is suitable for a variety of information card types, and simplifies the process of large-scale tasks.
Smart Images

Figure CN119152509A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for processing information cards based on positioning codes. Background Art
[0002] With the continuous development of science and technology, the application of information card recognition technology based on artificial intelligence is becoming more and more widespread, that is, using image recognition technology to identify the content in information cards. In practical applications, the content in information cards is relatively flexible, and not all content is required to be recognized, or not all content is suitable for recognition by the same computer vision model, so it is usually necessary to segment the information card image. The current general method is to use manual segmentation of information card images, resulting in low processing efficiency and convenience.
[0003] It is worth noting that the techniques described in this section are not necessarily techniques that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any technique described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and storage medium for processing an information card based on a positioning code, aiming to solve at least one of the problems in the related art to a certain extent.
[0005] A first aspect of an embodiment of the present application provides an information card processing method based on a positioning code, comprising:
[0006] Extracting a code map of positioning codes located at four corners of the target information card image; wherein the positioning code is a square mark including a black border and a black and white binary matrix located within the black border;
[0007] Respectively identify the binary matrix in each of the code images to obtain corresponding code value information;
[0008] The target information card image is segmented in combination with all the code value information to obtain different information areas of the target information card image.
[0009] A second aspect of the embodiment of the present application provides an information card processing device based on a positioning code, comprising:
[0010] An extraction module is used to extract a code pattern of positioning codes respectively located at four corners of the target information card image; wherein the positioning code is a square mark including a black border and a black and white binary matrix located within the black border;
[0011] An identification module, used to identify the binary matrix in each code map respectively to obtain corresponding code value information;
[0012] The processing module is used to segment the target information card image in combination with all the code value information to obtain different information areas of the target information card image.
[0013] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements each step of the information card processing method based on the positioning code provided in the first aspect of the embodiment of the present application.
[0014] The fourth aspect of the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step of the information card processing method based on the positioning code provided in the first aspect of the embodiment of the present application is implemented.
[0015] As can be seen from the above, according to the information card processing method, device, equipment and storage medium based on the positioning code provided by the present application, the code map of the positioning code located at the four corners of the target information card image is extracted; the binary matrix in each code map is identified respectively to obtain the corresponding code value information; the target information card image is segmented and processed in combination with all the code value information to obtain different information areas of the target information card image. Through the implementation of the present application, the code value information of the positioning code at the corner position of the information card is identified, and then the segmentation processing of the information card image is guided accordingly based on the code value information, which can effectively improve the convenience and efficiency of regional segmentation of the information card image.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The drawings shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0018] Figure 1 A schematic diagram of the basic flow of a method for processing an information card based on a positioning code provided in an embodiment of the present application;
[0019] Figure 2 A schematic diagram of an optional positioning code provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of an information card provided in one embodiment of the present application;
[0021] Figure 4 A schematic diagram of a positioning scale in an information card provided by an embodiment of the present application;
[0022] Figure 5 A flowchart of an optional positioning code decoding method provided in an embodiment of the present application;
[0023] Figure 6 A detailed flowchart of a method for processing an information card based on a positioning code provided in an embodiment of the present application;
[0024] Figure 7 A schematic diagram of the functional modules of a positioning code-based information card processing device provided in one embodiment of the present application;
[0025] Figure 8 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0027] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features; the term "multiple" means two or more, unless otherwise clearly and specifically defined; the term "including" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections; the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may include the existence of A alone, the existence of A and B at the same time, and the existence of B alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.
[0028] In order to at least solve the problem of low convenience and efficiency of the information card image segmentation method provided in the related art, an embodiment of the present application provides an information card processing method based on a positioning code, such as Figure 1 The basic flow chart of the information card processing method based on the positioning code provided in this embodiment specifically includes the following steps:
[0029] Step 101: extracting a code map of positioning codes located at four corners of a target information card image.
[0030] It should be noted that the types of information cards include but are not limited to answer sheets, test papers, military examination forms, invoices, tutoring assignments, contracts, etc. In addition, different from conventional QR codes, the positioning code of this embodiment is a square mark including a black border and a black and white binary matrix located in the black border. The types of the positioning code include but are not limited to ArUco codes, such as Figure 2 FIG. 1 is a schematic diagram of an optional positioning code provided by this embodiment. It is worth mentioning that the information card is usually in a rectangular or square form, and the four corner positions can be understood as the positions of the four corners of the rectangle or square, such as Figure 3 The figure shows a schematic diagram of an information card provided by this embodiment. The square icons located at the four corners of the information card in the figure are positioning codes. After reading the target information card image to be processed, this embodiment extracts the positioning code image in the information card image to obtain four code images.
[0031] It should also be noted that, compared with ordinary QR Code, the positioning code of this embodiment has a smaller size required for effective information recognition, which can effectively reduce the impact on the information card page layout.
[0032] In addition, in a preferred embodiment, each positioning code is unique at different rotation angles, that is, regardless of the orientation of the target information card image, each positioning code can uniquely determine a valid positioning code.
[0033] In an optional implementation manner of the present embodiment, before the above-mentioned extraction of the code map of the positioning codes respectively located at the four corners of the target information card image, it also includes: extracting the actual orientation information of the positioning ruler in the target information card image; wherein the positioning ruler is set on the target side of the information card; determining corresponding correction parameters based on the actual orientation information and preset standard orientation information; and performing orientation correction on the target information card image based on the correction parameters.
[0034] Specifically, the target information card image is captured by an image acquisition device. In actual applications, image acquisition deviation is usually unavoidable, resulting in a certain degree of skewness in the captured information card image, which affects the subsequent information card segmentation and content recognition processing. Based on this, before executing the code map extraction operation, this embodiment first performs correction processing on the information card image. This processing operation needs to be implemented with reference to the side positioning ruler set on the information card. The positioning ruler is parallel to the side. In actual applications, if the target information card image is skewed, then the positioning ruler that should be in the horizontal or vertical direction also deviates from the standard direction. Therefore, this embodiment can use the positioning ruler as a reference beacon, and determine the corresponding correction parameters based on the deviation information between the actual position of the positioning ruler in the target information card image and the standard position, and correct the target information card image accordingly, and finally obtain a target information card image with the correct orientation that meets the information card segmentation and recognition requirements. Figure 4 The figure shows a schematic diagram of a positioning ruler in an information card provided in this embodiment. It is worth mentioning that the content of the information card is omitted in the figure, and the multiple scales located on the right side of the information card in the figure constitute the positioning ruler.
[0035] Step 102: Identify the binary matrices in each code map to obtain corresponding code value information.
[0036] For the black and white binary matrix within the black border of the positioning code, the black squares in the binary matrix represent binary value 0, and the white squares represent binary value 1. In practical applications, the code value information can be decoded by identifying the binary matrix within the black border.
[0037] like Figure 5 The figure is a flow chart of an optional positioning code decoding method of this embodiment, which includes the following steps:
[0038] Step 501, respectively obtain the binary values corresponding to the binary matrices in each code map;
[0039] Step 502: extract all data bit binary values belonging to the target column, and then concatenate all the extracted data bit binary values in row order to obtain a data bit binary value sequence;
[0040] Step 503: Convert the data bit binary value sequence into data bit decimal values, and determine the obtained data bit decimal values as corresponding code value information.
[0041] Please refer again to the above Figure 2The positioning code shown is a 7*7 grid array as a whole. Excluding the outermost black border, the remaining part is a 5*5 black and white binary matrix. In practical applications, the target columns of the black and white binary matrix can be used as data bits. For example, the even columns of the black and white binary matrix, i.e., the 2nd and 4th columns, can be used as data bits. After the binary values of these data bits are extracted and spliced, they can be converted into decimal values based on flexibly set rules, thereby completing the decoding of the positioning code data information.
[0042] The binary values corresponding to the above black and white binary matrix are arranged as follows:
[0043] Column 1 Column 2 Column 3 Column 4 Column 5 Row 1 1 0 0 0 0 Row 2 1 0 0 0 0 Row 3 1 0 1 1 1 Row 4 0 1 1 1 0 Row 5 1 0 1 1 1
[0044] The data bits extracted for columns 2 and 4 are as follows:
[0045] Column 2 Column 4 Row 1 0 0 Row 2 0 0 Row 3 0 1 Row 4 1 1 Row 5 0 1
[0046] The data bits are connected row by row to obtain a binary value sequence of the data bits: 0000011101. Next, the conversion to decimal is 16+8+4+1=29.
[0047] Furthermore, in an optional implementation of this embodiment, before extracting all binary values of the target column, the method further includes: extracting all check bit binary values belonging to the non-target column, and then splicing all the extracted check bit binary values in row order to obtain a check bit binary value sequence; converting the check bit binary value sequence into a check bit decimal value, and performing a validity check of the information card based on the obtained decimal value. Accordingly, if the check passes, the step of extracting all binary values of the target column is executed; if the check fails, the target information card image is stored in the abnormal information card file set.
[0048] Please continue to refer to the above Figure 2 The positioning code shown in the figure can be used as the odd columns of the positioning code, i.e., the 1st column, the 3rd column, and the 5th column, as check bits, and the binary values of these check bits are extracted, spliced, and then converted into decimal values, so as to complete the decoding of the positioning code data information. It should be understood that the binary value extraction, splicing, and conversion operations of the check bits can refer to the related operations of the aforementioned data bits, and will not be repeated here.
[0049] In actual applications, there is a possibility of illegal counterfeiting of information cards. Different from the anti-counterfeiting code that is independent of the positioning code, this embodiment reuses the positioning code for multiple functions, which carries data information and verification information at the same time, thereby reducing the space occupied by the information card. On the other hand, the data information and verification information can be extracted at one time, which can improve the data processing efficiency compared to independently setting the positioning code and the anti-counterfeiting code. When the extracted verification code is determined to be an illegal verification code, this embodiment uploads the corresponding information card image to the abnormal information card file set for the supervisor to trace the illegal counterfeiting behavior.
[0050] It is worth mentioning that, in practical applications, the validity of the information card can be verified by combining the decimal values of the check digits of the positioning codes at the four corners, or the positioning code at a specific corner of the four corners can be used as a multiplexed positioning code, and the validity of the information card can be verified only based on the check digit of the positioning code. Of course, in a preferred embodiment, the security requirement level can be obtained, and then the corresponding validity verification strategy can be determined according to the security level. The validity verification strategy includes the aforementioned validity verification combined with the decimal values of the check digits of all positioning codes and the validity verification based on the decimal value of the check digit of a specific positioning code.
[0051] Step 103: Segment the target information card image in combination with all code value information to obtain different information areas of the target information card image.
[0052] The code value information of this embodiment carries information card segmentation indication information. It is worth mentioning that in actual applications, the types of information cards are relatively diverse, so it is impossible to apply a fixed segmentation strategy when segmenting information cards. Since the positioning code of this embodiment can carry diverse information, in actual applications, mixed collection of information cards of multiple types, multiple subjects, multiple pages, and multiple volumes is allowed, which greatly simplifies the process of information card collection, identification, and segmentation processing, improves the efficiency of processing large amounts of information cards, and is easier to promote and use.
[0053] In an optional implementation of the present embodiment, the above-mentioned segmentation processing of the target information card image in combination with all the code value information includes: identifying information card attribute information corresponding to the target information card image in combination with all the code value information; wherein the information card attribute information includes at least one of the following: information card type, information card page number; determining corresponding information card layout information based on the information card attribute information; and segmenting the target information card image according to the information card layout information.
[0054] Specifically, this embodiment queries the corresponding information card attribute information based on the code value information of all the positioning codes on the information card. It is worth mentioning that in this embodiment, each positioning code can be understood as an ID, so the four positioning codes can be an ID set. If the four IDs in each information card are preferably set as consecutive numbers, then the code values of the four positioning codes of the information card constitute a number segment. The system can be pre-configured with the information card attribute information corresponding to each number segment, so in actual application, the information card attribute information can be obtained by looking up the table.
[0055] In addition, the system is also pre-configured with a mapping relationship between each information card attribute information and information card layout information. After the information card layout information is obtained, it can be used as guidance information to perform information card segmentation processing.
[0056] Furthermore, in an optional implementation of the present embodiment, a group of adjacent sides of the information card are vertically provided with positioning rulers having the same zero scale; the above-mentioned segmentation processing of the target information card image according to the information card layout information includes: extracting the ruler scale information of all corner points corresponding to each preset information area in the information card layout information; locating the corner point position of each information area in the target information card image according to the ruler scale information; and segmenting the target information card image according to the corner point position obtained by locating.
[0057] Specifically, in this embodiment, a positioning ruler is respectively provided on one group of adjacent sides. Since the adjacent sides are vertical, the two positioning rulers are also vertical. In this embodiment, the zero scales of the two rulers are set to overlap, so the two rulers form a scaled XY coordinate system. Based on the first scale information and the second scale information respectively indicated by the two rulers, an (x, y) coordinate can be obtained, and the positioning of the point can be realized. In practical applications, in practical applications, each information area usually adopts a rectangular or square layout, and the information card layout information includes various types of information areas and ruler scale information of all corner points of each information area. The exemplary expression is {question area 1, corner point 1 (x1, y1), corner point 2 (x2, y2), corner point 3 (x3, y3), corner point 4 (x4, y4)}, then the information card layout information can be referred to and the positioning ruler in the target information card image can be used to find the corner point position of each information area, and finally segmentation is performed based on the multiple corner point positions of each information area, that is, the information card is segmented into independent areas.
[0058] It is worth mentioning that in actual applications, multiple positioning codes can be set on the four sides of the information card in addition to the four corners, and then different information areas can be indicated based on the combination of positioning codes at different positions, thereby realizing information card segmentation. However, although this method has great feasibility, it has certain disadvantages. On the one hand, for information cards with more complicated information areas, it is necessary to set a large number of positioning codes on the information card, resulting in the positioning codes occupying more space on the information card. On the other hand, the decoding process after the positioning code is identified has a certain amount of data processing, resulting in low efficiency in information area positioning. However, based on the aforementioned information area positioning scheme based on the positioning ruler in this embodiment, since the positioning ruler only needs to indicate the scale information, and the scale information is different from the positioning code, it can be identified at a relatively small size, and usually does not take up too much information card space, and does not involve the information decoding process, which simplifies the information area positioning process and can ensure better information area positioning efficiency.
[0059] In order to better illustrate the present application scheme, this embodiment also provides a detailed information card processing method based on the positioning code. Figure 6 A detailed flow chart of a method for processing an information card based on a positioning code provided in an embodiment of the present application specifically includes the following process:
[0060] Step 601, extracting the actual position information of the positioning scale set on the target adjacent side of the information card in the target information card image;
[0061] Step 602: determining corresponding correction parameters based on the actual orientation information and the preset standard orientation information, and performing orientation correction on the target information card image based on the correction parameters;
[0062] Step 603, extracting the code patterns of the positioning codes located at the four corners of the target information card image, and obtaining the binary values corresponding to the binary matrices in each code pattern;
[0063] Step 604: extract all data bit binary values belonging to the target column, and then concatenate all the extracted data bit binary values in row order to obtain a data bit binary value sequence;
[0064] Step 605: convert the data bit binary value sequence into data bit decimal values, and determine the obtained data bit decimal values as corresponding code value information;
[0065] Step 606: Identify the information card attribute information corresponding to the target information card image in combination with all code value information, and determine the corresponding information card layout information based on the information card attribute information;
[0066] Step 607: extracting the scale information of all corner points corresponding to each preset information area in the information card layout information;
[0067] Step 608, refer to the scale information of the ruler, and use the positioning ruler to locate the corner point position of each information area in the target information card image;
[0068] Step 609: Segment the target information card image according to the corner point positions obtained by positioning to obtain different information areas of the target information card image.
[0069] It should be understood that the size of the serial number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute a sole limitation on the implementation process of the embodiment of this application.
[0070] Figure 7 An information card processing device based on a positioning code is provided in one embodiment of the present application. The information card processing device can be used to implement the information card processing method based on a positioning code in the above-mentioned embodiment, mainly comprising:
[0071] The extraction module 701 is used to extract the code pattern of the positioning code located at the four corners of the target information card image; wherein the positioning code is a square mark including a black border and a black and white binary matrix located in the black border;
[0072] An identification module 702 is used to identify the binary matrix in each code map to obtain corresponding code value information;
[0073] The processing module 703 is used to perform segmentation processing on the target information card image in combination with all code value information to obtain different information areas of the target information card image.
[0074] In an optional implementation of the present embodiment, the above-mentioned information card processing device also includes: a correction module, which is used to extract the actual position information of the positioning ruler in the target information card image before extracting the code pattern of the positioning code located at the four corners of the target information card image; wherein the positioning ruler is set on the target side of the information card; determine corresponding correction parameters based on the actual position information and preset standard position information; and perform position correction on the target information card image based on the correction parameters.
[0075] In an optional implementation of the present embodiment, the above-mentioned identification module is specifically used to: respectively obtain the binary values corresponding to the binary matrices in each code image; extract all data bit binary values belonging to the target column, and then splice all the extracted data bit binary values in row order to obtain a data bit binary value sequence; convert the data bit binary value sequence into a data bit decimal value, and determine the obtained data bit decimal value as the corresponding code value information.
[0076] In an optional implementation of the present embodiment, the above-mentioned information card processing device also includes: a verification module and a storage module, the verification module is used to extract all check bit binary values belonging to non-target columns, and then splice all the extracted check bit binary values in row order to obtain a check bit binary value sequence; convert the check bit binary value sequence into a check bit decimal value, and perform information card legitimacy verification based on the obtained decimal value; accordingly, the identification module is specifically used to: if the verification passes, execute the extraction of all binary values of the target column; if the verification fails, the storage module is used to store the target information card image in the abnormal information card file set.
[0077] It should be noted that the positioning code-based information card processing methods in the aforementioned method embodiments can all be implemented based on the positioning code-based information card processing device provided in this embodiment. Ordinary technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the positioning code-based information card processing device described in this embodiment can be implemented by referring to the corresponding working process in the aforementioned method embodiments, and will not be repeated here.
[0078] Based on the technical solution of the embodiment of the present application, the code map of the positioning code located at the four corners of the target information card image is extracted; the binary matrix in each code map is identified respectively to obtain the corresponding code value information; the target information card image is segmented and processed in combination with all the code value information to obtain different information areas of the target information card image. Through the implementation of the solution of the present application, the code value information of the positioning code at the corner position of the information card is identified, and then the segmentation process of the information card image is guided accordingly based on the code value information, which can effectively improve the convenience and efficiency of regional segmentation of the information card image.
[0079] Figure 8 An electronic device is provided in one embodiment of the present application. The electronic device can be used to implement the information card processing method based on the positioning code in the above-mentioned embodiment, and mainly includes: a memory 801 and a processor 802. The memory 801 stores a computer program 803 that can be run on the processor 802. The memory 801 and the processor 802 are in communication connection. When the processor 802 executes the computer program 803, the information card processing method based on the positioning code in the above-mentioned embodiment is implemented. The number of processors 802 can be one or more.
[0080] The memory 801 may be a high-speed random access memory (RAM) memory, or a non-volatile memory, such as a disk memory. The memory 801 is used to store executable program codes, and the processor 802 is coupled to the memory 801 .
[0081] Furthermore, the present application also provides a computer-readable storage medium, which may be provided in the electronic device in the above embodiments. Figure 8 Memory in the illustrated embodiment.
[0082] The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the information card processing method based on the positioning code in the above-mentioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, etc., which can store program codes.
[0083] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0084] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0085] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0086] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0087] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0088] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] The above is a description of the information card processing method, device, equipment and storage medium based on the positioning code provided by the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for processing information cards based on positioning codes, characterized in that: include: Extracting a code map of positioning codes located at four corners of the target information card image; wherein the positioning code is a square mark including a black border and a black and white binary matrix located within the black border; Respectively identify the binary matrix in each of the code images to obtain corresponding code value information; The target information card image is segmented in combination with all the code value information to obtain different information areas of the target information card image.
2. The information card processing method according to claim 1, characterized in that: Before extracting the code map of the positioning codes respectively located at the four corners of the target information card image, the method further includes: Extracting the actual position information of the positioning ruler in the target information card image; wherein the positioning ruler is set on the target side of the information card; Determine corresponding correction parameters based on the actual position information and the preset standard position information; The target information card image is azimuthally corrected based on the correction parameters.
3. The information card processing method according to claim 1, characterized in that: The identifying the binary matrices in each of the code images to obtain corresponding code value information includes: Respectively obtain the binary values corresponding to the binary matrix in each of the code images; Extract all data bit binary values belonging to the target column, and then concatenate all the extracted data bit binary values in row order to obtain a data bit binary value sequence; The data bit binary value sequence is converted into data bit decimal values, and the obtained data bit decimal values are determined as corresponding code value information.
4. The information card processing method according to claim 3, characterized in that: Before extracting all binary values of the target column, the method further includes: Extract all check bit binary values belonging to the non-target column, and then concatenate all the extracted check bit binary values in row order to obtain a check bit binary value sequence; Converting the check digit binary value sequence into a check digit decimal value, and performing a validity check on the information card based on the obtained decimal value; If the verification passes, the step of extracting all binary values of the target column is performed.
5. The information card processing method according to claim 4, characterized in that: After the information card validity check is performed based on the obtained decimal value, the method further includes: If the verification fails, the target information card image is stored in the abnormal information card file set.
6. The information card processing method according to any one of claims 1 to 5, characterized in that: The combining all the code value information to segment the target information card image includes: Combining all the code value information to identify the information card attribute information corresponding to the target information card image; wherein the information card attribute information includes at least one of the following: information card type, information card page number; Determining corresponding information card layout information based on the information card attribute information; The target information card image is segmented according to the information card layout information.
7. The information card processing method according to claim 6, characterized in that: A group of adjacent sides of the information card are vertically provided with positioning scales having the same zero scale; the segmentation process of the target information card image according to the information card layout information includes: Extracting ruler scale information of all corner points corresponding to each preset information area in the information card layout information; Locating the corner point position of each of the information areas in the target information card image according to the ruler scale information; The target information card image is segmented according to the corner point positions obtained by positioning.
8. An information card processing device based on a positioning code, characterized in that: include: An extraction module is used to extract a code pattern of positioning codes respectively located at four corners of the target information card image; wherein the positioning code is a square mark including a black border and a black and white binary matrix located within the black border; An identification module, used to identify the binary matrix in each code map respectively to obtain corresponding code value information; The processing module is used to segment the target information card image in combination with all the code value information to obtain different information areas of the target information card image.
9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein: The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps of the information card processing method based on the positioning code as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the information card processing method based on the positioning code as claimed in any one of claims 1 to 7 are implemented.
