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

Detection method for intelligently locating lettering region Download PDF

Info

Publication number
CN102902964B
CN102902964B CN201210377756.9A CN201210377756A CN102902964B CN 102902964 B CN102902964 B CN 102902964B CN 201210377756 A CN201210377756 A CN 201210377756A CN 102902964 B CN102902964 B CN 102902964B
Authority
CN
China
Prior art keywords
detected
region
parameter
image
carving 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.)
Expired - Fee Related
Application number
CN201210377756.9A
Other languages
Chinese (zh)
Other versions
CN102902964A (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

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 intelligent positioning is carved characters the detection method in region
Technical field
The invention belongs to electricity field, particularly a kind of intelligent positioning is carved characters the detection method in region.
Background technology
When manufacturer's production information safety product is as USB Key; a unique sequence number can be set for each USB Key; be stored in USB Key inner; to engrave at product surface according to sequence number simultaneously and carve characters accordingly; usually have outside in process of production to carve characters and internal sequence number inconsistent problem; whether present manufacture commercial city adopts manual detection outside to carve characters number consistent with internal sequence, whether unanimously namely detects interior nickname.
Inventor is realizing in process of the present invention, find at least there is following problem in 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, region and size etc. are not fixed, and adopt manual detection efficiency lower.
Summary of the invention
The object of the invention is the defect in order to overcome prior art, in order to deal with problems, propose a kind of intelligent positioning and to carve characters the detection method in region.
The inventive method is achieved through the following technical solutions:
Intelligent positioning is carved characters the detection method in region, it is characterized in that comprising:
Step a: obtain and preserve the area image of carving characters of current device to be detected;
Step b: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, judges whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, is perform step c, otherwise performs step f;
Step c: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified, and judges whether that identification is carved characters, be perform steps d, otherwise perform step e;
Steps d: judge to identify whether carving characters of obtaining conforms to the sequence number stored in current device to be detected, that the parameters revision according to the closed image-region of current identification also preserves region precompensation parameter of carving characters, point out the interior nickname of current device to be detected consistent, otherwise perform step e;
Step e: judge the closed image-region that whether also there is other satisfied region precompensation parameter of carving characters in the image after described process, be, returns and performs step c, otherwise performs step f;
Step f: the whether set of check image process parameter flag is pointed out the interior nickname of current device to be detected inconsistent, otherwise adjusts described Image Processing parameter according to preset rules, performs step g;
Step g: judge whether adjustment number of times reaches preset times, is then by described Image Processing parameter set, returns and performs step b, otherwise directly return execution step b.
Further, described step b can be replaced:
Step b1: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, whether area locating information of carving characters is stored in judgment device, search respective image region in area locating information image after treatment of carving characters described in basis, and described respective image region is identified, perform step b2, otherwise perform step b4;
Step b2: judge whether that identification is carved characters, judge to identify whether the interior sequence number stored of the sequence number that store interior with current device to be detected of carving characters obtained conforms to, if conform to, the interior nickname of current device to be detected is pointed out to conform to, if do not conform to, perform step b3, otherwise perform step b3;
Step b3: the area locating information of carving characters stored in sweep equipment, performs step b4;
Step b4: judge whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, be perform step c, otherwise perform step f.
The interior nickname of current device to be detected is pointed out unanimously also to comprise before described in described steps d:
To carve characters described in the positional information of the closed image-region of current identification is stored as area locating information.
Also comprise before described step a:
Image Processing parameter described in initialization and region precompensation parameter of carving characters, reset described Image Processing parameter mark.
Also comprise before the described closed image-region to a still Unidentified satisfied region precompensation parameter of carving characters identifies:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Described respective image region is identified before also comprise:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Describedly judge to identify carving characters of obtaining comprises before whether conforming to the sequence number stored in the sequence number stored in current device to be detected:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, otherwise prompting does not detect device to be detected.
Described judge to identify obtain carve characters whether to conform to the sequence number stored in current device to be detected and specifically comprise:
Judge identify obtain carve characters whether identical with the sequence number stored in device to be detected;
Or judge to identify whether carving characters of obtaining be the fixed part of the sequence number of the interior storage of device to be detected;
Or judge to identify whether carving characters of obtaining can be obtained by the sequence number interpolation preset characters stored in device to be detected.
The parameters revision of the described closed image-region according to current identification region precompensation parameter of carving characters comprises:
By each parameter of the closed image-region of current identification respectively with two multiplication varied in size, result is respectively as the higher limit of parameter corresponding in described region parameter of carving characters and lower limit.
Describedly adjust described Image Processing parameter according to preset rules and comprise:
Adjust one of them parameter successively according to the adjustment order of parameter each in described Image Processing parameter, keep all the other parameter constants simultaneously.
Or each parameter adjusted successively according to adjustment order in described Image Processing parameter, the product keeping each parameter total is constant simultaneously.
In the current device to be detected of described prompting nickname unanimously after comprise return perform step a;
In the current device to be detected of described prompting, nickname returns execution step a inconsistent comprising afterwards.
Intelligent positioning is carved characters the detection method in region, it is characterized in that comprising:
Steps A: obtain and preserve the area image of carving characters of current device to be detected;
Step B: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, judges whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, is perform step C, otherwise performs step H;
Step C: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified, and judges whether that identification is carved characters, be perform step D, otherwise perform step F;
Step D: judge to identify whether carving characters of obtaining be the substring of the sequence number of current device storage inside to be detected, is perform step e, otherwise performs step F;
Step e: judge whether to identify and obtain whole substring, judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, if meet, point out nickname in the device of current detection consistent, if do not meet, point out nickname in the device of current detection inconsistent;
Step F: judge the closed image-region that whether also there is other satisfied region precompensation parameter of carving characters in the image after described process, be, returns and performs step C, otherwise performs step G;
Step G: the whether set of check image process parameter flag is pointed out the interior nickname of current device to be detected inconsistent, otherwise adjusts described Image Processing parameter according to preset rules, performs step H;
Step H: judge whether adjustment number of times reaches preset times, is then by described Image Processing parameter set, returns and performs step B, otherwise directly return execution step B.
Further, described step B can be replaced:
Step B1: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, whether area locating information of carving characters is stored in judgment device, search respective image region in area locating information image after treatment of carving characters described in basis, perform step B2, otherwise perform step B5;
Step B2: successively the image-region found is identified, and judge whether all to identify and carved characters, be perform step B3, otherwise perform step B4;
Step B3: judge to identify whether all the carving characters obtained is the substring of the sequence number stored in current device to be detected, judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, if meet, point out nickname in the device of current detection consistent, if do not meet, point out nickname in the device of current detection inconsistent, otherwise perform step B4;
Step B4: the area locating information of carving characters stored in sweep equipment, performs step B5;
Step B5: judge whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, be perform step C, otherwise perform step G.
The interior nickname of current device to be detected is pointed out unanimously also to comprise before described in described step e:
To carve characters described in the positional information of closed image-region corresponding for described whole substring is stored as area locating information.
Also comprise before described steps A:
Image Processing parameter described in initialization and region precompensation parameter of carving characters, reset described Image Processing parameter mark.
Also comprise before the closed image-region of the still Unidentified satisfied region precompensation parameter of carving characters of described identification one:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Also comprise before the described image-region to finding identifies:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
Describedly judge to identify carving characters of obtaining comprises before being whether the substring of the sequence number stored in current device to be detected:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, calculate according to described sequence number and carve characters, otherwise prompting does not detect device to be detected.
Whether the described region of carving characters judging that described whole substring is corresponding meets pre-conditioned comprising:
Judge whether region of carving characters that described whole substring is corresponding conforms to carving characters of calculating after whether being positioned at the combination that to put in order on same level line, by it, whether adjacent interregional distance of carving characters in preset range.
Described judgement by after its combination that puts in order whether with calculate carve characters to conform to and specifically comprise:
Judge by whether identical with carving characters of calculating after its combination that puts in order;
Or judge by its put in order combination after whether be the fixed part of carving characters calculated;
Or judge whether can be obtained by the interpolation preset characters of carving characters calculated by after its combination that puts in order;
Or judge whether to be calculated by preset algorithm by carving characters of calculating by after its combination that puts in order.
Describedly adjust described Image Processing parameter according to preset rules and comprise:
Adjust one of them parameter successively according to the adjustment order of parameter each in described Image Processing parameter, keep all the other parameter constants simultaneously.
Or each parameter adjusted successively according to adjustment order in described Image Processing parameter, the product keeping each parameter total is constant simultaneously.
In the current device to be detected of described prompting nickname unanimously after comprise and return execution steps A;
In the current device to be detected of described prompting, nickname returns execution steps A inconsistent comprising afterwards.
The beneficial effect of the inventive method is: region of carving characters is located in intellectuality, and production efficiency is high, and versatility is comparatively strong, and also there is stronger adaptability in focus ring border.
Accompanying drawing explanation
In order to the clearer explanation embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 to carve characters the detection method process flow diagram in region for a kind of intelligent positioning that the embodiment of the present invention one provides;
Fig. 2 to carve characters the detection method process flow diagram in region for a kind of intelligent positioning that the embodiment of the present invention two provides;
Fig. 3 to carve characters the detection method process flow diagram in region for a kind of intelligent positioning that the embodiment of the present invention three provides;
Fig. 4 to carve characters the detection method process flow diagram in region for a kind of intelligent positioning that the embodiment of the present invention four provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
See Fig. 1, the embodiment of the present invention provides a kind of intelligent positioning to carve characters the detection method in region to detect process that in USB Key, whether nickname is consistent, and described method specifically comprises equipment and receives when detecting request and perform following steps:
Step 101: initialisation image process parameter and region precompensation parameter of carving characters, reset image process parameter flag;
Preferably, in the present embodiment, described Image Processing parameter and region precompensation parameter of carving characters prestore in a device, and described Image Processing parameter comprises binaryzation parameter and expansion coefficient; Described region precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, shape is rectangle in the present embodiment, aspect ratio range is 3 ~ 8, areal extent is 5000 ~ 60000, and being 0 during described Image Processing parameter Flag Reset, is 1 during set.
Step 102: obtain and preserve the area image of carving characters of USB Key to be detected;
Particularly, in the present embodiment, the area image of carving characters of described acquisition USB to be detected Key is take pictures to the region of carving characters of USB Key to be detected, in practical application, camera can be fixed, artificial carried out being connected with equipment by USB Key to be detected and be placed in below camera, takes pictures acquisition image in employing the carve characters region of camera to USB Key to be detected.
Step 103: obtain Image Processing parameter, and process according to the area image of carving characters of the Image Processing parameter got to USB Key to be detected;
Preferably, in the present embodiment, the carve characters area image of the Image Processing parameter that described basis gets to USB Key to be detected carries out process and comprises: carry out binary conversion treatment according to the area image of carving characters of the binaryzation parameter in the Image Processing parameter got to USB Key to be detected and obtain binary image, then expands to binary image according to the expansion coefficient in the Image Processing parameter got.
Step 104: obtain the closed image-region of carving characters in region precompensation parameter and the rear image of process;
Step 105: judge whether there is the closed image-region meeting region precompensation parameter of carving characters in the closed image-region obtained, be perform step 106, otherwise perform step 112;
Preferably, in the present embodiment, describedly judge whether that meeting the closed region of region precompensation parameter of carving characters is: judge whether there is the closed image-region that shape is rectangle, aspect ratio range is 3 ~ 8, areal extent is 5000 ~ 60000 in the closed region got, such as, in the present embodiment, if certain closed region size is 50000, shape is rectangle, wide by 500, high by 100, then described region is qualified closed image-region.
Step 106: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified;
Particularly, in the present embodiment, the character obtaining and close in image-region is identified as, by being compared by the type matrix in each character and character library described in;
Further, can comprise: judge whether USB Key to be detected to be detected, be before step 106, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 107: judge whether that identification is carved characters, be, perform step 108, otherwise perform step 111;
Step 108: judge to identify whether carving characters of obtaining conforms to in USB Key to be detected number, is perform step 109, otherwise perform step 111;
Particularly, in the present embodiment, comprise before this step: judge whether USB Key to be detected to be detected, be, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Described judge to identify carving characters of obtaining whether to conform to in USB Key to be detected number be specially to judge to identify in carving characters of obtaining and USB Key to be detected number whether identical, such as interior number of USB Key to be detected is 123456789013, if identify, carving characters of obtaining also is 123456789013, then the two conforms to; Or number whether meet default corresponding relation for judge to identify in carving characters of obtaining and USB Key to be detected, wherein said default corresponding relation is identify that carving characters of obtaining is the fixed part of interior number of USB Key to be detected, such as interior number of USB Key to be detected is SN0000144057, if identify, carving characters of obtaining is 0000144057, then the two conforms to; Or for identifying that carving characters of obtaining can be obtained by USB Key to be detected number interpolation preset characters, such as interior number of USB Key to be detected is 0000144057, what obtain if identify carves characters as SRCBCN0000144057, then the two conforms to, or for identifying that carving characters of obtaining can by USB Key to be detected number by being converted to, described conversion is as unidirectional conversion or reversible transformation etc.
Step 109: the parameters revision according to current closed image-region also preserves region precompensation parameter of carving characters;
Particularly, in the present embodiment, step 109 can be: the area of present image area is multiplied by the higher limit of the first predetermined coefficient as area parameters in region precompensation parameter of carving characters, area is multiplied by the lower limit of the second predetermined coefficient as area parameters in region precompensation parameter of carving characters, the ratio of width to height is multiplied by the higher limit of the 3rd predetermined coefficient as aspect ratio parameter in region precompensation parameter of carving characters, the ratio of width to height is multiplied by the lower limit of the 4th predetermined coefficient as aspect ratio parameter in region precompensation parameter of carving characters, wherein the first coefficient is greater than the second coefficient, and the 3rd coefficient is greater than Quaternary system number.
Step 110: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 111: judge whether also to exist other meeting and to carve characters the closed image-region of region precompensation parameter, be return and perform step 106, otherwise perform step 112;
Step 112: the whether set of check image process parameter flag performs step 113, otherwise perform step 114;
Step 113: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 114: according to preset rules adjustment Image Processing parameter;
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 preset range, is perform step 1-3, otherwise performs step 1-2;
Step 1-2: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 115;
Step 1-3: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 115;
Or step 114 is refined as:
Step 2-1: judging that whether binaryzation parameter is the maximal value (or minimum value) in preset range, is perform step 2-3, otherwise performs step 2-2;
Step 2-2: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 115;
Step 2-3: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 115;
Or step 114 is refined as:
According to presetting product adjustment expansion coefficient and binaryzation parameter in preset range, the product namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts expansion coefficient and binaryzation parameter respectively in respective preset range.
For two parameters in the present embodiment, when there is multiple parameter by following same method.
Step 115: judge whether adjustment number of times reaches preset times, is perform step 116, otherwise return execution step 103;
Particularly, described preset times equals each parameter in Image Processing parameter and all meets pre-conditioned number of combinations.
Step 116: by Image Processing parameter set, returns and performs step 103.
Described above is the process of a detection USB Key, further, can returning and perform step 102, repeating for detecting many USB Key after step 110 and step 113.
Embodiment two
See Fig. 2, the embodiment of the present invention provides a kind of intelligent positioning to carve characters the detection method in region to detect process that in USB Key, whether nickname is consistent, and described method specifically comprises the following steps:
Step 301: initialisation image process parameter and region precompensation parameter of carving characters, reset image process parameter flag;
Preferably, in the present embodiment, described Image Processing parameter and region parameter of carving characters prestore in a device, and described Image Processing parameter comprises binaryzation parameter and expansion coefficient; Described region precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, shape is rectangle in the present embodiment, aspect ratio range is 3 ~ 8, areal extent is 5000 ~ 60000, and being 0 during described Image Processing parameter Flag Reset, is 1 during set.
Step 302: obtain and preserve the area image of carving characters of USB Key to be detected;
Particularly, in the present embodiment, the area image of carving characters of described acquisition USB to be detected Key is take pictures to the region of carving characters of USB Key to be detected, in practical application, camera can be fixed, artificial carried out being connected with equipment by USB Key to be detected and be placed in below camera, takes pictures acquisition image in employing the carve characters region of camera to USB Key to be detected.
Step 303: obtain Image Processing parameter, and process according to the area image of carving characters of the Image Processing parameter got to USB Key to be detected;
Preferably, in the present embodiment, the carve characters area image of the Image Processing parameter that described basis gets to USB Key to be detected carries out process and comprises: carry out binary conversion treatment according to the area image of carving characters of the binaryzation parameter in the Image Processing parameter got to USB Key to be detected and obtain binary image, then expands to binary image according to the expansion coefficient in the Image Processing parameter got.
Step 304: whether store area locating information of carving characters in judgment device, be, perform step 305, otherwise perform step 311;
Particularly, area locating information of carving characters in the present embodiment can be: the carve characters coordinate of upper left, region point and the coordinate of lower-right most point, or the length and width value in carve characters upper left, region point coordinate and region of carving characters, or the carve characters coordinate of regional center point and the length and width value etc. in region of carving characters.
Step 305: find respective image region according in area locating information image after treatment of carving characters;
Step 306: identify present image area;
Particularly, in the present embodiment, described identifying is specially the character obtained in present image area, by being compared by the type matrix in each character and character library;
Further, can comprise: judge whether USB Key to be detected to be detected, be before step 306, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 307: judge whether that identification is carved characters, be, perform step 308, otherwise perform step 310;
Step 308: judge to identify whether carving characters of obtaining conforms to in USB Key to be detected number, is perform step 309, otherwise perform step 310;
Particularly, in the present embodiment, comprise before this step: judge whether USB Key to be detected to be detected, be, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Described judge to identify carving characters of obtaining whether to conform to in USB Key to be detected number be specially to judge to identify in carving characters of obtaining and USB Key to be detected number whether identical, such as interior number of USB Key to be detected is 123456789013, if identify, carving characters of obtaining also is 123456789013, then the two conforms to; Or number whether meet default corresponding relation for judge to identify in carving characters of obtaining and USB Key to be detected, wherein said default corresponding relation is identify that carving characters of obtaining is the fixed part of interior number of USB Key to be detected, such as interior number of USB Key to be detected is SN0000144057, if identify, carving characters of obtaining is 0000144057, then the two conforms to; Or for identifying that carving characters of obtaining can be obtained by USB Key to be detected number interpolation preset characters, such as interior number of USB Key to be detected is 0000144057, what obtain if identify carves characters as SRCBCN0000144057, then the two conforms to, or for identifying that carving characters of obtaining can by USB Key to be detected number by being converted to, described conversion is as unidirectional conversion or reversible transformation etc.
Step 309: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 310: the area locating information of carving characters stored in sweep equipment, performs step 311;
Step 311: obtain the closed image-region of carving characters in region precompensation parameter and the rear image of process;
Step 312: judging whether the closed image-region meeting region precompensation parameter of carving characters, is perform step 313, otherwise performs step 320;
Preferably, in the present embodiment, describedly judge whether that meeting the closed region of region precompensation parameter of carving characters is: judge whether there is the closed image-region that shape is rectangle, aspect ratio range is 3 ~ 8, areal extent is 5000 ~ 60000 in the closed region got, such as, in the present embodiment, if certain closed region size is 50000, shape is rectangle, wide by 500, high by 100, then described region is qualified closed image-region.
Step 313: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified;
Particularly, in the present embodiment, the character obtaining and close in image-region is identified as, by being compared by the type matrix in each character and character library described in;
Further, can comprise: judge whether USB Key to be detected to be detected, be before step 313, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 314: judge whether that identification is carved characters, be, perform step 315, otherwise perform step 319;
Step 315: judge to identify obtain carve characters and whether to conform to in USB Key to be detected number, be perform step 316, otherwise perform step 319;
Particularly, in the present embodiment, comprise before this step: judge whether USB Key to be detected to be detected, be, by the sequence number obtaining its storage inside that sends instructions under USB interface, otherwise prompting does not detect USB Key;
Described judge to identify carving characters of obtaining whether to conform to in USB Key to be detected number be specially to judge to identify in carving characters of obtaining and USB Key to be detected number whether identical, such as interior number of USB Key to be detected is 123456789013, if identify, carving characters of obtaining also is 123456789013, then the two conforms to; Or number whether meet default corresponding relation for judge to identify in carving characters of obtaining and USB Key to be detected, wherein said default corresponding relation is identify that carving characters of obtaining is the fixed part of interior number of USB Key to be detected, such as interior number of USB Key to be detected is SN0000144057, if identify, carving characters of obtaining is 0000144057, then the two conforms to; Or for identifying that carving characters of obtaining can be obtained by USB Key to be detected number interpolation preset characters, such as interior number of USB Key to be detected is 0000144057, what obtain if identify carves characters as SRCBCN0000144057, then the two conforms to, or for identifying that carving characters of obtaining can by USB Key to be detected number by being converted to, described conversion is as unidirectional conversion or reversible transformation etc.
Step 316: the parameters revision according to present image area also preserves region precompensation parameter of carving characters;
Particularly, in the present embodiment, step 316 can be: the area of present image area is multiplied by the higher limit of the first predetermined coefficient as area parameters in region precompensation parameter of carving characters, area is multiplied by the lower limit of the second predetermined coefficient as area parameters in region precompensation parameter of carving characters, the ratio of width to height is multiplied by the higher limit of the 3rd predetermined coefficient as aspect ratio parameter in region precompensation parameter of carving characters, the ratio of width to height is multiplied by the lower limit of the 4th predetermined coefficient as aspect ratio parameter in region precompensation parameter of carving characters, wherein the first coefficient is greater than the second coefficient, and the 3rd coefficient is greater than Quaternary system number.
Step 317: the positional information of present image area is saved as area locating information of carving characters;
Particularly, carve characters described in when area locating information detected for next time and directly find respective regions.
Step 318: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 319: judge whether also to exist other meeting and to carve characters the closed image-region of region precompensation parameter, be return and perform step 313, otherwise perform step 320;
Step 320: the whether set of check image process parameter flag performs step 321, otherwise perform step 322;
Step 321: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 322: according to preset rules adjustment Image Processing parameter;
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 preset range, is perform step 1-3, otherwise performs step 1-2;
Step 1-2: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 323;
Step 1-3: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 323;
Or be refined as:
Step 2-1: judging that whether binaryzation parameter is the maximal value (or minimum value) in preset range, is perform step 2-3, otherwise performs step 2-2;
Step 2-2: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 323;
Step 2-3: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 323;
Or be refined as:
According to presetting product adjustment expansion coefficient and binaryzation parameter in preset range, the product namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts expansion coefficient and binaryzation parameter respectively in respective preset range;
For two parameters in the present embodiment, when there is multiple parameter by following same method.
Step 323: judge whether adjustment number of times reaches preset times, is perform step 324, otherwise return execution step 303;
Particularly, described preset times equals each parameter in Image Processing parameter and all meets pre-conditioned number of combinations.
Step 324: by Image Processing parameter flag set, returns and performs step 303.
Described above is the process of a detection USB Key, further, can returning and perform step 302, repeating for detecting many USB Key after step 309, step 318 and step 321.
Embodiment three
See Fig. 3, the embodiment of the present invention provides a kind of intelligent positioning to carve characters the detection method in region to detect process that in USB Key, whether nickname is consistent, and described method specifically comprises the following steps:
Step 501: initialisation image process parameter and region precompensation parameter of carving characters, reset image process parameter flag;
Preferably, in the present embodiment, described Image Processing parameter and region parameter of carving characters prestore in a device, and described Image Processing parameter comprises binaryzation parameter and expansion coefficient; Described region precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, shape is rectangle in the present embodiment, aspect ratio range is 2 ~ 5, areal extent is 2000 ~ 20000, and being 0 during described Image Processing parameter Flag Reset, is 1 during set.
Step 502: obtain and preserve the area image of carving characters of USB Key to be detected;
Particularly, in the present embodiment, the area image of carving characters of described acquisition USB to be detected Key is take pictures to the region of carving characters of USB Key to be detected, in practical application, camera can be fixed, artificial carried out being connected with equipment by USB Key to be detected and be placed in below camera, takes pictures acquisition image in employing the carve characters region of camera to USB Key to be detected.
Step 503: obtain Image Processing parameter, and process according to the area image of carving characters of the Image Processing parameter got to USB Key to be detected;
Preferably, in the present embodiment, the carve characters area image of the Image Processing parameter that described basis gets to USB Key to be detected carries out process and comprises: carry out binary conversion treatment according to the area image of carving characters of the binaryzation parameter in the Image Processing parameter got to USB Key to be detected and obtain binary image, then expands to binary image according to the expansion coefficient in the Image Processing parameter got.
Step 504: obtain the closed image-region of carving characters in region precompensation parameter and the rear image of process;
Step 505: judging whether the closed image-region meeting region precompensation parameter of carving characters, is perform step 506, otherwise performs step 514;
Preferably, in the present embodiment, describedly judge whether that meeting the closed region of region precompensation parameter of carving characters is: judge whether there is the closed image-region that shape is rectangle, aspect ratio range is 3 ~ 8, areal extent is 5000 ~ 60000 in the closed region got, such as, in the present embodiment, if certain closed region size is 50000, shape is rectangle, wide by 500, high by 100, then described region is qualified closed image-region.
Step 506: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified;
Particularly, in the present embodiment, the character obtaining and close in image-region is identified as, by being compared by the type matrix in each character and character library described in;
Further, can comprise before step 506: judge whether USB Key to be detected to be detected, that the sequence number obtaining its storage inside by sending instructions under USB interface is also carved characters according to described sequence number calculating, preferably, described being calculated as inserts space, except insertion space, also can comprise other calculate, such as, carry out calculating or changing etc. according to algorithm, otherwise prompting does not detect USB Key; Such as, 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 USB Key to be detected number.
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 507: judge whether that identification is carved characters, be, perform step 508, otherwise perform step 513;
Step 508: judge to identify whether carving characters of obtaining be the substring in USB Key to be detected number, is perform step 509, otherwise performs step 513;
Step 509: judge whether to identify and obtain whole substring performs step 510, otherwise perform step 513;
Particularly, judge whether to identify according to the quantity of work song string in USB Key to be detected and the content of each substring and obtain whole substring;
Such as 4900,0000,1605 is three substrings in USB Key to be detected number, then only have when identifying that obtaining being determined as identification when three contents are respectively 4900,0000 and 1605 carve characters obtains whole substring, and for example 490,000,000,160 is four substrings in USB Key to be detected number, then only have obtain that two contents are 000 carve characters when identifying, 1 content be 490 carve characters and content be 160 the whole substrings being determined as and identifying and obtain of carving characters.
Step 510: judge whether the region of carving characters that described whole substring is corresponding all meets pre-conditioned, is perform step 511, otherwise perform step 512;
Particularly, in the present embodiment, also comprise before this step: judging whether USB Key to be detected to be detected, is obtain the sequence number of its storage inside, and carve characters according to the sequence number calculating got, otherwise prompting does not detect USB Key;
Described pre-conditioned for region of carving characters corresponding to described whole substring be positioned on same level line, described whole substring by conforming to carving characters of calculating after the combination that puts in order, adjacent interregional spacing of carving characters is in preset range;
Correspondingly, whole substring described in this step by after the combination that puts in order with calculate carve characters to conform to and be specially: described whole substring combine identical with carving characters of calculating afterwards by putting in order, or be the satisfied default corresponding relation of carving characters that described whole substring is rear by the combination that puts in order and calculate, wherein said default corresponding relation is described whole substring by being the fixed part of carving characters calculated after the combination that puts in order, or be that described whole substring can be obtained by the interpolation preset characters of carving characters calculated by after the combination that puts in order, or for described whole substring is by carving characters by being converted to by what calculate after the combination that puts in order, described conversion is as unidirectional conversion or reversible transformation etc.。
Step 511: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 512: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 513: judge whether also to exist other meeting and to carve characters the closed image-region of region precompensation parameter, be return and perform step 506, otherwise perform step 514;
Step 514: the whether set of check image process parameter flag performs step 515, otherwise perform step 516;
Step 515: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 516: according to preset rules adjustment Image Processing parameter;
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 preset range, is perform step 1-3, otherwise performs step 1-2;
Step 1-2: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 517;
Step 1-3: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 517;
Or be refined as:
Step 2-1: judging that whether binaryzation parameter is the maximal value (or minimum value) in preset range, is perform step 2-3, otherwise performs step 2-2;
Step 2-2: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 517;
Step 2-3: adjust expansion coefficient in preset range, described in be adjusted to and successively decrease and (or to increase progressively, perform step 517;
Or be refined as:
According to presetting product adjustment expansion coefficient and binaryzation parameter in preset range, the product namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts expansion coefficient and binaryzation parameter respectively in respective preset range;
For two parameters in the present embodiment, when there is multiple parameter by following same method.
Step 517: judge whether adjustment number of times reaches preset times, is perform step 518, otherwise return execution step 503;
Step 518: by Image Processing parameter flag set, returns and performs step 503.
Described above is the process of a detection USB Key, further, step 511,512 and step 515 after can return and perform step 502, repeat for detecting many USB Key.
Embodiment four
See Fig. 4, the embodiment of the present invention provides a kind of intelligent positioning to carve characters the detection method in region to detect process that in USB Key, whether nickname is consistent, and described method specifically comprises the following steps:
Step 701: initialisation image process parameter and region precompensation parameter of carving characters, reset image process parameter flag;
Preferably, in the present embodiment, described Image Processing parameter and region parameter of carving characters prestore in a device, and described Image Processing parameter comprises binaryzation parameter and expansion coefficient; Described region precompensation parameter of carving characters comprises shape, the ratio of width to height, area;
Wherein, shape is rectangle in the present embodiment, aspect ratio range is 2 ~ 5, areal extent is 2000 ~ 20000, and being 0 during described Image Processing parameter Flag Reset, is 1 during set.
Step 702: obtain and preserve the area image of carving characters of USB Key to be detected;
Particularly, in the present embodiment, the area image of carving characters of described acquisition USB to be detected Key is take pictures to the region of carving characters of USB Key to be detected, in practical application, camera can be fixed, artificial carried out being connected with equipment by USB Key to be detected and be placed in below camera, takes pictures acquisition image in employing the carve characters region of camera to USB Key to be detected.
Step 703: obtain Image Processing parameter, and process according to the area image of carving characters of the Image Processing parameter got to USB Key to be detected;
Preferably, in the present embodiment, the carve characters area image of the Image Processing parameter that described basis gets to USB Key to be detected carries out process and comprises: carry out binary conversion treatment according to the area image of carving characters of the binaryzation parameter in the Image Processing parameter got to USB Key to be detected and obtain binary image, then expands to binary image according to the expansion coefficient in the Image Processing parameter got.
Step 704: whether store area locating information of carving characters in judgment device, be, perform step 705, otherwise perform step 713;
Particularly, area locating information of carving characters is in the present embodiment the locating information in one group of region of carving characters, often the carve characters locating information in region of group can be: the carve characters coordinate of upper left, region point and the coordinate of lower-right most point, or the length and width value in carve characters upper left, region point coordinate and region of carving characters, or the carve characters coordinate of regional center point and the length and width value etc. in region of carving characters.
Step 705: find respective image region according in area locating information image after treatment of carving characters;
Step 706: successively the image-region searched out is identified;
Particularly, in the present embodiment, described identifying is specially the character in the image-region obtaining and search out, by being compared by the type matrix in each character and character library;
Further, can comprise before step 706: judge whether USB Key to be detected to be detected, that the sequence number obtaining its storage inside by sending instructions under USB interface is also carved characters according to described sequence number calculating, and wherein said being calculated as inserts space, otherwise prompting does not detect USB Key; Such as, 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 USB Key to be detected number.
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 707: judging whether all to identify and carved characters, is perform step 708, otherwise perform step 712;
Step 708: judge to identify the substring of interior number that whether is USB Key to be detected of carving characters obtained, be perform step 709, otherwise perform step 712;
Particularly, in the present embodiment, also comprise before this step: the sequence number obtaining USB Key storage inside to be detected, calculate according to the sequence number got and carve characters; Correspondingly, judge described in this step to identify whether carving characters of obtaining be substring in USB Key to be detected number and be specially whether carving characters of judging that identification obtains is the part of carving characters calculated, carving characters of such as calculating is 123 456 789, then carving characters of calculating has three substrings 123,456 and 789.
Step 709: judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, is perform step 710, otherwise perform step 711;
Particularly, in the present embodiment, also comprise before this step: judging whether USB Key to be detected to be detected, is obtain the sequence number of its storage inside, and carve characters according to the sequence number calculating got, otherwise prompting does not detect USB Key;
Described pre-conditioned for region of carving characters corresponding to described whole substring be positioned on same level line, described whole substring by conforming to carving characters of calculating after the combination that puts in order, adjacent interregional spacing of carving characters is in preset range;
Correspondingly, whole substring described in this step by after the combination that puts in order with calculate carve characters to conform to and be specially: described whole substring combine identical with carving characters of calculating afterwards by putting in order, or be the satisfied default corresponding relation of carving characters that described whole substring is rear by the combination that puts in order and calculate, wherein said default corresponding relation is described whole substring by being the fixed part of carving characters calculated after the combination that puts in order, or be that described whole substring can be obtained by the interpolation preset characters of carving characters calculated by after the combination that puts in order, or for described whole substring is by carving characters by being converted to by what calculate after the combination that puts in order, described conversion is as unidirectional conversion or reversible transformation etc.
Step 710: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 711: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 712: the area locating information of carving characters stored in sweep equipment, performs step 713;
Step 713: obtain the closed image-region of carving characters in region precompensation parameter and the rear image of process;
Step 714: judging whether the closed image-region meeting region precompensation parameter of carving characters, is perform step 715, otherwise performs step 724;
Step 715: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified;
Particularly, in the present embodiment, described identifying is specially the character obtaining and close in image-region, by being compared by the type matrix in each character and character library;
Further, can comprise before step 715: judge whether USB Key to be detected to be detected, that the sequence number obtaining its storage inside by sending instructions under USB interface is also carved characters according to described sequence number calculating, preferably, described being calculated as inserts space, except insertion space, also can comprise other calculate, such as, carry out calculating or changing etc. according to algorithm, otherwise prompting does not detect USB Key; Such as, 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 USB Key to be detected number.
Wherein, under send instructions before can also carry out PIN code checking, be verified, under send instructions;
Preferably, in the present embodiment, alphabetical character library and digital character library is stored in equipment, equipment judges the character types getting interior number, if full word mother then selected character alphabetic word storehouse identifies, if digital, identify by digital character library, if number be the combination of letter and number in described, selected character alphabetic word storehouse and digital character library identify.
Step 716: judge whether that identification is carved characters, be, perform step 717, otherwise perform step 723;
Step 717: judge to identify whether carving characters of obtaining be the substring in USB Key to be detected number, is perform step 718, otherwise performs step 723;
Step 718: judge whether to identify and obtain whole substring performs step 719, otherwise perform step 723;
Particularly, judge whether to identify according to the quantity of work song string in USB Key to be detected and the content of each substring and obtain whole substring.
Step 719: judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, is perform step 720, otherwise perform step 722;
Particularly, in the present embodiment, also comprise before this step: judging whether USB Key to be detected to be detected, is obtain the sequence number of its storage inside, and carve characters according to the sequence number calculating got, otherwise prompting does not detect USB Key;
Described pre-conditioned for region of carving characters corresponding to described whole substring be positioned on same level line, described whole substring by conforming to carving characters of calculating after the combination that puts in order, adjacent interregional spacing of carving characters is in preset range;
Correspondingly, whole substring described in this step by after the combination that puts in order with calculate carve characters to conform to and be specially: described whole substring combine identical with carving characters of calculating afterwards by putting in order, or be the satisfied default corresponding relation of carving characters that described whole substring is rear by the combination that puts in order and calculate, wherein said default corresponding relation is described whole substring by being the fixed part of carving characters calculated after the combination that puts in order, or be that described whole substring can be obtained by the interpolation preset characters of carving characters calculated by after the combination that puts in order, or for described whole substring is by carving characters by being converted to by what calculate after the combination that puts in order, described conversion is as unidirectional conversion or reversible transformation etc.
Step 720: the positional information in whole substring correspondence image region is saved as area locating information of carving characters;
Particularly, carve characters described in when area locating information detected for next time and directly find respective regions.
Step 721: the interior nickname of the USB Key of prompting current detection is consistent, and process terminates;
Step 722: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 723: judge whether also to exist other meeting and to carve characters the closed image-region of region precompensation parameter, be return and perform step 715, otherwise perform step 724;
Step 724: the whether set of check image process parameter flag performs step 725, otherwise perform step 726;
Step 725: the interior nickname of the USB Key of prompting current detection is inconsistent, and process terminates;
Step 726: according to preset rules adjustment Image Processing parameter;
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 preset range, is perform step 1-3, otherwise performs step 1-2;
Step 1-2: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 727;
Step 1-3: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 727;
Or be refined as:
Step 2-1: judging that whether binaryzation parameter is the maximal value (or minimum value) in preset range, is perform step 2-3, otherwise performs step 2-2;
Step 2-2: adjust binaryzation parameter in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 727;
Step 2-3: adjust expansion coefficient in preset range, described in be adjusted to successively decrease (or increasing progressively), perform step 727;
Or be refined as:
According to presetting product adjustment expansion coefficient and binaryzation parameter in preset range, the product namely setting expansion coefficient and binaryzation parameter is a fixed value, keeps described fixed value constant, adjusts expansion coefficient and binaryzation parameter respectively in respective preset range;
For two parameters in the present embodiment, when there is multiple parameter by following same method.
Step 727: judge whether adjustment number of times reaches preset times, is perform step 728, otherwise return execution step 703;
Step 728: by Image Processing parameter flag set, returns and performs step 703.
Described above is the process of a detection USB Key, further, step 710,711,721,722 and step 725 after can return and perform step 702, repeat for detecting many USB Key.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (19)

1. intelligent positioning is carved characters the detection method in region, it is characterized in that, comprising:
Step a: reset image process parameter flag, obtains and preserves the area image of carving characters of current device to be detected;
Step b: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, judges whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, is perform step c, otherwise performs step f;
Step c: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified, and judges whether that identification is carved characters, be perform steps d, otherwise perform step e;
Steps d: judge to identify whether carving characters of obtaining conforms to the sequence number stored in current device to be detected, be, by each parameter of the closed image-region of current identification respectively with two multiplication varied in size, result is respectively as the higher limit of parameter corresponding in described region parameter of carving characters and lower limit, point out the interior nickname of current device to be detected consistent, otherwise perform step e;
Step e: judge the closed image-region that whether also there is other satisfied region precompensation parameter of carving characters in the image after described process, be, returns and performs step c, otherwise performs step f;
Step f: the whether set of check image process parameter flag is pointed out the interior nickname of current device to be detected inconsistent, otherwise adjusts described Image Processing parameter according to preset rules, performs step g;
Step g: judge whether adjustment number of times reaches preset times, is then by described Image Processing parameter set, returns and performs step b, otherwise directly return execution step b;
Describedly adjust described Image Processing parameter according to preset rules, specifically comprise and adjust one of them parameter successively according to the adjustment order of parameter each in described Image Processing parameter, keep all the other parameter constants simultaneously; Or specifically comprise each parameter adjusted successively according to adjustment order in described Image Processing parameter, the product keeping each parameter total is constant simultaneously.
2. method according to claim 1, is characterized in that, described step b replaces with:
Step b1: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, whether area locating information of carving characters is stored in judgment device, search respective image region in area locating information image after treatment of carving characters described in basis, and described respective image region is identified, perform step b2, otherwise perform step b4;
Step b2: judge whether that identification is carved characters, judge to identify whether the interior sequence number stored of the sequence number that store interior with current device to be detected of carving characters obtained conforms to, if conform to, the interior nickname of current device to be detected is pointed out to conform to, if do not conform to, perform step b3, otherwise perform step b3;
Step b3: the area locating information of carving characters stored in sweep equipment, performs step b4;
Step b4: judge whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, be perform step c, otherwise perform step f.
3. method according to claim 1 and 2, is characterized in that, points out the interior nickname of current device to be detected unanimously also to comprise before described in described steps d:
To carve characters described in the positional information of the closed image-region of current identification is stored as area locating information.
4. method according to claim 1 and 2, is characterized in that, also comprises before described step a:
Image Processing parameter described in initialization and region precompensation parameter of carving characters.
5. method according to claim 1 and 2, is characterized in that, also comprises before the described closed image-region to a still Unidentified satisfied region precompensation parameter of carving characters identifies:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, 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, described respective image region is identified before also comprise:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, 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, describedly judges to identify carving characters of obtaining comprises before whether conforming to the sequence number stored in the sequence number stored in current device to be detected:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in 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 judge to identify obtain carve characters whether to conform to the sequence number stored in current device to be detected and specifically comprise:
Judge identify obtain carve characters whether identical with the sequence number stored in device to be detected;
Or judge to identify whether carving characters of obtaining be the fixed part of the sequence number of the interior storage of device to be detected;
Or judge to identify whether carving characters of obtaining can be obtained by the sequence number interpolation preset characters stored in device to be detected.
9. method according to claim 1 and 2, is characterized in that:
In the current device to be detected of described prompting nickname unanimously after comprise return perform step a;
In the current device to be detected of described prompting, nickname returns execution step a inconsistent comprising afterwards.
10. intelligent positioning is carved characters the detection method in region, it is characterized in that comprising:
Steps A: reset image process parameter flag, obtains and preserves the area image of carving characters of current device to be detected;
Step B: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, judges whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, is perform step C, otherwise performs step H;
Step C: a still Unidentified closed image-region meeting region precompensation parameter of carving characters is identified, and judges whether that identification is carved characters, be perform step D, otherwise perform step F;
Step D: judge to identify whether carving characters of obtaining be the substring of the sequence number of current device storage inside to be detected, is perform step e, otherwise performs step F;
Step e: judge whether to identify and obtain whole substring, judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, if meet, point out nickname in the device of current detection consistent, if do not meet, point out nickname in the device of current detection inconsistent;
Step F: judge the closed image-region that whether also there is other satisfied region precompensation parameter of carving characters in the image after described process, be, returns and performs step C, otherwise performs step G;
Step G: the whether set of check image process parameter flag is pointed out the interior nickname of current device to be detected inconsistent, otherwise adjusts described Image Processing parameter according to preset rules, performs step H;
Step H: judge whether adjustment number of times reaches preset times, is then by described Image Processing parameter set, returns and performs step B, otherwise directly return execution step B;
Describedly adjust described Image Processing parameter according to preset rules, specifically comprise and adjust one of them parameter successively according to the adjustment order of parameter each in described Image Processing parameter, keep all the other parameter constants simultaneously; Or specifically comprise each parameter adjusted successively according to adjustment order in described Image Processing parameter, the product keeping each parameter total is constant simultaneously.
11. methods according to claim 10, is characterized in that, described step B replaces with:
Step B1: process according to the area image of carving characters of Image Processing parameter to described current device to be detected, whether area locating information of carving characters is stored in judgment device, search respective image region in area locating information image after treatment of carving characters described in basis, perform step B2, otherwise perform step B5;
Step B2: successively the image-region found is identified, and judge whether all to identify and carved characters, be perform step B3, otherwise perform step B4;
Step B3: judge to identify whether all the carving characters obtained is the substring of the sequence number stored in current device to be detected, judge whether the region of carving characters that described whole substring is corresponding meets pre-conditioned, if meet, point out nickname in the device of current detection consistent, if do not meet, point out nickname in the device of current detection inconsistent, otherwise perform step B4;
Step B4: the area locating information of carving characters stored in sweep equipment, performs step B5;
Step B5: judge whether there is the closed image-region meeting region precompensation parameter of carving characters in the image after processing, be perform step C, otherwise perform step G.
12. methods according to claim 10 or 11, is characterized in that, point out described in described step e the interior nickname of current device to be detected consistent before also comprise:
To carve characters described in the positional information of closed image-region corresponding for described whole substring is stored as area locating information.
13. methods according to claim 10 or 11, is characterized in that, also comprise before described steps A:
Image Processing parameter described in initialization and region precompensation parameter of carving characters, reset described Image Processing parameter mark.
14. methods according to claim 10 or 11, is characterized in that, described identification one is still Unidentified meet the closed image-region of region precompensation parameter of carving characters before also comprise:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
15. methods according to claim 11, is characterized in that, also comprise before the described image-region to finding identifies:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, according to the type selecting character library of described sequence number, otherwise prompting does not detect device to be detected.
16. methods according to claim 10 or 11, is characterized in that, describedly judge to identify carving characters of obtaining comprises before whether being the substring of the sequence number stored in current device to be detected:
Judge whether device to be detected to be detected, be, obtain the sequence number stored in current device to be detected, calculate according to described sequence number and carve characters, otherwise prompting does not detect device to be detected.
17. methods according to claim 16, is characterized in that, whether the described region of carving characters judging that described whole substring is corresponding meets pre-conditioned comprising:
Judge whether region of carving characters that described whole substring is corresponding conforms to carving characters of calculating after whether being positioned at the combination that to put in order on same level line, by it, whether adjacent interregional distance of carving characters in preset range.
18. methods according to claim 17, is characterized in that, described judgement by after its combination that puts in order whether with calculate carve characters to conform to and specifically comprise:
Judge by whether identical with carving characters of calculating after its combination that puts in order;
Or judge by its put in order combination after whether be the fixed part of carving characters calculated;
Or judge whether can be obtained by the interpolation preset characters of carving characters calculated by after its combination that puts in order;
Or judge whether to be calculated by preset algorithm by carving characters of calculating by after its combination that puts in order.
19. methods according to claim 10 or 11, is characterized in that,
In the current device to be detected of described prompting nickname unanimously after comprise and return execution steps A;
In the current device to be detected of described prompting, nickname returns execution steps A inconsistent comprising afterwards.
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 CN102902964A (en) 2013-01-30
CN102902964B true 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
CN102902964A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN104866859B (en) A kind of visual pattern mark of high robust and its recognition methods
CN102428497B (en) Method and device for determining shape congruence in three dimensions
CN109829437A (en) Image processing method, text recognition method, device and electronic system
CN104766343B (en) A kind of visual target tracking method based on rarefaction representation
CN110210387A (en) Insulator object detection method, system, the device of knowledge based map
CN105678749B (en) A kind of fresh fish discriminating direction method of view-based access control model
CN103577840B (en) Item identification method
CN107679512A (en) A kind of dynamic gesture identification method based on gesture key point
CN102332168B (en) V (Voronoi) diagram-based raster map vectorization method
CN108734110A (en) Text fragment identification control methods based on longest common subsequence and system
CN109344820A (en) Digital electric meter Recognition of Reading method based on computer vision and deep learning
CN106557549A (en) Method and device for identifying target object
CN104392433A (en) Image-based digital oil painting canvas automatic generation method
CN106529368A (en) Method for localizing recognition region of two-dimensional code
CN103218833A (en) Edge-reinforced color space maximally stable extremal region detection method
CN108921160A (en) A kind of books recognition methods, electronic equipment and storage medium
CN104915420A (en) Knowledge base data processing method and knowledge base data processing system
JP2017111816A (en) Object division method and device
CN102902964B (en) Detection method for intelligently locating lettering region
CN105955947B (en) Photo automatic composing method based on layout template
CN105912520B (en) Photo automatic composing method based on layout template
CN104376291A (en) Data processing method and device
Shao et al. Research on the tea bud recognition based on improved k-means algorithm
CN113221773B (en) Method for quickly constructing airplane classification data set based on remote sensing image
CN111161288A (en) Image processing method and 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

Granted publication date: 20150617

CF01 Termination of patent right due to non-payment of annual fee