CN105095824B - A kind of identification control method and device of information code - Google Patents
A kind of identification control method and device of information code Download PDFInfo
- Publication number
- CN105095824B CN105095824B CN201510589973.8A CN201510589973A CN105095824B CN 105095824 B CN105095824 B CN 105095824B CN 201510589973 A CN201510589973 A CN 201510589973A CN 105095824 B CN105095824 B CN 105095824B
- Authority
- CN
- China
- Prior art keywords
- code
- area
- region
- point
- target information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Image Analysis (AREA)
Abstract
This application discloses a kind of identification control method and device of information code, applied to electronic equipment, methods described includes:Gather the view data of target information code region;Obtain the code region area of target information code described in described image data;The code region area is compared with default area threshold scope, obtains comparison result;When the comparison result shows the maximum that the code region area is more than in the area threshold scope, the first information is shown, to prompt to adjust the electronic equipment away from the target information code;When the comparison result shows the minimum value that the code region area is less than in the area threshold scope, the second information is shown, to prompt to adjust the electronic equipment close to the target information code;When the comparison result shows that the code region area is in the range of the area threshold, trigger the electronic equipment and the target information code is identified.
Description
Technical field
The application is related to information code processing technology field, the identification control method of more particularly to a kind of information code
And device.
Background technology
At present, when identifying the information code such as Quick Response Code or point coding, using the camera in the terminals such as mobile phone to letter when usual
Breath code picture is scanned, and completes barcode scanning identification.
And during barcode scanning, terminal can only can just prompt user to adjust terminal position when picture clarity is unsatisfactory for requiring
Put, cause user to need to adjust terminal repeatedly or without purpose, could scan to clearly picture, thus reduce barcode scanning effect
Rate.
The content of the invention
In view of this, this application provides a kind of identification control method and device of information code, to solve prior art
Middle terminal can only can just prompt user to adjust terminal location when picture clarity is unsatisfactory for requiring, cause user to need more
Secondary adjustment terminal, the technical problem for clearly picture, thus reducing barcode scanning efficiency could be scanned.
To achieve the above object, the application provides following technical scheme:
A kind of identification control method of information code, applied to electronic equipment, methods described includes:
Gather the view data of target information code region;
Obtain the code region area of target information code described in described image data;
The code region area is compared with default area threshold scope, obtains comparison result;
When the comparison result shows the maximum that the code region area is more than in the area threshold scope, display
The first information, to prompt to adjust the electronic equipment away from the target information code;
When the comparison result shows the minimum value that the code region area is less than in the area threshold scope, display
Second information, to prompt to adjust the electronic equipment close to the target information code;
When the comparison result shows that the code region area is in the range of the area threshold, the electronics is triggered
The target information code is identified equipment.
The above method, it is preferred that the code region area of target information code described in described image data is obtained, including:
Identify the code edges of regions of target information code described in described image data;
Obtain code region area of the region area as the target information code in the code edges of regions.
The above method, it is preferred that the code edges of regions of target information code, bag described in the identification described image data
Include:
Pair code-point adjacent with the center of described image data and each adjacent code-point is carried out with the code-point
Count, reach default code-point threshold value until code-point counts;
The contour edge for the code-point distributed areas being counted is defined as a yard edges of regions.
The above method, it is preferred that the area threshold scope includes:The area that inward flange is formed in default annular region
Scope between the region area that domain area is formed to outward flange;
Accordingly, the code region area is compared with default area threshold scope, obtains comparison result, wrapped
Include:
The position of corresponding code edges of regions and the annular region outer edge in the code region area is sentenced
It is disconnected, obtain judged result;
Wherein, show that the outer edge of the annular region is in code edges of regions institute shape in the judged result
Into region in when, show the code region area be more than the area threshold scope in maximum;
Show that the code edges of regions is in the region that the inward flange of the annular region is formed in the judged result
When interior, show the minimum value that the code region area is less than in the area threshold scope;
When the judged result shows that the code edges of regions is between the outer edge of the annular region, show
The code region area is in the range of the area threshold.
The above method, it is preferred that the code region area of target information code described in described image data is obtained, including:
Identify the center in described image data;
Determine code-point region corresponding to target information code described in described image data, the code-point in the code-point region with
It is distributed centered on the center, and the code-point number in the code-point region is default code-point threshold value;
Obtain code region area of the area in the code-point region as the target information code.
Present invention also provides a kind of identification control device of information code, applied to electronic equipment, described device includes:
Image acquisition units, for gathering the view data of target information code region;
Area acquiring unit, for obtaining the code region area of target information code described in described image data;
Threshold value comparing unit, for the code region area to be compared with default area threshold scope, compared
To result;
First display unit, for showing that the code region area is more than the area threshold scope in the comparison result
In maximum when, show the first information, to prompt to adjust the electronic equipment away from the target information code;
Second display unit, for showing that the code region area is less than the area threshold scope in the comparison result
In minimum value when, show the second information, to prompt to adjust the electronic equipment close to the target information code;
Trigger element is identified, for showing that the code region area is in the area threshold scope in the comparison result
When interior, trigger the electronic equipment and the target information code is identified.
Said apparatus, it is preferred that the area acquiring unit includes:
Limb recognition subelement, for identifying the code edges of regions of target information code described in described image data;
First obtains subelement, for obtaining the region area in the code edges of regions as the target information code
Code region area.
Said apparatus, it is preferred that the limb recognition subelement includes:
Code-point counting module, it is for pair code-point adjacent with the center of described image data and each with the code-point
Counted from adjacent code-point, reach default code-point threshold value until code-point counts;
Edge determining module, for the contour edge of the code-point being counted distributed areas to be defined as into a yard edges of regions.
Said apparatus, it is preferred that the area threshold scope includes:The area that inward flange is formed in default annular region
Scope between the region area that domain area is formed to outward flange;
Accordingly, the threshold value comparing unit includes:
Edge comparison subunit, for by corresponding code edges of regions in the code region area and the annular region
Outer peripheral position is judged, obtains judged result;
Wherein, show that the outer edge of the annular region is in code edges of regions institute shape in the judged result
Into region in when, show the code region area be more than the area threshold scope in maximum;
Show that the code edges of regions is in the region that the inward flange of the annular region is formed in the judged result
When interior, show the minimum value that the code region area is less than in the area threshold scope;
When the judged result shows that the code edges of regions is between the outer edge of the annular region, show
The code region area is in the range of the area threshold.
Said apparatus, it is preferred that the area acquiring unit includes:
Center identification subelement, for identifying the center of described image data;
Region determination subelement, for determining code-point region corresponding to target information code, institute described in described image data
The code-point stated in code-point region is distributed centered on the center, and the code-point number in the code-point region is default
Code-point threshold value;
Second obtains subelement, for obtaining code area surface of the area in the code-point region as the target information code
Product.
Understand, a kind of identification control method and device for information code that the application provides, lead to via above-mentioned technical scheme
Cross and the judgement of threshold range, Jin Ergen are carried out to the area of information code in the view data that scans in information code identification process
According to the difference of information code area, to prompt user to adjust, electronic equipment is remote still to be set close to information code or directly triggering electronics
It is standby to carry out information code identification, clearly prompted to user during this, and avoid user's repeatedly random adjustment terminal
Equipment could scan situation about clearly matching, and user need to only be adjusted correspondingly according to prompt message, thus reduce and use
Family operation complexity, improve barcode scanning efficiency.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme of the embodiment of the present application, required use in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only embodiments herein, for this area
For those of ordinary skill, on the premise of not paying creative work, it can also be obtained according to the accompanying drawing of offer other attached
Figure.
Fig. 1 is a kind of flow chart of the identification control method embodiment one for information code that the application provides;
Fig. 2 a~Fig. 2 c are the application exemplary plot of the embodiment of the present application;
Fig. 3 is a kind of partial process view of the identification control method embodiment two for information code that the application provides;
Fig. 4 is another part flow chart of the embodiment of the present application two;
Fig. 5 is the flow chart of the embodiment of the present application two;
Fig. 6 is a kind of partial process view of the identification control method embodiment three for information code that the application provides;
Fig. 7 is a kind of structural representation of the identification control device example IV for information code that the application provides;
Fig. 8 is a kind of part-structure schematic diagram of the identification control device embodiment five for information code that the application provides;
Fig. 9 is another part structural representation of the embodiment of the present application five;
Figure 10 is the structural representation of the embodiment of the present application five;
Figure 11 is a kind of part-structure schematic diagram of the identification control device embodiment six for information code that the application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of the application protection.
With reference to figure 1, a kind of flow chart of the identification control method embodiment one of the information code provided for the application, wherein,
Methods described can apply in electronic equipment, and such as mobile phone, pad can carry out the terminal device of information code identification.
In the present embodiment, methods described can be realized by following steps:
Step 101:Gather the view data of target information code region.
Wherein, can be gathered in the present embodiment by the first-class image collecting device of shooting on the electronic equipment described
The view data A of target information code region, as shown in Figure 2 a.
Step 102:Obtain the code region area of target information code described in described image data.
Wherein, the code region area refers to region B corresponding to target information code described in described image data, such as Fig. 2 b
Shown in.
Step 103:The code region area is compared with default area threshold scope, obtains comparison result.
That is, the present embodiment to the code region area and default area threshold scope by carrying out size ratio
It is right, the barcode scanning to the target information code is realized according to the magnitude relationship of the code region area and the area threshold scope
Control.
Specifically, such as following steps:
Step 104:Show the code region area more than the maximum in the area threshold scope in the comparison result
During value, the first information is shown, to prompt to adjust the electronic equipment away from the target information code.
Step 105:Show the code region area less than the minimum in the area threshold scope in the comparison result
During value, the second information is shown, to prompt to adjust the electronic equipment close to the target information code.
Step 106:When the comparison result shows that the code region area is in the range of the area threshold, triggering
The target information code is identified the electronic equipment.
That is, by carrying out size pair to the code region area and the area threshold scope in the present embodiment
Than when the code region area is more than the maximum in the area threshold scope, showing that the target information code may be away from
It is excessively near from the electronic equipment, cause the electronic equipment to get the part code region of the target information code, now,
The present embodiment shows the first information, to prompt user to need to adjust the electronic equipment to be moved to one away from the target information code
Set a distance;When the code region area is less than the minimum value in the area threshold scope, show that the target information code can
The image definition for the target information code that the electronic equipment collected apart from the electronic equipment too far, can be caused relatively low or
Person can not accurately identify the target information code, and now, the present embodiment shows the second information, to prompt user to need described in adjustment
Electronic equipment is moved to certain distance to the target information code is close;And only in the code region area in the area threshold
In the range of value, i.e., when more than the minimum value and being less than the maximum, show that the target information code is in and the electronics
It on the suitable position of equipment, that is, can either ensure to gather all images of the target information code, can also ensure image
Definition or recognition accuracy position, now can just trigger the electronic equipment and the target information code is identified,
Each pixel of target information code as described in scanning, and then obtain information corresponding to the target information code.
Understood via above-mentioned technical scheme, a kind of identification control method embodiment one for information code that the application provides,
By carrying out the judgement of threshold range to the area of information code in the view data that scans in information code identification process, and then
According to the difference of information code area, to prompt user to adjust, electronic equipment is remote still to trigger electronics close to information code or directly
Equipment carries out information code identification, is clearly prompted to user during this, and avoids user repeatedly random adjustment is eventually
End equipment could scan situation about clearly matching, and user need to only be adjusted correspondingly according to prompt message, thus reduce
User's operation complexity, improve barcode scanning efficiency.
It should be noted that the target information code can be the information codes such as Quick Response Code, bar code or point coding.The present embodiment
In the explanation of invention thought is carried out by taking point coding as an example, as shown in the point coding in Fig. 2 b.
With reference to figure 3, step 102 described in a kind of identification control method embodiment two of the information code provided for the application
Implementation process figure, wherein, the step 102 can be realized by following steps:
Step 121:Identify the code edges of regions of target information code described in described image data.
Wherein, it can identify that target described in described image data is believed by image recognition algorithm in the step 121
The code edges of regions of code is ceased, such as:First described image data are carried out with binaryzation, then area is performed to the view data of binaryzation
Domain growth algorithm, and then determine code edges of regions of the target information code in described image data.
Step 122:Obtain code region area of the region area as the target information code in the code edges of regions.
So that the target information code is point coding as an example, as shown in Figure 4, it can be realized in the present embodiment by following steps
The scheme of the step 121:
Step 401:Pair code-point adjacent with the center of described image data and each adjacent with the code-point
Code-point is counted, and reaches default code-point threshold value until code-point counts.
Specifically, counted first to one layer of code-point on the center periphery in the present embodiment, then pair with
The adjacent code-point of the code-point that is counted carries out continuing to count, until the code-point quantity being counted reaches the code-point threshold value.
Step 402:The contour edge for the code-point distributed areas being counted is defined as a yard edges of regions.
Adopted it should be noted that the center of view data described in the present embodiment carries out image with the electronic equipment
The screen center of collection is corresponding, and the quantity that thus, in the present embodiment will be around the code-point of the center reaches default code
The contour edge of the code-point distributed areas of point threshold value determines as code edges of regions, and then by the region area in the contour edge
For the code region area of the target information code, that is to say, that will be around the number of the code-point of the center in the present embodiment
The area for measuring the code-point distributed areas for reaching the code-point threshold value is defined as the code region area of the target information code.
In a particular application, the area threshold may range from:The area that inward flange is formed in default annular region
Scope between the region area that domain area is formed to outward flange.
Accordingly, it is another flow chart of the present embodiment with reference to figure 5, wherein, the step 103 can pass through following step
It is rapid to realize:
Step 131:By the position of corresponding code edges of regions in the code region area and the annular region outer edge
Put and judged, obtain judged result.
Accordingly, show that the outer edge of the annular region is in the code edges of regions institute in the judged result
When in the region of formation, show the maximum that the code region area is more than in the area threshold scope, now, the present embodiment
The first information is shown, to prompt user to need to adjust the electronic equipment to be moved to certain distance away from the target information code;
When the judged result shows that the code edges of regions is in the region that the inward flange of the annular region formed, show
The code region area is less than the minimum value in the area threshold scope, and now, the present embodiment shows the second information, with prompting
User needs to adjust the electronic equipment to the target information code close to being moved to certain distance;Show in the judged result
When the code edges of regions is between the outer edge of the annular region, show that the code region area is in the area
In threshold range, i.e., described target information code is in that on the suitable position of the electronic equipment, that is, can either ensure to adopt
Collect all images of the target information code, can also ensure the definition of image or the position of recognition accuracy, now just can
Trigger the electronic equipment target information code is identified, each pixel of target information code, enters as described in scanning
And obtain information corresponding to the target information code.
With reference to figure 6, step 102 described in a kind of identification control method embodiment three of the information code provided for the application
Implementation process figure, wherein, the step 102 can be realized by following steps:
Step 123:Identify the center in described image data.
Wherein, the screen centre position of electronic equipment progress IMAQ can be defined as in the present embodiment described
Center in view data, that is to say, that user is by target information code institute described in the alignment lenses of the electronic equipment
At region, it is that its center is relative, carries out the acquisition of view data.
Step 124:Code-point region corresponding to target information code described in described image data is determined, in the code-point region
Code-point be distributed centered on the center, and the code-point number in the code-point region is default code-point threshold value.
As illustrated in fig. 2 c, the code-point in the code-point region X is distributed centered on the center O, and the code
Code-point number in point region X is the code-point threshold value, such as 11 pairs of code-points.
Step 125:Obtain code region area of the area in the code-point region as the target information code.
With reference to figure 7, a kind of structural representation of the identification control device example IV of the information code provided for the application, its
In, described device can apply in electronic equipment, and such as mobile phone, pad can carry out the terminal device of information code identification.
In the present embodiment, described device can include following structure, to realize its function:
Image acquisition units 701, for gathering the view data of target information code region.
Wherein, can be gathered in the present embodiment by the first-class image collecting device of shooting on the electronic equipment described
The view data of target information code region, as shown in Figure 2 a.
Area acquiring unit 702, for obtaining the code region area of target information code described in described image data.
Wherein, the code region area refers to region corresponding to target information code described in described image data, such as Fig. 2 b
Shown in.
Threshold value comparing unit 703, for the code region area to be compared with default area threshold scope, obtain
Comparison result.
That is, the present embodiment to the code region area and default area threshold scope by carrying out size ratio
It is right, the barcode scanning to the target information code is realized according to the magnitude relationship of the code region area and the area threshold scope
Control.
Specifically, following construction unit:
First display unit 704, for showing that the code region area is more than the area threshold in the comparison result
During maximum in scope, the first information is shown, to prompt to adjust the electronic equipment away from the target information code.
Second display unit 705, for showing that the code region area is less than the area threshold in the comparison result
During minimum value in scope, the second information is shown, to prompt to adjust the electronic equipment close to the target information code.
Trigger element 706 is identified, for showing that the code region area is in the area threshold in the comparison result
In the range of when, trigger the electronic equipment and the target information code be identified.
That is, by carrying out size pair to the code region area and the area threshold scope in the present embodiment
Than when the code region area is more than the maximum in the area threshold scope, showing that the target information code may be away from
It is excessively near from the electronic equipment, cause the electronic equipment to get the part code region of the target information code, now,
The present embodiment shows the first information, to prompt user to need to adjust the electronic equipment to be moved to one away from the target information code
Set a distance;When the code region area is less than the minimum value in the area threshold scope, show that the target information code can
The image definition for the target information code that the electronic equipment collected apart from the electronic equipment too far, can be caused relatively low or
Person can not accurately identify the target information code, and now, the present embodiment shows the second information, to prompt user to need described in adjustment
Electronic equipment is moved to certain distance to the target information code is close;And only in the code region area in the area threshold
In the range of value, i.e., when more than the minimum value and being less than the maximum, show that the target information code is in and the electronics
It on the suitable position of equipment, that is, can either ensure to gather all images of the target information code, can also ensure image
Definition or recognition accuracy position, now can just trigger the electronic equipment and the target information code is identified,
Each pixel of target information code as described in scanning, and then obtain information corresponding to the target information code.
Understood via above-mentioned technical scheme, a kind of identification control device example IV for information code that the application provides,
By carrying out the judgement of threshold range to the area of information code in the view data that scans in information code identification process, and then
According to the difference of information code area, to prompt user to adjust, electronic equipment is remote still to trigger electronics close to information code or directly
Equipment carries out information code identification, is clearly prompted to user during this, and avoids user repeatedly random adjustment is eventually
End equipment could scan situation about clearly matching, and user need to only be adjusted correspondingly according to prompt message, thus reduce
User's operation complexity, improve barcode scanning efficiency.
It should be noted that the target information code can be the information codes such as Quick Response Code, bar code or point coding.The present embodiment
In the explanation of invention thought is carried out by taking point coding as an example, as shown in the point coding in Fig. 2 b.
With reference to figure 8, area obtains described in a kind of identification control device embodiment five of the information code provided for the application
The structural representation of unit 702, wherein, the area acquiring unit 702 can include following structure:
Limb recognition subelement 721, for identifying the code edges of regions of target information code described in described image data.
Wherein, the limb recognition subelement 721 can identify institute in described image data by image recognition algorithm
The code edges of regions of target information code is stated, such as:First described image data are carried out with binaryzation, then the picture number to binaryzation
According to execution algorithm of region growing, and then determine code edges of regions of the target information code in described image data.
First obtains subelement 722, for obtaining the region area in the code edges of regions as the target information
The code region area of code.
So that the target information code is point coding as an example, as shown in Figure 9, it can be realized in the present embodiment by following structure
The scheme of the limb recognition subelement 721:
Code-point counting module 901, for pair code-point adjacent with the center of described image data and with the code
The respective adjacent code-point of point is counted, and reaches default code-point threshold value until code-point counts.
Specifically, counted first to one layer of code-point on the center periphery in the present embodiment, then pair with
The adjacent code-point of the code-point that is counted carries out continuing to count, until the code-point quantity being counted reaches the code-point threshold value.
Edge determining module 902, for the contour edge of the code-point being counted distributed areas to be defined as into a yard edges of regions.
Adopted it should be noted that the center of view data described in the present embodiment carries out image with the electronic equipment
The screen center of collection is corresponding, and the quantity that thus, in the present embodiment will be around the code-point of the center reaches default code
The contour edge of the code-point distributed areas of point threshold value determines as code edges of regions, and then by the region area in the contour edge
For the code region area of the target information code, that is to say, that will be around the number of the code-point of the center in the present embodiment
The area for measuring the code-point distributed areas for reaching the code-point threshold value is defined as the code region area of the target information code.
In a particular application, the area threshold may range from:The area that inward flange is formed in default annular region
Scope between the region area that domain area is formed to outward flange.
Accordingly, it is another structural representation of the present embodiment with reference to figure 10, wherein, the threshold value comparing unit 703 can
To be realized by following structure:
Edge comparison subunit 731, for by corresponding code edges of regions in the code region area and the annulus
The position of domain outer edge is judged, obtains judged result.
Accordingly, show that the outer edge of the annular region is in the code edges of regions institute in the judged result
When in the region of formation, show the maximum that the code region area is more than in the area threshold scope, now, the present embodiment
The first information is shown, to prompt user to need to adjust the electronic equipment to be moved to certain distance away from the target information code;
When the judged result shows that the code edges of regions is in the region that the inward flange of the annular region formed, show
The code region area is less than the minimum value in the area threshold scope, and now, the present embodiment shows the second information, with prompting
User needs to adjust the electronic equipment to the target information code close to being moved to certain distance;Show in the judged result
When the code edges of regions is between the outer edge of the annular region, show that the code region area is in the area
In threshold range, i.e., described target information code is in that on the suitable position of the electronic equipment, that is, can either ensure to adopt
Collect all images of the target information code, can also ensure the definition of image or the position of recognition accuracy, now just can
Trigger the electronic equipment target information code is identified, each pixel of target information code, enters as described in scanning
And obtain information corresponding to the target information code.
With reference to figure 11, area obtains described in a kind of identification control device embodiment six of the information code provided for the application
The structural representation of unit 702, wherein, the area acquiring unit 702 can be realized by following structure:
Center identification subelement 723, for identifying the center of described image data.
Wherein, the screen centre position of electronic equipment progress IMAQ can be defined as in the present embodiment described
Center in view data, that is to say, that user is by target information code institute described in the alignment lenses of the electronic equipment
At region, it is that its center is relative, carries out the acquisition of view data.
Region determination subelement 724, for determining code-point region corresponding to target information code described in described image data,
Code-point in the code-point region is distributed centered on the center, and the code-point number in the code-point region is default
Code-point threshold value.
As illustrated in fig. 2 c, the code-point in the code-point region X is distributed centered on the center O, and the code
Code-point number in point region X is the code-point threshold value, such as 11 pairs of code-points.
Second obtains subelement 725, for obtaining the area in the code-point region as the target information Ma Ma areas
Domain area.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the application.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments in the case where not departing from spirit herein or scope.Therefore, the application
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (8)
1. the identification control method of a kind of information code, it is characterised in that applied to electronic equipment, methods described includes:
Gather the view data of target information code region;
Obtain the code region area of target information code described in described image data;
The code region area is compared with default area threshold scope, obtains comparison result;
When the comparison result shows the maximum that the code region area is more than in the area threshold scope, display first
Information, to prompt to adjust the electronic equipment away from the target information code;
When the comparison result shows the minimum value that the code region area is less than in the area threshold scope, display second
Information, to prompt to adjust the electronic equipment close to the target information code;
When the comparison result shows that the code region area is in the range of the area threshold, the electronic equipment is triggered
The target information code is identified;
Wherein, the code region area of target information code described in described image data is obtained, including:
Identify the center in described image data;
Determine code-point region corresponding to target information code described in described image data, the code-point in the code-point region is with described
It is distributed centered on center, and the code-point number in the code-point region is default code-point threshold value;
Obtain code region area of the area in the code-point region as the target information code.
2. according to the method for claim 1, it is characterised in that obtain the code of target information code described in described image data
Region area, including:
Identify the code edges of regions of target information code described in described image data;
Obtain code region area of the region area as the target information code in the code edges of regions.
3. according to the method for claim 2, it is characterised in that target information code described in the identification described image data
Code edges of regions, including:
Pair code-point adjacent with the center of described image data and each adjacent code-point counts with the code-point,
Reach default code-point threshold value until code-point counts;
The contour edge for the code-point distributed areas being counted is defined as a yard edges of regions.
4. according to the method in claim 2 or 3, it is characterised in that the area threshold scope includes:Default annulus
Scope between the region area that the region area that inward flange is formed in domain is formed to outward flange;
Accordingly, the code region area is compared with default area threshold scope, obtains comparison result, including:
The position of corresponding code edges of regions and the annular region outer edge in the code region area is judged, obtained
To judged result;
Wherein, show that the outer edge of the annular region is in what the code edges of regions was formed in the judged result
When in region, show the maximum that the code region area is more than in the area threshold scope;
When the judged result shows that the code edges of regions is in the region that the inward flange of the annular region formed,
Show the minimum value that the code region area is less than in the area threshold scope;
When the judged result shows that the code edges of regions is between the outer edge of the annular region, show described
Code region area is in the range of the area threshold.
5. a kind of identification control device of information code, it is characterised in that applied to electronic equipment, described device includes:
Image acquisition units, for gathering the view data of target information code region;
Area acquiring unit, for obtaining the code region area of target information code described in described image data;
Threshold value comparing unit, for the code region area to be compared with default area threshold scope, obtain comparing knot
Fruit;
First display unit, for showing that the code region area is more than in the area threshold scope in the comparison result
During maximum, the first information is shown, to prompt to adjust the electronic equipment away from the target information code;
Second display unit, for showing that the code region area is less than in the area threshold scope in the comparison result
During minimum value, the second information is shown, to prompt to adjust the electronic equipment close to the target information code;
Trigger element is identified, for showing that the code region area is in the range of the area threshold in the comparison result
When, trigger the electronic equipment and the target information code is identified;
Wherein, the area acquiring unit includes:
Center identification subelement, for identifying the center of described image data;
Region determination subelement, for determining code-point region corresponding to target information code, the code described in described image data
Code-point in point region is distributed centered on the center, and the code-point number in the code-point region is default code-point
Threshold value;
Second obtains subelement, for obtaining code region area of the area in the code-point region as the target information code.
6. device according to claim 5, it is characterised in that the area acquiring unit includes:
Limb recognition subelement, for identifying the code edges of regions of target information code described in described image data;
First obtains subelement, for obtaining the region area in the code edges of regions as the target information Ma Ma areas
Domain area.
7. device according to claim 6, it is characterised in that the limb recognition subelement includes:
Code-point counting module, for pair code-point adjacent with the center of described image data and with the respective phase of the code-point
Adjacent code-point is counted, and reaches default code-point threshold value until code-point counts;
Edge determining module, for the contour edge of the code-point being counted distributed areas to be defined as into a yard edges of regions.
8. the device according to claim 6 or 7, it is characterised in that the area threshold scope includes:Default annulus
Scope between the region area that the region area that inward flange is formed in domain is formed to outward flange;
Accordingly, the threshold value comparing unit includes:
Edge comparison subunit, for by outside in corresponding code edges of regions in the code region area and the annular region
The position of edge is judged, obtains judged result;
Wherein, show that the outer edge of the annular region is in what the code edges of regions was formed in the judged result
When in region, show the maximum that the code region area is more than in the area threshold scope;
When the judged result shows that the code edges of regions is in the region that the inward flange of the annular region formed,
Show the minimum value that the code region area is less than in the area threshold scope;
When the judged result shows that the code edges of regions is between the outer edge of the annular region, show described
Code region area is in the range of the area threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510589973.8A CN105095824B (en) | 2015-09-16 | 2015-09-16 | A kind of identification control method and device of information code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510589973.8A CN105095824B (en) | 2015-09-16 | 2015-09-16 | A kind of identification control method and device of information code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105095824A CN105095824A (en) | 2015-11-25 |
CN105095824B true CN105095824B (en) | 2017-12-12 |
Family
ID=54576220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510589973.8A Active CN105095824B (en) | 2015-09-16 | 2015-09-16 | A kind of identification control method and device of information code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105095824B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107404721A (en) * | 2016-05-20 | 2017-11-28 | 阿里巴巴集团控股有限公司 | Internet of things equipment matches somebody with somebody network method, image-pickup method and equipment |
CN113487670B (en) * | 2020-10-26 | 2024-09-13 | 海信集团控股股份有限公司 | Cosmetic mirror and state adjustment method |
CN113379780B (en) * | 2021-05-19 | 2024-04-16 | 昆山丘钛微电子科技股份有限公司 | Frame grabbing image optimization method and device |
CN118378646A (en) * | 2024-06-25 | 2024-07-23 | 深圳前海量子云码科技有限公司 | Code scanning method, device, equipment and medium for microcosmic coded image |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2424207A1 (en) * | 2009-04-24 | 2012-02-29 | Yoshiro Mizuno | Monitoring system |
CN103679113A (en) * | 2013-12-27 | 2014-03-26 | 北京握奇智能科技有限公司 | Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning |
CN104504429A (en) * | 2014-12-17 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Two-dimensional code generation method and device |
-
2015
- 2015-09-16 CN CN201510589973.8A patent/CN105095824B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2424207A1 (en) * | 2009-04-24 | 2012-02-29 | Yoshiro Mizuno | Monitoring system |
CN103679113A (en) * | 2013-12-27 | 2014-03-26 | 北京握奇智能科技有限公司 | Positioning and focusing method and system of OTP (One Time Password) device in two-dimensional bar code scanning |
CN104504429A (en) * | 2014-12-17 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Two-dimensional code generation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105095824A (en) | 2015-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105095824B (en) | A kind of identification control method and device of information code | |
CN101931749B (en) | Shooting parameter adjustment method for face detection and image capturing device for face detection | |
CN105761245B (en) | A kind of automatic tracking method and device of view-based access control model characteristic point | |
KR101165415B1 (en) | Method for recognizing human face and recognizing apparatus | |
JP4714749B2 (en) | Real-time image detection using polarization data | |
CN108141527A (en) | Phase-detection auto-focusing algorithm | |
CN104200480A (en) | Image fuzzy degree evaluation method and system applied to intelligent terminal | |
CN106778645A (en) | A kind of image processing method and device | |
CN107580175A (en) | A kind of method of single-lens panoramic mosaic | |
CN107786813B (en) | Multifunction camera imaging control system | |
CN106981081A (en) | A kind of degree of plainness for wall surface detection method based on extraction of depth information | |
WO2018076392A1 (en) | Pedestrian statistical method and apparatus based on recognition of parietal region of human body | |
CN108024065A (en) | A kind of method of terminal taking, terminal and computer-readable recording medium | |
CN106548148A (en) | Method and system for identifying unknown face in video | |
CN104349021A (en) | Image acquisition method, device and terminal | |
CN106911921A (en) | The infrared touch-control of projecting apparatus and Atomatic focusing method based on single camera | |
CN109271890A (en) | The method and apparatus that automatic fingerprint image extracts | |
CN104036236A (en) | Human face gender recognition method based on multi-parameter index weighting | |
US20180365275A1 (en) | Passenger Flow Information Collection Method and Apparatus, and Passenger Flow Information Processing Method and Apparatus | |
CN107256395A (en) | Vena metacarpea extracting method and device | |
CN107947809A (en) | A kind of method for the automation level that radio is provided | |
CN108537932A (en) | A kind of intelligent quick identity verification system of hidden | |
CN106778615A (en) | A kind of method of identifying user identity, device and service for infrastructure robot | |
CN106093052B (en) | A kind of broken yarn detection method | |
CN107038462A (en) | Equipment control operation method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180709 Granted publication date: 20171212 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210709 Granted publication date: 20171212 |
|
PD01 | Discharge of preservation of patent | ||
PP01 | Preservation of patent right |
Effective date of registration: 20220930 Granted publication date: 20171212 |
|
PP01 | Preservation of patent right |