CN109117686A - Recognition methods, device, computer equipment and the storage medium of object information - Google Patents

Recognition methods, device, computer equipment and the storage medium of object information Download PDF

Info

Publication number
CN109117686A
CN109117686A CN201810939553.1A CN201810939553A CN109117686A CN 109117686 A CN109117686 A CN 109117686A CN 201810939553 A CN201810939553 A CN 201810939553A CN 109117686 A CN109117686 A CN 109117686A
Authority
CN
China
Prior art keywords
information
code
identification information
colour 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.)
Granted
Application number
CN201810939553.1A
Other languages
Chinese (zh)
Other versions
CN109117686B (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

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

Abstract

The present invention relates to the recognition methods of object information, device, computer equipment and storage mediums, belong to information discriminating technology field.The described method includes: obtaining the first identification information of the first colour code of object;When first identification information meets preset condition, the position of the second colour code of the object is determined;The position is determined according to first colour code;The second identification information for obtaining the second colour code in the position determines the information recognition result of the object according to second identification information.Above-mentioned technical proposal solves the problems, such as that the identification of object information is not accurate enough.The position of the second colour code is determined according to the first colour code, can more easily determine the second identification information of the second colour code, and then available to more accurate Object identifying result.

Description

Recognition methods, device, computer equipment and the storage medium of object information
Technical field
The present invention relates to information discriminating technology fields, set more particularly to the recognition methods of object information, device, computer Standby and storage medium.
Background technique
With the development of market economy, Object identifying is more and more common, such as: commodity settlement process is typically necessary Identify merchandise news.Currently, more the most commonly used is the information codes such as the one-dimension code, the two dimensional code that identify on object.But identification at present Information code generally requires scanning device could identify close to the information code of required identification, can not also frequently know in some cases Not.In addition, the information codes such as one-dimension code, two dimensional code are often black and white, included in information it is relatively limited, this allows for one It is not convenient enough to tie up the identifications such as code.Since colour is more preferable than the identification of black and white, colour code can be realized and quickly be read at a distance, because This colour code has been applied to more and more in the identification of object information.In realizing process of the present invention, inventor's discovery At least there are the following problems in the prior art: in the imperfect situation of the conditions such as light, distance, the identification of colour code is still not It is enough accurate, cause the identification of object information not accurate enough.
Summary of the invention
Based on this, the present invention provides the recognition methods of object information, device, computer equipment and storage mediums, can have Effect improves the accuracy rate of object information identification.
The content of the embodiment of the present invention is as follows:
A kind of recognition methods of object information, comprising the following steps: obtain the first identification letter of the first colour code of object Breath;When first identification information meets preset condition, the position of the second colour code of the object is determined;The position root It is determined according to first colour code;The second identification information for obtaining the second colour code in the position is known according to described second Other information determines the information recognition result of the object.
It is described when first identification information meets preset condition in one of the embodiments, determine the object The second colour code position the step of before, further includes: obtain the first colour code information of the predetermined object;When When first identification information and the first colour code information match, determine that first identification information meets default item Part.
The information recognition result that the object is determined according to second identification information in one of the embodiments, The step of, comprising: obtain the first corresponding relationship of the second identification information and object information that pre-establish;According to described first pair It should be related to and determine object information corresponding with second identification information, the object is determined according to the corresponding object information Information recognition result.
Second identification information for obtaining the second colour code in the position in one of the embodiments, according to Second identification information determines the step of information recognition result of the object, comprising: if second identification information obtains Failure obtains the section identification information of second colour code;According to first identification information and the section identification information Determine the information recognition result of the object.
It is described according to first identification information and section identification information determination in one of the embodiments, The step of information recognition result of object, comprising: first identification information is integrated with the section identification information, is obtained To spare identification information;When the spare identification information and the predetermined spare identification information of candidate match, according to institute State the information recognition result that candidate spare identification information determines the object.
Second colour code includes: initial code, end code and the center RGB code in one of the embodiments,;It is described to obtain The step of taking the second identification information of the second colour code in the position, comprising: determine that described second is color according to the position The initial code and end code of colour coding;The center the RGB code between the initial code and end code is obtained, according to the center the RGB code Rgb value determine second identification information.
The rgb value according to the center the RGB code determines second identification information in one of the embodiments, Step, comprising: obtain the second corresponding relationship of the rgb value and value number that pre-establish;It is true according to second corresponding relationship The value number of fixed second colour code, determines second identification information according to the value number.
Correspondingly, the embodiment of the present invention provides a kind of identification device of object information, comprising: colour code obtains module, uses In the first identification information of the first colour code for obtaining object;Position determination module, for meeting when first identification information When preset condition, the position of the second colour code of the object is determined;The position is determined according to first colour code;With And identification module, for obtaining the second identification information of the second colour code in the position, according to second identification information Determine the information recognition result of the object.
The recognition methods of above-mentioned object information and device meet preset condition in the first identification information of the first colour code When, determine the position of the second colour code;It determines the second identification information in the position, and then determines that the information of object identifies knot Fruit.The position of the second colour code is determined according to the first colour code, can more easily determine the second identification of the second colour code Information, so it is available to more accurate Object identifying result.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage Computer program, the processor perform the steps of the first colour code for obtaining object when executing the computer program First identification information;When first identification information meets preset condition, the position of the second colour code of the object is determined; The position is determined according to first colour code;The second identification information for obtaining the second colour code in the position, according to Second identification information determines the information recognition result of the object.
Above-mentioned computer equipment determines the position of the second colour code according to the first colour code, can more easily determine Second identification information of the second colour code, so it is available to more accurate Object identifying result.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The first identification information for obtaining the first colour code of object is performed the steps of when row;When first identification information meet it is pre- If when condition, determining the position of the second colour code of the object;The position is determined according to first colour code;Obtain institute Rheme set in the second colour code the second identification information, according to second identification information determine the object information identify As a result.
Above-mentioned computer readable storage medium determines the position of the second colour code according to the first colour code, can be easier The second identification information of the second colour code is determined on ground, and then available to more accurate Object identifying result.
Detailed description of the invention
Fig. 1 is the applied environment figure of the recognition methods of object information in one embodiment;
Fig. 2 is the flow diagram of the recognition methods of object information in one embodiment;
Fig. 3 is the flow diagram of the determination method of Item Information in one embodiment;
Fig. 4 is the flow diagram for determining information recognition result in one embodiment by standby code;
Fig. 5 is the schematic diagram of initial code and end code in one embodiment;
Fig. 6 is the corresponding relationship of RGB code and corresponding octal system value number in one embodiment;
Fig. 7 is the corresponding relationship of RGB code and corresponding octal system value number in another embodiment;
Fig. 8 is the comparison diagram of the center RGB code outer wire and background in one embodiment;
Fig. 9 is the schematic diagram of object bar code in one embodiment;
Figure 10 is the flow diagram of the recognition methods of object information in another embodiment;
Figure 11 is the structural block diagram of the identification device of object information in one embodiment;
Figure 12 is the internal structure of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The recognition methods of object information provided by the present application can be applied in application environment as shown in Figure 1.Scanning is eventually End 101 obtains corresponding first identification information by scanning colour code, and uploads the first identification information, place to processing unit 102 The position that unit 102 determines the second colour code in the case where the first identification information meets preset condition is managed, the second identification is obtained Information, and then determine the information recognition result of object.Wherein, end of scan 101 can be the various terminals with scanning function, Including but not limited to smart phone, scanner.Processing unit 102 can be server, personal computer, laptop, intelligence It can mobile phone, tablet computer, POS machine, portable wearable device.In addition, processing unit 102 can obtain acquired and processing Data be uploaded to a certain server, so as to other equipment carry out data sharing.
The embodiment of the present invention provides recognition methods, device, computer equipment and the storage medium of a kind of object information.Below It is applied to be described in detail respectively for the processing unit 102 in Fig. 1 in this way.
In one embodiment, as shown in Fig. 2, providing a kind of recognition methods of object information, comprising the following steps:
First identification information of the first colour code of S201, acquisition object.
Wherein, object refers to show or showing the thing of colour code.Can refer to article, commodity, people, shown by screen Picture etc..First colour code may be displayed on object, can also be pasted on object.
First colour code refers to the bar code indicated by color version, can be colored one-dimension code, color 2 D code, also It can be other forms.Meanwhile first colour code may include a bar code (vertical line or a horizontal line), also can wrap Containing two even more than bar code.
First identification information refers to the color (can be converted to rgb value etc.) obtained after the first colour code of identification, number The other information that amount, form and colour code are included.
It is possible to further be the data obtained after the primary data obtained to colour code is quantified, facilitate subsequent Information processing.
In addition, the first identification information for obtaining the first colour code can be through the terminal scanning first with scanning function Colour code is realized, can also be realized by other means.Camera has can be set (it can be considered that being in these end of scan The first colour code is scanned by camera).Wherein, camera (CAMERA or WEBCAM) be also known as camera computer, computer eye, Electronic eyes etc. is a kind of video input apparatus, is now widely used in many necks such as video conference, tele-medicine, real time monitoring Domain.
S202, when first identification information meets preset condition, determine the position of the second colour code of the object; The position is determined according to first colour code.
In this step, when the first identification information meets preset condition, according to determining pair of the positioning action of the first colour code Position where the second colour code of elephant.
Wherein, it determines the second colour code again when the first identification information meets preset condition, uses the first colour code Encryption effect, the first colour code is properly termed as safety code at this time.The position of the second colour code is determined according to the first colour code, The positioning action of the first colour code is used, the first colour code is properly termed as alignment code at this time.
The information security and anti-counterfeit capability of object can be improved in the encryption effect of first colour code.If scanning device is caught The first identification information grasped does not meet preset condition, then the first colour code can be considered as invalid code, not will do it and obtains in next step Take the operation of the second identification information.Such processing mode can greatly improve the information security of object.Certainly, developer can be with Whether safety code is opened after voluntarily selecting the function and use that whether enable safety code.Even developer's selection does not enable peace All-key then can directly be believed according to the second identification without the judgement of the first identification information when getting the second identification information Breath determines corresponding information recognition result.
It can be moreover, it is judged that whether the first identification information meets preset condition and judge the first identification information in size, number Whether meet condition in amount etc., is also possible to judge whether the first identification information matches with preset threshold value, it certainly can be with For other modes.
First colour code can independently of each other or mutually include in position with the second colour code.
In addition, the first colour code and the second colour code can be indicated by diversified forms, and such as: it can directly pass through number Word indicates, can also can also pass through graphical representation by textual representation.It wherein, can be by various when passing through graphical representation Figure realizes, such as: it can be indicated, can also be indicated by circular frame by rectangle frame.
Further, it is determined that the realization process of the position of the second colour code can be with are as follows: the first identification letter of the first colour code It may include the location information of the second colour code in breath, therefore just can determine that the position of the second colour code according to the first identification information It sets.It is also possible to the first colour code and the second colour code has certain relationship in position, according to the position of the first colour code It just can determine that out the position of the second colour code.In addition, can be the essence of the second colour code according to the position that the first colour code determines True position, is also possible to approximate location.
S203, the second identification information for obtaining the second colour code in the position, it is true according to second identification information The information recognition result of the fixed object.
Wherein, the information recognition result of object can be Item Information (such as: computer dimensions, type, date of production etc. letter Breath), commodity price, the information such as marque.May exist corresponding relationship between information recognition result and the second identification information, protects Card just can determine that out corresponding information recognition result according to the second identification information and the corresponding relationship.
In addition, tool can also be passed through as the first identification information of acquisition by obtaining the second identification information of the second colour code There is the terminal of scanning function to scan the second colour code to realize.It is also possible to realize by other means.
Currently, needing the probe of end of scan close to information code to capture when the information codes such as identification one-dimension code, two dimensional code Information.This can not quick obtaining product information for certain industries or in particular circumstances.First colour code of the present embodiment was both There is encryption effect to have a positioning action again, can more acurrate the second identification information for being readily determined out the second colour code, and then can be with More accurate Object identifying is rapidly got as a result, the serious forgiveness for identifying information is greatly reduced.
In one embodiment, described when first identification information meets preset condition, determine the of the object Before the step of position of two colour codes, further includes: obtain the first colour code information of the predetermined object;When described When first identification information and the first colour code information match, determine that first identification information meets preset condition.
Wherein, the first colour code information can be it is artificial as defined in, be also possible to be calculated according to certain algorithm.
Before identifying to object information, corresponding first colour code information can be set for the object (as testing Demonstrate,prove information), if the first identification information recognized matches with predetermined first colour code information, it may be considered that the One identification information meets preset condition.The present embodiment can quickly and accurately determine that the first identification is believed in this way Whether breath meets condition, improves the information recognition efficiency of object.
In one embodiment, the first colour code can indicate (certainly, the first colour code by tetra- color blocks of ABCD The color block for being included can be more or less, can also indicate in other way).It can be these color blocks Rgb value assign different value numbers.When determining the rgb value of the first colour code color block, determine that its corresponding numerical value is compiled Number, and then determine the first identification information.Such as the corresponding relationship that the following table 1 is different rgb values and value number.It is shot convenient for color As head capture, maximum value 255 and the minimum value 0 of RGB function can be taken to define color, for example, eight kinds of colors pair can be passed through Answer the 0~7 of octal number, such as table 1 (binary system, the decimal system, hexadecimal can also be arranged to according to the pixel of camera). It is pure color by the color that maximum value and minimum value define, identification with higher can effectively improve identification information acquisition Accuracy rate, and then improve object information recognition result accuracy rate.Certainly, rgb value corresponding with these value numbers is also It can be other values.
Value number R G B Color
0 0 0 0 Black
1 0 0 255 Blue
2 0 255 0 Green
3 0 255 255 Cyan
4 255 0 0 It is red
5 255 0 255 Carmetta
6 255 255 0 Yellow
7 255 255 255 White
The corresponding table of 1 rgb value of table and octal system value number
Wherein, rgb color mode is a kind of color standard of industry, by red (R), green (G), blue (B) three face The variation of chrominance channel and their mutual superpositions obtain miscellaneous color.This color standard almost includes The all colours that human eyesight can perceive are current with most wide one of color system.Return when RGB function runs succeeded By the color for specifying component to determine, indicated with lint-long integer.The requirement of RGB triple channel such as the following table 2:
Part Description
red Call parameter;Integer type;Numberical range: 0~255;Indicate the red component of color
green Call parameter;Integer type;Numberical range: 0~255;Indicate the green component of color
blue Call parameter;Integer type;Numberical range: 0~255;Indicate the blue component of color
The requirement of 2 RGB triple channel of table
In one embodiment, the first colour code information and the first colour code information all can be made of value number Information, the corresponding value number of the first colour code information can be stored in advance in processing unit.If in the first identification information Value number is corresponding with the value number in the first colour code information, it is believed that the two matches, then determines the first identification Information meets preset condition;If the value number in the first identification information and the value number in the first colour code information be not right It answers, then can be determined that the first identification information is unsatisfactory for preset condition.
In one embodiment, according to octadic RGB coding rule, each bar code can be indicated with 8 kinds of colors, Therefore, when by tetra- color blocks of ABCD to indicate the first colour code, available 48Kind color combination.This allow for no matter How bright and colourful the color of commodity packaging is, can also find a kind of the first colour code of high contrast to carry out precise positioning, make Camera is obtained in the colour code that can be recognized accurately on commodity more at a distance.
In one embodiment, the step of the information recognition result that the object is determined according to second identification information Suddenly, comprising: obtain the first corresponding relationship of the second identification information and object information that pre-establish;According to the described first corresponding pass System determines object information corresponding with second identification information, and the letter of the object is determined according to the corresponding object information Cease recognition result.
Wherein, object information can refer to the number of object, identification information etc..Object information is opposite with information recognition result It answers, therefore just can determine that out the information recognition result of object according to identified object information.In addition, object information may be Information recognition result has determined that object information corresponding with the first identification information has determined that the information identification knot of the object Fruit.
The present embodiment determines object letter corresponding with the second identification information according to the first corresponding relationship pre-established Breath, and then can determine the information recognition result of the object.The letter of object can be quickly and accurately determined in this way Cease recognition result.
As shown in figure 3, being that Item Information is by the information recognition result of article, object of object in one embodiment Example determines that the process of Item Information can be with are as follows:
S301, the coding rule and typing processing unit for defining colour code.
S302, Item Information typing processing unit simultaneously bind the identification information of Item Information and colour code.
S303, end of scan obtain the identification information of colour code, by identification information input processing unit.
S304, push Item Information corresponding with identification information.
In Fig. 3 to the process of processing unit typing coding rule and Item Information may include: the first colour code of typing and The coding rule of second colour code simultaneously binds the first identification information and the second identification information with Item Information.Meanwhile this The corresponding identification information of two kinds of colour codes can also be used as an information and be stored.
Further, processing unit can be that a certain article generates identification information according to colour code rule predetermined, And then colour code is generated, and show colour code by equipment such as printer, displays.Processing unit receives the article letter of typing Breath, Item Information and the second colour code are bound, be also by the second identification information of the second colour code and Item Information into Row binding.It, can be by the first identification information input processing unit when getting the first identification information by end of scan;Processing is single Member finds corresponding first colour code information according to the first identification information, judges whether the two matches, when the two matches Determine that first identification information meets preset condition.When end of scan, which scans the second colour code, obtains the second identification information, Processing unit determines corresponding Item Information by comparing index, and pushes corresponding Item Information.
Meanwhile processing unit be object generate identification information when, identification information generated can be made unique, that is, guaranteed The identification information of each object is different, prevents that information is caused to obscure.When the first identification information and the second identification information are to separate When generation, it can guarantee that the first identification information is unique respectively and guarantee that the second identification information is unique;When the first identification information and When two identification informations combine total identification information as object, it is ensured that the uniqueness of total identification information.
In one embodiment, second identification information for obtaining the second colour code in the position, according to described Second identification information determines the step of information recognition result of the object, comprising: if second identification information obtains failure, Obtain the section identification information of second colour code;Institute is determined according to first identification information and the section identification information State the information recognition result of object.
In one embodiment, described that the object is determined according to first identification information and the section identification information Information recognition result the step of, comprising: first identification information is integrated with the section identification information, is obtained standby Use identification information;When the spare identification information and the predetermined spare identification information of candidate match, according to the time Spare identification information is selected to determine the information recognition result of the object.
Above-mentioned two embodiment, enables standby code, when that can not be accurately obtained the second identification information, is known by part Other information and the first identification information determine the information recognition result of object.It can lead to not identify completely in reasons such as light Accurate object information recognition result is obtained when colour code.
In one embodiment, by taking the first colour code is ABCD tetra- colored blocks as an example, the first colour code is properly termed as ABCD code.By taking the second colour code is also colored block as an example, it (may include initial code, knot that the second colour code can be known as to RGB code Beam code and the center RGB code).RGB code can be multiple bar codes, therefore, when can not accurately obtain the rgb value of whole bar codes, If the rgb value of one of them or part bar code can be got, the first identification information can be combined with section identification information To determine the information recognition result of object.
Therefore, as shown in figure 4, the mode that standby code " ABCD+X " can be used carries out alternate code, wherein X indicate to Few 1 RGB code.For example, if it is later 443 that complete RGB code, which is converted into value number, due to certain identifications are abnormal, It can only identify that red " 4 " or cyan " 3 " in bar code (must at least can recognize that a kind of color, otherwise can not cooperate ABCD Code work), then it can be matched by the combination of " ABCD+4 " or " ABCD+3 " with predefined standby code, system It can convert " ABCD+4 " or " ABCD+3 " that recognizes to RGB code " 443 " by in-line coding, and then determine the letter of object Recognition result is ceased, the function that standby code precisely identifies is played.
The present embodiment enables standby code, by the first colour code in conjunction with the second colour code, it can be ensured that identified information The uniqueness of recognition result, can solve that only to determine that information recognition result is insufficient for by the second colour code growing The problem of commodity amount, effectively improves the scalability of the recognition methods of object information of the present invention.
In one embodiment, standby code and the alignment code in previous embodiment, safety code can select as needed It selects and whether enables.For example, when the second identification information obtains incomplete, can directly be prompted if selection does not enable standby code The identification information of object obtains failure.
In one embodiment, it can not be identified or wrong since the distance of color block between each bar code is closely likely to cause very much It the case where misrecognition, can be according to the bar code spacing of the customized ABCD code of quality of locating detecting environment, it is ensured that camera is being disliked Also ABCD code can be accurately captured under bad environment.In addition, the size of ABCD code also can customize, as camera clarity reaches 1080P, if camera clarity only has 720P, can suitably increase ABCD then ABCD yardstick cun can reduce The size of code, to ensure precisely to identify.The spacing of ABCD code and adjustable advantage are: traditional end of scan is severe Some high-tech photography technologies must be taken under environment, for example backlight is taken pictures, darkroom active light filling technology etc..And the present invention is implemented For end of scan in example without carrying any new and high technology, user can be according to the clarity and application environment of oneself terminal voluntarily Select ABCD intersymbol appropriate away from size (such as: the ambient brightness in food market is lower relative to the ambient brightness of supermarket, therefore, The colour code of food market commodity can be bigger than the colour code size of supermarket commodity).Therefore user does not need to select in practical applications Expensive camera is selected, the dependence to high-definition camera is significantly reduced.
In one embodiment, second colour code includes: initial code, end code and the center RGB code;The acquisition institute Rheme set in the second colour code the second identification information the step of, comprising: second colour code is determined according to the position Initial code and end code;The center the RGB code between the initial code and end code is obtained, according to the RGB of the center the RGB code Value determines second identification information.
The present embodiment determines the second identification information by the center the RGB code between identification initial code and end code, passes through Camera determines the color value in each frame, can determine the second identification information, determination side by predetermined corresponding relationship Formula is simple.
In one embodiment, the rgb value according to the center the RGB code determines the step of second identification information Suddenly, comprising: obtain the second corresponding relationship of the rgb value and value number that pre-establish;It is determined according to second corresponding relationship The value number of second colour code determines second identification information according to the value number.
The present embodiment determines the value number of the second colour code according to the second corresponding relationship, so that the second identification information Determine efficiency with higher.
In one embodiment, initial code and the implementation of end code can be short-term as shown in Figure 5, and horizontal line indicates Initial code, vertical line indicate end code.Certainly, initial code and end code can also be indicated by other figures or form.
RGB code can (value number and rgb value as shown in Figures 6 and 7 with the corresponding relationship of corresponding octal system value number Corresponding relationship it is as shown in table 1).Wherein, the center the RGB code of Fig. 6 is indicated by rectangle frame, and the center the RGB code of Fig. 7 passes through circle Frame indicates, the color of corresponding rgb value is filled with inside these rectangle frames and round money.
In one embodiment, the color of the outer wire of the center RGB code can be different from the object color attached, with this Object is distinguished, and the accuracy rate of identification is improved.As shown in figure 8, when background (object) is white, the frame of the center RGB code For black, when background is black, the frame of the center RGB code is white.Meanwhile it can there are gaps appropriate between bar code.
In one embodiment, ABCD code can be as shown in figure 9, Fig. 9 showing as object bar code with the positional relationship of RGB code It is intended to, includes ABCD code and RGB code in the object bar code.As shown in figure 9, ABCD code is arranged in around RGB code, in ABCD After first identification information of code meets preset condition, determine RGB code in the inside of ABCD code.Then end of scan scans ABCD The inside of code, so that it may obtain corresponding second identification information.
In one embodiment, as shown in Figure 10, a kind of recognition methods of object information is provided, comprising the following steps:
First identification information of the first colour code of S101, acquisition object.
S102, the first colour code information for obtaining the predetermined object;When first identification information with it is described When first colour code information matches, determine that first identification information meets preset condition.
S103, determine the object the second colour code position;The position is determined according to first colour code.
S104, the initial code and end code that second colour code is determined according to the position;Obtain the initial code and The center RGB code between end code determines second identification information according to the rgb value of the center the RGB code.
First corresponding relationship of the second identification information and object information that S105, acquisition pre-establish;According to described first Corresponding relationship determines object information corresponding with second identification information, and it is described right to be determined according to the corresponding object information The information recognition result of elephant.
The present embodiment determines the position of the second colour code according to the first colour code, can more easily determine the second coloured silk Second identification information of colour coding, so it is available to more accurate Object identifying result.
The above method in order to better understand is made of with the first colour code tetra- color blocks of ABCD, the second colour code by For initial code, end code and 3 color block compositions.The recognition methods of an object information of the present invention detailed below Application example, this application example enable the alignment code and safety code effect of ABCD code simultaneously, and enable standby code.
Assuming that the RGB code of certain commodity G is " yellow reddish yellow ", corresponding numeric coding is 646, ABCD code color " blue and green bluish-green " Corresponding informance is 3312.Then identify that the process of the merchandise news of commodity G can be with are as follows:
1) according to preset coding rule, processing unit is that commodity G generates corresponding commodity code (i.e. total identification information), Commodity code is converted into octal number and corresponding colour code.Wherein the colour code includes ABCD code and RGB code.Due to Include 4 and 6 two numbers in RGB code, therefore commodity code can be determined as to 64633124 or 64633126 (to guarantee number According to uniqueness be set as 646 for first 3 when determining latter 5 of 8 codings, guarantee that 5 can uniquely determine after The center RGB code).Meanwhile binding merchandise news and commodity code, it stores into processing unit.
2) goods number is printed upon on commodity G by processing unit by control printer.
3) camera successively captures A, B, C and D code on commodity G, will capture result input processing unit.Processing unit is true Determine the rgb value of ABCD code, and corresponding first identification information of ABCD code is determined according to rgb value and preset corresponding relationship, if Identified first identification information is 3312, then it is assumed that ABCD code symbol closes preset condition.
4) it is quickly positioned by ABCD code, substantially determines the position of RGB code in the middle position of ABCD code.
5) the RGB code for scanning corresponding position determines initial code therein and end code, and then identifies initial code and end code Between the center RGB code.The center RGB code corresponding the is determined according to the identified center RGB code and preset corresponding relationship Two identification informations.
If 6) identified second identification information is 646, determines that the verification of the second identification information passes through, obtain and the commodity Corresponding merchandise news is encoded, the information recognition result as commodity G.
If 7) directly cannot correctly read the center RGB code, start standby code function.Since peace has been carried out in ABCD code Full certification, therefore only need correctly to read one of color of the center RGB code, i.e. yellow or red.According to ABCD+ The coding rule of X, standby code are 33124 or 33126.As long as one of which can be read, system can be regular according to in-line coding, Be automatically converted to center 646 equal corresponding goods of code, and determine corresponding merchandise news.
8) merchandise news that processing unit will acquire is pushed to user, and user passes through the output equipments such as display, printer Inquire the merchandise news.
Firstly, the present embodiment is used as by ABCD code to be positioned, is safe and spare compared to traditional Direct Recognition RGB code Code, greatly improved the reading speed, security level and serious forgiveness of colour code.Secondly, audient's degree to camera is wide, i.e., It is not high to the clear dependency degree of camera.If camera clarity is low, large-sized ABCD code can be used;If it is high definition The ABCD code of small size can be used in camera.In addition, ABCD code is after pretreatment positioning, camera will be in this area The capture of colour barcode is carried out in domain;The accuracy that camera identification colour barcode can be greatly increased, avoids by packing box color The case where difference causes RGB positioning inaccurate or judges by accident to product.
It should be noted that for the various method embodiments described above, describing for simplicity, it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to According to the present invention, certain steps can use other sequences or carry out simultaneously.
Based on thought identical with the recognition methods of the object information in above-described embodiment, the present invention also provides object informations Identification device, which can be used for executing the recognition methods of above-mentioned object information.For ease of description, the identification of object information In the structural schematic diagram of Installation practice, part related to the embodiment of the present invention illustrate only, those skilled in the art can To understand, the restriction of schematic structure not structure twin installation may include or combining certain than illustrating more or fewer components A little components or different component layouts.
As described in Figure 11, the identification device of object information includes that colour code obtains module 111,112 and of position determination module Identification module 113, detailed description are as follows:
Colour code obtains module 111, the first identification information of the first colour code for obtaining object.
Position determination module 112, for when first identification information meets preset condition, determining the of the object The position of two colour codes;The position is determined according to first colour code.
And identification module 113, for obtaining the second identification information of the second colour code in the position, according to institute State the information recognition result that the second identification information determines the object.
The present embodiment determines the position of the second colour code according to the first colour code, can more easily determine the second coloured silk Second identification information of colour coding, so it is available to more accurate Object identifying result.
In one embodiment, further includes: colour code data obtaining module, for obtaining the predetermined object First colour code information;Determination module, for sentencing when first identification information matches with the first colour code information Fixed first identification information meets preset condition.
In one embodiment, identification module 113, comprising: corresponding relationship determines submodule, pre-establishes for obtaining First corresponding relationship of the second identification information and object information;First identification submodule, for according to first corresponding relationship It determines object information corresponding with second identification information, the information of the object is determined according to the corresponding object information Recognition result.
In one embodiment, identification module 113, comprising: identification information acquisition submodule, if for second identification Acquisition of information failure, obtains the section identification information of second colour code;Second identification submodule, for according to described first Identification information and the section identification information determine the information recognition result of the object.
In one embodiment, the second identification submodule, comprising: standby message determination unit, for described first to be known Other information is integrated with the section identification information, obtains spare identification information;Recognition result determination unit, for when described When spare identification information and the predetermined spare identification information of candidate match, determined according to the spare identification information of the candidate The information recognition result of the object.
In one embodiment, identification module 113, comprising: state pause judgments code determines submodule, for according to the position Determine the initial code and end code of second colour code;Identification information acquisition submodule, for obtaining the initial code and knot The center RGB code between beam code determines second identification information according to the rgb value of the center the RGB code.
In one embodiment, identification information acquisition submodule, comprising: corresponding relationship determination unit, for obtaining in advance The rgb value of foundation and the second corresponding relationship of value number;Identification information determination unit, for according to second corresponding relationship The value number for determining second colour code determines second identification information according to the value number.
It should be noted that the recognition methods one of the identification device of object information of the invention and object information of the invention One is corresponding, is suitable for object in the technical characteristic and its advantages of the embodiment elaboration of the recognition methods of above-mentioned object information In the embodiment of the identification device of information, for details, please refer to the description in the embodiment of the method for the present invention, and details are not described herein again, Hereby give notice that.
In addition, the logical partitioning of each program module is only in the embodiment of the identification device of the object information of above-mentioned example It is the realization of the configuration requirement or software for example, can according to need in practical application, such as corresponding hardware It is convenient to consider, above-mentioned function distribution is completed by different program modules, i.e., by the inside of the identification device of the object information Structure is divided into different program modules, to complete all or part of the functions described above.
The recognition methods of object information provided by the present application can be applied in computer equipment as shown in figure 12.The meter Calculating machine equipment can be server, and internal structure chart is shown in Fig.12.The computer equipment includes passing through system bus Processor, memory, network interface and the database of connection.Wherein, the processor of the computer equipment for provide calculate and Control ability.The memory of the computer equipment includes non-volatile memory medium, built-in storage.The non-volatile memory medium It is stored with operating system, computer program and database.The built-in storage be non-volatile memory medium in operating system and The operation of computer program provides environment.The database of the computer equipment is for storing the first identification information, the second identification letter The data such as breath, the first corresponding relationship, the second corresponding relationship.The network interface of the computer equipment is used to pass through with external terminal Network connection communication.The computer program realizes a kind of recognition methods of object information when being executed by processor.
It will be understood by those skilled in the art that structure shown in Figure 12, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor performs the steps of when executing computer program obtains object First identification information of the first colour code;When first identification information meets preset condition, the second of the object is determined The position of colour code;The position is determined according to first colour code;Obtain second of the second colour code in the position Identification information determines the information recognition result of the object according to second identification information.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains predetermined institute State the first colour code information of object;When first identification information and the first colour code information match, institute is determined It states the first identification information and meets preset condition.
In one embodiment, for obtaining and pre-establishing also is performed the steps of when processor executes computer program First corresponding relationship of two identification informations and object information;According to first corresponding relationship determination and second identification information Corresponding object information determines the information recognition result of the object according to the corresponding object information.
In one embodiment, if processor also performs the steps of the second identification letter when executing computer program Breath obtains failure, obtains the section identification information of second colour code;Known according to first identification information and the part Other information determines the information recognition result of the object.
In one embodiment, it is also performed the steps of when processor executes computer program by the first identification letter Breath is integrated with the section identification information, obtains spare identification information;When the spare identification information with it is predetermined When candidate spare identification information matches, the information recognition result of the object is determined according to the spare identification information of candidate.
In one embodiment, it also performs the steps of when processor executes computer program and is determined according to the position The initial code and end code of second colour code;The center the RGB code between the initial code and end code is obtained, according to described The rgb value of the center RGB code determines second identification information.
In one embodiment, the RGB for obtaining and pre-establishing also is performed the steps of when processor executes computer program Second corresponding relationship of value and value number;The value number of second colour code is determined according to second corresponding relationship, Second identification information is determined according to the value number.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the first identification information for obtaining the first colour code of object when being executed by processor;When described When one identification information meets preset condition, the position of the second colour code of the object is determined;The position is according to described first Colour code determines;The second identification information for obtaining the second colour code in the position is determined according to second identification information The information recognition result of the object.
In one embodiment, it is predetermined that acquisition is also performed the steps of when computer program is executed by processor First colour code information of the object;When first identification information and the first colour code information match, determine First identification information meets preset condition.
In one embodiment, also perform the steps of what acquisition pre-established when computer program is executed by processor First corresponding relationship of the second identification information and object information;Believe according to first corresponding relationship is determining with second identification Corresponding object information is ceased, the information recognition result of the object is determined according to the corresponding object information.
In one embodiment, if also performing the steps of second identification when computer program is executed by processor Acquisition of information failure, obtains the section identification information of second colour code;According to first identification information and the part Identification information determines the information recognition result of the object.
In one embodiment, it also performs the steps of when computer program is executed by processor and is identified described first Information is integrated with the section identification information, obtains spare identification information;When the spare identification information and predefine Candidate's spare identification information when matching, determine that the information identification of the object is tied according to the spare identification information of candidate Fruit.
In one embodiment, it is also performed the steps of when computer program is executed by processor true according to the position The initial code and end code of fixed second colour code;The center the RGB code between the initial code and end code is obtained, according to institute The rgb value for stating the center RGB code determines second identification information.
In one embodiment, also perform the steps of what acquisition pre-established when computer program is executed by processor Second corresponding relationship of rgb value and value number;Determine that the numerical value of second colour code is compiled according to second corresponding relationship Number, second identification information is determined according to the value number.
It will appreciated by the skilled person that realizing all or part of the process in above-described embodiment method, being can It is completed with instructing relevant hardware by computer program, the program can be stored in a computer-readable storage and be situated between In matter, sells or use as independent product.The more specific example (non-exhaustive list) of computer-readable medium includes Below: there is the electrical connection section (electronic device) of one or more wirings, portable computer diskette box (magnetic device), arbitrary access Memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), optical fiber dress It sets and portable optic disk read-only storage (CDROM).In addition, computer-readable medium, which can even is that, to be printed on it The paper of described program or other suitable media, because can be for example by carrying out optical scanner to paper or other media, then It edited, interpreted or is handled when necessary with other suitable methods electronically to obtain described program, then by it Storage is in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
The term " includes " of the embodiment of the present invention and " having " and their any deformations, it is intended that cover non-exclusive Include.Such as contain series of steps or the process, method, system, product or equipment of (module) unit are not limited to The step of listing or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these The intrinsic other step or units of process, method, product or equipment.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, should not be understood as to the invention patent range Limitation.It should be pointed out that for those of ordinary skill in the art, without departing from the inventive concept of the premise, Various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Therefore, the scope of protection of the patent of the present invention It should be determined by the appended claims.

Claims (10)

1. a kind of recognition methods of object information, which comprises the following steps:
Obtain the first identification information of the first colour code of object;
When first identification information meets preset condition, the position of the second colour code of the object is determined;The position It is determined according to first colour code;
The second identification information for obtaining the second colour code in the position determines the object according to second identification information Information recognition result.
2. the recognition methods of object information according to claim 1, which is characterized in that described to work as first identification information When meeting preset condition, before the step of determining the position of the second colour code of the object, further includes:
Obtain the first colour code information of the predetermined object;
When first identification information and the first colour code information match, it is pre- to determine that first identification information meets If condition.
3. the recognition methods of object information according to claim 1, which is characterized in that described to be believed according to second identification Breath determines the step of information recognition result of the object, comprising:
Obtain the first corresponding relationship of the second identification information and object information that pre-establish;
Object information corresponding with second identification information is determined according to first corresponding relationship, according to described corresponding right Image information determines the information recognition result of the object.
4. the recognition methods of object information according to claim 1, which is characterized in that the obtained in the position Second identification information of two colour codes, the step of information recognition result of the object is determined according to second identification information, Include:
If second identification information obtains failure, the section identification information of second colour code is obtained;
The information recognition result of the object is determined according to first identification information and the section identification information.
5. the recognition methods of object information according to claim 4, which is characterized in that described to be believed according to first identification The step of breath and the section identification information determine the information recognition result of the object, comprising:
First identification information is integrated with the section identification information, obtains spare identification information;
When the spare identification information and the predetermined spare identification information of candidate match, according to the spare knowledge of candidate Other information determines the information recognition result of the object.
6. the recognition methods of object information according to any one of claims 1 to 5, which is characterized in that described second is colored Code includes: initial code, end code and the center RGB code;
The step of second identification information for obtaining the second colour code in the position, comprising:
The initial code and end code of second colour code are determined according to the position;
The center the RGB code between the initial code and end code is obtained, determines described the according to the rgb value of the center RGB code Two identification informations.
7. the recognition methods of object information according to claim 6, which is characterized in that described according to the center the RGB code Rgb value the step of determining second identification information, comprising:
Obtain the second corresponding relationship of the rgb value pre-established and value number;
The value number that second colour code is determined according to second corresponding relationship, according to value number determination Second identification information.
8. a kind of identification device of object information characterized by comprising
Colour code obtains module, the first identification information of the first colour code for obtaining object;
Position determination module, second for when first identification information meets preset condition, determining the object are colored The position of code;The position is determined according to first colour code;
And identification module is known for obtaining the second identification information of the second colour code in the position according to described second Other information determines the information recognition result of the object.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor is realized described in any one of claim 1 to 7 when executing the computer program Method the step of.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of claim 1 to 7 described in any item methods are realized when being executed by processor.
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 true CN109117686A (en) 2019-01-01
CN109117686B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797645A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Method and apparatus for identifying bar code
WO2021097830A1 (en) * 2019-11-22 2021-05-27 连云港伍江数码科技有限公司 Method and apparatus for identifying object information, computer device, and storage medium
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

Cited By (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

Also Published As

Publication number Publication date
CN109117686B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US20230116801A1 (en) Image authenticity detection method and device, computer device, and storage medium
CN109117686A (en) Recognition methods, device, computer equipment and the storage medium of object information
CN108933935A (en) Detection method, device, storage medium and the computer equipment of video communication system
CN110119719A (en) Biopsy method, device, equipment and computer readable storage medium
CN104778440B (en) The recognition methods of color 2 D code and identification device
US11409492B2 (en) System including a plurality of display apparatus and control method thereof
CN108833990A (en) Video caption display methods and device
CN117242482A (en) Digital imaging and learning system and method for analyzing pixel data of scalp region of user's scalp to generate one or more user-specific scalp classifications
CN114092108A (en) Method for identifying authenticity of Pu' er tea
CN110991372A (en) Method for identifying cigarette brand display condition of retail merchant
CN104933386B (en) The recognition methods of many GTG invisible two-dimensional codes
CN111914763B (en) Living body detection method, living body detection device and terminal equipment
CN104376280B (en) A kind of image code generation method towards Google glass
CN104376523B (en) A kind of image code false-proof system composing method towards Google glass
CN107004148A (en) Bar code evaluating apparatus, bar code image generation system, bar code evaluation method, bar code image generation method and bar code assessment process
CN106815598B (en) 360-degree panoramic picture identification method and device
CN108171205A (en) For identifying the method and apparatus of face
US20140193085A1 (en) Image manipulating system and method
RU97199U1 (en) SYSTEM, MOBILE DEVICE AND READING DEVICE FOR TRANSFER OF TEXT INFORMATION USING GRAPHIC IMAGES
Ju et al. Colour fringe detection and correction in YCbCr colour space
CN108090468B (en) Method and apparatus for detecting face
CN111080725A (en) Image processing method, system and equipment based on color space conversion
CN115761567A (en) Video processing method and device, electronic equipment and computer readable storage medium
KR20200098157A (en) Display system for sensing defect on large-size display
WO2021097830A1 (en) Method and apparatus for identifying object information, computer device, and storage medium

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

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.

TR01 Transfer of patent right