CN102902964A - Detection method for intelligently locating lettering region - Google Patents

Detection method for intelligently locating lettering region Download PDF

Info

Publication number
CN102902964A
CN102902964A CN2012103777569A CN201210377756A CN102902964A CN 102902964 A CN102902964 A CN 102902964A CN 2012103777569 A CN2012103777569 A CN 2012103777569A CN 201210377756 A CN201210377756 A CN 201210377756A CN 102902964 A CN102902964 A CN 102902964A
Authority
CN
China
Prior art keywords
detected
execution
parameter
carving characters
characters
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
CN2012103777569A
Other languages
Chinese (zh)
Other versions
CN102902964B (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201210377756.9A priority Critical patent/CN102902964B/en
Publication of CN102902964A publication Critical patent/CN102902964A/en
Application granted granted Critical
Publication of CN102902964B publication Critical patent/CN102902964B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a detection method for intelligently locating a lettering region, belonging to the field of electrics. The detection method specifically comprises the steps of: obtaining and storing the images of the lettering region of a device to be detected; processing the images according to image processing parameters; identifying closed image regions meeting the estimated parameters of the lettering region in the processed images; judging whether letters are obtained by identifying, if so, judging whether the letters obtained by identifying are same as serial numbers stored in the device to be detected, if so, prompting that the internal number and the external number of the device to be detected are the same, otherwise, prompting that the internal number and the external number of the device to be detected are different; and if the letters are not obtained by identifying, judging whether the unidentified closed image regions meeting the estimated parameters of the lettering region exist, if so, continuing to identify, otherwise, detecting the marks of the image processing parameters, adjusting the image processing parameters to reprocess and re-identify the images when the marks are not set, and prompting that the internal number and the external number of the device to be detected are different when the marks are set. The detection method has the beneficial effect that the detection efficiency and the adaptability to light environments are improved.

Description

A kind of intelligence is located the detection method in the zone of carving characters
Technical field
The invention belongs to electricity field, particularly a kind of intelligence is located the detection method in the zone of carving characters.
Background technology
When manufacturer's production information safety product such as USB Key; can set a unique sequence number for each USB Key; it is inner to be stored in USB Key; engrave accordingly at product surface according to sequence number simultaneously and carve characters; usually having in process of production the outside carves characters and internal sequence number inconsistent problem; whether making now the commercial city, to adopt the manual detection outside to carve characters number consistent with internal sequence, and whether nickname is consistent in namely detecting.
The inventor is in realizing process of the present invention, find to have at least following problem in the prior art: same manufacturer will produce the safety information product of variety classes and model usually, the color of product, material and the font of carving characters, color, zone and big or small etc. fixing adopt manual detection efficiency lower.
Summary of the invention
To the objective of the invention is in order to overcome the defective of prior art, in order dealing with problems, to propose the detection method that a kind of intelligence is located the zone of carving characters.
The inventive method is achieved through the following technical solutions:
A kind of intelligence is located the detection method in the zone of carving characters, and it is characterized in that comprising:
Step a: the area image of carving characters that obtains and preserve current device to be detected;
Step b: according to the image processing parameter area image of carving characters of described current device to be detected being processed, whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, is execution in step c then, otherwise execution in step f;
Step c: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify, and judge whether that identification is carved characters, be execution in step d then, otherwise execution in step e;
Steps d: judge that identification obtains carve characters with current device to be detected in the sequence number stored whether conform to, then according to the parameter correction of the sealing image-region of current identification and preserve the regional precompensation parameter of carving characters, point out the interior nickname of current device to be detected consistent, otherwise execution in step e;
Step e: judging the sealing image-region that whether also has the other satisfied regional precompensation parameter of carving characters in the image after the described processing, is then to return execution in step c, otherwise execution in step f;
Step f: the whether set of check image processing parameter sign is then to point out the interior nickname of current device to be detected inconsistent, otherwise adjusts described image processing parameter, execution in step g according to preset rules;
Step g: judge adjusting number of times and whether reach preset times, is then with the set of described image processing parameter, returns execution in step b, otherwise directly returns execution in step b.
Further, described step b is replaceable is:
Step b1: the area image of carving characters of described current device to be detected is processed according to the image processing parameter, whether store the zone location information of carving characters in the judgment device, then according to searching the respective image zone in the described image of zone location information after processing of carving characters, and described respective image zone identified, execution in step b2, otherwise execution in step b4;
Step b2: judge whether that identification is carved characters, to judge then whether identify carving characters of obtaining conforms to the interior sequence number of storing of the sequence number of the interior storage of current device to be detected, then point out the interior nickname of current device to be detected to conform to if conform to, if do not conform to then execution in step b3, otherwise execution in step b3;
Step b3: the zone location information of carving characters of storing in the sweep equipment, execution in step b4;
Step b4: whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, and is execution in step c then, otherwise execution in step f.
Also comprise before the interior nickname of the current device to be detected of prompting described in the described steps d is consistent:
The positional information of the sealing image-region of current identification is stored as the described zone location information of carving characters.
Also comprise before the described step a:
The described image processing parameter of initialization and the regional precompensation parameter of carving characters, described image processing parameter sign resets.
Described to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters also comprise before identifying:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
The described respective image zone is identified also comprises before:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Described judgement identification obtains carve characters with current device to be detected in the sequence number stored in the sequence number stored comprise before whether conforming to:
Judging whether to detect device to be detected, be the sequence number that then obtains storage in the current device to be detected, otherwise prompting does not detect device to be detected.
Described judgement identification obtains carve characters with current device to be detected in the sequence number stored whether conform to and specifically comprise:
Whether carving characters of judging that identification obtains is identical with the sequence number of the interior storage of device to be detected;
Whether carving characters of judging perhaps that identification obtains is the fixed part of sequence number of the interior storage of device to be detected;
Whether carving characters of judging perhaps that identification obtains can be added preset characters by the sequence number of the interior storage of device to be detected and be obtained.
The parameter correction of described sealing image-region according to the current identification regional precompensation parameter of carving characters comprises:
With each parameter of the sealing image-region of current identification respectively with two multiplication that vary in size, the result is respectively as correspondingly higher limit and the lower limit of parameter in the described region parameter of carving characters.
Describedly adjust described image processing parameter according to preset rules and comprise:
Adjustment order according to each parameter in the described image processing parameter is adjusted one of them parameter successively, keeps simultaneously all the other parameter constants.
Perhaps adjust successively each parameter in the described image processing parameter according to the adjustment order, keep simultaneously the total product of each parameter constant.
Nickname is returned execution in step a consistent comprising afterwards in the current device to be detected of described prompting;
Nickname is returned execution in step a inconsistent comprising afterwards in the current device to be detected of described prompting.
A kind of intelligence is located the detection method in the zone of carving characters, and it is characterized in that comprising:
Steps A: the area image of carving characters that obtains and preserve current device to be detected;
Step B: according to the image processing parameter area image of carving characters of described current device to be detected being processed, whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, is execution in step C then, otherwise execution in step H;
Step C: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify, and judge whether that identification is carved characters, be execution in step D then, otherwise execution in step F;
Step D: judging whether carving characters that identification obtains is the substring of the sequence number of current device storage inside to be detected, is execution in step E then, otherwise execution in step F;
Step e: judge whether to identify and obtain whole substrings, to judge then whether the zone of carving characters corresponding to described whole substring meets pre-conditioned, if it is consistent to meet the interior nickname of the device of then pointing out current detection, if it is inconsistent not meet the interior nickname of the device of then pointing out current detection;
Step F: judging the sealing image-region that whether also has the other satisfied regional precompensation parameter of carving characters in the image after the described processing, is then to return execution in step C, otherwise execution in step G;
Step G: the whether set of check image processing parameter sign is then to point out the interior nickname of current device to be detected inconsistent, otherwise adjusts described image processing parameter, execution in step H according to preset rules;
Step H: judge adjusting number of times and whether reach preset times, is then with the set of described image processing parameter, returns execution in step B, otherwise directly returns execution in step B.
Further, described step B is replaceable is:
Step B1: the area image of carving characters of described current device to be detected is processed according to the image processing parameter, whether store the zone location information of carving characters in the judgment device, then according to searching the respective image zone in the described image of zone location information after processing of carving characters, execution in step B2, otherwise execution in step B5;
Step B2: successively the image-region that finds being identified, and judged whether all to identify to be carved characters, is execution in step B3 then, otherwise execution in step B4;
Step B3: all that judge that identification obtains carve characters whether be the substring of the sequence number of storage in the current device to be detected, to judge then whether the zone of carving characters corresponding to described whole substring meets pre-conditioned, if it is consistent to meet the interior nickname of the device of then pointing out current detection, if it is inconsistent not meet the interior nickname of the device of then pointing out current detection, otherwise execution in step B4;
Step B4: the zone location information of carving characters of storing in the sweep equipment, execution in step B5;
Step B5: whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, and is execution in step C then, otherwise execution in step G.
Also comprise before the interior nickname of the current device to be detected of prompting described in the described step e is consistent:
The positional information of the sealing image-region that described whole substrings are corresponding is stored as the described zone location information of carving characters.
Also comprise before the described steps A:
The described image processing parameter of initialization and the regional precompensation parameter of carving characters, described image processing parameter sign resets.
One of described identification still also comprises before the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
The described image-region that finds is identified also comprises before:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Whether described judgement identification obtains carves characters is to comprise before the substring of the sequence number of storage in the current device to be detected:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, calculate according to described sequence number and carve characters, otherwise prompting does not detect device to be detected.
Describedly judge whether the zone of carving characters corresponding to described whole substring meets pre-conditioned comprising:
Judge whether the zone of carving characters corresponding to described whole substring is positioned on the same level line, by whether conform to carving characters of calculating after its combination that puts in order, whether the adjacent interregional distance of carving characters in preset range.
Described judgement by its combination that puts in order after whether with calculate carve characters to conform to and specifically comprise:
Whether judgement is identical with carving characters of calculating after by its combination that puts in order;
Perhaps judge by its put in order the combination after whether be the fixed part of carving characters that calculates;
Perhaps judge by whether being obtained by the interpolation preset characters of carving characters that calculates after its combination that puts in order;
Perhaps judge by whether being calculated by preset algorithm by carving characters of calculating after its combination that puts in order.
Describedly adjust described image processing parameter according to preset rules and comprise:
Adjustment order according to each parameter in the described image processing parameter is adjusted one of them parameter successively, keeps simultaneously all the other parameter constants.
Perhaps adjust successively each parameter in the described image processing parameter according to the adjustment order, keep simultaneously the total product of each parameter constant.
Nickname is returned execution in step A consistent comprising afterwards in the current device to be detected of described prompting;
Nickname is returned execution in step A inconsistent comprising afterwards in the current device to be detected of described prompting.
The beneficial effect of the inventive method is: the intelligent zone of carving characters of locating, and production efficiency is high, and versatility is stronger, and also there is stronger adaptability in the focus ring border.
Description of drawings
For the clearer explanation embodiment of the invention or technical scheme of the prior art, the below will do simple the introduction to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of intelligence that Fig. 1 provides for the embodiment of the invention one is located the detection method process flow diagram in the zone of carving characters;
A kind of intelligence that Fig. 2 provides for the embodiment of the invention two is located the detection method process flow diagram in the zone of carving characters;
A kind of intelligence that Fig. 3 provides for the embodiment of the invention three is located the detection method process flow diagram in the zone of carving characters;
A kind of intelligence that Fig. 4 provides for the embodiment of the invention four is located the detection method process flow diagram in the zone of carving characters.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
Referring to Fig. 1, interior nickname the detection method that whether consistent process as example provide a kind of intelligence location carve characters zone of the embodiment of the invention to detect USB Key, described method specifically comprises carries out following steps when equipment receives the detection request:
Step 101: initialisation image processing parameter and the regional precompensation parameter of carving characters, reset image processing parameter sign;
Preferably, in the present embodiment, described image processing parameter and the regional precompensation parameter of carving characters are pre-stored in equipment, and described image processing parameter comprises binaryzation parameter and expansion coefficient; The described regional precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, be shaped as in the present embodiment rectangle, the ratio of width to height scope and be 3~8, areal extent is 5000~60000, described image processing parameter sign is 0 when resetting, and is 1 during set.
Step 102: the area image of carving characters that obtains and preserve USB Key to be detected;
Particularly, in the present embodiment, the described area image of carving characters that obtains USB Key to be detected is to taking pictures in the zone of carving characters of USB Key to be detected, in the practical application, camera can be fixed, artificially USB Key to be detected is connected with equipment and places camera below, adopt camera to the zone of carving characters of the USB Key to be detected acquisition image of taking pictures.
Step 103: obtain the image processing parameter, and according to the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is processed;
Preferably, in the present embodiment, the image processing parameter that described basis gets access to is processed the area image of carving characters of USB Key to be detected and is comprised: according to the binaryzation parameter in the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is carried out binary conversion treatment and obtain binary image, then according to the expansion coefficient in the image processing parameter that gets access to binary image is expanded.
Step 104: obtain the sealing image-region in carve characters regional precompensation parameter and the rear image of processing;
Whether step 105: judging has the sealing image-region that satisfies the regional precompensation parameter of carving characters in the sealing image-region obtain, is execution in step 106 then, otherwise execution in step 112;
Preferably, in the present embodiment, describedly judge whether to satisfy the carve characters closed region of regional precompensation parameter and be: judge whether have in the closed region that gets access to that the rectangle of being shaped as, the ratio of width to height scope are 3~8, areal extent is 5000~60000 sealing image-region, for example, in the present embodiment, if certain closed region size is 50000, be shaped as rectangle, wide by 500, high by 100, then described zone is qualified sealing image-region.
Step 106: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify;
Particularly, in the present embodiment, the described character that obtains in the sealing image-region that is identified as is by comparing the type matrix in each character and the character library;
Further, can comprise before the step 106: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 107: judging whether that identification is carved characters, is execution in step 108 then, otherwise execution in step 111;
Step 108: judge that identification obtains carve characters with USB Key to be detected whether conform to for interior number, be execution in step 109 then, otherwise execution in step 111;
Particularly, in the present embodiment, comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Whether whether conform to interior number of being specially carving characters of judging that identification obtains and USB Key to be detected of with USB Key to be detected interior number of carving characters that described judgement identification obtains be identical, for example interior number of USB Key to be detected is 123456789013, if carving characters that identification obtains is 123456789013 also, then the two conforms to; Perhaps whether satisfy default corresponding relation for carving characters of judging that identification obtains and USB Key to be detected interior number, wherein said default corresponding relation is interior number the fixed part of USB Key to be detected for identifying carving characters of obtaining, for example interior number of USB Key to be detected is SN0000144057, if carving characters that identification obtains is 0000144057, then the two conforms to; Or be to identify carving characters of obtaining to be obtained by the interior number interpolation preset characters of USB Key to be detected, for example interior number of USB Key to be detected is 0000144057, if carving characters that identification obtains is SRCBCN0000144057, then the two conforms to, or for carving characters of obtaining of identification can be by interior number of USB Key to be detected by being converted to described conversion such as unidirectional conversion or reversible transformation etc.
Step 109: the regional precompensation parameter of carving characters is also preserved in the parameter correction according to current sealing image-region;
Particularly, in the present embodiment, step 109 can for: the area in present image zone be multiply by the first default coefficient as the higher limit of area parameters in the regional precompensation parameter of carving characters, area multiply by the second default coefficient as the lower limit of area parameters in the regional precompensation parameter of carving characters, the ratio of width to height multiply by the 3rd default coefficient as the higher limit of aspect ratio parameter in the regional precompensation parameter of carving characters, the ratio of width to height multiply by the 4th default coefficient as the lower limit of aspect ratio parameter in the regional precompensation parameter of carving characters, wherein the first coefficient is greater than the second coefficient, and the 3rd coefficient is greater than the Quaternary system number.
Step 110: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 111: judging whether also to exist other the meeting sealing image-region of regional precompensation parameter of carving characters, is then to return execution in step 106, otherwise execution in step 112;
Step 112: the whether set of check image processing parameter sign is execution in step 113 then, otherwise execution in step 114;
Step 113: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 114: adjust the image processing parameter according to preset rules;
Particularly, in the present embodiment, step 114 can be refined as:
Step 1-1: judging that whether expansion coefficient is the maximal value (or minimum value) in the preset range, is execution in step 1-3 then, otherwise execution in step 1-2;
Step 1-2: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 115 of being adjusted into;
Step 1-3: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 115 of being adjusted into;
Perhaps step 114 is refined as:
Step 2-1: judging that whether the binaryzation parameter is the maximal value (or minimum value) in the preset range, is execution in step 2-3 then, otherwise execution in step 2-2;
Step 2-2: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 115 of being adjusted into;
Step 2-3: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 115 of being adjusted into;
Perhaps step 114 is refined as:
Adjust expansion coefficient and binaryzation parameter according to default product in preset range, the product of namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts respectively expansion coefficient and binaryzation parameter in preset range separately.
In the present embodiment take two parameters as example, when having a plurality of parameter by following same method.
Step 115: judge to adjust number of times and whether reach preset times, be execution in step 116 then, otherwise return execution in step 103;
Particularly, described preset times equals that each parameter all satisfies pre-conditioned number of combinations in the image processing parameter.
Step 116: with the set of image processing parameter, return execution in step 103.
Described above is the process that detects a USB Key, further, can return execution in step 102 after step 110 and the step 113, repeats for detection of many USB Key.
Embodiment two
Referring to Fig. 2, interior nickname the detection method that whether consistent process as example provide a kind of intelligence location carve characters zone of the embodiment of the invention to detect USB Key, described method specifically may further comprise the steps:
Step 301: initialisation image processing parameter and the regional precompensation parameter of carving characters, reset image processing parameter sign;
Preferably, in the present embodiment, described image processing parameter and the region parameter of carving characters are pre-stored in equipment, and described image processing parameter comprises binaryzation parameter and expansion coefficient; The described regional precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, be shaped as in the present embodiment rectangle, the ratio of width to height scope and be 3~8, areal extent is 5000~60000, described image processing parameter sign is 0 when resetting, and is 1 during set.
Step 302: the area image of carving characters that obtains and preserve USB Key to be detected;
Particularly, in the present embodiment, the described area image of carving characters that obtains USB Key to be detected is to taking pictures in the zone of carving characters of USB Key to be detected, in the practical application, camera can be fixed, artificially USB Key to be detected is connected with equipment and places camera below, adopt camera to the zone of carving characters of the USB Key to be detected acquisition image of taking pictures.
Step 303: obtain the image processing parameter, and according to the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is processed;
Preferably, in the present embodiment, the image processing parameter that described basis gets access to is processed the area image of carving characters of USB Key to be detected and is comprised: according to the binaryzation parameter in the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is carried out binary conversion treatment and obtain binary image, then according to the expansion coefficient in the image processing parameter that gets access to binary image is expanded.
Step 304: whether storing the zone location information of carving characters in the judgment device, is execution in step 305 then, otherwise execution in step 311;
Particularly, the described zone location information of carving characters can be the carve characters coordinate of regional upper left point and the coordinate of lower-right most point in the present embodiment, perhaps carve characters length and width value, the coordinate of the regional center point of perhaps carving characters and the regional length and width value etc. of carving characters in regional upper left point coordinate and the zone of carving characters.
Step 305: according to seeking the respective image zone in the image of zone location information after processing of carving characters;
Step 306: identification present image zone;
Particularly, in the present embodiment, described identifying is specially the character that obtains in the present image zone, by the type matrix in each character and the character library is compared;
Further, can comprise before the step 306: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 307: judging whether that identification is carved characters, is execution in step 308 then, otherwise execution in step 310;
Step 308: judge that identification obtains carve characters with USB Key to be detected whether conform to for interior number, be execution in step 309 then, otherwise execution in step 310;
Particularly, in the present embodiment, comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Whether whether conform to interior number of being specially carving characters of judging that identification obtains and USB Key to be detected of with USB Key to be detected interior number of carving characters that described judgement identification obtains be identical, for example interior number of USB Key to be detected is 123456789013, if carving characters that identification obtains is 123456789013 also, then the two conforms to; Perhaps whether satisfy default corresponding relation for carving characters of judging that identification obtains and USB Key to be detected interior number, wherein said default corresponding relation is interior number the fixed part of USB Key to be detected for identifying carving characters of obtaining, for example interior number of USB Key to be detected is SN0000144057, if carving characters that identification obtains is 0000144057, then the two conforms to; Or be to identify carving characters of obtaining to be obtained by the interior number interpolation preset characters of USB Key to be detected, for example interior number of USB Key to be detected is 0000144057, if carving characters that identification obtains is SRCBCN0000144057, then the two conforms to, or for carving characters of obtaining of identification can be by interior number of USB Key to be detected by being converted to described conversion such as unidirectional conversion or reversible transformation etc.
Step 309: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 310: the zone location information of carving characters of storing in the sweep equipment, execution in step 311;
Step 311: obtain the sealing image-region in carve characters regional precompensation parameter and the rear image of processing;
Step 312: judging whether to satisfy the sealing image-region of regional precompensation parameter of carving characters, is execution in step 313 then, otherwise execution in step 320;
Preferably, in the present embodiment, describedly judge whether to satisfy the carve characters closed region of regional precompensation parameter and be: judge whether have in the closed region that gets access to that the rectangle of being shaped as, the ratio of width to height scope are 3~8, areal extent is 5000~60000 sealing image-region, for example, in the present embodiment, if certain closed region size is 50000, be shaped as rectangle, wide by 500, high by 100, then described zone is qualified sealing image-region.
Step 313: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify;
Particularly, in the present embodiment, the described character that obtains in the sealing image-region that is identified as is by comparing the type matrix in each character and the character library;
Further, can comprise before the step 313: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 314: judging whether that identification is carved characters, is execution in step 315 then, otherwise execution in step 319;
Step 315: judge that identification obtains carve characters with USB Key to be detected whether conform to for interior number, be execution in step 316 then, otherwise execution in step 319;
Particularly, in the present embodiment, comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside by sending instructions under the USB interface, otherwise prompting does not detect USB Key;
Whether whether conform to interior number of being specially carving characters of judging that identification obtains and USB Key to be detected of with USB Key to be detected interior number of carving characters that described judgement identification obtains be identical, for example interior number of USB Key to be detected is 123456789013, if carving characters that identification obtains is 123456789013 also, then the two conforms to; Perhaps whether satisfy default corresponding relation for carving characters of judging that identification obtains and USB Key to be detected interior number, wherein said default corresponding relation is interior number the fixed part of USB Key to be detected for identifying carving characters of obtaining, for example interior number of USB Key to be detected is SN0000144057, if carving characters that identification obtains is 0000144057, then the two conforms to; Or be to identify carving characters of obtaining to be obtained by the interior number interpolation preset characters of USB Key to be detected, for example interior number of USB Key to be detected is 0000144057, if carving characters that identification obtains is SRCBCN0000144057, then the two conforms to, or for carving characters of obtaining of identification can be by interior number of USB Key to be detected by being converted to described conversion such as unidirectional conversion or reversible transformation etc.
Step 316: the regional precompensation parameter of carving characters is also preserved in the parameter correction according to the present image zone;
Particularly, in the present embodiment, step 316 can for: the area in present image zone be multiply by the first default coefficient as the higher limit of area parameters in the regional precompensation parameter of carving characters, area multiply by the second default coefficient as the lower limit of area parameters in the regional precompensation parameter of carving characters, the ratio of width to height multiply by the 3rd default coefficient as the higher limit of aspect ratio parameter in the regional precompensation parameter of carving characters, the ratio of width to height multiply by the 4th default coefficient as the lower limit of aspect ratio parameter in the regional precompensation parameter of carving characters, wherein the first coefficient is greater than the second coefficient, and the 3rd coefficient is greater than the Quaternary system number.
Step 317: the positional information in present image zone is saved as the zone location information of carving characters;
Directly seek respective regions when particularly, the described zone location information of carving characters is used for detecting next time.
Step 318: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 319: judging whether also to exist other the meeting sealing image-region of regional precompensation parameter of carving characters, is then to return execution in step 313, otherwise execution in step 320;
Step 320: the whether set of check image processing parameter sign is execution in step 321 then, otherwise execution in step 322;
Step 321: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 322: adjust the image processing parameter according to preset rules;
Particularly, in the present embodiment, step 322 can be refined as:
Step 1-1: judging that whether expansion coefficient is the maximal value (or minimum value) in the preset range, is execution in step 1-3 then, otherwise execution in step 1-2;
Step 1-2: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 323 of being adjusted into;
Step 1-3: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 323 of being adjusted into;
Perhaps be refined as:
Step 2-1: judging that whether the binaryzation parameter is the maximal value (or minimum value) in the preset range, is execution in step 2-3 then, otherwise execution in step 2-2;
Step 2-2: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 323 of being adjusted into;
Step 2-3: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 323 of being adjusted into;
Perhaps be refined as:
Adjust expansion coefficient and binaryzation parameter according to default product in preset range, the product of namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts respectively expansion coefficient and binaryzation parameter in preset range separately;
In the present embodiment take two parameters as example, when having a plurality of parameter by following same method.
Step 323: judge to adjust number of times and whether reach preset times, be execution in step 324 then, otherwise return execution in step 303;
Particularly, described preset times equals that each parameter all satisfies pre-conditioned number of combinations in the image processing parameter.
Step 324: with image processing parameter flag set, return execution in step 303.
Described above is the process that detects a USB Key, further, can return execution in step 302 after step 309, step 318 and the step 321, repeats for detection of many USB Key.
Embodiment three
Referring to Fig. 3, interior nickname the detection method that whether consistent process as example provide a kind of intelligence location carve characters zone of the embodiment of the invention to detect USB Key, described method specifically may further comprise the steps:
Step 501: initialisation image processing parameter and the regional precompensation parameter of carving characters, reset image processing parameter sign;
Preferably, in the present embodiment, described image processing parameter and the region parameter of carving characters are pre-stored in equipment, and described image processing parameter comprises binaryzation parameter and expansion coefficient; The described regional precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, be shaped as in the present embodiment rectangle, the ratio of width to height scope and be 2~5, areal extent is 2000~20000, described image processing parameter sign is 0 when resetting, and is 1 during set.
Step 502: the area image of carving characters that obtains and preserve USB Key to be detected;
Particularly, in the present embodiment, the described area image of carving characters that obtains USB Key to be detected is to taking pictures in the zone of carving characters of USB Key to be detected, in the practical application, camera can be fixed, artificially USB Key to be detected is connected with equipment and places camera below, adopt camera to the zone of carving characters of the USB Key to be detected acquisition image of taking pictures.
Step 503: obtain the image processing parameter, and according to the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is processed;
Preferably, in the present embodiment, the image processing parameter that described basis gets access to is processed the area image of carving characters of USB Key to be detected and is comprised: according to the binaryzation parameter in the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is carried out binary conversion treatment and obtain binary image, then according to the expansion coefficient in the image processing parameter that gets access to binary image is expanded.
Step 504: obtain the sealing image-region in carve characters regional precompensation parameter and the rear image of processing;
Step 505: judging whether to satisfy the sealing image-region of regional precompensation parameter of carving characters, is execution in step 506 then, otherwise execution in step 514;
Preferably, in the present embodiment, describedly judge whether to satisfy the carve characters closed region of regional precompensation parameter and be: judge whether have in the closed region that gets access to that the rectangle of being shaped as, the ratio of width to height scope are 3~8, areal extent is 5000~60000 sealing image-region, for example, in the present embodiment, if certain closed region size is 50000, be shaped as rectangle, wide by 500, high by 100, then described zone is qualified sealing image-region.
Step 506: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify;
Particularly, in the present embodiment, the described character that obtains in the sealing image-region that is identified as is by comparing the type matrix in each character and the character library;
Further, can comprise before the step 506: judge whether to detect USB Key to be detected, be the sequence number that then obtains its storage inside by sending instructions under the USB interface and calculate according to described sequence number and to carve characters, preferably, described being calculated as inserted the space, also can comprise other calculating except inserting the space, such as calculating or change according to algorithm etc., otherwise prompting does not detect USB Key; For example, the sequence number of USB Key storage inside to be detected is 490000001605, is 4,900 0,000 1605 according to its carving characters of calculating, and wherein 4900,0000,1605 is three substrings in the USB Key to be detected number.
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 507: judging whether that identification is carved characters, is execution in step 508 then, otherwise execution in step 513;
Step 508: whether carving characters of judging that identification obtains is the substring in the USB Key to be detected number, is execution in step 509 then, otherwise execution in step 513;
Step 509: judging whether to identify and obtain whole substrings, is execution in step 510 then, otherwise execution in step 513;
Particularly, judge whether to identify according to the content of the quantity of work song string in the USB Key to be detected and each substring and obtain whole substrings;
For example 4900,0000,1605 is three substrings in the USB Key to be detected number, then only have when identification obtains differentiating when three contents are respectively 4900,0000 and 1605 carve characters for identification and obtain whole substrings, and for example 490,000,000,160 is four substrings in the USB Key to be detected number, then only have when identification obtain two contents be 000 carve characters, 1 content be 490 carve characters and content is 160 carves characters and differentiate the whole substrings that obtain for identification.
Step 510: it is pre-conditioned to judge whether the zone of carving characters corresponding to described whole substring all meets, and is execution in step 511 then, otherwise execution in step 512;
Particularly, in the present embodiment, also comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside, and carves characters according to the sequence number calculating that gets access to, otherwise prompting does not detect USB Key;
Described pre-conditioned for the zone of carving characters corresponding to described whole substrings is positioned on the same level line, described whole substrings conform to carving characters of calculating after by the combination that puts in order, the adjacent interregional spacing of carving characters is in preset range;
Correspondingly, described in this step all substrings by the combination that puts in order after with calculate carve characters to conform to and be specially: described whole substrings are identical with carving characters of calculating after by the combination that puts in order, perhaps make up the rear satisfied default corresponding relation of carving characters with calculating by putting in order for described whole substrings, wherein said default corresponding relation is to be the fixed part of carving characters that calculates after described whole substring makes up by putting in order, or be to be obtained by the interpolation preset characters of carving characters that calculates after described whole substrings make up by putting in order, or be can be by carving characters by being converted to described conversion such as unidirectional conversion or reversible transformation etc. of calculating after described whole substrings make up by putting in order.。
Step 511: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 512: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 513: judging whether also to exist other the meeting sealing image-region of regional precompensation parameter of carving characters, is then to return execution in step 506, otherwise execution in step 514;
Step 514: the whether set of check image processing parameter sign is execution in step 515 then, otherwise execution in step 516;
Step 515: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 516: adjust the image processing parameter according to preset rules;
Particularly, in the present embodiment, step 516 can be refined as:
Step 1-1: judging that whether expansion coefficient is the maximal value (or minimum value) in the preset range, is execution in step 1-3 then, otherwise execution in step 1-2;
Step 1-2: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 517 of being adjusted into;
Step 1-3: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 517 of being adjusted into;
Perhaps be refined as:
Step 2-1: judging that whether the binaryzation parameter is the maximal value (or minimum value) in the preset range, is execution in step 2-3 then, otherwise execution in step 2-2;
Step 2-2: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 517 of being adjusted into;
Step 2-3: in preset range, adjust expansion coefficient, described be adjusted into to successively decrease (or increase progressively execution in step 517;
Perhaps be refined as:
Adjust expansion coefficient and binaryzation parameter according to default product in preset range, the product of namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts respectively expansion coefficient and binaryzation parameter in preset range separately;
In the present embodiment take two parameters as example, when having a plurality of parameter by following same method.
Step 517: judge to adjust number of times and whether reach preset times, be execution in step 518 then, otherwise return execution in step 503;
Step 518: with image processing parameter flag set, return execution in step 503.
Described above is the process that detects a USB Key, further, step 511,512 and step 515 after can return execution in step 502, repeat for detection of many USB Key.
Embodiment four
Referring to Fig. 4, interior nickname the detection method that whether consistent process as example provide a kind of intelligence location carve characters zone of the embodiment of the invention to detect USB Key, described method specifically may further comprise the steps:
Step 701: initialisation image processing parameter and the regional precompensation parameter of carving characters, reset image processing parameter sign;
Preferably, in the present embodiment, described image processing parameter and the region parameter of carving characters are pre-stored in equipment, and described image processing parameter comprises binaryzation parameter and expansion coefficient; The described regional precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, be shaped as in the present embodiment rectangle, the ratio of width to height scope and be 2~5, areal extent is 2000~20000, described image processing parameter sign is 0 when resetting, and is 1 during set.
Step 702: the area image of carving characters that obtains and preserve USB Key to be detected;
Particularly, in the present embodiment, the described area image of carving characters that obtains USB Key to be detected is to taking pictures in the zone of carving characters of USB Key to be detected, in the practical application, camera can be fixed, artificially USB Key to be detected is connected with equipment and places camera below, adopt camera to the zone of carving characters of the USB Key to be detected acquisition image of taking pictures.
Step 703: obtain the image processing parameter, and according to the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is processed;
Preferably, in the present embodiment, the image processing parameter that described basis gets access to is processed the area image of carving characters of USB Key to be detected and is comprised: according to the binaryzation parameter in the image processing parameter that gets access to the area image of carving characters of USB Key to be detected is carried out binary conversion treatment and obtain binary image, then according to the expansion coefficient in the image processing parameter that gets access to binary image is expanded.
Step 704: whether storing the zone location information of carving characters in the judgment device, is execution in step 705 then, otherwise execution in step 713;
Particularly, the described zone location information of carving characters is the locating information in one group of zone of carving characters in the present embodiment, the locating information in the every group of zone of carving characters can be the carve characters coordinate of regional upper left point and the coordinate of lower-right most point, perhaps carve characters length and width value, the coordinate of the regional center point of perhaps carving characters and the regional length and width value etc. of carving characters in regional upper left point coordinate and the zone of carving characters.
Step 705: according to seeking the respective image zone in the image of zone location information after processing of carving characters;
Step 706: successively the image-region that searches out is identified;
Particularly, in the present embodiment, described identifying is specially the character that obtains in the image-region that searches out, by the type matrix in each character and the character library is compared;
Further, can comprise before the step 706: judge whether to detect USB Key to be detected, be the sequence number that then obtains its storage inside by sending instructions under the USB interface and calculate according to described sequence number and to carve characters that wherein said being calculated as inserted the space, otherwise prompting does not detect USB Key; For example, the sequence number of USB Key storage inside to be detected is 490000001605, is 4,900 0,000 1605 according to its carving characters of calculating, and wherein 4900,0000,1605 is three substrings in the USB Key to be detected number.
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 707: judging whether all to identify to be carved characters, is execution in step 708 then, otherwise execution in step 712;
Step 708: that judges that identification obtains carves characters whether be interior number the substring of USB Key to be detected, is execution in step 709 then, otherwise execution in step 712;
Particularly, in the present embodiment, also comprise before this step: obtain the sequence number of USB Key storage inside to be detected, calculate according to the sequence number that gets access to and carve characters; Correspondingly, whether carving characters of judging described in this step that identification obtains is the substring in the USB Key to be detected number is specially and judges whether carving characters that identification obtains is a part of carving characters that calculates, carving characters of for example calculating is 123 456 789, and carving characters of then calculating has three substrings 123,456 and 789.
Step 709: it is pre-conditioned to judge whether the zone of carving characters corresponding to described whole substring meets, and is execution in step 710 then, otherwise execution in step 711;
Particularly, in the present embodiment, also comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside, and carves characters according to the sequence number calculating that gets access to, otherwise prompting does not detect USB Key;
Described pre-conditioned for the zone of carving characters corresponding to described whole substrings is positioned on the same level line, described whole substrings conform to carving characters of calculating after by the combination that puts in order, the adjacent interregional spacing of carving characters is in preset range;
Correspondingly, described in this step all substrings by the combination that puts in order after with calculate carve characters to conform to and be specially: described whole substrings are identical with carving characters of calculating after by the combination that puts in order, perhaps make up the rear satisfied default corresponding relation of carving characters with calculating by putting in order for described whole substrings, wherein said default corresponding relation is to be the fixed part of carving characters that calculates after described whole substring makes up by putting in order, or be to be obtained by the interpolation preset characters of carving characters that calculates after described whole substrings make up by putting in order, or be can be by carving characters by being converted to described conversion such as unidirectional conversion or reversible transformation etc. of calculating after described whole substrings make up by putting in order.
Step 710: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 711: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 712: the zone location information of carving characters of storing in the sweep equipment, execution in step 713;
Step 713: obtain the sealing image-region in carve characters regional precompensation parameter and the rear image of processing;
Step 714: judging whether to satisfy the sealing image-region of regional precompensation parameter of carving characters, is execution in step 715 then, otherwise execution in step 724;
Step 715: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify;
Particularly, in the present embodiment, described identifying is specially the character that obtains in the sealing image-region, by the type matrix in each character and the character library is compared;
Further, can comprise before the step 715: judge whether to detect USB Key to be detected, be the sequence number that then obtains its storage inside by sending instructions under the USB interface and calculate according to described sequence number and to carve characters, preferably, described being calculated as inserted the space, also can comprise other calculating except inserting the space, such as calculating or change according to algorithm etc., otherwise prompting does not detect USB Key; For example, the sequence number of USB Key storage inside to be detected is 490000001605, is 4,900 0,000 1605 according to its carving characters of calculating, and wherein 4900,0000,1605 is three substrings in the USB Key to be detected number.
Wherein, can also carry out PIN code before sending instructions under and verify that checking is by then sending instructions down;
Preferably, in the present embodiment, store alphabetical character library and digital character library in the equipment, the equipment judgement gets access to interior number character types, if full word mother then selected character alphabetic word storehouse identifies, if digitally then identify with digital character library, if then selected character alphabetic word storehouse and digital character library are identified for the combination of letter and number in described number.
Step 716: judging whether that identification is carved characters, is execution in step 717 then, otherwise execution in step 723;
Step 717: whether carving characters of judging that identification obtains is the substring in the USB Key to be detected number, is execution in step 718 then, otherwise execution in step 723;
Step 718: judging whether to identify and obtain whole substrings, is execution in step 719 then, otherwise execution in step 723;
Particularly, judge whether to identify according to the content of the quantity of work song string in the USB Key to be detected and each substring and obtain whole substrings.
Step 719: it is pre-conditioned to judge whether the zone of carving characters corresponding to described whole substring meets, and is execution in step 720 then, otherwise execution in step 722;
Particularly, in the present embodiment, also comprise before this step: judging whether to detect USB Key to be detected, is the sequence number that then obtains its storage inside, and carves characters according to the sequence number calculating that gets access to, otherwise prompting does not detect USB Key;
Described pre-conditioned for the zone of carving characters corresponding to described whole substrings is positioned on the same level line, described whole substrings conform to carving characters of calculating after by the combination that puts in order, the adjacent interregional spacing of carving characters is in preset range;
Correspondingly, described in this step all substrings by the combination that puts in order after with calculate carve characters to conform to and be specially: described whole substrings are identical with carving characters of calculating after by the combination that puts in order, perhaps make up the rear satisfied default corresponding relation of carving characters with calculating by putting in order for described whole substrings, wherein said default corresponding relation is to be the fixed part of carving characters that calculates after described whole substring makes up by putting in order, or be to be obtained by the interpolation preset characters of carving characters that calculates after described whole substrings make up by putting in order, or be can be by carving characters by being converted to described conversion such as unidirectional conversion or reversible transformation etc. of calculating after described whole substrings make up by putting in order.
Step 720: the positional information in whole substring correspondence image zone is saved as the zone location information of carving characters;
Directly seek respective regions when particularly, the described zone location information of carving characters is used for detecting next time.
Step 721: the interior nickname of the USB Key of prompting current detection is consistent, and process finishes;
Step 722: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 723: judging whether also to exist other the meeting sealing image-region of regional precompensation parameter of carving characters, is then to return execution in step 715, otherwise execution in step 724;
Step 724: the whether set of check image processing parameter sign is execution in step 725 then, otherwise execution in step 726;
Step 725: the interior nickname of the USB Key of prompting current detection is inconsistent, and process finishes;
Step 726: adjust the image processing parameter according to preset rules;
Particularly, in the present embodiment, step 726 can be refined as:
Step 1-1: judging that whether expansion coefficient is the maximal value (or minimum value) in the preset range, is execution in step 1-3 then, otherwise execution in step 1-2;
Step 1-2: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 727 of being adjusted into;
Step 1-3: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 727 of being adjusted into;
Perhaps be refined as:
Step 2-1: judging that whether the binaryzation parameter is the maximal value (or minimum value) in the preset range, is execution in step 2-3 then, otherwise execution in step 2-2;
Step 2-2: in preset range, adjust binaryzation parameter, described successively decrease (or increasing progressively), the execution in step 727 of being adjusted into;
Step 2-3: in preset range, adjust expansion coefficient, described successively decrease (or increasing progressively), the execution in step 727 of being adjusted into;
Perhaps be refined as:
Adjust expansion coefficient and binaryzation parameter according to default product in preset range, the product of namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts respectively expansion coefficient and binaryzation parameter in preset range separately;
In the present embodiment take two parameters as example, when having a plurality of parameter by following same method.
Step 727: judge to adjust number of times and whether reach preset times, be execution in step 728 then, otherwise return execution in step 703;
Step 728: with image processing parameter flag set, return execution in step 703.
Described above is the process that detects a USB Key, further, step 710,711,721,722 and step 725 after can return execution in step 702, repeat for detection of many USB Key.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.

Claims (22)

1. an intelligence is located the regional detection method of carving characters, and it is characterized in that, comprising:
Step a: reset image processing parameter sign, obtain and preserve the area image of carving characters of current device to be detected;
Step b: according to the image processing parameter area image of carving characters of described current device to be detected being processed, whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, is execution in step c then, otherwise execution in step f;
Step c: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify, and judge whether that identification is carved characters, be execution in step d then, otherwise execution in step e;
Steps d: judge that identification obtains carve characters with current device to be detected in the sequence number stored whether conform to, then according to the parameter correction of the sealing image-region of current identification and preserve the regional precompensation parameter of carving characters, point out the interior nickname of current device to be detected consistent, otherwise execution in step e;
Step e: judging the sealing image-region that whether also has the other satisfied regional precompensation parameter of carving characters in the image after the described processing, is then to return execution in step c, otherwise execution in step f;
Step f: the whether set of check image processing parameter sign is then to point out the interior nickname of current device to be detected inconsistent, otherwise adjusts described image processing parameter, execution in step g according to preset rules;
Step g: judge adjusting number of times and whether reach preset times, is then with the set of described image processing parameter, returns execution in step b, otherwise directly returns execution in step b.
2. method according to claim 1 is characterized in that, described step b replaces with:
Step b1: the area image of carving characters of described current device to be detected is processed according to the image processing parameter, whether store the zone location information of carving characters in the judgment device, then according to searching the respective image zone in the described image of zone location information after processing of carving characters, and described respective image zone identified, execution in step b2, otherwise execution in step b4;
Step b2: judge whether that identification is carved characters, to judge then whether identify carving characters of obtaining conforms to the interior sequence number of storing of the sequence number of the interior storage of current device to be detected, then point out the interior nickname of current device to be detected to conform to if conform to, if do not conform to then execution in step b3, otherwise execution in step b3;
Step b3: the zone location information of carving characters of storing in the sweep equipment, execution in step b4;
Step b4: whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, and is execution in step c then, otherwise execution in step f.
3. method according to claim 1 and 2 is characterized in that, also comprises before the interior nickname of the current device to be detected of prompting described in the described steps d is consistent:
The positional information of the sealing image-region of current identification is stored as the described zone location information of carving characters.
4. method according to claim 1 and 2 is characterized in that, also comprises before the described step a:
The described image processing parameter of initialization and the regional precompensation parameter of carving characters.
5. method according to claim 1 and 2 is characterized in that, described to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters also comprise before identifying:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
6. method according to claim 2 is characterized in that, the described respective image zone is identified also comprises before:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
7. method according to claim 1 and 2 is characterized in that, described judgement identification obtains carve characters with current device to be detected in the sequence number stored in the sequence number stored comprise before whether conforming to:
Judging whether to detect device to be detected, be the sequence number that then obtains storage in the current device to be detected, otherwise prompting does not detect device to be detected.
8. method according to claim 7 is characterized in that, described judgement identification obtains carve characters with current device to be detected in the sequence number stored whether conform to and specifically comprise:
Whether carving characters of judging that identification obtains is identical with the sequence number of the interior storage of device to be detected;
Whether carving characters of judging perhaps that identification obtains is the fixed part of sequence number of the interior storage of device to be detected;
Whether carving characters of judging perhaps that identification obtains can be added preset characters by the sequence number of the interior storage of device to be detected and be obtained.
9. method according to claim 1 and 2 is characterized in that, the parameter correction of described sealing image-region according to the current identification regional precompensation parameter of carving characters comprises:
With each parameter of the sealing image-region of current identification respectively with two multiplication that vary in size, the result is respectively as correspondingly higher limit and the lower limit of parameter in the described region parameter of carving characters.
10. method according to claim 1 and 2 is characterized in that, describedly adjusts described image processing parameter according to preset rules and comprises:
Adjustment order according to each parameter in the described image processing parameter is adjusted one of them parameter successively, keeps simultaneously all the other parameter constants.
Perhaps adjust successively each parameter in the described image processing parameter according to the adjustment order, keep simultaneously the total product of each parameter constant.
11. method according to claim 1 and 2 is characterized in that:
Nickname is returned execution in step a consistent comprising afterwards in the current device to be detected of described prompting;
Nickname is returned execution in step a inconsistent comprising afterwards in the current device to be detected of described prompting.
The detection method in zone 12. carve characters in an intelligence location is characterized in that comprising:
Steps A: reset image processing parameter sign, obtain and preserve the area image of carving characters of current device to be detected;
Step B: according to the image processing parameter area image of carving characters of described current device to be detected being processed, whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, is execution in step C then, otherwise execution in step H;
Step C: to one still the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters identify, and judge whether that identification is carved characters, be execution in step D then, otherwise execution in step F;
Step D: judging whether carving characters that identification obtains is the substring of the sequence number of current device storage inside to be detected, is execution in step E then, otherwise execution in step F;
Step e: judge whether to identify and obtain whole substrings, to judge then whether the zone of carving characters corresponding to described whole substring meets pre-conditioned, if it is consistent to meet the interior nickname of the device of then pointing out current detection, if it is inconsistent not meet the interior nickname of the device of then pointing out current detection;
Step F: judging the sealing image-region that whether also has the other satisfied regional precompensation parameter of carving characters in the image after the described processing, is then to return execution in step C, otherwise execution in step G;
Step G: the whether set of check image processing parameter sign is then to point out the interior nickname of current device to be detected inconsistent, otherwise adjusts described image processing parameter, execution in step H according to preset rules;
Step H: judge adjusting number of times and whether reach preset times, is then with the set of described image processing parameter, returns execution in step B, otherwise directly returns execution in step B.
13. method according to claim 12 is characterized in that, described step B replaces with:
Step B1: the area image of carving characters of described current device to be detected is processed according to the image processing parameter, whether store the zone location information of carving characters in the judgment device, then according to searching the respective image zone in the described image of zone location information after processing of carving characters, execution in step B2, otherwise execution in step B5;
Step B2: successively the image-region that finds being identified, and judged whether all to identify to be carved characters, is execution in step B3 then, otherwise execution in step B4;
Step B3: all that judge that identification obtains carve characters whether be the substring of the sequence number of storage in the current device to be detected, to judge then whether the zone of carving characters corresponding to described whole substring meets pre-conditioned, if it is consistent to meet the interior nickname of the device of then pointing out current detection, if it is inconsistent not meet the interior nickname of the device of then pointing out current detection, otherwise execution in step B4;
Step B4: the zone location information of carving characters of storing in the sweep equipment, execution in step B5;
Step B5: whether the sealing image-region that satisfies the regional precompensation parameter of carving characters is arranged in the image after judge processing, and is execution in step C then, otherwise execution in step G.
14. according to claim 12 or 13 described methods, it is characterized in that, also comprise before the interior nickname of the current device to be detected of prompting described in the described step e is consistent:
The positional information of the sealing image-region that described whole substrings are corresponding is stored as the described zone location information of carving characters.
15. require 12 or 13 described methods according to power, it is characterized in that, also comprise before the described steps A:
The described image processing parameter of initialization and the regional precompensation parameter of carving characters, described image processing parameter sign resets.
16. according to claim 12 or 13 described methods, it is characterized in that one of described identification still also comprises before the Unidentified sealing image-region that satisfies the regional precompensation parameter of carving characters:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
17. method according to claim 13 is characterized in that, the described image-region that finds is identified also comprises before:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, and according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
18. require 12 or 13 described methods according to power, it is characterized in that whether described judgement identification obtains carves characters is to comprise before the substring of the sequence number of storage in the current device to be detected:
Judging whether to detect device to be detected, is the sequence number that then obtains storage in the current device to be detected, calculate according to described sequence number and carve characters, otherwise prompting does not detect device to be detected.
19. method according to claim 18 is characterized in that, describedly judges whether the zone of carving characters corresponding to described whole substring meets pre-conditioned comprising:
Judge whether the zone of carving characters corresponding to described whole substring is positioned on the same level line, by whether conform to carving characters of calculating after its combination that puts in order, whether the adjacent interregional distance of carving characters in preset range.
20. method according to claim 19 is characterized in that, described judgement by its combination that puts in order after whether with calculate carve characters to conform to and specifically comprise:
Whether judgement is identical with carving characters of calculating after by its combination that puts in order;
Perhaps judge by its put in order the combination after whether be the fixed part of carving characters that calculates;
Perhaps judge by whether being obtained by the interpolation preset characters of carving characters that calculates after its combination that puts in order;
Perhaps judge by whether being calculated by preset algorithm by carving characters of calculating after its combination that puts in order.
21. according to claim 12 or 13 described methods, it is characterized in that, describedly adjust described image processing parameter according to preset rules and comprise:
Adjustment order according to each parameter in the described image processing parameter is adjusted one of them parameter successively, keeps simultaneously all the other parameter constants.
Perhaps adjust successively each parameter in the described image processing parameter according to the adjustment order, keep simultaneously the total product of each parameter constant.
22. according to claim 12 or 13 described methods, it is characterized in that,
Nickname is returned execution in step A consistent comprising afterwards in the current device to be detected of described prompting;
Nickname is returned execution in step A inconsistent comprising afterwards in the current device to be detected of described prompting.
CN201210377756.9A 2012-10-08 2012-10-08 Detection method for intelligently locating lettering region Expired - Fee Related CN102902964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210377756.9A CN102902964B (en) 2012-10-08 2012-10-08 Detection method for intelligently locating lettering region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210377756.9A CN102902964B (en) 2012-10-08 2012-10-08 Detection method for intelligently locating lettering region

Publications (2)

Publication Number Publication Date
CN102902964A true CN102902964A (en) 2013-01-30
CN102902964B CN102902964B (en) 2015-06-17

Family

ID=47575186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210377756.9A Expired - Fee Related CN102902964B (en) 2012-10-08 2012-10-08 Detection method for intelligently locating lettering region

Country Status (1)

Country Link
CN (1) CN102902964B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0710920A2 (en) * 1994-11-04 1996-05-08 Max Co., Ltd. Character processing device
CN101697196A (en) * 2009-10-29 2010-04-21 上海索广电子有限公司 Digital identification system and method for serial numbers of name plate of camera
CN101908128A (en) * 2010-06-01 2010-12-08 福建新大陆电脑股份有限公司 Aztec Code bar code decoding chip and decoding method thereof
CN102663379A (en) * 2012-03-22 2012-09-12 留越 Paper marking method based on image identification and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0710920A2 (en) * 1994-11-04 1996-05-08 Max Co., Ltd. Character processing device
CN101697196A (en) * 2009-10-29 2010-04-21 上海索广电子有限公司 Digital identification system and method for serial numbers of name plate of camera
CN101908128A (en) * 2010-06-01 2010-12-08 福建新大陆电脑股份有限公司 Aztec Code bar code decoding chip and decoding method thereof
CN102663379A (en) * 2012-03-22 2012-09-12 留越 Paper marking method based on image identification and system thereof

Also Published As

Publication number Publication date
CN102902964B (en) 2015-06-17

Similar Documents

Publication Publication Date Title
Yang et al. Graph-regularized saliency detection with convex-hull-based center prior
Ye et al. Co-saliency detection via co-salient object discovery and recovery
Kim et al. Automatic edge detection using 3× 3 ideal binary pixel patterns and fuzzy-based edge thresholding
KR100914515B1 (en) Color classification method for color based image code recognition
Xue et al. Design of digital camouflage by recursive overlapping of pattern templates
CN110210387B (en) Method, system and device for detecting insulator target based on knowledge graph
CN106875546A (en) A kind of recognition methods of VAT invoice
CN107729899A (en) A kind of number-plate number recognition methods and device
CN106775747B (en) Color configuration method and device
CN108830780A (en) Image processing method and device, electronic equipment, storage medium
CN106023276B (en) Pencil drawing method for drafting and device based on image procossing
CN107679512A (en) A kind of dynamic gesture identification method based on gesture key point
CN104392433B (en) Image-based digital oil painting canvas automatic generation method
CN106127222B (en) A kind of the similarity of character string calculation method and similitude judgment method of view-based access control model
CN105260428A (en) Picture processing method and apparatus
CN108734110A (en) Text fragment identification control methods based on longest common subsequence and system
CN109558908A (en) A kind of determination method of given area optimal edge
CN103226824B (en) Maintain the video Redirectional system of vision significance
CN106557549A (en) The method and apparatus of identification destination object
CN103218833A (en) Edge-reinforced color space maximally stable extremal region detection method
CN108171229B (en) Method and system for identifying hollow adhesion verification code
CN106406667A (en) A method and a device for setting application program icons on a desktop wallpaper
CN111161288A (en) Image processing method and device
CN102902964A (en) Detection method for intelligently locating lettering region
CN202267974U (en) Positioning system used for two-dimension code and two-dimension code identification device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150617