CN112733567B - Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium - Google Patents

Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium Download PDF

Info

Publication number
CN112733567B
CN112733567B CN202110052725.5A CN202110052725A CN112733567B CN 112733567 B CN112733567 B CN 112733567B CN 202110052725 A CN202110052725 A CN 202110052725A CN 112733567 B CN112733567 B CN 112733567B
Authority
CN
China
Prior art keywords
dimensional code
motor vehicle
cells
image
row
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110052725.5A
Other languages
Chinese (zh)
Other versions
CN112733567A (en
Inventor
罗小平
石玉璞
曾峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Longhorn Automotive Electronic Equipment Co Ltd
Original Assignee
Shenzhen Longhorn Automotive Electronic Equipment Co Ltd
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 Shenzhen Longhorn Automotive Electronic Equipment Co Ltd filed Critical Shenzhen Longhorn Automotive Electronic Equipment Co Ltd
Priority to CN202110052725.5A priority Critical patent/CN112733567B/en
Publication of CN112733567A publication Critical patent/CN112733567A/en
Application granted granted Critical
Publication of CN112733567B publication Critical patent/CN112733567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • 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
    • G06K7/1439Methods for optical code recognition including a method step for retrieval of the optical code
    • G06K7/1443Methods for optical code recognition including a method step for retrieval of the optical code locating of the code in an image

Abstract

The embodiment of the application provides a method and a device for identifying a two-dimensional code of a motor vehicle and a computer-readable storage medium, wherein the method comprises the following steps: extracting the original image frames from the video images acquired and transmitted by the camera device of the motor vehicle frame by frame; extracting a two-dimensional code original image from the original image frame, and converting the two-dimensional code original image into a two-dimensional code image to be identified; identifying a coding region in a two-dimensional code image to be identified, wherein the coding region comprises a plurality of positioning information cells and a plurality of information storage cells, and determining the identification direction of the plurality of information storage cells; the method comprises the steps of identifying and counting the actual number of information storage cells presenting a first color in each row and each column of information storage cells in a coding region row by row, arranging and combining the actual number of each row and each column according to a preset sequence to form coded data with a plurality of coded bits, wherein each coded bit of the coded data corresponds to one actual number. The two-dimensional code identification method and device can effectively improve two-dimensional code identification efficiency and accuracy.

Description

Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of two-dimension codes, in particular to a method and a device for identifying a two-dimension code of a motor vehicle and a computer readable storage medium.
Background
The two-dimensional code is a common graph capable of carrying out information transfer at present, a user scans and shoots the two-dimensional code through the camera device to obtain a two-dimensional code image, and the two-dimensional code image is subjected to identification processing to obtain coding information contained in the two-dimensional code image, so that the two-dimensional code is widely applied to the related fields of motor vehicles.
A conventional two-dimensional code (as shown in fig. 1) applied to a motor vehicle is generally formed by combining a plurality of cells a with the same size and rectangular shape in a matrix (for example, a matrix of 8 x 8), wherein a rectangular frame formed by each cell a located at the outermost side of the edge of the matrix forms a contrast area a, a rectangular frame formed by each cell a located at the inner side of the contrast area a forms a boundary area B, each cell a located at the inner side of the boundary area B forms a coding area C (a matrix area of a center 4*4), the color of each cell a of the contrast area is generally white to clearly distinguish the two-dimensional code from the surrounding environment background, each cell a of the boundary area B is generally black to distinguish the coding area C from the contrast area a, and each cell a of the coding area C is black or white to code, wherein the black cell a represents a binary number 0, the white cell a represents a binary number 1, and patterns formed by the coding areas C of different two-dimensional codes are different from each other; in addition, in order to facilitate distinguishing the correct recognition direction of the two-dimensional code image, typically, three of four cells a at four corners of the coding region C of the two-dimensional code are fixedly set to black and one is fixedly set to white, and in particular, in performing recognition, a recognition rule is generally set: when the color of the cell a at the upper left corner of the coding region C is white, the two-dimensional code image is in the correct identification direction.
The existing identification method for the two-dimensional code is to take a camera of a motor vehicle to obtain a two-dimensional code image, then process the two-dimensional code image, distinguish a coding region C, a contrast region A and a demarcation region B corresponding to the two-dimensional code, then identify and judge filling colors one by one for each cell a of the coding region C, and finally determine the coding information of the two-dimensional code. However, since the existing identification method mostly needs to identify the colors of the cells a of the coding region C one by one, the identification efficiency is relatively low; moreover, the distance between the camera device and the two-dimensional code is different, and the two-dimensional code image obtained by shooting is sometimes smaller and difficult to identify.
Disclosure of Invention
The technical problem to be solved by the embodiment of the application is to provide the identification method of the two-dimensional code of the motor vehicle, which can effectively improve the identification efficiency of the two-dimensional code.
The technical problem to be further solved by the embodiment of the application is to provide the device for identifying the two-dimensional code of the motor vehicle, which can effectively improve the identification efficiency of the two-dimensional code.
The technical problem to be further solved by the embodiment of the application is to provide a computer readable storage medium which can effectively improve the identification efficiency of the two-dimensional code.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme: a motor vehicle two-dimension code recognition method comprises the following steps:
extracting the original image frames from the video images acquired and transmitted by the camera device of the motor vehicle frame by frame;
extracting a two-dimensional code original image from the original image frame, and converting the two-dimensional code original image into a two-dimensional code image to be identified with a preset resolution;
detecting and identifying a coding region in the two-dimensional code image to be identified, wherein the coding region comprises a plurality of positioning information cells and a plurality of information storage cells, and determining the identification direction of the plurality of information storage cells according to the relative position relation of the plurality of positioning information cells; and
and sequentially identifying and counting the actual number of the information storage cells in the first color in each row and each column of information storage cells in the coding region row by row according to the identification direction, and arranging and combining the actual number of each row and each column according to a preset sequence to form coding data with a plurality of coding bits, wherein each coding bit of the coding data corresponds to one actual number.
Further, the extracting the two-dimensional code original image from the original image frame specifically refers to binarizing the original image frame to obtain a suspected area with the two-dimensional code original image, and extracting the suspected area by adopting a quadrilateral approximation principle to obtain the two-dimensional code original image.
Further, the converting the original two-dimensional code image into the two-dimensional code image to be identified with the predetermined resolution specifically means that the original two-dimensional code image is corrected to be rectangular and then scaled to be the two-dimensional code image to be identified with the predetermined resolution.
Further, the two-dimensional code is formed by distributing a plurality of unit cells in a matrix, and detecting and identifying the coding region in the two-dimensional code image to be identified specifically comprises:
determining cells with the same color and preset turns at the outermost side in the two-dimensional code image to be identified as a contrast area;
determining cells with the same color and a preset number of turns inside the contrast area as a demarcation area; and
and determining the area inside the demarcation zone as a coding zone.
Further, the identifying and counting the actual number of the information storage cells in the first color in the information storage cells of each row and each column in the coding region row by row in sequence according to the identification direction specifically includes:
determining the row direction and the column direction of the coding region according to the identification direction; and
and calculating projection waveforms of the coding region of the two-dimensional code image to be identified in the row direction and the column direction to judge the actual number of black information storage cells in each row and each column of the coding region of the two-dimensional code image to be identified.
Further, the plurality of positioning information cells are cells at four corners of the coding region in the two-dimensional code image to be identified, wherein the colors of the cells at three corners have the same color, and the color of the cell at the rest one corner is different from the color of the cell at the other three corners.
Further, the encoded data is converted into basic data in binary form after the encoded data is formed.
On the other hand, in order to solve the further technical problems, the embodiment of the present application provides the following technical solutions: a two-dimensional code recognition device for a motor vehicle, which is connected to an imaging device for capturing and providing video images of the surroundings of the motor vehicle and to a data processing device, the two-dimensional code recognition device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the two-dimensional code recognition method for a motor vehicle according to any one of the above when executing the computer program.
In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions: a computer readable storage medium comprising a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to perform the method of identifying a two-dimensional code of a motor vehicle as claimed in any one of the preceding claims.
After the technical scheme is adopted, the embodiment of the application has at least the following beneficial effects: according to the embodiment of the application, after an original image frame is obtained, a two-dimensional code original image is extracted from the original image frame, the two-dimensional code original image is converted into a two-dimensional code image to be identified with a preset resolution, the situation that the image is too small to identify is avoided, a coding region is further detected and identified in the two-dimensional code image to be identified, the identification direction of a plurality of information storage cells is determined according to the relative position relation of the plurality of positioning information cells in the coding region, finally the actual number of the information storage cells with a first color in each row and each column of information storage cells in the coding region is identified and counted row by row, the actual number of each row and each column is arranged and combined according to a preset sequence to form coding data with a plurality of coding bits, and each coding bit of the coding data corresponds to one actual number respectively.
Drawings
Fig. 1 is a schematic plan view of an alternative embodiment of a two-dimensional code identified by the two-dimensional code identification method of the motor vehicle according to the present application.
Fig. 2 is a flowchart illustrating steps of an alternative embodiment of a two-dimensional code recognition method for a motor vehicle according to the present application.
Fig. 3 is a schematic block diagram of an alternative embodiment of the two-dimensional code recognition device for a motor vehicle according to the present application.
Fig. 4 is a functional block diagram of an alternative embodiment of a two-dimensional code recognition device for a motor vehicle according to the present application.
Detailed Description
The application will be described in further detail with reference to the drawings and the specific examples. It should be understood that the following exemplary embodiments and descriptions are only for the purpose of illustrating the application and are not to be construed as limiting the application, and that the embodiments and features of the embodiments of the application may be combined with one another without conflict.
As shown in fig. 2, an alternative embodiment of the present application provides a two-dimensional code recognition method for a motor vehicle, including the following steps:
s1: extracting the original image frames from the video images acquired and transmitted by the camera device 3 of the motor vehicle frame by frame;
s2: extracting a two-dimensional code original image from the original image frame, and converting the two-dimensional code original image into a two-dimensional code image to be identified with a preset resolution;
s3: detecting and identifying a coding region C in the two-dimensional code image to be identified, wherein the coding region C comprises a plurality of positioning information cells and a plurality of information storage cells, and determining the identification direction of the plurality of information storage cells according to the relative position relation of the plurality of positioning information cells; and
s4: and sequentially identifying and counting the actual number of the information storage cells in the first color in each row and each column of information storage cells in the coding region C row by row according to the identification direction, and arranging and combining the actual number of each row and each column according to a preset sequence to form coding data with a plurality of coding bits, wherein each coding bit of the coding data corresponds to one actual number.
According to the embodiment of the application, after an original image frame is obtained, a two-dimensional code original image is extracted from the original image frame, the two-dimensional code original image is converted into a two-dimensional code image to be identified with a preset resolution, the situation that the image is too small to identify is avoided, the coding region C is further detected and identified in the two-dimensional code image to be identified, the identification direction of a plurality of information storage cells is determined according to the relative position relation of a plurality of positioning information units in the coding region C, finally, the actual number of the information storage cells in a first color in each row and each column of the information storage cells in the coding region is identified and counted row by row, the actual number of each row and each column is arranged and combined according to a preset sequence to form coding data with a plurality of coding bits, and each coding bit of the coding data corresponds to one actual number respectively.
For example: as shown in fig. 1, for convenience, the black cells a are filled with hatching, and according to the conventional encoded data, the first line to the fourth line of the encoding region C are sequentially: 1110. 1001, 1101, and 0110, and the number of black cells a (each information storage unit corresponds to a cell of the coding region C) for each row and each column of each coded bit of the coded data obtained by using the embodiment of the present application is in turn: 1. 2, 1, 2 (arranged in order of first row to fourth row, first column to fourth column), it will be understood that, given the number of black cells a in each row and column, a coding pattern corresponding to the coding region C may be derived, that is, conventional binary coded data may be obtained.
In an optional embodiment of the present application, the extracting the two-dimensional code original image from the original image frame specifically refers to binarizing the original image frame to obtain a suspected area where the two-dimensional code original image exists, and extracting the suspected area by using a quadrilateral approximation principle to obtain the two-dimensional code original image. In this embodiment, by adopting the binarization mode first, since the image area containing the two-dimensional code is generally high in black occupation ratio, the suspicious area with dense black color distribution can be obtained by adopting the binarization with a high threshold value first, and in addition, since the two-dimensional code is a quadrilateral area, the quadrilateral is extracted from the suspicious area by adopting the quadrilateral approximation principle, so that the original image of the two-dimensional code can be effectively obtained, and the recognition success rate of the two-dimensional code is improved.
In an optional embodiment of the present application, the converting the two-dimensional code original image into the two-dimensional code image to be identified with the predetermined resolution specifically refers to correcting the two-dimensional code original image into a rectangular shape and then scaling the two-dimensional code original image into the two-dimensional code image to be identified with the predetermined resolution. In this embodiment, the two-dimensional code original image is further extracted, and then corrected into a rectangular shape, and then scaled into a two-dimensional code scaled image, so that the influence of the distortion of the two-dimensional code original image on the two-dimensional code identification is eliminated, and then the two-dimensional code original image is scaled into the two-dimensional code image to be identified with a predetermined resolution in a scaling manner, so that the success rate of the two-dimensional code identification is improved.
In addition, as shown in fig. 1, assuming that the width of each cell a constituting the two-dimensional code is 10 pixels, and the basic number of the cells a included in the two-dimensional code in the width direction is 6 (in the case of considering only the boundary region B and the code region C), the original width of the two-dimensional code is 60 pixels, and the minimum width of the two-dimensional code image to be recognized is 60 pixels, however, it is understood that since the image distortion may cause the pixel size of each row of cells a not to be completely equal, if the pixel size is strictly equal to 60 pixels, the recognition rate may be reduced, in a specific design, in order to improve the recognition accuracy, the predetermined width is generally set to a larger parameter value of 90 or 120, and 120 pixels are preferably adopted, i.e., the first predetermined width is 120 pixels, and at this time, the second predetermined width corresponds to 120/6=20 pixels, i.e., by recognizing a rectangular frame having 20 pixels and black color, the boundary region B.
In an optional embodiment of the present application, the two-dimensional code is formed by a plurality of cells a distributed in a matrix, and detecting and identifying the coding region C in the image of the two-dimensional code to be identified specifically includes:
determining a cell a with the same color and a preset number of turns at the outermost side in the two-dimensional code image to be identified as a contrast area A; determining a cell a with the same color and a preset number of turns inside the contrast area A as a demarcation area B; and
the region inside the boundary region B is determined as the coding region C.
In this embodiment, as shown in fig. 1, according to the positional relationship between the contrast area a, the demarcation area B and the coding area C, the coding area C can be effectively determined according to the color and the number of turns, and the recognition efficiency is high.
In an optional embodiment of the present application, the identifying and counting, row by row and column by column in sequence according to the identifying direction, the actual number of information storage cells having the first color in each row and each column of information storage cells in the coding region C specifically includes:
determining the row direction and the column direction of the coding region C according to the identification direction; and
and calculating projection waveforms of the coding region C of the two-dimensional code image to be identified in the row direction and the column direction to judge the actual number of black information storage cells in each row and each column of the coding region C of the two-dimensional code image to be identified.
In this embodiment, the actual number of black cells a in each row and each column of the coding region C can be determined by calculating the projection waveforms of the coding region C in the horizontal and vertical directions, so that the determination and identification process is simple, and the coding information corresponding to the coding region C can be accurately and effectively determined.
In still another alternative embodiment of the present application, the plurality of positioning information cells are cells a at four corners of the coding region C in the two-dimensional code image to be identified, wherein the colors of the cells a at three corners have the same color, and the color of the cell a at the remaining one corner is different from the color of the cells a at the other three corners. In this embodiment, the positioning information unit adopts the cell a at each corner of the coding region C, so that the identification rule can be preset: for example: as shown in fig. 1, when the color of the cell a at the upper left corner of the coding region C is white, the color of the cell a at the other three corners is black, and the correct row direction and column direction are the same.
In yet another alternative embodiment of the present application, the encoded data is converted into base data in binary form after the encoded data is formed. The embodiment can facilitate the conventional data decoder to decode so as to distinguish information by converting the coded data into the basic data in the binary form, and can improve the information identification efficiency.
On the other hand, as shown in fig. 3, an embodiment of the present application provides a two-dimensional code recognition device 1 for a motor vehicle, which is connected to a camera device 3 for capturing and providing a video image of the surrounding environment of the motor vehicle and a data processing device 5, wherein the two-dimensional code recognition device 1 for a motor vehicle includes a processor 10, a memory 12, and a computer program stored in the memory 12 and configured to be executed by the processor 10, and the two-dimensional code recognition method for a motor vehicle is implemented when the processor 10 executes the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 10 to accomplish the present application. The one or more modules/units may be a series of instruction segments of a computer program capable of performing a specific function, which instruction segments are used to describe the execution of the computer program in the two-dimensional code recognition device 1 of a motor vehicle. For example, the computer program may be divided into functional modules in the two-dimensional code recognition device 1 of the motor vehicle as shown in fig. 4, wherein the image extraction module 21, the image processing module 22, the region and direction determination module 23, and the information determination module 24 respectively perform the above steps S1 to S4 correspondingly.
The two-dimensional code recognition device 1 of the motor vehicle can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The two-dimensional code recognition device 1 of the motor vehicle can comprise, but is not limited to, a processor 10 and a memory 12. It will be understood by those skilled in the art that the schematic diagram is merely an example of the two-dimensional code recognition apparatus 1 for a motor vehicle, and does not constitute a limitation of the two-dimensional code recognition apparatus 1 for a motor vehicle, and may include more or less components than those illustrated, or may combine some components, or different components, for example, the two-dimensional code recognition apparatus 1 for a motor vehicle may further include an input/output device, a network access device, a bus, and the like.
The processor 10 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 10 is a control center of the two-dimensional code recognition device 1 for a vehicle, and connects various parts of the entire two-dimensional code recognition device 1 for a vehicle by using various interfaces and lines.
The memory 12 may be used to store the computer program and/or module, and the processor 10 may implement various functions of the two-dimensional code recognition device 1 of the motor vehicle by executing or executing the computer program and/or module stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for at least one function (such as a pattern recognition function, a pattern layering function, etc.), and the like; the storage data area may store data created according to the use of the control device (such as graphic data, etc.), and the like. In addition, the memory 12 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The functionality of the embodiments of the present application, if implemented in the form of software functional modules or units and sold or used as a stand-alone product, may be stored in a computing device readable storage medium. Based on such understanding, the implementation of all or part of the flow of the method of the foregoing embodiment according to the embodiments of the present application may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each of the foregoing method embodiments when executed by the processor 10. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
In still another aspect, an embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, a device where the computer readable storage medium is controlled to execute the two-dimensional code recognition method of an automobile according to any one of the foregoing embodiments.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are all within the scope of the present application.

Claims (6)

1. A method for identifying a two-dimensional code of a motor vehicle, the method comprising the steps of:
extracting the original image frames from the video images acquired and transmitted by the camera device of the motor vehicle frame by frame;
binarizing an original image frame to obtain a suspected area with a two-dimensional code original image, extracting the suspected area by adopting a quadrilateral approximation principle to obtain the two-dimensional code original image, and converting the two-dimensional code original image into a two-dimensional code image to be identified with a preset resolution;
the two-dimensional code is formed by matrix distribution of a plurality of cells, cells with the same color and preset turns on the outermost side in the two-dimensional code image to be identified are determined to be a contrast area, cells with the same color and preset turns on the inner side of the contrast area are determined to be a demarcation area, the area on the inner side of the demarcation area is determined to be a coding area, the coding area comprises a plurality of positioning information cells and a plurality of information storage cells, and the identification direction of the plurality of information storage cells is determined according to the relative position relation of the plurality of positioning information cells; and
and determining the row direction and the column direction of the coding region according to the identification direction, calculating projection waveforms of the coding region of the two-dimensional code image to be identified in the row direction and the column direction to judge the actual number of black information storage cells in each row and each column of the coding region of the two-dimensional code image to be identified, and arranging and combining the actual number of each row and each column according to a preset sequence to form coded data with a plurality of coding bits, wherein each coding bit of the coded data corresponds to one actual number.
2. The method for identifying the two-dimensional code of the motor vehicle according to claim 1, wherein the step of converting the original two-dimensional code image into the two-dimensional code image to be identified with the predetermined resolution is specifically to calibrate the original two-dimensional code image into a rectangular shape and then to scale the original two-dimensional code image into the two-dimensional code image to be identified with the predetermined resolution.
3. The method for recognizing a two-dimensional code of a motor vehicle according to claim 1, wherein the plurality of positioning information cells are cells at four corners of the code region in the two-dimensional code image to be recognized, wherein the colors of the cells at three corners have the same color, and the color of the cell at the remaining one corner is different from the color of the cells at the other three corners.
4. The two-dimensional code recognition method of a motor vehicle according to claim 1, wherein the encoded data is converted into basic data in binary form after being formed.
5. A two-dimensional code recognition device for a motor vehicle, which is connected to a camera device for capturing and providing video images of the surroundings of the motor vehicle and to a data processing device, characterized in that the two-dimensional code recognition device for a motor vehicle comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, which processor, when executing the computer program, implements the two-dimensional code recognition method for a motor vehicle according to any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer-readable storage medium is located to perform the two-dimensional code recognition method of a motor vehicle according to any one of claims 1 to 4.
CN202110052725.5A 2021-01-15 2021-01-15 Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium Active CN112733567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110052725.5A CN112733567B (en) 2021-01-15 2021-01-15 Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110052725.5A CN112733567B (en) 2021-01-15 2021-01-15 Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112733567A CN112733567A (en) 2021-04-30
CN112733567B true CN112733567B (en) 2023-12-12

Family

ID=75593223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110052725.5A Active CN112733567B (en) 2021-01-15 2021-01-15 Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112733567B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069430A (en) * 2010-07-30 2013-04-24 株式会社希福特 Two-dimensional code reader and program
JP2014085777A (en) * 2012-10-23 2014-05-12 Terrara Code Research Institute Inc Two-dimensional code, method of generating two-dimensional code, and method of reading two-dimensional code
CN104933387A (en) * 2015-06-24 2015-09-23 上海快仓智能科技有限公司 Rapid positioning and identifying method based on two-dimensional code decoding
CN105117758A (en) * 2015-08-31 2015-12-02 武汉大学 Colored two-dimensional code based mobile platform security communication method
CN105894069A (en) * 2016-03-29 2016-08-24 吴城凤 CRC QR code generating method for visual navigation and identification method
CN106022738A (en) * 2016-06-02 2016-10-12 中国联合网络通信集团有限公司 Two-dimensional code safety payment method, terminal, and system
WO2017084536A1 (en) * 2015-11-20 2017-05-26 上海好想法网络科技有限公司 Encoding system and method, and decoding system and method for intelligent graph recognition two-dimensional code
CN107301366A (en) * 2017-05-12 2017-10-27 杨铮 The coding/decoding method and device of graphic code in a kind of embedding code video
CN110826544A (en) * 2019-12-23 2020-02-21 深圳市豪恩汽车电子装备股份有限公司 Traffic sign detection and identification system and method
CN112001469A (en) * 2020-08-12 2020-11-27 北京太和互邦科技有限公司 Two-dimensional code encoding method, decoding method and two-dimensional code

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069430A (en) * 2010-07-30 2013-04-24 株式会社希福特 Two-dimensional code reader and program
JP2014085777A (en) * 2012-10-23 2014-05-12 Terrara Code Research Institute Inc Two-dimensional code, method of generating two-dimensional code, and method of reading two-dimensional code
CN104933387A (en) * 2015-06-24 2015-09-23 上海快仓智能科技有限公司 Rapid positioning and identifying method based on two-dimensional code decoding
CN105117758A (en) * 2015-08-31 2015-12-02 武汉大学 Colored two-dimensional code based mobile platform security communication method
WO2017084536A1 (en) * 2015-11-20 2017-05-26 上海好想法网络科技有限公司 Encoding system and method, and decoding system and method for intelligent graph recognition two-dimensional code
CN105894069A (en) * 2016-03-29 2016-08-24 吴城凤 CRC QR code generating method for visual navigation and identification method
CN106022738A (en) * 2016-06-02 2016-10-12 中国联合网络通信集团有限公司 Two-dimensional code safety payment method, terminal, and system
CN107301366A (en) * 2017-05-12 2017-10-27 杨铮 The coding/decoding method and device of graphic code in a kind of embedding code video
CN110826544A (en) * 2019-12-23 2020-02-21 深圳市豪恩汽车电子装备股份有限公司 Traffic sign detection and identification system and method
CN112001469A (en) * 2020-08-12 2020-11-27 北京太和互邦科技有限公司 Two-dimensional code encoding method, decoding method and two-dimensional code

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于三维成像技术的安全二维码;刘轶群;魏悦川;张敏情;周潭平;杨晓元;;红外与激光工程(05);全文 *

Also Published As

Publication number Publication date
CN112733567A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110046529B (en) Two-dimensional code identification method, device and equipment
EP3309704B1 (en) Two-dimensional code partitioning and decoding method and system
CN109543489B (en) Positioning method and device based on two-dimensional code and storage medium
JP6823692B2 (en) Lane handling methods, equipment, and programs
US20190278965A1 (en) Method and terminal device for multi-angle scanning, and computer readable storage medium
CN110751024A (en) User identity identification method and device based on handwritten signature and terminal equipment
CN111353485B (en) Seal identification method, device, equipment and medium
CN113744256A (en) Depth map hole filling method and device, server and readable storage medium
CN110490204B (en) Image processing method, image processing device and terminal
CN112183517B (en) Card edge detection method, device and storage medium
CN107357422B (en) Camera-projection interactive touch control method, device and computer readable storage medium
CN112733567B (en) Method and device for identifying two-dimension code of motor vehicle and computer readable storage medium
CN116976372A (en) Picture identification method, device, equipment and medium based on square reference code
CN110557622B (en) Depth information acquisition method and device based on structured light, equipment and medium
CN112163443A (en) Code scanning method, code scanning device and mobile terminal
CN113986152A (en) Ink jet printing method, device, equipment and storage medium for image segment conversion
CN108510636B (en) Image segmentation method, image segmentation device and terminal equipment
CN108629219B (en) Method and device for identifying one-dimensional code
CN107358138B (en) Correction method of nonlinear distortion EAN bar code, mobile terminal and storage device
CN113592831B (en) Printing error detection method, device and storage medium
CN113435557B (en) Two-dimensional code generation, decoding and identification method, device and equipment
CN115034245A (en) System and method for locating and decoding unreadable data matrices
CN114219760A (en) Reading identification method and device of instrument and electronic equipment
CN113850100A (en) Method and device for correcting two-dimensional code
CN109214230B (en) Data matrix code identification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant