CN113326712A - Hole array code, manufacturing method thereof and identification method combining hole array code - Google Patents
Hole array code, manufacturing method thereof and identification method combining hole array code Download PDFInfo
- Publication number
- CN113326712A CN113326712A CN202110746380.3A CN202110746380A CN113326712A CN 113326712 A CN113326712 A CN 113326712A CN 202110746380 A CN202110746380 A CN 202110746380A CN 113326712 A CN113326712 A CN 113326712A
- Authority
- CN
- China
- Prior art keywords
- hole array
- hole
- code
- processed
- array code
- 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.)
- Granted
Links
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/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/1408—Methods for optical code recognition the method being specifically adapted for the type of code
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Credit Cards Or The Like (AREA)
Abstract
The application provides a hole array code, a manufacturing method thereof and an identification method combining the hole array code, wherein the hole array code comprises the following steps: a plurality of through holes, wherein each through hole corresponds to a digital field containing continuous digits 1 in the binary string, and the aperture of each through hole is obtained by converting the number of the digits 1 in the corresponding digital field; the space of each adjacent through hole corresponds to a digital field containing continuous digital 0 in the binary string, and the space is obtained by converting the number of the digital 0 in the corresponding digital field. This application makes work order sequence turn into the hole array code through drilling on PCB panel, and then replaces the work order, promotes production efficiency greatly.
Description
Technical Field
The application relates to the field of processing and manufacturing, in particular to a hole array code, a manufacturing method thereof and a recognition method combining the hole array code.
Background
In the fields of warehousing management, manufacturing, retail sale and the like, in order to record the flow condition of an article, specific parameter information of the article needs to be inquired through a string of single numbers for uniquely identifying the article, and the single number is particularly important in the manufacturing industry, particularly in PCB production.
The PCB production process is multiple, the flow is complex, the PCB parameters are huge, and the user requirements are different, so in the production process, the traditional method is to print a work order to determine the parameters required by the PCB production, record, process and track the PCB production progress, extract corresponding files and parameters from the system through the work order number on the work order in different workshops, and complete the processing of the PCB in the current workshop. The mode of printing the work order can cause that a large amount of PCB boards and work orders exist in each workshop, and the production is disordered.
Certainly, to the problem that traditional printing work order exists, some mills adopt the mode of laser to beat thunder's sign indicating number to replace the work order, and this kind of mode has an efficiency promotion, has increased extra cost of beating the sign indicating number and production processes to laser is beaten the sign indicating number and can only print one at every turn, and efficiency is limited.
In addition, some factories directly use bar codes as information carriers for spraying and board surface, and read bar code information through a scanning gun, and the mode has problems in the actual production process of the PCB: 1. if code spraying is carried out before each processing step, the PCB inevitably covers the surface of the bar code after the code spraying, the subsequent identification 2 is influenced, and if code spraying is carried out after the spraying step, the processing workshop before the spraying step still needs to adopt the work order for comparison, and the problem existing in the traditional work order printing method is not solved fundamentally.
In addition, the prior art also has the mode of adopting the self-defined rule of punching to drill on the PCB, decoding the hole array into the worker's single number that the PCB corresponds, for example CN201610181317.9 discloses through punching in the PCB processing field, represent a digit with the interval between the through-holes to form the technical scheme of coding sign, this kind of mode also has the problem: 1. the total length of the hole array code is very long, a lot of space is occupied on the PCB, and as the hole array code is additionally added during PCB production, the overlong hole array code influences the appearance of the PCB and cannot meet the requirements of required merchants; 2. in actual production, the hole array code formed by the user-defined punching rule cannot meet the requirements of factory production in both identification precision and identification efficiency, and cannot essentially replace the traditional method for printing the work order.
In summary, an effective solution is not obtained at present for the problem that in the prior art, a lot of PCBs and work orders exist in each workshop due to the way of printing the work orders, which causes confusion in production.
Disclosure of Invention
The embodiment of the application provides a hole array code, a manufacturing method thereof and an identification method combining the hole array code, wherein a work order sequence is converted into a hole array code by drilling a hole in an object to be processed, so that a work order is replaced, and the production efficiency is greatly improved.
In a first aspect, an embodiment of the present application provides a hole array code, including a plurality of through holes, where each through hole corresponds to a number segment containing consecutive digits 1 in a binary string, and an aperture of the through hole is obtained by converting the number of digits 1 in the corresponding number segment; the space of each adjacent through hole corresponds to a digital field containing continuous digital 0 in the binary string, and the space is obtained by converting the number of the digital 0 in the corresponding digital field.
According to the scheme, the single number is marked in the object to be recognized in a punching mode, 1 in the binary string for identifying the single number corresponds to the through hole, 0 in the binary string corresponds to the distance between two through holes, the number of continuous 1 is different, and the characters represented by the 1 are also different, so that the aperture size of the through hole is associated with the number of the 1, the through holes with different aperture sizes can represent different characters, the characters in the single number are converted into the hole array code, the paper worksheet is replaced by the drilled holes, and the production efficiency is improved.
In one embodiment, the aperture of the through hole is in functional relation with the number of the number 1 in the corresponding digital section, and the distance is in functional relation with the number of the number 0 in the corresponding digital section.
In this embodiment, the aperture of the through holes and the pitch between the through holes can be obtained by functionally converting the frequency of occurrence of "1" and "0".
In one embodiment, the aperture of the through hole is proportional to the number of the number 1 in the corresponding number field, and the aperture of the through hole is obtained by scaling the product of the number 1 and the preset minimum width.
In this embodiment, a plurality of through holes form a hole array code for carrying information, and the larger the aperture of a through hole is, the larger the number of repetitions of "1" in the number field represented by the through hole is.
In one embodiment, the distance is proportional to the number of 0's in the corresponding field, and the distance is scaled by the product of the number of 0's in the corresponding field and the preset minimum width.
In this embodiment, the through holes and the spaces together form a hole array code for carrying information, and the larger the space is, the larger the number of repetitions of "0" in the representative number field is.
In one embodiment, the plurality of through holes are distributed in an array to form a series of hole array codes which represent numbers and/or letters and/or symbols.
In this embodiment, the through holes are arranged in a one-dimensional or two-dimensional array during punching, and when the processing hole array code is a bar code, the plurality of through holes can be processed in batch to directly convert the bar code into the bar code.
In one embodiment, the plurality of through holes are distributed in an array, and the plurality of through holes and the spacing between each adjacent through hole form a string of hole array codes which represent numbers and/or letters and/or symbols.
In this embodiment, the number field corresponding to the space can also represent numbers, letters or symbols, and the technical effect of shorter length of the hole array code when the same string of characters is expressed is achieved by a mode that the through holes and the space jointly carry information.
In one embodiment, the shape of the through hole is one or more of circular shape and long strip shape.
In this embodiment, the through holes may be in various shapes, wherein the strip-shaped through holes correspond to black and white strip shapes of the bar code, and the holes are punched in a routing manner, so that the width of each strip-shaped through hole is the width of a black strip of the bar code, and the distance between two adjacent strip-shaped through holes is the width of a white strip of the bar code; when the through-hole shape is circular, can conveniently punch, need not additionally to increase gong strip equipment.
In one embodiment, the number of the through holes is 2-200.
In this embodiment, the number of through holes included in each hole array code does not exceed 200, and the number of sign bits represented by the hole array code can completely meet the industrial requirement under the condition that both the aperture and the pitch of the through holes can represent signs.
In one embodiment, the number of the through holes is 10-89.
In this embodiment, each hole array code contains no more than 89 through holes. Of course, the number of the through holes may be set to 10, 20, 30 in order to save the punching efficiency. The scheme can represent characters through the space and the aperture of the through holes, and the technical effect that the number of the through holes is less when the work order sequence with the same length is represented is achieved.
In a second aspect, an embodiment of the present application provides a method for manufacturing a hole array code, including the following steps: acquiring an object to be processed and a single number corresponding to the object to be processed; converting the single number into a binary string, wherein consecutive identical numbers in the binary string are divided into a set of number segments; processing a plurality of through holes on the object to be processed based on the binary character string, wherein each through hole corresponds to a digital field containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital field; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
The scheme is to represent a single number as a binary character string, convert a number field of '1' on the binary character string into a through hole and process the through hole on the object to be processed, and can effectively solve the technical problem that the processing of the object to be processed in the current workshop is easily disordered in production by scanning an identification code on a paper worksheet in the prior art to obtain parameters required by the object to be processed.
In one embodiment, the single number includes one or more of a number, a letter, and a symbol.
10 the single sign with the inner digit number is converted into the binary character string, which may take tens of digits, so that in the embodiment, the single sign is stored in the database instead of the binary character string, and when the device needs to punch the PCB, the single sign is acquired and then converted into the binary character string, and in this way, the storage consumption of the database can be reduced.
In a third aspect, the present application provides a method for identifying a combined hole array code, including: acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified; converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code; scanning information code points on the bar code to obtain corresponding bearing information; and acquiring required parameters of the object to be identified based on the bearing information.
According to the scheme, the image corresponding to the hole array code is shot, the image is processed, the hole array code in the image is converted into the bar code, the parameter information of the PCB needing to be processed in the current workshop is obtained through identifying the bar code, and the PCB is processed based on the parameter information.
In one embodiment, "converting the hole array code to a barcode on the image to be processed" includes: carrying out graying processing on an image to be processed, and carrying out binarization processing on the obtained grayed image to obtain a binary image of the image to be processed; and performing morphological operation on the binary image to obtain a bar code image corresponding to the binary image, wherein the hole array code in the binary image is converted into a bar code in the bar code image.
In the embodiment, the shot image to be processed is subjected to graying and binarization processing, so that the contrast of the background color corresponding to the through hole and the PCB color corresponding to the space is increased, and the subsequent identification operation of the bar code is facilitated
In one embodiment, before "acquiring an image to be processed", the method comprises: placing an object to be identified on a backlight source; controlling a shooting device to shoot the object to be recognized according to a preset frequency, or manually controlling the shooting device to shoot the object to be recognized, or triggering the shooting device to shoot the object to be recognized according to the content change of the hole array code on the object to be recognized.
In this embodiment, different shooting modes are set, so that the hole array code of the object to be recognized can be shot and subjected to subsequent recognition processing on the production line before the object to be recognized is automatically sent to the workshop processing equipment, and industrialization is easy to realize.
In a fourth aspect, an embodiment of the present application provides a hole array code manufacturing apparatus, including: the single number acquisition module is used for acquiring the object to be processed and a single number corresponding to the object to be processed; a single sign conversion module for converting a single sign into a binary string, wherein consecutive identical digits in the binary string are divided into a set of digit sections; the processing module is used for processing a plurality of through holes on the object to be processed based on the binary character string, wherein each through hole corresponds to a digital field containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital field; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
In a fifth aspect, an embodiment of the present application provides an identification apparatus combining hole array codes, including: the image acquisition module is used for acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified; the conversion module is used for converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code; the identification module is used for scanning information code points on the bar codes and acquiring corresponding bearing information; and the parameter acquisition module is used for acquiring the required parameters of the object to be identified based on the bearing information.
In a sixth aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the hole array code making method according to the second aspect or the recognition method combining hole array codes according to the third aspect.
In a seventh aspect, this application provides a storage medium, in which a computer program is stored, where the computer program is configured to, when executed by a processor, execute the hole array code making method according to the second aspect or the recognition method combining hole array codes according to the third aspect.
The main contributions and innovation points of the invention are as follows:
this scheme has provided a hole array code, can set up on treating the processing object, and the hole array code is obtained by binary system character string conversion, not only can replace traditional paper work order, but also possesses the technological effect that the discernment precision is high.
The scheme provides a hole array code manufacturing method, wherein a to-be-processed object is drilled, the aperture of a drilled through hole corresponds to a digital section containing a number 1, and the distance between adjacent through holes corresponds to a digital section containing a number 0, so that a reserved position on the to-be-processed object is provided with a hole array code.
The scheme provides an identification method combining hole array codes, the hole array codes in the images are converted into bar codes by shooting the images with the hole array codes, the bar codes can be directly read by bar code identification equipment, and the bar codes are obtained after the hole array codes are converted, so that the hole array codes are identified with high identification precision and high identification efficiency which are the same as the bar code identification equipment.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic view of a bar code according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a hole array code according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an identification apparatus for identifying a hole array code according to an embodiment of the present application.
Fig. 4 is a flowchart of a hole array code manufacturing method according to an embodiment of the present application.
Fig. 5 is a flowchart of a hole matrix code identification method according to an embodiment of the present application.
Fig. 6 is an identification state diagram of a hole array code when being scanned and identified according to an embodiment of the present application.
FIG. 7 is an interface display diagram of parameters read by the aperture array code according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described herein. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps for description in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
The technical scheme that the hole array code is formed on the object to be processed in a drilling mode is provided, when the hole array code is achieved, a user can identify the corresponding object to be processed uniquely through a single number of the object to be processed, and the user can obtain the single number of the object to be processed. And converting the single number into a binary character string and arranging the binary character string on the object to be processed to form a hole array code in a drilling mode according to a bar code coding rule. During identification, only the image of the hole array code on the object to be processed needs to be acquired, the image is converted to obtain the bar code, and the single number of the object to be processed and the corresponding parameter information are identified.
For example, taking the PCB as the target to be processed, a user drills a hole array code for the PCB in a drilling step in a PCB processing workshop, and a subsequent workshop obtains corresponding processing parameters by scanning and identifying the hole array code to perform corresponding processing on the PCB.
The present application is described below by using specific embodiments and with reference to specific application scenarios, it should be noted that the object to be processed may include any type of object that can form an identification code through punching, such as other plates, or a material body of paper, cardboard, film, and the like, and the present solution is not limited in this respect.
Example one
The embodiment of the application provides a hole array code, fig. 1 is a schematic diagram of a barcode according to the embodiment of the application, and fig. 2 is a schematic diagram of a hole array code according to the embodiment of the application.
As shown in fig. 1, the single number of the PCB is "1234567890", the processing parameters and other information of the PCB stored in the database can be retrieved through the single number, and the PCB can be processed correspondingly in the current workshop based on the obtained processing parameters. The '1234567890' can be converted into a binary character string, in the scheme, the single number '1234567890' and the corresponding binary character string can both represent the bar code in fig. 1, and the processing parameters corresponding to the PCB can be obtained by scanning the bar code.
Punching the PCB based on the binary string corresponding to the single sign, wherein each through hole corresponds to a digital segment containing continuous digits 1 in the binary string, and the aperture of each through hole is obtained by converting the number of the digits 1 in the corresponding digital segment; the space of each adjacent through hole corresponds to a digital field containing continuous digital 0 in the binary string, and the space is obtained by converting the number of the digital 0 in the corresponding digital field.
In the scheme, the fact that the aperture of the through hole is obtained by converting the number of the digits 1 in the corresponding digit field means that the aperture of the through hole is related to the number of the digits 1 in the corresponding digit field, after simple conversion, the aperture of the through hole can be converted into the number of the digits 1 in the digit field, the single number and the binary string can represent the bar code in the figure 1, and then the bearing information of the converted bar code of the hole array code obtained by converting the binary string is consistent with the obtained bearing information of the single number. Illustratively, the association may be: the aperture of the through hole is in direct proportion to the number of the number 1 in the corresponding number section or in other functional relations. After the shot hole array code image is processed, the hole array code can obtain a bar code after morphological transformation. The meaning of the pitch converted from the number of 0 in the corresponding digital field is the same, and will not be described redundantly.
Referring to fig. 1 again, the encoding rule of the barcode in fig. 1 is code128, which can encode characters and numbers, and it is composed of four black bars with different widths and four white bars with different widths, corresponding to four through holes with different apertures and four different through hole spacing in the mesoporous array code.
It should be noted that, in this scheme, the bar code is not converted into the hole array code, but the single number of the PCB board is converted into the hole array code based on the bar code rule. Barcode rules applicable in the present solution include, but are not limited to: code 128A, Code 128B, Code 128C, Code 128C (F1, mod10), Code 39Full Ashi, Code 39mod 43, Code 93, EAN-128, EAN-13Plus 2, EAN-13Plus 5, EAN-8Plus 2, EAN-8Plus 5, EAN-UCC 13, EAN-UCC 14, EAN-UCC 8, Extended Code 93, GS1-128, GS1-128(Multi), GS1-128 CoGS-EAN-13, GS1-128 Coppon Code-UPC-A, Intelligent Mail, Interleaved 2of 5mod 10, ISBN13, ISBT-128 ITF 14, PostF 14, Postnet, Key 12, EAN-128 UCC/UC 128, EAN-128 UCC/UCC (EAN-13/UCC/128), EAN-13 UCC/UCC 5, EAN-128 UCC/E, EAN-128, EAN-UCC-13, EAN-UCC-E-13, EAN-E-, UCC/EAN-128Coupon Code-UPC-A, UPC Shipping Container, UPC-A, UPC-A Plus 2, UPC-A Plus 5, UPC-E, UPC-E Plus 2, UPC-E Plus 5.
Common encoding rules include Code128 bar Code, cross two five bar Code, EAN bar Code, UPC bar Code, curdebar bar Code, Code 39 bar Code, etc. The encoding rules are different, and the types of characters carried by the encoding rules are different, for example, some encoding rules can only represent even-numbered digits, some encoding rules can represent symbols and numbers, some encoding rules can represent letters, symbols and numbers, and the like.
In addition, it should be noted that the hole array code can be directly set on the PCB or at the edge of the PCB, and the hole array code is removed at the last step of processing the PCB, so that the appearance of the PCB is not affected, and the requirement of the supplier is met.
In the actual drilling process, the proportional sizes of the through holes with the four apertures are in a multiple relation and are proportional to the preset minimum width. The through hole with the minimum aperture determines whether the hole array code is blocked in the processing process of the PCB so as to influence the identification effect. The easier the through hole with the largest aperture determines whether the length of the whole section of the hole array code is too long or not when the whole section of the hole array code is converted into the bar code, and the longer the hole array code is, the more the PCB board is wasted, so that in combination with the two situations, preferably, the aperture of the smallest through hole is set to be 0.05-4 mm, and correspondingly, under the code128 coding rule, the apertures of the other three through holes are 0.1-8 mm, 0.2-16 mm and 0.4-32 mm in sequence.
Referring to fig. 2, the scheme further exemplarily proposes a schematic diagram of another hole array code. The hole array code in fig. 2 is composed of two through holes with different apertures and two different through hole intervals, the bar code corresponding to the hole array code is a crossed two-five code, and under the coding rule, when the aperture length of the smallest through hole is 0.05mm-4mm, and the aperture of the other through hole is 0.1mm-8mm, the length of the hole array code is further reduced.
In one embodiment, the shape of the through hole is one or more of circular shape and long strip shape.
In this embodiment, the through holes may be in various shapes, wherein the strip-shaped through holes correspond to black and white strip shapes of the bar code, and the through holes are formed in a routing manner, so that the width of each strip-shaped through hole is the width of a black strip of the bar code, and the distance between two adjacent strip-shaped through holes is the width of a white strip of the bar code; the preferred circular through-hole in this scheme, when the through-hole shape is circular, can conveniently punch, need not additionally to increase gong strip equipment.
Specifically, this scheme is opened the material at single biplate and is accomplished and get into the drilling process, not only punches to the required through-hole of PCB board production, can also punch to the required hole array code of discernment PCB board on same processing line. The drilling mode does not need extra code printing equipment, and extra feeding and blanking steps are reduced, so that the manufacturing cost of the hole array code is greatly saved.
In one embodiment, the number of the through holes is 2-200. In this embodiment, the number of through holes included in each hole array code does not exceed 200, and the number of sign bits represented by the hole array code can completely meet the industrial requirement under the condition that both the aperture and the spacing of the through holes can represent the sign.
Preferably, the number of the through holes is 10-89.
In a preferred embodiment, each hole matrix contains no more than 89 through holes. Of course, the number of the through holes may be set to 20, 30 in order to save the punching efficiency. The scheme can represent characters through the space and the through hole aperture, and the technical effect that the number of the through holes can be fewer when the single numbers with the same length are represented is achieved.
Referring to fig. 2 again, in fig. 2, 25 cross codes are used, the number of the through holes is 24, the aperture of the through holes is 0.5mm and 1mm, and the length of the hole array code is 32 mm. It can be seen that the number of the through holes is small and the length of the hole array code printed on the PCB is short.
Therefore, compared with the prior art, the hole array code provided by the scheme has the identification precision consistent with the bar code, the length and the number of the through holes are smaller, excessive PCB plates cannot be wasted, meanwhile, the processing steps of the hole array code can be directly carried out in a PCB plate punching workshop, and the processing speed is high.
The hole array code provided by the scheme realizes the identification function of the PCB through single number conversion by the bar code coding rule and drilling on the PCB, so the scheme is suitable for all the bar code coding rules. The scheme utilizes the characteristic of high bar code recognition rate, overcomes the industrial problem that the current PCB processing industry still recognizes the PCB with the traditional work order due to the fact that the bar code is difficult to be arranged on the PCB in a printing mode, and has the technical effects of high recognition rate, high recognition speed, high processing speed, replacement of the traditional work order and avoidance of production disorder.
Example two
Based on the same conception, the embodiment of the application provides a method for manufacturing a hole array code, which comprises the following steps:
acquiring an object to be processed and a single number corresponding to the object to be processed;
converting the single number into a binary string, wherein consecutive identical numbers in the binary string are divided into a set of number segments;
processing a plurality of through holes on the object to be processed based on the binary character string, wherein each through hole corresponds to a digital field containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital field; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for manufacturing a hole array code, in this embodiment, the hole array code is manufactured by using a drilling apparatus for drilling a PCB. For example, the PCB board is drilled based on the cross two-five bar code, in this embodiment, the model of the drilling equipment may be a VEGA6 head drilling machine, the bar code obtained by adopting the encoding rule of the cross two-five bar code is obtained, and the aperture and the pitch of the through holes of the hole array code are set based on the number field containing the number 1 and the number field containing the number 0 in the binary character string in the bar code rule. Wherein, a 0.5mm drill and a 1mm drill are respectively used for punching on the PCB, the aperture of the small hole is 0.5mm, and the aperture of the large hole is 1 mm. The aperture of the big hole and the aperture of the small hole are respectively in direct proportion to the number of the number 1 in the corresponding digital section, the distance between the two through holes is in direct proportion to the number 0 in the corresponding digital section, and the proportionality coefficients of the two through holes are equal.
In one embodiment, the single number includes one or more of a number, a letter, and a symbol.
10 the single sign with the inner digit number is converted into the binary character string, which may take tens of digits, so that in the embodiment, the single sign is stored in the database instead of the binary character string, and when the device needs to punch the PCB, the single sign is acquired and then converted into the binary character string, and in this way, the storage consumption of the database can be reduced.
EXAMPLE III
Based on the same concept, an embodiment of the present application provides a recognition method combining a hole array code, and fig. 5 is a flowchart of the recognition method combining the hole array code according to the embodiment of the present application, and referring to fig. 5, the method includes:
acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified;
converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code;
scanning information code points on the bar code to obtain corresponding bearing information;
and acquiring required parameters of the object to be identified based on the bearing information.
According to the scheme, the image corresponding to the hole array code is shot, the image is processed, the hole array code in the image is converted into the bar code, the bar code corresponds to the hole array code through the same binary character string, and therefore parameter information acquired by reading the bar code is consistent with parameter information of the hole array code on the PCB. And acquiring parameter information of the PCB required to be processed in the current workshop through the identification bar code, and processing the PCB based on the parameter information.
For example, referring to fig. 7, in the present solution, the processing parameters such as the process card number and the process quantity corresponding to the PCB can be obtained by scanning the identification hole array code in the workshop, and the processing procedures that the PCB has already passed can be known by obtaining the corresponding processing parameters, so that the PCB is correspondingly processed in the current workshop.
For example, referring to fig. 3, in the present solution, an industrial camera is used to shoot a PCB, and an image with a complete hole array code is obtained. The resolution of the industrial camera is 1280 x 960, and the industrial camera can be fixed on the PCB at the position of 200mm and aligned with the front surface of the PCB.
Preferably, before "acquiring an image to be processed", the method comprises: the PCB board is placed on a backlight.
Fig. 6 is a schematic diagram of an aperture array code photographed in a backlight environment according to an embodiment of the present application. Referring to fig. 2 and 6, the hole array code obtained by punching in fig. 2 has a low spatial position contrast ratio without adding a backlight source, and is easily interfered by factors such as ink in a production process, so that the hole array code in a shot image is difficult to identify. Therefore, the backlight source is added in fig. 6, the contrast is improved by adding a backlight on the PCB, so that the recognition accuracy of the hole array code can be similar to the recognition accuracy of the bar code, and since the bar code is stable and high in accuracy, the hole array code image shot after the backlight source is added in the scheme is basically free from errors in wide application in the market, and the hole array code image also has the characteristics of high recognition accuracy and high recognition speed in subsequent recognition.
For example, as described in the second embodiment, 500 hole array codes corresponding to the same single number are arranged, and the identification accuracy of 500 hole array codes is 100%. In addition, there are various ways to take pictures of the PCB, and the following ways are shown in this scheme: the shooting device is controlled to shoot the PCB according to the preset frequency, or the shooting device is controlled manually to shoot the PCB, or the shooting device is triggered to shoot the PCB according to the content change of the hole array code on the PCB.
In this scheme, set up different shooting modes and can make the PCB board automatically send into before workshop processing equipment on the assembly line to the hole array code of PCB board shoot and follow-up discernment handle, easily industrialization.
Preferably, "converting the hole array code into a barcode on the image to be processed" includes:
carrying out graying processing on an image to be processed, and carrying out binarization processing on the obtained grayed image to obtain a binary image of the image to be processed; and performing morphological operation on the binary image to obtain a bar code image corresponding to the binary image, wherein the hole array code in the binary image is converted into a bar code in the bar code image.
In the embodiment, the shot image to be processed is subjected to graying and binarization processing, so that the contrast of the background color corresponding to the through hole and the color of the PCB corresponding to the space is increased.
Example four
Based on the same technical concept, the embodiment of the invention provides a hole array code manufacturing device, which comprises: the single number acquisition module is used for acquiring the object to be processed and a single number corresponding to the object to be processed; a single sign conversion module for converting a single sign into a binary string, wherein consecutive identical digits in the binary string are divided into a set of digit sections; the processing module is used for processing a plurality of through holes on the object to be processed based on the binary character string, wherein each through hole corresponds to a digital field containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital field; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
The processing module may be provided with a drill for drilling a hole in the object to be processed, and specific parameters of the drill are as described in the second embodiment. Further, since the apparatus is operated by the method described above, the repetitive description is not intended.
EXAMPLE five
Based on the same conception, the embodiment of the application provides an identification device combined with a hole array code, which comprises: the image acquisition module is used for acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified; the conversion module is used for converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code; the identification module is used for scanning information code points on the bar codes and acquiring corresponding bearing information; and the parameter acquisition module is used for acquiring the required parameters of the object to be identified based on the bearing information.
Similarly, an industrial camera is built in the image acquisition module, and a processor is built in the conversion module to process the image. Further, since the apparatus is operated by the method described above, the repetitive description is not intended.
EXAMPLE six
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
In particular, the processor may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
The memory may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory may include a hard disk drive (hard disk drive, abbreviated HDD), a floppy disk drive, a Solid State Drive (SSD), flash memory, an optical disk, a magneto-optical disk, tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is a Non-Volatile (Non-Volatile) memory. In particular embodiments, the memory includes Read-only memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a static random-access memory (SRAM) or a dynamic random-access memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random Access Memory (FPMDRAM), an Extended Data Output Dynamic Random Access Memory (EDODRAM), a Synchronous Dynamic Random Access Memory (SDRAM), or the like.
The memory may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by the processor.
The processor reads and executes the computer program instructions stored in the memory to realize any one of the hole array code manufacturing methods and the hole array code combined identification method in the above embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
A transmitting device may be used to receive or transmit data via a network. Specific examples of the network described above may include wired or wireless networks provided by communication providers of the electronic devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The input and output devices are used for inputting or outputting information. For example, the input/output device may be a mobile terminal, a display screen, a sound box, a microphone, a mouse, a keyboard, or other devices. In the present embodiment, the input information may be a to-be-processed image, a barcode, or the like, and the output information may be a barcode recognition result, or the like.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
acquiring an object to be processed and a single number corresponding to the object to be processed;
converting the single number into a binary string, wherein consecutive identical numbers in the binary string are divided into a set of number segments;
processing a plurality of through holes on the object to be processed based on the binary character string, wherein each through hole corresponds to a digital field containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital field; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
Acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified;
converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code;
scanning information code points on the bar code to obtain corresponding bearing information;
and acquiring required parameters of the object to be identified based on the bearing information.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, in combination with the hole array code manufacturing method and the hole array code identification method in the above embodiments, the embodiments of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; when executed by a processor, the computer program implements any one of the hole array code production methods and the recognition method combining the hole array codes in the above embodiments.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (19)
1. A hole array code is characterized by comprising a plurality of through holes, wherein each through hole corresponds to a digital section containing continuous digits 1 in a binary string, and the hole diameter of each through hole is obtained by converting the number of the digits 1 in the corresponding digital section; the space of each adjacent through hole corresponds to a digital field containing continuous digital 0 in the binary string, and the space is obtained by converting the number of the digital 0 in the corresponding digital field.
2. The hole array code of claim 1, wherein the aperture of the through hole is in functional relation to the number of the number 1 in the corresponding number field, and the pitch is in functional relation to the number of the number 0 in the corresponding number field.
3. The hole array code according to claim 1, wherein the aperture of the through hole is proportional to the number of the number 1 in the corresponding number field, and the aperture of the through hole is scaled by the product of the number 1 and the preset minimum width.
4. The aperture array code of claim 2, wherein the pitch is proportional to the number of 0's in the corresponding field, and the pitch is scaled by the product of the number of 0's in the corresponding field and the predetermined minimum width.
5. The hole array code according to claim 1 or 3, wherein the plurality of through holes are distributed in an array to form a string of hole array codes representing numbers and/or letters and/or symbols.
6. The hole array code according to claim 1 or 4, wherein the plurality of through holes are distributed in an array, and the plurality of through holes and the pitch of each adjacent through hole form a string of hole array codes representing numbers and/or letters and/or symbols.
7. The hole array code of claim 1, wherein the shape of the through holes is one or more of circular and long-strip.
8. The hole array code according to claim 1, wherein the number of the through holes is 2-200.
9. The hole array code according to claim 1, wherein the number of the through holes is 10-89.
10. A method for manufacturing a hole array code is characterized by comprising the following steps:
acquiring an object to be processed and a single number corresponding to the object to be processed;
converting the single number into a binary string, wherein consecutive identical numbers in the binary string are divided into a set of number segments;
processing a plurality of through holes on an object to be processed, wherein each through hole corresponds to a digital section containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital section; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
11. The method for manufacturing the hole array code according to claim 10, wherein the object to be processed is a PCB board.
12. The method for making the hole array code according to claim 10, wherein the single number comprises one or more of numbers, letters and symbols.
13. A method for identifying a combined hole array code is characterized by comprising the following steps:
acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified;
converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code;
scanning information code points on the bar code to obtain corresponding bearing information;
and acquiring required parameters of the object to be identified based on the bearing information.
14. The method for identifying a combined hole array code according to claim 13, wherein converting the hole array code into a bar code on the image to be processed comprises:
carrying out graying processing on an image to be processed, and carrying out binarization processing on the obtained grayed image to obtain a binary image of the image to be processed;
and performing morphological operation on the binary image to obtain a bar code image corresponding to the binary image, wherein the hole array code in the binary image is converted into a bar code in the bar code image.
15. The method for identifying a combined hole array code according to claim 13, wherein before "acquiring an image to be processed", the method comprises:
placing an object to be identified on a backlight source;
controlling a shooting device to shoot an object to be identified according to a preset frequency,
or the shooting device is manually controlled to shoot the object to be identified,
or the shooting device is triggered to shoot the object to be recognized according to the content change of the hole array code on the object to be recognized.
16. The utility model provides a hole array code making devices which characterized in that includes:
the single number acquisition module is used for acquiring the object to be processed and a single number corresponding to the object to be processed;
a single sign conversion module for converting a single sign into a binary string, wherein consecutive identical digits in the binary string are divided into a set of digit sections;
the processing module is used for processing a plurality of through holes on the object to be processed, wherein each through hole corresponds to a digital section containing a number 1, and the aperture of each through hole is obtained by converting the number of the numbers 1 in the corresponding digital section; the distance between every two adjacent through holes corresponds to a digital section containing a number 0, and the distance is obtained by converting the number of the numbers 0 in the corresponding digital section.
17. An identification device incorporating a hole array code, comprising:
the image acquisition module is used for acquiring an image to be processed, wherein the image to be processed comprises a hole array code processed on an object to be identified;
the conversion module is used for converting the hole array code into a bar code on the image to be processed, wherein each through hole corresponds to a black bar of the bar code, and the space between every two adjacent through holes corresponds to a white bar of the bar code;
the identification module is used for scanning information code points on the bar codes and acquiring corresponding bearing information;
and the parameter acquisition module is used for acquiring the required parameters of the object to be identified based on the bearing information.
18. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the method of making a hole array code according to any one of claims 10 to 12 or the method of identifying a combined hole array code according to any one of claims 13 to 15.
19. A storage medium having stored thereon a computer program, wherein the computer program is arranged to be executed by a processor to perform the method of making a hole array code according to any one of claims 10 to 12 or the method of identifying a combined hole array code according to any one of claims 13 to 15.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110746380.3A CN113326712B (en) | 2021-07-01 | 2021-07-01 | Hole array code, manufacturing method thereof and identification method combining hole array code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110746380.3A CN113326712B (en) | 2021-07-01 | 2021-07-01 | Hole array code, manufacturing method thereof and identification method combining hole array code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113326712A true CN113326712A (en) | 2021-08-31 |
CN113326712B CN113326712B (en) | 2022-03-29 |
Family
ID=77425417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110746380.3A Active CN113326712B (en) | 2021-07-01 | 2021-07-01 | Hole array code, manufacturing method thereof and identification method combining hole array code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113326712B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3916154A (en) * | 1975-01-06 | 1975-10-28 | Singer Co | Method and circuitry for decoding a high density bar code |
CN1077299A (en) * | 1992-04-06 | 1993-10-13 | 帝菱产业株式会社 | The coding/decoding method of two-dimensional code symbol mark |
CN101431855A (en) * | 2007-11-08 | 2009-05-13 | 英业达股份有限公司 | Circuit board with identification code and its production method |
CN105764243A (en) * | 2016-03-28 | 2016-07-13 | 东莞市智捷自动化设备有限公司 | PCB encoding identification method |
CN107085738A (en) * | 2017-02-09 | 2017-08-22 | 韦旭辉 | A kind of label suitable for PCB, FPC |
CN108537315A (en) * | 2018-04-13 | 2018-09-14 | 中国人民武装警察部队工程大学 | A kind of generation of safe Quick Response Code and authentication method |
CN110084347A (en) * | 2019-04-24 | 2019-08-02 | 任弘毅 | A kind of generation, identifying system and the method for the identification code of aluminum alloy mould plate for building |
CN111797642A (en) * | 2020-07-08 | 2020-10-20 | 北京京东振世信息技术有限公司 | Bar code identification method and terminal |
-
2021
- 2021-07-01 CN CN202110746380.3A patent/CN113326712B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3916154A (en) * | 1975-01-06 | 1975-10-28 | Singer Co | Method and circuitry for decoding a high density bar code |
CN1077299A (en) * | 1992-04-06 | 1993-10-13 | 帝菱产业株式会社 | The coding/decoding method of two-dimensional code symbol mark |
CN101431855A (en) * | 2007-11-08 | 2009-05-13 | 英业达股份有限公司 | Circuit board with identification code and its production method |
CN105764243A (en) * | 2016-03-28 | 2016-07-13 | 东莞市智捷自动化设备有限公司 | PCB encoding identification method |
CN107085738A (en) * | 2017-02-09 | 2017-08-22 | 韦旭辉 | A kind of label suitable for PCB, FPC |
CN108537315A (en) * | 2018-04-13 | 2018-09-14 | 中国人民武装警察部队工程大学 | A kind of generation of safe Quick Response Code and authentication method |
CN110084347A (en) * | 2019-04-24 | 2019-08-02 | 任弘毅 | A kind of generation, identifying system and the method for the identification code of aluminum alloy mould plate for building |
CN111797642A (en) * | 2020-07-08 | 2020-10-20 | 北京京东振世信息技术有限公司 | Bar code identification method and terminal |
Non-Patent Citations (1)
Title |
---|
杨平强 等: "条码技术及其应用", 《宁夏科技》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113326712B (en) | 2022-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6902114B2 (en) | Setting bar code of optical information reader, method for generating the same, method for changing setting of optical information reader and computer-readable medium | |
CN103400174B (en) | The coded method of a kind of Quick Response Code, coding/decoding method and system | |
US11392811B2 (en) | Methods and arrangements for reconciling data from disparate data carriers | |
US20130153662A1 (en) | Barcode Photo-image Processing System | |
CN105764243B (en) | A kind of pcb board code identification method | |
CN101180631B (en) | Print medium feature encoding and decoding | |
CN113326712B (en) | Hole array code, manufacturing method thereof and identification method combining hole array code | |
CN109794988A (en) | Processing method, device and the computer readable storage medium of perforation two dimensional code | |
CN107742089B (en) | Method for automatically identifying two-dimensional code by using spreadsheet | |
KR20070015101A (en) | Method and the algorithm to transform "1d & 2d black and white barcode "to color code | |
CN112633445B (en) | Product identification code encoding method, product identification code identification method and computer equipment | |
CN103177394A (en) | System and method for managing animal quarantine permit based on network | |
US20170039399A1 (en) | Creating mechanical stamps to produce machine-readable optical labels | |
CN111598090A (en) | Method for identifying mark on printed circuit board and related equipment | |
CN105825250A (en) | Method and device for counting poor display panels | |
CN1677424B (en) | Radio-frequency identifying code encoding and decoding method | |
CN104036210A (en) | Test method of identifying multi-tag performance by UHF reader | |
CN114371762A (en) | Method and device for printing customized label and storage medium | |
Singh | A snapshot of traditional library to modern library using bar code technology: an experience of central library GNDEC, Ludhiana | |
WO2012050570A1 (en) | A system for generating an incrementally completed 2d security mark | |
CN101571916A (en) | Method for identifying screen code with uniform dot matrix | |
Weng et al. | Design and implementation of barcode management information system | |
Rathod et al. | Detecting and decoding algorithm for 2D barcode | |
CN101561885A (en) | Method for generating full page-type bar code | |
CN115409142B (en) | Perforated coded metal signboard and coding method |
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 | ||
CB03 | Change of inventor or designer information |
Inventor after: Zhou Bangbing Inventor after: Jia Shilei Inventor after: Yuan Wenshuang Inventor before: Zhou Bangbing Inventor before: Jia Shilei Inventor before: Yuan Wenshuang Inventor before: Sun Yichao Inventor before: Zhang Hongxing |
|
CB03 | Change of inventor or designer information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |