CN109117686B - Object information identification method and device, computer equipment and storage medium - Google Patents

Object information identification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109117686B
CN109117686B CN201810939553.1A CN201810939553A CN109117686B CN 109117686 B CN109117686 B CN 109117686B CN 201810939553 A CN201810939553 A CN 201810939553A CN 109117686 B CN109117686 B CN 109117686B
Authority
CN
China
Prior art keywords
information
identification information
code
color code
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810939553.1A
Other languages
Chinese (zh)
Other versions
CN109117686A (en
Inventor
吴晓
胡龙耀
耿路
吴靖
范育宸
刘怀国
刘润声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Soniq Digital Smart Solution Ltd
Original Assignee
Lianyungang Quatius Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lianyungang Quatius Digital Technology Co ltd filed Critical Lianyungang Quatius Digital Technology Co ltd
Priority to CN201810939553.1A priority Critical patent/CN109117686B/en
Publication of CN109117686A publication Critical patent/CN109117686A/en
Application granted granted Critical
Publication of CN109117686B publication Critical patent/CN109117686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation

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)
  • Image Analysis (AREA)

Abstract

The invention relates to an object information identification method, an object information identification device, computer equipment and a storage medium, and belongs to the technical field of information identification. The method comprises the following steps: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information. By the technical scheme, the problem that the identification of the object information is not accurate enough is solved. The position of the second color code is determined according to the first color code, so that the second identification information of the second color code can be more easily determined, and a more accurate object identification result can be obtained.

Description

Object information identification method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of information identification technologies, and in particular, to a method and an apparatus for identifying object information, a computer device, and a storage medium.
Background
With the development of market economy, object identification has become more and more common, for example: the merchandise settlement process generally requires identifying merchandise information. At present, information codes such as one-dimensional codes and two-dimensional codes on identification objects are commonly used. However, at present, the identification information code is often identified by the scanning device approaching the information code to be identified, and in some cases, the identification information code is often not identified. In addition, information codes such as one-dimensional codes and two-dimensional codes are often black and white, and information contained in the information codes is limited, so that the one-dimensional codes and the like are not convenient to identify. Color codes have been increasingly used for identification of object information because they allow fast and long-distance reading because color is better than black and white. In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: under the condition of insufficient conditions such as light rays, distance and the like, the identification of the color code is still not accurate enough, so that the identification of the object information is not accurate enough.
Disclosure of Invention
Based on the object information identification method and device, the computer equipment and the storage medium, the object information identification accuracy can be effectively improved.
The content of the embodiment of the invention is as follows:
an object information recognition method, comprising the steps of: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information.
In one embodiment, before the step of determining the position of the second color code of the object when the first identification information meets a preset condition, the method further includes: acquiring predetermined first color code information of the object; and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
In one embodiment, the step of determining the information recognition result of the object according to the second recognition information includes: acquiring a first corresponding relation between pre-established second identification information and object information; and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
In one embodiment, the step of obtaining second identification information of the second color code in the position and determining the information identification result of the object according to the second identification information includes: if the second identification information fails to be acquired, acquiring partial identification information of the second color code; and determining an information identification result of the object according to the first identification information and the partial identification information.
In one embodiment, the step of determining the information recognition result of the object based on the first recognition information and the partial recognition information includes: integrating the first identification information and the partial identification information to obtain standby identification information; and when the spare identification information is matched with the predetermined candidate spare identification information, determining the information identification result of the object according to the candidate spare identification information.
In one embodiment, the second color code comprises: a start code, an end code and an RGB center code; the step of acquiring second identification information of a second color code in the position includes: determining a start code and an end code of the second color code according to the position; and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
In one embodiment, the step of determining the second identification information according to the RGB values of the RGB center code includes: acquiring a second corresponding relation between the pre-established RGB value and the numerical value number; and determining the numerical value number of the second color code according to the second corresponding relation, and determining the second identification information according to the numerical value number.
Correspondingly, an embodiment of the present invention provides an apparatus for identifying object information, including: the device comprises a color code acquisition module, a color code acquisition module and a color code matching module, wherein the color code acquisition module is used for acquiring first identification information of a first color code of an object; the position determining module is used for determining the position of a second color code of the object when the first identification information meets a preset condition; the position is determined according to the first color code; and the identification module is used for acquiring second identification information of a second color code in the position and determining an information identification result of the object according to the second identification information.
According to the method and the device for identifying the object information, when the first identification information of the first color code meets the preset condition, the position of the second color code is determined; and determining second identification information in the position, and further determining an information identification result of the object. The position of the second color code is determined according to the first color code, so that the second identification information of the second color code can be more easily determined, and a more accurate object identification result can be obtained.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information.
According to the computer equipment, the position of the second color code is determined according to the first color code, the second identification information of the second color code can be determined more easily, and a more accurate object identification result can be obtained.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information.
The computer-readable storage medium determines the position of the second color code according to the first color code, so that the second identification information of the second color code can be determined more easily, and a more accurate object identification result can be obtained.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for identifying object information;
FIG. 2 is a flowchart illustrating a method for identifying object information according to one embodiment;
FIG. 3 is a flow diagram illustrating a method for determining item information according to one embodiment;
FIG. 4 is a flow diagram illustrating an embodiment for determining information recognition results via a spare code;
FIG. 5 is a diagram of start and end codes in one embodiment;
FIG. 6 is a diagram illustrating the correspondence between RGB codes and corresponding octal numeric codes in one embodiment;
FIG. 7 is a diagram illustrating the correspondence between RGB codes and corresponding octal numbers in another embodiment;
FIG. 8 is a diagram illustrating a comparison of the RGB center code outline and background in one embodiment;
FIG. 9 is a schematic diagram of an object barcode in one embodiment;
FIG. 10 is a flowchart illustrating a method for identifying object information according to another embodiment;
FIG. 11 is a block diagram showing the structure of an apparatus for recognizing object information according to an embodiment;
FIG. 12 shows an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The object information identification method provided by the application can be applied to the application environment shown in fig. 1. The scanning terminal 101 obtains corresponding first identification information by scanning the color code, and uploads the first identification information to the processing unit 102, and the processing unit 102 determines the position of the second color code when the first identification information meets the preset condition, obtains the second identification information, and further determines the information identification result of the object. The scanning terminal 101 may be various terminals with scanning functions, including but not limited to a smartphone and a scanner. The processing unit 102 may be a server, a personal computer, a laptop, a smartphone, a tablet, a POS machine, a portable wearable device. In addition, the processing unit 102 may upload the acquired and processed data to a server for data sharing with other devices.
The embodiment of the invention provides an object information identification method and device, computer equipment and a storage medium. The following description will be made in detail by taking the method as an example applied to the processing unit 102 in fig. 1.
In one embodiment, as shown in fig. 2, there is provided an object information identification method, including the steps of:
s201, first identification information of a first color code of an object is obtained.
Wherein an object refers to something that can display or present a color code. May refer to an article, a commodity, a person, a picture displayed on a screen, etc. The first color code may be displayed on the object or may be attached to the object.
The first color code refers to a bar code expressed by a color form, and can be a color one-dimensional code, a color two-dimensional code, and other forms. Meanwhile, the first color code may comprise one bar code (a vertical line or a horizontal line), or may comprise two or more bar codes.
The first identification information is color (which can be converted into RGB values, etc.), number, form, and other information included in the color code obtained by identifying the first color code.
Further, the initial data obtained by the color code can be quantized to obtain data, which is convenient for subsequent information processing.
In addition, the obtaining of the first identification information of the first color code may be realized by scanning the first color code through a terminal having a scanning function, or may be realized in other manners. These scanning terminals may be provided with a camera (and thus may be considered to scan the first color code by means of the camera). Among them, a CAMERA (CAMERA or WEBCAM) is also called a computer CAMERA, a computer eye, an electronic eye, etc., is a video input device, and is now widely used in many fields such as video conferencing, telemedicine, real-time monitoring, etc.
S202, when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined from the first color code.
In this step, when the first identification information meets the preset condition, the position of the second color code of the object is determined according to the positioning function of the first color code.
When the first identification information meets the preset condition, the second color code is determined, the encryption function of the first color code is used, and the first color code can be called as a security code. The position of the second color code is determined on the basis of the first color code, which is used for the positioning function of the first color code, and the first color code can be called positioning code.
The encryption function of the first color code can improve the information security and the anti-counterfeiting capability of the object. If the first identification information captured by the scanning device does not meet the preset condition, the first color code can be regarded as an invalid code, and the next operation of acquiring the second identification information is not carried out. The processing mode can greatly improve the information security of the object. Of course, the developer can choose whether to enable the function of the security code and whether to open the security code after use. That is, if the developer selects not to enable the security code, the corresponding information identification result may be determined directly according to the second identification information when the second identification information is acquired without the judgment of the first identification information.
In addition, the judgment of whether the first identification information satisfies the preset condition may be to judge whether the first identification information satisfies the condition in terms of size, number, and the like, may also be to judge whether the first identification information matches a preset threshold value, and may of course be in other manners.
The first color code and the second color code may be independent of each other or may be included in each other in position.
In addition, the first color code and the second color code may be represented in various forms, for example: the representation can be directly through numbers, characters or graphs. The graphical representation can be realized through various graphs, such as: it can be represented by a rectangular box or by a circular box.
Further, the implementation process of determining the position of the second color code may be: the first identification information of the first color code may include position information of the second color code, so that the position of the second color code can be determined based on the first identification information. Or the first color code and the second color code have a certain position relation, and the position of the second color code can be determined according to the position of the first color code. In addition, the position determined from the first color code may be an exact position or an approximate position of the second color code.
S203, acquiring second identification information of the second color code in the position, and determining an information identification result of the object according to the second identification information.
The information recognition result of the object may be information such as article information (for example, information such as computer size, model, date of shipment), commodity price, and commodity model. The information identification result and the second identification information can have a corresponding relation, and the corresponding information identification result can be determined according to the second identification information and the corresponding relation.
In addition, the second identification information of the second color code may be obtained by scanning the second color code through a terminal having a scanning function, as in the case of obtaining the first identification information. Also, it may be implemented in other ways.
At present, when information codes such as one-dimensional codes and two-dimensional codes are identified, a scanning head of a scanning terminal needs to be close to the information codes to capture information. This does not allow for rapid access to product information for certain industries or in special circumstances. The first color code of the embodiment has both an encryption function and a positioning function, and can more accurately and easily determine the second identification information of the second color code, so that a more accurate object identification result can be quickly obtained, and the fault-tolerant rate of information identification is greatly reduced.
In one embodiment, before the step of determining the position of the second color code of the object when the first identification information meets a preset condition, the method further includes: acquiring predetermined first color code information of the object; and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
The first color code information may be artificially defined or calculated according to a certain algorithm.
Before identifying the object information, corresponding first color code information (as verification information) may be set for the object, and if the identified first identification information matches with the predetermined first color code information, the first identification information may be considered to meet a preset condition. According to the embodiment, whether the first identification information meets the condition can be accurately and quickly determined in such a mode, and the information identification efficiency of the object is improved.
In one embodiment, the first color code may be represented by four color blocks of ABCD (of course, the first color code may include more or less color blocks, and may be represented in other manners). The RGB values of these color blocks may be given different numerical numbers. When the RGB values of the first color code color block are determined, the corresponding numerical value number is determined, and then the first identification information is determined. The following table 1 shows the corresponding relationship between different RGB values and numerical numbers. To facilitate color capture by the camera, the maximum 255 and minimum 0 values of the RGB function may be taken to define the color, e.g., eight colors may correspond to 0-7 octal numbers, as in table 1 (which may also be arranged in binary, decimal, hexadecimal, etc. depending on the pixels of the camera). The colors defined by the maximum value and the minimum value are pure colors, so that the identification method has high identification degree, can effectively improve the accuracy of identification information acquisition, and further improves the accuracy of the information identification result of the object. Of course, the RGB values corresponding to these numerical numbers may be other values.
Numerical numbering R G B Colour(s)
0 0 0 0 Black color
1 0 0 255 Blue color
2 0 255 0 Green colour
3 0 255 255 Cyan color
4 255 0 0 Red colour
5 255 0 255 Magenta color
6 255 255 0 Yellow colour
7 255 255 255 White colour
TABLE 1 correspondence table of RGB values and octal number
The RGB color scheme is a color standard in the industry, and various colors are obtained by changing three color channels of red (R), green (G) and blue (B) and superimposing them on each other. This color standard covers almost all colors that human vision can perceive, and is one of the most widely used color systems at present. The RGB function, when executed successfully, returns the color determined by the specified component, represented by a long integer. The RGB three channel requirements are as follows:
in part Description of the invention
red The necessary parameters; an Integer type; numerical ranges: 0 to 255; red component representing colour
green The necessary parameters; an Integer type; numerical ranges: 0 to 255; green component representing colour
blue The necessary parameters; an Integer type; numerical ranges: 0 to 255; blue component representing color
TABLE 2 RGB Trichannel requirements
In one embodiment, the first color code information and the first color code information may be information constituted by numerical values, and the numerical values corresponding to the first color code information may be stored in the processing unit in advance. If the numerical value number in the first identification information corresponds to the numerical value number in the first color code information, and the numerical value numbers can be considered to be matched with each other, the first identification information is judged to meet the preset condition; if the value number in the first identification information does not correspond to the value number in the first color code information, it can be determined that the first identification information does not satisfy the preset condition.
In one embodiment, each barcode may be represented by 8 colors according to the RGB encoding rule of octal, and thus, when the first color code is represented by four color blocks of ABCD, 4 may be obtained8And (4) combining colors. Therefore, no matter how gorgeous and colorful the color of the commodity package, the first color code with high contrast can be found for accurate positioning, so that the camera can accurately identify the color code on the commodity at a longer distance.
In one embodiment, the step of determining the information recognition result of the object based on the second recognition information includes: acquiring a first corresponding relation between pre-established second identification information and object information; and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
The object information may refer to the number, identification information, and the like of the object. The object information corresponds to the information recognition result, so that the information recognition result of the object can be determined based on the determined object information. In addition, the object information may be an information recognition result in which the object information corresponding to the first recognition information is determined and the object is determined.
In this embodiment, the object information corresponding to the second identification information is determined according to the first correspondence relationship established in advance, and the information identification result of the object can be further determined. By the method, the information recognition result of the object can be accurately and quickly determined.
As shown in fig. 3, in an embodiment, taking the object as an article and the information identification result of the object as article information as an example, the process of determining the article information may be:
and S301, defining the coding rule of the color code and recording the coding rule into a processing unit.
And S302, inputting the article information into the processing unit and binding the article information with the identification information of the color code.
And S303, the scanning terminal acquires the identification information of the color code and inputs the identification information into the processing unit.
And S304, pushing the article information corresponding to the identification information.
The process of entering the coding rules and item information into the processing unit in fig. 3 may include: and inputting coding rules of the first color code and the second color code and binding the first identification information and the second identification information with the article information. Meanwhile, the identification information corresponding to the two color codes can also be stored as one piece of information.
Furthermore, the processing unit can generate identification information for a certain article according to a predefined color code rule, further generate a color code, and display the color code through a printer, a display and the like. The processing unit receives the input article information, and binds the article information with the second color code, namely binds the second identification information of the second color code with the article information. When the first identification information is acquired through the scanning terminal, the first identification information can be input into the processing unit; the processing unit finds corresponding first color code information according to the first identification information, judges whether the first color code information and the corresponding first color code information are matched, and judges that the first identification information meets a preset condition when the first color code information and the corresponding first identification information are matched. When the scanning terminal scans the second color code to obtain the second identification information, the processing unit determines the corresponding article information by comparing the indexes, and pushes the corresponding article information.
Meanwhile, when the processing unit generates the identification information for the objects, the generated identification information can be unique, namely the identification information of each object is ensured to be different, and information confusion is prevented. When the first identification information and the second identification information are generated separately, the first identification information can be ensured to be unique and the second identification information can be ensured to be unique respectively; when the first identification information and the second identification information are combined as the total identification information of the object, the uniqueness of the total identification information can be ensured.
In one embodiment, the step of acquiring second identification information of the second color code in the position, and determining the information identification result of the object according to the second identification information, includes: if the second identification information fails to be acquired, acquiring partial identification information of the second color code; and determining an information identification result of the object according to the first identification information and the partial identification information.
In one embodiment, the step of determining an information recognition result of the object based on the first recognition information and the partial recognition information includes: integrating the first identification information and the partial identification information to obtain standby identification information; and when the spare identification information is matched with the predetermined candidate spare identification information, determining the information identification result of the object according to the candidate spare identification information.
In the two embodiments, the spare code is used, and when the second identification information cannot be accurately acquired, the information identification result of the object is determined through part of the identification information and the first identification information. An accurate object information recognition result can be obtained when the color code cannot be completely recognized due to light and the like.
In one embodiment, the first color code is for example four color blocks of ABCD, which can be referred to as ABCD code. Taking the second color code, which is also a color block as an example, the second color code may be referred to as an RGB code (which may include a start code, an end code, and an RGB center code). The RGB code may be a plurality of barcodes, and therefore, when the RGB values of all the barcodes cannot be accurately acquired, if the RGB values of one or a part of the barcodes can be acquired, the first identification information may be combined with a part of the identification information to determine the information identification result of the object.
Thus, as shown in fig. 4, the spare code may be encoded in the form of a spare code "ABCD + X", where X represents at least 1 RGB code. For example, if 443 is the value after the complete RGB code is converted into the numerical value number, because of some identification abnormality, only red "4" or cyan "3" in the barcode can be identified (at least one color must be identified, otherwise, the color cannot be matched with the ABCD code), the combination of ABCD +4 "or ABCD + 3" and the predefined spare code can be matched, and the system converts the identified ABCD +4 "or ABCD + 3" into the RGB code "443" through the internal coding, thereby determining the information identification result of the object and playing the function of accurately identifying the spare code.
The embodiment starts the standby code, combines the first color code and the second color code, can ensure the uniqueness of the determined information identification result, can solve the problem that the information identification result determined by the second color code is not enough to meet the increasing number of commodities, and effectively improves the expansibility of the object information identification method.
In one embodiment, the backup code, as well as the location code and security code of the previous embodiments, may be selected for enablement as desired. For example, if the standby code is selected not to be enabled, when the second identification information is not completely acquired, the failure of the acquisition of the identification information of the object may be directly prompted.
In one embodiment, the situation that identification cannot be performed or identification errors are caused due to the fact that the distance between the color blocks among the bar codes is too close, the bar code spacing of the ABCD codes can be customized according to the quality of the detected environment, and the fact that the ABCD codes can be accurately captured by a camera under the severe environment is guaranteed. In addition, the size of ABCD code can also be customized, if the camera definition reaches 1080P, then ABCD code size can reduce, if the camera definition only has 720P, then just can suitably increase the size of ABCD code to ensure accurate discernment. The advantage of the adjustable space and size of the ABCD code is that: the traditional scanning terminal must adopt some high-tech camera shooting technologies in severe environment, such as backlight shooting, darkroom active light supplement technology and the like. The scanning terminal in the embodiment of the invention does not need to carry any high and new technology, and a user can automatically select a proper ABCD code distance and size according to the definition and the application environment of the terminal (for example, the environmental brightness of a vegetable field is lower than that of a supermarket, so that the color code of the commodity in the vegetable field can be larger than that of the commodity in the supermarket). Therefore, in practical application, a user does not need to select a camera with high price, and the dependence on the high-definition camera is greatly reduced.
In one embodiment, the second color code comprises: a start code, an end code and an RGB center code; the step of acquiring second identification information of a second color code in the position includes: determining a start code and an end code of the second color code according to the position; and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
In the embodiment, the second identification information is determined by identifying the RGB center code between the start code and the end code, the color value in each frame is determined by the camera, the second identification information can be determined by the predetermined corresponding relation, and the determination mode is simple.
In one embodiment, the step of determining the second identification information according to RGB values of the RGB center code includes: acquiring a second corresponding relation between the pre-established RGB value and the numerical value number; and determining the numerical value number of the second color code according to the second corresponding relation, and determining the second identification information according to the numerical value number.
In this embodiment, the numerical value number of the second color code is determined according to the second corresponding relationship, so that the determination of the second identification information has higher efficiency.
In one embodiment, the start code and the end code may be implemented as short lines as shown in FIG. 5, with the horizontal lines representing the start code and the vertical lines representing the end code. Of course, the start code and the end code may be represented by other figures or forms.
The correspondence of the RGB code to the corresponding octal value number may be as shown in fig. 6 and 7 (the correspondence of the value number to the RGB value is as shown in table 1). The RGB center code of fig. 6 is represented by a rectangular frame, and the RGB center code of fig. 7 is represented by a circular frame, and these rectangular frames and circular lines are filled with colors corresponding to RGB values.
In one embodiment, the color of the RGB center code outline may be different from the color of the attached object to distinguish the RGB center code outline from the object, so as to improve the accuracy of recognition. As shown in fig. 8, when the background (object) is white, the frame of the RGB center code is black, and when the background is black, the frame of the RGB center code is white. Meanwhile, a proper gap can be left between the bar codes.
In one embodiment, the positional relationship between the ABCD code and the RGB code may be as shown in fig. 9, and fig. 9 is a schematic diagram of an object barcode, which includes the ABCD code and the RGB code. As shown in fig. 9, the ABCD code is disposed around the RGB code, and after the first identification information of the ABCD code meets a preset condition, the RGB code is determined to be inside the ABCD code. The scanning terminal scans the inside of the ABCD code and can acquire the corresponding second identification information.
In one embodiment, as shown in fig. 10, there is provided an identification method of object information, including the steps of:
s101, first identification information of a first color code of an object is obtained.
S102, obtaining predetermined first color code information of the object; and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
S103, determining the position of a second color code of the object; the position is determined from the first color code.
S104, determining a start code and an end code of the second color code according to the position; and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
S105, acquiring a first corresponding relation between pre-established second identification information and object information; and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
In this embodiment, the position of the second color code is determined according to the first color code, so that the second identification information of the second color code can be determined more easily, and a more accurate object identification result can be obtained.
For better understanding of the above method, the first color code is composed of four color blocks of ABCD, and the second color code is composed of a start code, an end code, and 3 color blocks. The following describes an application example of the identification method of the object information of the present invention, which enables the positioning code and the security code of the ABCD code and enables the spare code at the same time.
Suppose the RGB code of a certain product G is "yellow-red-yellow", the corresponding numerical code is 646, and the ABCD code color "cyan-blue-green" corresponds to the information 3312. The process of identifying the goods information of the goods G may be:
1) according to a preset coding rule, the processing unit generates a corresponding commodity code (namely total identification information) for the commodity G, and converts the commodity code into an octal number and a corresponding color code. Wherein the color code comprises an ABCD code and an RGB code. Since the RGB code contains two digits, 4 and 6, the product code can be determined as 64633124 or 64633126 (to ensure the uniqueness of the data, when the last 5 bits of the 8-bit code are determined, the first 3 bits are set to 646, so as to ensure that the RGB central code can be uniquely determined according to the last 5 bits). Meanwhile, the commodity information and the commodity code are bound and stored in the processing unit.
2) The processing unit prints the article number on the article G by controlling the printer.
3) The camera captures A, B, C and D codes on the commodity G in sequence, and the captured result is input into the processing unit. The processing unit determines the RGB value of the ABCD code, determines first identification information corresponding to the ABCD code according to the RGB value and a preset corresponding relation, and if the determined first identification information is 3312, the ABCD code is considered to meet a preset condition.
4) The fast positioning is carried out through the ABCD code, and the position of the RGB code is approximately determined to be in the middle of the ABCD code.
5) And scanning the RGB codes at the corresponding positions, determining a start code and an end code in the RGB codes, and further identifying an RGB center code between the start code and the end code. And determining second identification information corresponding to the RGB center code according to the determined RGB center code and a preset corresponding relation.
6) If the determined second identification information is 646, the second identification information is judged to pass the verification, and the commodity information corresponding to the commodity code is acquired as the information identification result of the commodity G.
7) If the RGB center code can not be directly and correctly read, the function of the standby code is started. Since the ABCD code has been securely authenticated, only one of the colors of the RGB center code, i.e., yellow or red, needs to be read correctly. The spare code is 33124 or 33126 according to the encoding rule of ABCD + X. If only one of them can be read, the system will automatically convert it into the corresponding merchandise equal to the center code 646 according to the inner coding rule and determine the corresponding merchandise information.
8) The processing unit pushes the acquired commodity information to a user, and the user inquires the commodity information through output equipment such as a display and a printer.
Firstly, compared with the traditional direct identification of RGB codes, the present embodiment uses ABCD codes as positioning, security and backup codes, which greatly improves the reading speed, security level and fault tolerance of color codes. Secondly, the audience degree to the camera is wide, namely the definition dependence on the camera is not high. If the camera definition is low, a large-size ABCD code can be used; in case of a high-definition camera, a small-sized ABCD code may be used. In addition, after the ABCD code is preprocessed and positioned, the camera can capture the color bar code in the area; the accuracy of recognizing the color bar code by the camera can be greatly increased, and the condition that RGB positioning is not accurate or products are misjudged due to color difference of the packaging box is avoided.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention.
The present invention also provides an object information recognition apparatus, which is operable to execute the object information recognition method described above, based on the same idea as the object information recognition method in the above-described embodiment. For convenience of explanation, the schematic structural diagram of the embodiment of the object information recognition apparatus only shows a part related to the embodiment of the present invention, and those skilled in the art will understand that the illustrated structure does not constitute a limitation of the apparatus, and may include more or less components than those illustrated, or combine some components, or arrange different components.
As shown in fig. 11, the apparatus for identifying object information includes a color code obtaining module 111, a position determining module 112 and an identifying module 113, which are described in detail as follows:
the color code obtaining module 111 is configured to obtain first identification information of a first color code of an object.
A position determining module 112, configured to determine a position of the second color code of the object when the first identification information meets a preset condition; the position is determined from the first color code.
And an identification module 113, configured to obtain second identification information of the second color code in the position, and determine an information identification result of the object according to the second identification information.
In this embodiment, the position of the second color code is determined according to the first color code, so that the second identification information of the second color code can be determined more easily, and a more accurate object identification result can be obtained.
In one embodiment, further comprising: the color code information acquisition module is used for acquiring first color code information of the predetermined object; and the judging module is used for judging that the first identification information meets a preset condition when the first identification information is matched with the first color code information.
In one embodiment, the identification module 113 includes: the corresponding relation determining submodule is used for acquiring a first corresponding relation between second identification information and object information which are established in advance; and the first identification submodule is used for determining object information corresponding to the second identification information according to the first corresponding relation and determining an information identification result of the object according to the corresponding object information.
In one embodiment, the identification module 113 includes: the identification information acquisition submodule is used for acquiring partial identification information of the second color code if the second identification information is failed to be acquired; and the second identification submodule is used for determining an information identification result of the object according to the first identification information and the part of identification information.
In one embodiment, the second identification submodule includes: a spare information determining unit, configured to integrate the first identification information and the partial identification information to obtain spare identification information; and the identification result determining unit is used for determining the information identification result of the object according to the candidate spare identification information when the spare identification information is matched with the candidate spare identification information which is determined in advance.
In one embodiment, the identification module 113 includes: a start end code determining submodule for determining a start code and an end code of the second color code according to the position; and the identification information acquisition submodule is used for acquiring an RGB (red, green and blue) center code between the start code and the end code and determining the second identification information according to the RGB value of the RGB center code.
In one embodiment, the identification information acquisition sub-module includes: the corresponding relation determining unit is used for acquiring a second corresponding relation between the pre-established RGB value and the numerical value number; and the identification information determining unit is used for determining the numerical value number of the second color code according to the second corresponding relation and determining the second identification information according to the numerical value number.
It should be noted that, the object information identification apparatus of the present invention corresponds to the object information identification method of the present invention one to one, and the technical features and the advantages thereof described in the embodiments of the object information identification method are all applicable to the embodiments of the object information identification apparatus, and specific contents may refer to the descriptions in the embodiments of the object information identification method of the present invention, which are not described herein again, and thus are stated herein.
In addition, in the above-mentioned embodiment of the object information recognition apparatus, the logical division of each program module is only an example, and in practical applications, the above-mentioned function distribution may be performed by different program modules according to needs, for example, due to the configuration requirements of corresponding hardware or the convenience of implementation of software, that is, the internal structure of the object information recognition apparatus is divided into different program modules to perform all or part of the above-described functions.
The object information identification method provided by the application can be applied to computer equipment shown in fig. 12. The computer device may be a server, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as first identification information, second identification information, a first corresponding relation, a second corresponding relation and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of identifying object information.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring predetermined first color code information of the object; and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a first corresponding relation between pre-established second identification information and object information; and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the second identification information fails to be acquired, acquiring partial identification information of the second color code; and determining an information identification result of the object according to the first identification information and the partial identification information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: integrating the first identification information and the partial identification information to obtain standby identification information; and when the spare identification information is matched with the predetermined candidate spare identification information, determining the information identification result of the object according to the candidate spare identification information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a start code and an end code of the second color code according to the position; and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a second corresponding relation between the pre-established RGB value and the numerical value number; and determining the numerical value number of the second color code according to the second corresponding relation, and determining the second identification information according to the numerical value number.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring first identification information of a first color code of an object; when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code; second identification information of a second color code in the position is acquired, and an information identification result of the object is determined according to the second identification information.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring predetermined first color code information of the object; and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a first corresponding relation between pre-established second identification information and object information; and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
In one embodiment, the computer program when executed by the processor further performs the steps of: if the second identification information fails to be acquired, acquiring partial identification information of the second color code; and determining an information identification result of the object according to the first identification information and the partial identification information.
In one embodiment, the computer program when executed by the processor further performs the steps of: integrating the first identification information and the partial identification information to obtain standby identification information; and when the spare identification information is matched with the predetermined candidate spare identification information, determining the information identification result of the object according to the candidate spare identification information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a start code and an end code of the second color code according to the position; and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a second corresponding relation between the pre-established RGB value and the numerical value number; and determining the numerical value number of the second color code according to the second corresponding relation, and determining the second identification information according to the numerical value number.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and sold or used as a stand-alone product. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or (module) elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-described examples merely represent several embodiments of the present invention and should not be construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for identifying object information, comprising the steps of:
acquiring first identification information of a first color code of an object;
when the first identification information meets a preset condition, determining the position of a second color code of the object; the position is determined according to the first color code;
acquiring second identification information of a second color code in the position, and determining an information identification result of the object according to the second identification information;
the step of acquiring second identification information of a second color code in the position and determining an information identification result of the object according to the second identification information includes:
if the second identification information fails to be acquired, acquiring partial identification information of the second color code;
and determining an information identification result of the object according to the first identification information and the partial identification information.
2. The method for identifying object information according to claim 1, wherein the step of determining the position of the second color code of the object when the first identification information meets a preset condition is preceded by the step of:
acquiring predetermined first color code information of the object;
and when the first identification information is matched with the first color code information, judging that the first identification information meets a preset condition.
3. The method according to claim 1, wherein the step of determining the information recognition result of the object based on the second recognition information includes:
acquiring a first corresponding relation between pre-established second identification information and object information;
and determining object information corresponding to the second identification information according to the first corresponding relation, and determining an information identification result of the object according to the corresponding object information.
4. The method according to claim 1, wherein the step of determining the information recognition result of the object based on the first recognition information and the partial recognition information includes:
integrating the first identification information and the partial identification information to obtain standby identification information;
and when the spare identification information is matched with the predetermined candidate spare identification information, determining the information identification result of the object according to the candidate spare identification information.
5. The method for identifying object information according to any one of claims 1 to 4, wherein the second color code includes: a start code, an end code and an RGB center code;
the step of acquiring second identification information of a second color code in the position includes:
determining a start code and an end code of the second color code according to the position;
and acquiring an RGB (red, green and blue) center code between the start code and the end code, and determining the second identification information according to the RGB value of the RGB center code.
6. The method for recognizing object information according to claim 5, wherein the step of determining the second recognition information based on the RGB values of the RGB center code includes:
acquiring a second corresponding relation between the pre-established RGB value and the numerical value number;
and determining the numerical value number of the second color code according to the second corresponding relation, and determining the second identification information according to the numerical value number.
7. An apparatus for recognizing object information, comprising:
the device comprises a color code acquisition module, a color code acquisition module and a color code matching module, wherein the color code acquisition module is used for acquiring first identification information of a first color code of an object;
the position determining module is used for determining the position of a second color code of the object when the first identification information meets a preset condition; the position is determined according to the first color code;
the identification module is used for acquiring second identification information of a second color code in the position and determining an information identification result of the object according to the second identification information;
an identification module comprising: the identification information acquisition submodule is used for acquiring partial identification information of the second color code if the second identification information is failed to be acquired; and the second identification submodule is used for determining an information identification result of the object according to the first identification information and the part of identification information.
8. The apparatus for recognizing object information according to claim 7, further comprising:
the color code information acquisition module is used for acquiring first color code information of the predetermined object;
and the judging module is used for judging that the first identification information meets a preset condition when the first identification information is matched with the first color code information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201810939553.1A 2018-08-17 2018-08-17 Object information identification method and device, computer equipment and storage medium Active CN109117686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810939553.1A CN109117686B (en) 2018-08-17 2018-08-17 Object information identification method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810939553.1A CN109117686B (en) 2018-08-17 2018-08-17 Object information identification method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109117686A CN109117686A (en) 2019-01-01
CN109117686B true CN109117686B (en) 2021-09-07

Family

ID=64852377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810939553.1A Active CN109117686B (en) 2018-08-17 2018-08-17 Object information identification method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109117686B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021097830A1 (en) * 2019-11-22 2021-05-27 连云港伍江数码科技有限公司 Method and apparatus for identifying object information, computer device, and storage medium
CN111797645A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Method and apparatus for identifying bar code
CN113129065A (en) * 2021-04-26 2021-07-16 长沙易爱餐饮管理有限公司 Article price management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950672A (en) * 2004-05-06 2007-04-18 莱卡地球系统公开股份有限公司 Levelling rod, level determining apparatus for said rod, and level determining method
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN102722820A (en) * 2012-06-01 2012-10-10 王学武 Double two-dimension code product counterfeit method and system
CN107392270A (en) * 2017-07-23 2017-11-24 宁波亿诺维信息技术有限公司 A kind of two-dimensional code generation method
CN107871151A (en) * 2017-10-23 2018-04-03 广东数相智能科技有限公司 A kind of color bar code and its production method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950672A (en) * 2004-05-06 2007-04-18 莱卡地球系统公开股份有限公司 Levelling rod, level determining apparatus for said rod, and level determining method
CN102147873A (en) * 2011-03-21 2011-08-10 上海彩码信息科技有限公司 Method and system for generating color code as well as method and system for analyzing color code
CN102722820A (en) * 2012-06-01 2012-10-10 王学武 Double two-dimension code product counterfeit method and system
CN107392270A (en) * 2017-07-23 2017-11-24 宁波亿诺维信息技术有限公司 A kind of two-dimensional code generation method
CN107871151A (en) * 2017-10-23 2018-04-03 广东数相智能科技有限公司 A kind of color bar code and its production method and device

Also Published As

Publication number Publication date
CN109117686A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN109117686B (en) Object information identification method and device, computer equipment and storage medium
US20190188452A1 (en) Image processing method and apparatus, and electronic device
US10833852B1 (en) Encoded data along tape based on colorspace schemes
CN109344676B (en) Automatic induction triggering method and system based on Hash algorithm
US20150009226A1 (en) Color chart detection apparatus, color chart detection method, and color chart detection computer program
Querini et al. Color classifiers for 2D color barcodes
US9239230B2 (en) Computing device and method for measuring widths of measured parts
JP5182182B2 (en) Color correction method and imaging system
CN113099230A (en) Encoding method, encoding device, electronic equipment and computer readable storage medium
US9424488B2 (en) Applying a segmentation engine to different mappings of a digital image
US10929960B2 (en) Method and image processing device for detecting a portion of an image
US20100266199A1 (en) Color-image representative color decision apparatus and method of controlling operation thereof
US11449699B2 (en) Information code reading system
WO2021097830A1 (en) Method and apparatus for identifying object information, computer device, and storage medium
US10142643B2 (en) Marker generating method, marker decoding method, and marker reading device
US11347956B2 (en) Color bar code
KR20150107581A (en) Image processing apparatus and image processing method
JP2019008564A (en) Multiplexed code, multiplexed code reader, multiplexed code reading method, and program
US20090175534A1 (en) Binarizing device and computer readable medium
US20150169939A1 (en) Display device and method of controlling the same
US20190188518A1 (en) Image processing circuit and associated image processing method
WO2024062844A1 (en) Information code, code generation method, and code reading method
US20220343092A1 (en) Apparatus and methods for preprocessing images having elements of interest
CN111476528B (en) Data processing method, device, equipment and storage medium based on express delivery library
US20220366158A1 (en) Information code, information code generation device, information code readout device, program, and information code utilization system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231115

Address after: Room 607, Building B, Lanjiangshan Phase I, No. 7, Lin Tong Mei Second Road, Meijing Community, Meilin Street, Futian District, Shenzhen, Guangdong 518000

Patentee after: SHENZHEN SONIQ DIGITAL SMART SOLUTION Ltd.

Address before: 222000 No.6, East Huanghai Avenue, Lingang Industrial Zone, Lianyungang Economic and Technological Development Zone, Lianyungang City, Jiangsu Province

Patentee before: LIANYUNGANG QUATIUS DIGITAL TECHNOLOGY Co.,Ltd.