CN115392277B - Coded information reading method and visual code reading equipment - Google Patents
Coded information reading method and visual code reading equipment Download PDFInfo
- Publication number
- CN115392277B CN115392277B CN202211047637.7A CN202211047637A CN115392277B CN 115392277 B CN115392277 B CN 115392277B CN 202211047637 A CN202211047637 A CN 202211047637A CN 115392277 B CN115392277 B CN 115392277B
- Authority
- CN
- China
- Prior art keywords
- matrix
- information
- coding
- axis
- digital
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000000007 visual effect Effects 0.000 title claims abstract description 13
- 239000011159 matrix material Substances 0.000 claims abstract description 121
- 230000010365 information processing Effects 0.000 claims description 16
- 108091026890 Coding region Proteins 0.000 claims description 12
- 239000011521 glass Substances 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 238000004519 manufacturing process Methods 0.000 description 11
- 239000002184 metal Substances 0.000 description 7
- 239000000463 material Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000007405 data analysis Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010438 heat treatment Methods 0.000 description 2
- 239000003973 paint Substances 0.000 description 2
- 239000011148 porous material Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004080 punching Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000005507 spraying Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003703 image analysis method Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0022—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
- G06K17/0025—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods 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/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Electromagnetism (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Image Processing (AREA)
Abstract
The invention relates to the technical field of code reading, and discloses a code information reading method, which comprises the following steps: s1, shooting a coding board fixed on an object to be coded by a camera to obtain a matrix bright-dark image of the coding board; s2, analyzing the matrix bright-dark image to obtain small-hole matrix coding information; s3, obtaining coded data corresponding to the small hole matrix coding information according to a preset decoding mode, and determining the coding of the object to be read according to the coded data. The code information reading method and the visual code reading device provided by the invention can be used for rapidly shooting and obtaining the small hole matrix graph, analyzing the characteristics from the graph and rapidly positioning the orthogonal coordinate axis scale, and accurately calculating the numerical value represented by the small Kong Bianma, so that the code value of the object to be read is obtained, and rapid information acquisition, transmission and tracing are realized.
Description
Technical Field
The present invention relates to the field of code reading technologies, and in particular, to a method for reading coded information and a visual code reading device.
Background
In the industrial production process, the information coding is widely applied to various production materials and parts, and people can acquire, interact, propagate and the like information materials of the production materials and the parts by coding the information. The existing coding technology is basically realized by means of bar codes or two-dimensional codes, information storage is carried out on specific bar codes or two-dimensional codes in advance, coding patterns are printed and added to production materials or parts, coding scanning is carried out through smart phones or specific equipment, and information data stored in a coding mode are obtained.
However, in the existing bar code or two-dimensional code mode, in some special production scenes of industrial sites, such as heat treatment, tile throwing, paint spraying, drying and other procedures, the bar code or two-dimensional code carrier is extremely easy to damage, and when the smart phone or specific equipment is used for code scanning, the code cannot be identified, so that the correct code value cannot be accurately read, the acquisition, transmission and tracing of the information of the product or the part are affected, the difficulty of monitoring each production link is increased, and the quality of the product cannot be effectively ensured. In order to solve the problems, the applicant proposes to bind part information by coding the metal sheet in a perforation way, so as to realize information tracing of the whole production process. The coded information reading device disclosed in the prior art mostly has the defects that the perforation codes cannot be identified and the identification precision is low, so that in order to better identify the perforation codes, the applicant has made a great deal of research and research, and now proposes a coded information reading method and a visual code reading device.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a coded information reading method and a visual code reading device, can rapidly shoot and acquire a small hole matrix graph, rapidly position orthogonal coordinate axis scales by analyzing features on the graph, and accurately calculate a numerical value represented by a small Kong Bianma, thereby obtaining a coded value of an object to be read, and realizing rapid information acquisition, transmission and tracing.
The technical aim of the invention is realized by the following technical scheme: a method of reading encoded information, the method comprising the steps of:
s1, shooting a coding board fixed on an object to be coded by a camera to obtain a matrix bright-dark image of the coding board;
s2, analyzing the matrix bright-dark image to obtain small-hole matrix coding information;
s3, obtaining coded data corresponding to the small hole matrix coding information according to a preset decoding mode, and determining the coding of the object to be read according to the coded data.
Further, the step S2 specifically includes:
s21, selecting a corner point on the matrix bright-dark image as a matrix origin;
s22, establishing two orthogonal axes along a row-column orthogonal direction by taking the matrix origin as a starting point, and judging and determining a digital axis and a numerical axis based on the two orthogonal axes;
s23, determining the aperture matrix coding information according to the digital axis and the numerical axis.
Further, the step S22 specifically includes: and respectively obtaining the number of through holes on the two orthogonal axes, and determining the numerical axis and the numerical axis according to the number of the through holes.
Further, the step of determining the numerical axis and the numerical axis according to the number of through holes specifically includes: selecting the orthogonal axes corresponding to the large number of through holes as digital axes, and selecting the orthogonal axes corresponding to the small number of through holes as digital axes;
or selecting the orthogonal axes corresponding to the small number of the through holes as digital axes, and selecting the orthogonal axes corresponding to the large number of the through holes as digital axes.
Further, the step S23 specifically includes: and determining the coding region of the matrix bright-dark image according to the digital axis and the numerical axis, and acquiring the pinhole matrix coding information in the coding region.
Further, the step S3 specifically includes:
s31, dividing the coding region into M multiplied by N row and column matrixes, and sequentially acquiring row and column position information of each small hole based on the row and column matrixes and according to the small hole matrix coding information;
s32, based on the digital axis and the numerical axis, determining digital information and numerical information corresponding to each small hole according to the row and column position information of each small hole;
s33, multiplying the numerical information and the digital information of each small hole to obtain a multiplication result, and accumulating the multiplication results of all small holes to obtain coded data;
s34, determining the code of the object to be read according to the code data.
In addition, the invention also provides a visual code reading device, which comprises a singlechip control board, a camera, light-transmitting glass and an upper computer information processing system, wherein the singlechip control board and the camera are integrated in a box body, the light-transmitting glass is arranged on one side of the box body, which is close to the camera, and the singlechip control board is provided with a singlechip;
the camera is used for shooting a coding board fixed on an object to be coded, obtaining a matrix bright-dark image of the coding board, and transmitting the matrix bright-dark image to the singlechip;
the singlechip is used for analyzing the light and shade images of the matrix to obtain small-hole matrix coding information, and transmitting the small-hole matrix coding information to the upper computer information processing system;
the upper computer information processing system is used for acquiring the coded data corresponding to the small hole matrix coded information according to a preset decoding mode, and determining the code of the object to be read according to the coded data.
The beneficial effects of the invention are as follows:
1. according to the invention, the camera shoots the code plate fixed on the object to be read, the light and dark matrix image of the code plate is obtained, the light and dark matrix image is analyzed, the code information of the small hole matrix is obtained, the code data corresponding to the code information of the small hole matrix is obtained according to the preset decoding mode, the code of the object to be read is determined according to the code data, the reading of the code information formed by the perforation matrix on the code plate is realized, and the rapid acquisition, transmission and tracing of the information in the part production process are realized.
2. The method for reading the coded information can better and more accurately identify the coded information of the small hole matrix on the coded plate, rapidly analyze characteristics and position orthogonal coordinate axis scales from a graph, accurately calculate a numerical value represented by a small Kong Bianma, ensure the accuracy and precision of acquiring the coded information of the small hole, and realize rapid information acquisition and transmission and circulation and tracing of the part.
3. According to the visual code reading equipment provided by the invention, the singlechip control board and the integrated camera are arranged in the box body, and the transparent glass is covered on the box body, so that a certain protection effect can be achieved on the singlechip control board and the camera, meanwhile, when an image is shot and acquired, an auxiliary light source is not needed, the coding board provided with the row-column matrix transparent pores is directly covered on the transparent glass, a photo is shot through the camera, the transparent pores form bright spots on the image, the opaque part is black, and a matrix bright-dark image is formed, and the image shooting and acquiring method is simple and ingenious.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for reading encoded information according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for reading encoded information according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a third embodiment of a method for reading encoded information according to the present invention;
FIG. 4 is a schematic diagram of a matrix bright-dark image obtained by a method for reading encoded information according to the present invention;
fig. 5 is a block diagram of a first embodiment of a visual code reading apparatus according to the present invention.
Detailed Description
The technical scheme of the present invention will be clearly and completely described in connection with specific embodiments. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a method for reading encoded information according to the present invention. In this embodiment, the method includes the steps of:
s1, shooting a coding board fixed on an object to be coded by a camera to obtain a matrix bright-dark image of the coding board;
s2, analyzing the matrix bright-dark image to obtain small-hole matrix coding information;
s3, obtaining coded data corresponding to the small hole matrix coding information according to a preset decoding mode, and determining the coding of the object to be read according to the coded data.
It should be noted that, the part coding information is represented by punching holes on the metal coding plate to form a fixed matrix arrangement, and the metal coding plate is bound on the part, so that the whole process information of part production can be traced by using the unique code, thereby effectively solving the problem of logistic sign damage caused by the working procedures of heat treatment, paint spraying and the like in the production process of the part. In order to better identify the perforation matrix codes on the metal code plates, the embodiment provides a code information reading method, when information materials of parts are required to be acquired, the code plates with row matrix light-transmitting small holes can be placed in front of a camera, when the camera shoots a picture, the light-transmitting small holes show bright spots on an image, and the light-transmitting places are black, so that a matrix bright-dark image is formed. After the matrix bright-dark image is obtained, analyzing the matrix bright-dark image through a preset program and algorithm to obtain the small hole matrix coding information, transmitting the small hole matrix coding information to an information processing system of an upper computer through a serial port or other communication modes, and obtaining the coding information of the part after decoding processing to realize the circulation and tracing of the part.
According to the embodiment, the camera is adopted to shoot and acquire the light and dark matrix image, the light and dark matrix image is subjected to data analysis through a preset program and algorithm, so that the small-hole matrix coding information is obtained and transmitted to the information processing system of the upper computer, the coding information formed by the perforation matrix on the coding plate is read, and the rapid acquisition, transmission and tracing of the information in the part production process are realized.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a method for reading encoded information according to the present invention. Based on the above first embodiment, in the method for reading encoded information according to this embodiment, the step S2 specifically includes:
s21, selecting a corner point on the matrix bright-dark image as a matrix origin;
s22, establishing two orthogonal axes along a row-column orthogonal direction by taking the matrix origin as a starting point, and judging and determining a digital axis and a numerical axis based on the two orthogonal axes;
s23, determining the aperture matrix coding information according to the digital axis and the numerical axis.
In a specific implementation, after a camera is adopted to take a picture to obtain a matrix bright-dark image, the matrix bright-dark image in a fixed format is analyzed through software, and a specific matrix bright-dark image analysis method is provided in the embodiment. Firstly, a corner point is required to be determined on a matrix bright-dark image to serve as a matrix origin, and it is required to be noted that the code board is preferably a square metal plate, and the matrix bright-dark image obtained by photographing is also square, so that the matrix origin is required to be determined in four corner points.
Further, considering the accuracy and precision of matrix origin determination, the numerical axis and the numerical axis can be determined first, so that the corner points with two orthogonal axes are the matrix origins. The step S22 in this embodiment specifically includes: and respectively obtaining the number of through holes on the two orthogonal axes, and determining the numerical axis and the numerical axis according to the number of the through holes.
Specifically, when determining a digital axis and a numerical axis according to the number of through holes, the orthogonal axis corresponding to the number of through holes can be selected as a digital axis, and the orthogonal axis corresponding to the number of through holes is selected as a numerical axis; or selecting the orthogonal axes corresponding to the small number of the through holes as digital axes, and selecting the orthogonal axes corresponding to the large number of the through holes as digital axes.
It should be noted that, when the fixed matrix arrangement is formed by punching holes on the metal coding plate to represent the part coding information, the rule is preset, the digit axis and the numerical axis are both located at the boundary of the coding plate and the number of the corresponding through holes is fixed, so that the characteristics can be rapidly analyzed and the digit axis and the numerical axis can be rapidly positioned from the light-dark image of the matrix based on the preset rule and the obtained number of the through holes, thereby rapidly positioning the origin and the scale of the orthogonal coordinate axis.
Further, after the digital axis and the numerical axis are determined, the aperture matrix coding information on the matrix bright-dark image can be obtained. The embodiment proposes a specific method for acquiring the aperture matrix coding information, and the step S23 specifically includes: and determining the coding region of the matrix bright-dark image according to the digital axis and the numerical axis, and acquiring the pinhole matrix coding information in the coding region. It should be understood that after the digital axis and the numerical axis are determined, the actual coding region can be quickly determined from the light-dark matrix image, the bright spots are displayed on the image according to the light-transmitting pinholes, and each pinhole can be quickly obtained, so that complete pinhole matrix coding information is obtained.
Referring to fig. 3, fig. 3 is a flowchart of a third embodiment of a method for reading encoded information according to the present invention. Based on the foregoing embodiments, in the method for reading encoded information provided in this embodiment, the step S3 specifically includes:
s31, dividing the coding region into M multiplied by N row and column matrixes, and sequentially acquiring row and column position information of each small hole based on the row and column matrixes and according to the small hole matrix coding information;
s32, based on the digital axis and the numerical axis, determining digital information and numerical information corresponding to each small hole according to the row and column position information of each small hole;
s33, multiplying the numerical information and the digital information of each small hole to obtain a multiplication result, and accumulating the multiplication results of all small holes to obtain coded data;
s34, determining the code of the object to be read according to the code data.
In the specific implementation, a camera is adopted to photograph to obtain a matrix bright-dark image, a matrix image with a fixed format is analyzed through a preset program and algorithm to obtain small-hole matrix coding information, and the small-hole matrix coding information is transmitted to an information processing system of an upper computer through a serial port or other communication modes to be decoded, so that accurate coding information is obtained. When the upper computer information processing system processes the aperture matrix coding information, the coding area is divided into a row matrix according to the positioned orthogonal coordinate axis scales, so that row and column position information corresponding to each aperture can be acquired in sequence, and the method specifically comprises digital information and numerical information corresponding to each aperture. The numerical axis represents numerical information such as units, tens, hundreds, thousands, … …, and the numerical axis represents numerical information of integers 0, 1, 2, and 3 … …. After specific digital information and numerical information of each small hole are obtained, the numerical information and the numerical information of each small hole are multiplied to obtain multiplication results, and the multiplication results of all small holes are accumulated to obtain coding data, so that the coding information of the part is determined.
Referring to fig. 4, fig. 4 is a schematic diagram of a matrix bright-dark image obtained by a method for reading encoded information according to the present invention. In this embodiment, an m=10 row and an n=10 column matrix is taken as an example for description. The method is not limited to a fixed number of rows and columns according to 10 rows and 10 columns on a square metal coded board, adopts a row-column matrix mode, and is provided with 10 rows multiplied by 10 columns, and perforations at designated row-column crossing points are used for representing different numbers, for example, M=10 rows respectively represent bits, ten bits and hundreds of bits … … billions, N=10 columns respectively represent integers of 0 to 9, and a coded board with 10 rows multiplied by 10 columns can represent 10 hundred million unique digital codes. When the coding information of the part is required to be read, a light-dark image of the matrix can be obtained through shooting by the camera, characteristics are analyzed from the image, when the number of through holes on two orthogonal axes at the boundary of the image is obtained, the number of the through holes on one connecting line is equal to 10, the number of the through holes on the connecting line is smaller than 10, and the number of the through holes on the connecting line is equal to 10, no matter in which direction the small hole light-transmitting matrix on the coding plate is arranged under the camera, the coding number can be accurately analyzed. In this embodiment, after determining the digital axis and the numerical axis, the coding region in the matrix bright-dark image can be determined rapidly, so as to read the position information of the aperture, as shown in fig. 4, the read coding data is 6×1+6×10+6×100+6×1000+ … … +6×1000000000, and finally the coding value is 6666666666. Aiming at the perforation coding mode, the coding reading method of the embodiment can rapidly analyze the characteristics from the graph and position the orthogonal coordinate axis scale, and accurately calculate the numerical value represented by the small Kong Bianma, thereby increasing the accuracy and precision of acquiring the small hole coding information.
Referring to fig. 5, fig. 5 is a block diagram showing the structure of a first embodiment of a visual code reading apparatus according to the present invention. As shown in fig. 5, the visual code reading device 50 provided in this embodiment includes a single-chip microcomputer control board 501, a camera 502, a transparent glass 503 and an upper computer information processing system 504, where the single-chip microcomputer control board 501 and the camera 502 are integrated in a box body, the transparent glass 503 is arranged on one side of the box body close to the camera 502, and the single-chip microcomputer 5011 is arranged on the single-chip microcomputer control board 501;
the camera 502 is configured to shoot a code board fixed on an object to be coded, obtain a matrix bright-dark image of the code board, and transmit the matrix bright-dark image to the singlechip 5011;
the singlechip 5011 is configured to parse the bright-dark matrix image to obtain small-hole matrix coding information, and transmit the small-hole matrix coding information to the upper computer information processing system 504;
the upper computer information processing system 504 is configured to obtain encoded data corresponding to the aperture matrix encoded information according to a preset decoding manner, and determine an encoding of the object to be encoded according to the encoded data.
In a specific implementation, the embodiment adopts the singlechip 5011 to connect the camera 502 to shoot the pinhole matrix image, the integrated singlechip control board 501 and the integrated camera 502 are arranged in the box body, and the transparent glass 503 is covered on the box body, so that the singlechip control board 501 and the camera 502 can be protected to a certain extent, meanwhile, when shooting and acquiring the image, an auxiliary light source is not needed, the coding board provided with the row-column matrix transparent pinholes is directly covered on the transparent glass 503, a photo is shot through the camera 502, the transparent pinholes form bright spots on the image, and the opaque place is black, so that a matrix bright-dark image is formed. After the matrix bright-dark image is obtained, the singlechip 5011 analyzes the matrix bright-dark image according to a preset program and algorithm to obtain the pinhole matrix coding information, the obtained pinhole matrix coding information after analysis is transmitted to the upper computer information processing system 504 through a serial port or other communication modes, and the coding information of the part can be obtained after decoding processing, so that the circulation and the tracing of the part are realized.
It should be understood that when the coded information on the coded board is read, the coded information can be read by the visual code reading device in the embodiment, the bright-dark image information of the aperture matrix is quickly and efficiently obtained by adopting a photographing mode of an industrial camera, and the coded information is read by software and transmitted to an information processing system of an upper computer. And the method of mobile phone photographing analysis can be adopted to upload the image to cloud analysis, so that industrial data acquisition in a 5G scene in the future can be realized.
According to the embodiment, the camera is adopted to shoot and acquire the light and dark matrix images, the singlechip is used for carrying out data analysis on the light and dark matrix images to acquire the small-hole matrix coding information, the small-hole matrix coding information is transmitted to the information processing system of the upper computer, and the reading of the coding information formed by the perforation matrix on the coding plate is realized, so that the rapid acquisition, transmission and tracing of the information in the part production process are realized.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element. The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Claims (4)
1. A method of reading encoded information, the method comprising the steps of:
s1, shooting a coding board fixed on an object to be coded by a camera to obtain a matrix bright-dark image of the coding board;
s2, analyzing the matrix bright-dark image to obtain small-hole matrix coding information;
s3, obtaining coded data corresponding to the small hole matrix coding information according to a preset decoding mode, and determining the coding of the object to be read according to the coded data;
the step S2 specifically includes:
s21, selecting a corner point on the matrix bright-dark image as a matrix origin;
s22, establishing two orthogonal axes along a row-column orthogonal direction by taking the matrix origin as a starting point, and judging and determining a digital axis and a numerical axis based on the two orthogonal axes;
s23, determining a coding region of the matrix bright-dark image according to the digital axis and the numerical axis, and acquiring the pinhole matrix coding information in the coding region;
the step S3 specifically includes:
s31, dividing the coding region into M multiplied by N row and column matrixes, and sequentially acquiring row and column position information of each small hole based on the row and column matrixes and according to the small hole matrix coding information;
s32, based on the digital axis and the numerical axis, determining digital information and numerical information corresponding to each small hole according to the row and column position information of each small hole;
s33, multiplying the numerical information and the digital information of each small hole to obtain a multiplication result, and accumulating the multiplication results of all small holes to obtain coded data;
s34, determining the code of the object to be read according to the code data.
2. The method of reading encoded information according to claim 1, wherein step S22 specifically comprises: and respectively obtaining the number of through holes on the two orthogonal axes, and determining the numerical axis and the numerical axis according to the number of the through holes.
3. The method of reading encoded information according to claim 2, wherein said step of determining said numerical axis and said numerical axis based on said number of through holes comprises: selecting the orthogonal axes corresponding to the large number of through holes as digital axes, and selecting the orthogonal axes corresponding to the small number of through holes as digital axes;
or selecting the orthogonal axes corresponding to the small number of the through holes as digital axes, and selecting the orthogonal axes corresponding to the large number of the through holes as digital axes.
4. A visual code reading device, characterized in that: the camera comprises a singlechip control board, a camera, light-transmitting glass and an upper computer information processing system, wherein the singlechip control board and the camera are integrated in a box body, the light-transmitting glass is arranged on one side of the box body, which is close to the camera, and the singlechip control board is provided with a singlechip;
the camera is used for shooting a coding board fixed on an object to be coded, obtaining a matrix bright-dark image of the coding board, and transmitting the matrix bright-dark image to the singlechip;
the singlechip is used for selecting an angular point on the matrix bright-dark image as a matrix origin, establishing two orthogonal axes along a row-column orthogonal direction by taking the matrix origin as a starting point, judging and determining a digital axis and a numerical axis based on the two orthogonal axes, determining an encoding region of the matrix bright-dark image according to the digital axis and the numerical axis, acquiring aperture matrix encoding information in the encoding region, and transmitting the aperture matrix encoding information to the upper computer information processing system;
the upper computer information processing system is used for dividing the coding region into M multiplied by N row and column matrixes, sequentially acquiring row and column position information of each small hole based on the row and column matrixes and according to the small hole matrix coding information, determining digital information and digital information corresponding to each small hole based on the digit axis and the numerical axis according to the row and column position information of each small hole, multiplying the numerical information and the numerical information of each small hole to obtain multiplication results, accumulating multiplication results of all small holes to obtain coding data, and determining the coding of the object to be read according to the coding data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211047637.7A CN115392277B (en) | 2022-08-30 | 2022-08-30 | Coded information reading method and visual code reading equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211047637.7A CN115392277B (en) | 2022-08-30 | 2022-08-30 | Coded information reading method and visual code reading equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115392277A CN115392277A (en) | 2022-11-25 |
CN115392277B true CN115392277B (en) | 2023-04-28 |
Family
ID=84124954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211047637.7A Active CN115392277B (en) | 2022-08-30 | 2022-08-30 | Coded information reading method and visual code reading equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115392277B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2418954A1 (en) * | 1978-03-01 | 1979-09-28 | Mini Informat Systemes Ste Eur | Perforated card reader at variable speed - has two detectors for reading columns which are associated with graduated binary scale for numbering columns |
CN108073966B (en) * | 2017-12-13 | 2020-11-10 | 广东正业科技股份有限公司 | Conversion method of two-dimensional code and hole array code |
CN114612053A (en) * | 2021-05-25 | 2022-06-10 | 广州机智云物联网科技有限公司 | Textile tracking system, method and textile |
CN114331464A (en) * | 2021-11-18 | 2022-04-12 | 郑州大河智信科技股份公司 | Tracing method for obtaining product information in high-temperature environment |
-
2022
- 2022-08-30 CN CN202211047637.7A patent/CN115392277B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115392277A (en) | 2022-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105989317B (en) | Two-dimensional code identification method and device | |
CN111259889A (en) | Image text recognition method and device, computer equipment and computer storage medium | |
US20120070086A1 (en) | Information reading apparatus and storage medium | |
CN109059922B (en) | Mobile robot positioning method, device and system | |
CN107145810A (en) | A kind of comprehensive bar code identifying device and method | |
CN111783495B (en) | Bar code identification method and device, electronic equipment and storage medium | |
CN108537115B (en) | Image recognition method and device and electronic equipment | |
CN111767754B (en) | Identification code identification method and device, electronic equipment and storage medium | |
CN113743332B (en) | Image quality evaluation method and system based on universal vision pre-training model | |
CN112258507B (en) | Target object detection method and device of internet data center and electronic equipment | |
CN111950396A (en) | Instrument reading neural network identification method | |
CN114758249B (en) | Target object monitoring method, device, equipment and medium based on field night environment | |
CN113506276B (en) | Marker and method for measuring structural displacement | |
CA3045391C (en) | Method for detection and recognition of long-range high-density visual markers | |
CN111339902A (en) | Liquid crystal display number identification method and device of digital display instrument | |
CN115131741A (en) | Method and device for detecting code carving quality, computer equipment and storage medium | |
CN115392277B (en) | Coded information reading method and visual code reading equipment | |
CN113033297B (en) | Method, device, equipment and storage medium for programming real object | |
US9129171B2 (en) | Code reading device and code reading method | |
CN107742089B (en) | Method for automatically identifying two-dimensional code by using spreadsheet | |
CN115909351B (en) | Container number identification method and device based on deep learning | |
WO2008119519A1 (en) | Data exchange method | |
CN114596243A (en) | Defect detection method, device, equipment and computer readable storage medium | |
CN115018735B (en) | Crack width identification method and system based on Hough transformation correction two-dimensional code image | |
CN108268813B (en) | Lane departure early warning 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 |