CN105205429B - A kind of decoding control method and device of two dimensional code - Google Patents
A kind of decoding control method and device of two dimensional code Download PDFInfo
- Publication number
- CN105205429B CN105205429B CN201510590433.1A CN201510590433A CN105205429B CN 105205429 B CN105205429 B CN 105205429B CN 201510590433 A CN201510590433 A CN 201510590433A CN 105205429 B CN105205429 B CN 105205429B
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- dimensional code
- parameter
- target
- kinematic parameter
- 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
- Studio Devices (AREA)
Abstract
This application discloses a kind of decoding control method and device of two dimensional code, applied to electronic equipment, the described method includes: monitoring kinematic parameter of the electronic equipment in preset time is long, the kinematic parameter characterizes whether the electronic equipment remains static relative to target two dimensional code;When the kinematic parameter meets preset opposing stationary control condition, triggers the electronic equipment and the target two dimensional code is decoded.The application can be avoided to focus and the case where picture collection causes electric energy and memory consumption because equipment is in vibrating state the camera lens of equipment is needed to recycle in the prior art, equipment, which can be just only triggered, when equipment is in opposing stationary is decoded operation, that is focusing and picture collection identifies two dimensional code in turn, thus, the application can significantly reduce the focusing and picture collection operation of equipment, reduce power consumption and memory consumption caused in decoding process.
Description
Technical field
This application involves decoding technique field, the decoding control method and dress of more particularly to a kind of two dimensional code
It sets.
Background technique
Currently, the terminals such as mobile phone generally use decoding of the following scheme realization to two dimensional code: opening the recognition of the terminals such as mobile phone
After the application of two dimensional code, using correctly focusing using camera camera and collect clearly picture, and then two dimensional code is identified,
Complete decoding.
But during this, because of the shaking of terminal or the mobile meeting of two dimensional code so that the camera of terminal needs circulation pair
Burnt and multi collect picture completes to collect clearly picture until focusing, and the focusing of the circulation of camera lens and picture collection can be made
At a large amount of power consumption and memory consumption.
Summary of the invention
In view of this, this application provides a kind of decoding control method and device of two dimensional code, to solve the prior art
In two dimensional code decoding control program in camera lens circulation focusing and picture collection will cause a large amount of power consumption and memory disappears
The technical issues of consumption,
To achieve the above object, the application provides the following technical solutions:
A kind of decoding control method of two dimensional code is applied to electronic equipment, which comprises
Kinematic parameter of the electronic equipment in preset time is long is monitored, the kinematic parameter characterizes the electronic equipment
Whether remain static relative to target two dimensional code;
When the kinematic parameter meets preset opposing stationary control condition, the electronic equipment is triggered to the target
Two dimensional code is decoded.
The above method, it is preferred that kinematic parameter of the monitoring electronic equipment in preset time is long, comprising:
Monitor level angle parameter and vertical angle parameter of the electronic equipment in preset time is long;
Based on the level angle parameter and vertical angle parameter, the kinematic parameter of the electronic equipment is obtained.
The above method, it is preferred that described to monitor level angle parameter of the electronic equipment in preset time is long and hang down
Squareness parameter, comprising:
With preset data acquiring frequency, multiple groups level angle parameter of the electronic equipment in preset time is long is acquired
With multiple groups vertical angle parameter.
The above method, it is preferred that be based on the level angle parameter and vertical angle parameter, obtain the electronic equipment
Kinematic parameter, comprising:
The variance yields for obtaining the multiple groups level angle parameter and the multiple groups vertical angle parameter is set as the electronics
Standby kinematic parameter.
The above method, it is preferred that the opposing stationary control condition includes: that the variance yields in the kinematic parameter is less than in advance
If threshold value;
Correspondingly, triggering the electronic equipment pair when the kinematic parameter meets preset opposing stationary control condition
The target two dimensional code is decoded, comprising:
When variance yields in the kinematic parameter is less than the threshold value, the electronic equipment is triggered to the target two dimension
Code carries out focusing and picture collection, carries out two dimensional code identification to collected picture, completes decoding.
This application provides a kind of decoding controllers of two dimensional code, are applied to electronic equipment, and described device includes:
Parameter monitoring unit, for monitoring kinematic parameter of the electronic equipment in preset time is long, the movement ginseng
Number characterizes whether the electronic equipment remains static relative to target two dimensional code;
Trigger unit is decrypted, for when the kinematic parameter meets preset opposing stationary control condition, described in triggering
Electronic equipment is decoded the target two dimensional code.
Above-mentioned apparatus, it is preferred that the parameter monitoring unit includes:
Horizontal vertical monitors subelement, for monitor level angle parameter of the electronic equipment in preset time is long and
Vertical angle parameter;
Kinematic parameter obtains subelement, for being based on the level angle parameter and vertical angle parameter, obtains the electricity
The kinematic parameter of sub- equipment.
Above-mentioned apparatus, it is preferred that the horizontal vertical monitors subelement and includes:
Parameter sampling module, for acquiring the electronic equipment in the preset time with preset data acquiring frequency
Multiple groups level angle parameter and multiple groups vertical angle parameter in length.
Above-mentioned apparatus, it is preferred that the kinematic parameter obtains subelement and includes:
Variance obtains module, for obtaining the variance of the multiple groups level angle parameter and the multiple groups vertical angle parameter
It is worth the kinematic parameter as the electronic equipment.
Above-mentioned apparatus, it is preferred that the opposing stationary control condition includes: that the variance yields in the kinematic parameter is less than in advance
If threshold value;
Correspondingly, the decoding trigger unit includes:
Focusing control subelement triggers the electricity when being less than the threshold value for the variance yields in the kinematic parameter
Sub- equipment carries out focusing and picture collection to the target two dimensional code, carries out two dimensional code identification to collected picture, completes solution
Code.
It can be seen via above technical scheme that a kind of decoding control method and device of two dimensional code provided by the present application, lead to
It crosses and kinematic parameter of the electronic equipment in certain time is long is monitored, and then whether monitor the electronic equipment relative to target
Two dimensional code remains static, and only meets the condition i.e. electronic equipment in the kinematic parameter of the electronic equipment and is in opposing stationary
When state, triggering electronic equipment is just gone to be decoded operation to target two dimensional code, avoids and shaken in the prior art because equipment is in
Dynamic state needs the camera lens of equipment to recycle to carry out focusing and picture collection the case where causing electric energy and memory consumption, only in equipment
In it is opposing stationary when can just trigger equipment and be decoded operation, i.e., focusing and picture collection and then identify two dimensional code, as a result, this
Application can significantly reduce the focusing and picture collection operation of equipment, reduce power consumption and memory caused in decoding process
Consumption.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to required use in embodiment description
Attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only embodiments herein, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to the attached drawing of offer other attached
Figure.
Fig. 1 is a kind of flow chart of the decoding control method embodiment one of two dimensional code provided by the present application;
Fig. 2 is a kind of partial process view of the decoding control method embodiment two of two dimensional code provided by the present application;
Fig. 3 is another part flow chart of the embodiment of the present application two;
Fig. 4 is a kind of flow chart of the decoding control method embodiment three of two dimensional code provided by the present application;
Fig. 5 is a kind of structural schematic diagram of the decoding controller example IV of two dimensional code provided by the present application;
Fig. 6 is a kind of partial structure diagram of the decoding controller embodiment five of two dimensional code provided by the present application;
Fig. 7 is another part structural schematic diagram of the embodiment of the present application five;
Fig. 8 is a kind of structural schematic diagram of the decoding controller embodiment six of two dimensional code provided by the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
It is a kind of implementation flow chart of the decoding control method embodiment one of two dimensional code provided by the present application with reference to Fig. 1,
In, the method can be adapted for being able to carry out in the electronic equipment of two-dimensional code scanning and identification, such as there is two dimensional code to identify function
The terminals such as mobile phone, the pad of energy APP.On the electronic equipment, it is usually provided with camera etc. and is able to carry out picture collection or obtains
The device taken, to realize that scanning and the picture of two dimensional code obtain.
In the present embodiment, the method may include following steps:
Step 101: monitoring kinematic parameter of the electronic equipment in preset time is long.
Wherein, the kinematic parameter characterizes whether the electronic equipment remains static relative to target two dimensional code.And
The preset time length can be configured according to user demand, for example, being set as 1s, that is to say, that in the present embodiment in real time
The electronic equipment is monitored in interior motion state per second, and then get characterize the electronic equipment whether be in
The kinematic parameter of the relative static conditions of target two dimensional code.
For example, can be by equipment such as acceleration transducer and/or angle displacement sensors to monitor in the present embodiment
Kinematic parameter of the electronic equipment in the preset time is long is stated, to characterize the electronic equipment whether in the preset time is long
Relative static conditions are in relative to the target two dimensional code.
It should be noted that the target two dimensional code may be on the opposite static position in ground, such as television screen
The two dimensional code of lower section also may be on the object of opposite ground motion, such as be carried on the user being kept in motion
Shown two dimensional code, etc., is to be in the present embodiment to the relatively described target two dimensional code of the electronic equipment on mobile phone terminal
No remain static is monitored, and then obtains the kinematic parameter of the electronic equipment.
Step 102: when the kinematic parameter meets preset opposing stationary control condition, triggering the electronic equipment pair
The target two dimensional code is decoded.
That is, in the present embodiment by the kinematic parameter whether meet preset opposing stationary control condition into
Row judgement, i.e., judge whether the electronic equipment remains static relative to the target two dimensional code, and then only
When the relatively described target two dimensional code of the electronic equipment remains static, the present embodiment can just trigger the electronic equipment pair
The target two dimensional code is decoded, that is, after carrying out focusing and picture collection, is scanned and recognized to the two dimensional code in picture,
Complete decoding.
It can be seen via above technical scheme that a kind of decoding control method embodiment one of two dimensional code provided by the present application,
By being monitored to kinematic parameter of the electronic equipment in certain time is long, and then whether the electronic equipment is monitored relative to mesh
Mark two dimensional code remains static, and only meets the condition i.e. electronic equipment in the kinematic parameter of the electronic equipment and is in relatively quiet
Only when state, just goes triggering electronic equipment to be decoded operation to target two dimensional code, avoid in the prior art because equipment is in
Vibrating state needs the camera lens of equipment to recycle to carry out focusing and picture collection the case where causing electric energy and memory consumption, only setting
It is decoded operation for can just trigger equipment when being in opposing stationary, i.e. focusing and picture collection identifies two dimensional code in turn, as a result,
The present embodiment can significantly reduce the focusing and picture collection operation of equipment, reduce power consumption caused in decoding process and
Memory consumption, so avoid terminal device because power consumption is excessive overheat the case where, also avoid memory consumption excessive and store
The case where insufficient space.
It is step 101 described in a kind of decoding control method embodiment two of two dimensional code provided by the present application with reference to Fig. 2
Implementation flow chart, wherein the step 101 can be realized by following steps:
Step 111: monitoring level angle parameter and vertical angle parameter of the electronic equipment in preset time is long.
Specifically, can be monitored by angle displacement sensor in the present embodiment in the electronic equipment described default
Level angle parameter in time is long can monitor the electronic equipment in the preset time is long by gravity sensor
Vertical angle parameter.
Step 112: being based on the level angle parameter and vertical angle parameter, obtain the movement ginseng of the electronic equipment
Number.
That is, two angles ginseng in the present embodiment based on the electronic equipment in the horizontal direction and the vertical direction
Number, to obtain the kinematic parameter of the electronic equipment, to characterize the position of the electronic equipment in the horizontal direction and vertical direction
On whether changed relative to the target two dimensional code, and then do not sent out in the preset time is long in the electronic equipment
When raw change in location is that the relatively described target two dimensional code is static, it can just trigger the electronic equipment and be decoded operation.
Specifically, as shown in Figure 3, the step 111 can be realized by following steps:
Step 301: with preset data sampling frequency, it is horizontal to acquire multiple groups of the electronic equipment in preset time is long
Angle parameter and multiple groups vertical angle parameter.
Correspondingly, the step 112 can be realized by following steps:
Step 302: obtaining the variance yields of the multiple groups level angle parameter and the multiple groups vertical angle parameter as institute
State the kinematic parameter of electronic equipment.
Wherein, the data sampling frequency can be set according to accuracy required for user, for example, being set as 20
Secondary/second, that is to say, that in the preset time long 1 second, acquire respectively 20 electronic equipments level angle parameter and
Vertical angle parameter, and then form two arrays for separately including 20 groups of supplemental characteristics, the i.e. level angle containing 20 data
Parameter array is the vertical angle parameter array containing 20 data.
Specifically, can first seek 20 numbers in two arrays respectively in the present embodiment after collecting two arrays
According to average value, then after subtracting corresponding mean value with each data, seek its quadratic sum, so by the quadratic sum divided by it
Value, obtains the variance yields of the array, obtains the variance yields of the multiple groups level angle parameter and the multiple groups vertical angle parameter
Kinematic parameter as the electronic equipment.
In the present embodiment, since the target two dimensional code may be at opposing stationary or relative motion state, this
It, can be by judging the kinematic parameter of the electronic equipment in embodiment after the kinematic parameter for getting the electronic equipment
The kinematic parameter current with the target two dimensional code is compared, to judge whether the kinematic parameter of the electronic equipment meets
Preset opposing stationary control condition, and then can just trigger when meeting the decoding operate that the electronic equipment carries out two dimensional code.
By taking the target two dimensional code is in the opposite static state in ground as an example, the kinematic parameter is the electronic equipment
Relative to the target two dimensional code i.e. relative to the level angle parameter on ground and the variance yields of vertical angle parameter, the present embodiment
In can be by judging whether the variance yields in the kinematic parameter is less than preset threshold value, i.e., the described opposing stationary control
Condition processed can be with are as follows: the variance yields in the kinematic parameter is less than preset threshold value.
Correspondingly, being a kind of realization stream of the decoding control method embodiment three of two dimensional code provided by the present application with reference to Fig. 4
Cheng Tu, wherein the step 102 can be realized by following steps:
Step 121: when the variance yields in the kinematic parameter is less than the threshold value, triggering the electronic equipment to described
Target two dimensional code carries out focusing and picture collection, carries out two dimensional code identification to collected picture, completes decoding.
That is, in the electronic equipment, the variance yields of 20 data collected is less than in 1 second in the present embodiment
When the threshold value, it can just trigger the electronic equipment and be decoded, is i.e. focusing and picture collection, otherwise will continue to the electronics
Whether equipment is in that the relatively described target two dimensional code is static to be monitored, thus avoid circulation focus and picture collection caused by
Electric energy and memory consumption.
Similarly, by taking the target two dimensional code is in the state of opposite ground motion as an example, the kinematic parameter is the electricity
Sub- equipment can be with relative to the level angle parameter of the target two dimensional code and the variance yields of vertical angle parameter, in the present embodiment
By judging whether the variance yields is less than preset threshold value, and then judge the electronic equipment whether relative to the target two
Dimension code remains static, for example, the present embodiment adopts the electronic equipment described first relative to the target two dimensional code 20 in 1 second
The variance yields of secondary data collected can just trigger the electronic equipment and be solved when the variance yields is less than the threshold value
Code, i.e. focusing and picture collection, otherwise will continue to whether to be in the electronic equipment the relatively described target two dimensional code it is static into
Thus row monitoring avoids electric energy and memory consumption caused by circulation focusing and picture collection.
It is a kind of structural schematic diagram of the decoding controller example IV of two dimensional code provided by the present application with reference to Fig. 5,
In, described device can be adapted for being able to carry out in the electronic equipment of two-dimensional code scanning and identification, such as there is two dimensional code to identify function
The terminals such as mobile phone, the pad of energy APP.On the electronic equipment, it is usually provided with camera etc. and is able to carry out picture collection or obtains
The device taken, to realize that scanning and the picture of two dimensional code obtain.
In the present embodiment, the apparatus may include with flowering structure:
Parameter monitoring unit 501, for monitoring kinematic parameter of the electronic equipment in preset time is long.
Wherein, the kinematic parameter characterizes whether the electronic equipment remains static relative to target two dimensional code.And
The preset time length can be configured according to user demand, for example, being set as 1s, that is to say, that in the present embodiment in real time
The electronic equipment is monitored in interior motion state per second, and then get characterize the electronic equipment whether be in
The kinematic parameter of the relative static conditions of target two dimensional code.
For example, can be by equipment such as acceleration transducer and/or angle displacement sensors to monitor in the present embodiment
Kinematic parameter of the electronic equipment in the preset time is long is stated, to characterize the electronic equipment whether in the preset time is long
Relative static conditions are in relative to the target two dimensional code.
It should be noted that the target two dimensional code may be on the opposite static position in ground, such as television screen
The two dimensional code of lower section also may be on the object of opposite ground motion, such as be carried on the user being kept in motion
Shown two dimensional code, etc., is to be in the present embodiment to the relatively described target two dimensional code of the electronic equipment on mobile phone terminal
No remain static is monitored, and then obtains the kinematic parameter of the electronic equipment.
Trigger unit 502 is decrypted, for triggering institute when the kinematic parameter meets preset opposing stationary control condition
Electronic equipment is stated to be decoded the target two dimensional code.
That is, in the present embodiment by the kinematic parameter whether meet preset opposing stationary control condition into
Row judgement, i.e., judge whether the electronic equipment remains static relative to the target two dimensional code, and then only
When the relatively described target two dimensional code of the electronic equipment remains static, the present embodiment can just trigger the electronic equipment pair
The target two dimensional code is decoded, that is, after carrying out focusing and picture collection, is scanned and recognized to the two dimensional code in picture,
Complete decoding.
It can be seen via above technical scheme that a kind of decoding control method embodiment one of two dimensional code provided by the present application,
By being monitored to kinematic parameter of the electronic equipment in certain time is long, and then whether the electronic equipment is monitored relative to mesh
Mark two dimensional code remains static, and only meets the condition i.e. electronic equipment in the kinematic parameter of the electronic equipment and is in relatively quiet
Only when state, just goes triggering electronic equipment to be decoded operation to target two dimensional code, avoid in the prior art because equipment is in
Vibrating state needs the camera lens of equipment to recycle to carry out focusing and picture collection the case where causing electric energy and memory consumption, only setting
It is decoded operation for can just trigger equipment when being in opposing stationary, i.e. focusing and picture collection identifies two dimensional code in turn, as a result,
The present embodiment can significantly reduce the focusing and picture collection operation of equipment, reduce power consumption caused in decoding process and
Memory consumption, so avoid terminal device because power consumption is excessive overheat the case where, also avoid memory consumption excessive and store
The case where insufficient space.
It is parameter monitoring described in a kind of decoding controller embodiment five of two dimensional code provided by the present application with reference to Fig. 6
The structural schematic diagram of unit 501, wherein the parameter monitoring unit 501 may include with flowering structure:
Horizontal vertical monitors subelement 511, for monitoring level angle ginseng of the electronic equipment in preset time is long
Several and vertical angle parameter.
Specifically, can be monitored by angle displacement sensor in the present embodiment in the electronic equipment described default
Level angle parameter in time is long can monitor the electronic equipment in the preset time is long by gravity sensor
Vertical angle parameter.
Kinematic parameter obtains subelement 512, for being based on the level angle parameter and vertical angle parameter, described in acquisition
The kinematic parameter of electronic equipment.
That is, two angles ginseng in the present embodiment based on the electronic equipment in the horizontal direction and the vertical direction
Number, to obtain the kinematic parameter of the electronic equipment, to characterize the position of the electronic equipment in the horizontal direction and vertical direction
On whether changed relative to the target two dimensional code, and then do not sent out in the preset time is long in the electronic equipment
When raw change in location is that the relatively described target two dimensional code is static, it can just trigger the electronic equipment and be decoded operation.
Specifically, as shown in Figure 7, the horizontal vertical monitoring subelement 511 can be by being realized with flowering structure:
Parameter sampling module 701, for acquiring the electronic equipment when described default with preset data acquiring frequency
Between it is long in multiple groups level angle parameter and multiple groups vertical angle parameter.
Correspondingly, the kinematic parameter acquisition subelement 512 can be by being realized with flowering structure:
Variance obtains module 702, for obtaining the multiple groups level angle parameter and the multiple groups vertical angle parameter
Kinematic parameter of the variance yields as the electronic equipment.
Wherein, the data sampling frequency can be set according to accuracy required for user, for example, being set as 20
Secondary/second, that is to say, that in the preset time long 1 second, acquire respectively 20 electronic equipments level angle parameter and
Vertical angle parameter, and then form two arrays for separately including 20 groups of supplemental characteristics, the i.e. level angle containing 20 data
Parameter array is the vertical angle parameter array containing 20 data.
Specifically, can first seek 20 numbers in two arrays respectively in the present embodiment after collecting two arrays
According to average value, then after subtracting corresponding mean value with each data, seek its quadratic sum, so by the quadratic sum divided by it
Value, obtains the variance yields of the array, obtains the variance yields of the multiple groups level angle parameter and the multiple groups vertical angle parameter
Kinematic parameter as the electronic equipment.
In the present embodiment, since the target two dimensional code may be at opposing stationary or relative motion state, this
It, can be by judging the kinematic parameter of the electronic equipment in embodiment after the kinematic parameter for getting the electronic equipment
The kinematic parameter current with the target two dimensional code is compared, to judge whether the kinematic parameter of the electronic equipment meets
Preset opposing stationary control condition, and then can just trigger when meeting the decoding operate that the electronic equipment carries out two dimensional code.
By taking the target two dimensional code is in the opposite static state in ground as an example, the kinematic parameter is the electronic equipment
Relative to the target two dimensional code i.e. relative to the level angle parameter on ground and the variance yields of vertical angle parameter, the present embodiment
In can be by judging whether the variance yields in the kinematic parameter is less than preset threshold value, i.e., the described opposing stationary control
Condition processed can be with are as follows: the variance yields in the kinematic parameter is less than preset threshold value.
Correspondingly, being that a kind of structure of the decoding controller embodiment six of two dimensional code provided by the present application is shown with reference to Fig. 8
It is intended to, wherein the decoding trigger unit 502 can be by being realized with flowering structure:
Focusing control subelement 521, when being less than the threshold value for the variance yields in the kinematic parameter, described in triggering
Electronic equipment carries out focusing and picture collection to the target two dimensional code, carries out two dimensional code identification to collected picture, completes
Decoding.
That is, in the electronic equipment, the variance yields of 20 data collected is less than in 1 second in the present embodiment
When the threshold value, it can just trigger the electronic equipment and be decoded, is i.e. focusing and picture collection, otherwise will continue to the electronics
Whether equipment is in that the relatively described target two dimensional code is static to be monitored, thus avoid circulation focus and picture collection caused by
Electric energy and memory consumption.
Similarly, by taking the target two dimensional code is in the state of opposite ground motion as an example, the kinematic parameter is the electricity
Sub- equipment can be with relative to the level angle parameter of the target two dimensional code and the variance yields of vertical angle parameter, in the present embodiment
By judging whether the variance yields is less than preset threshold value, and then judge the electronic equipment whether relative to the target two
Dimension code remains static, for example, the present embodiment adopts the electronic equipment described first relative to the target two dimensional code 20 in 1 second
The variance yields of secondary data collected can just trigger the electronic equipment and be solved when the variance yields is less than the threshold value
Code, i.e. focusing and picture collection, otherwise will continue to whether to be in the electronic equipment the relatively described target two dimensional code it is static into
Thus row monitoring avoids electric energy and memory consumption caused by circulation focusing and picture collection.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (4)
1. a kind of decoding control method of two dimensional code is applied to electronic equipment, which is characterized in that the described method includes:
Kinematic parameter of the electronic equipment in preset time is long is monitored, it is opposite that the kinematic parameter characterizes the electronic equipment
Whether remain static in target two dimensional code, target two dimensional code is on the object of opposite ground motion;
When the kinematic parameter meets preset opposing stationary control condition, the electronic equipment is triggered to the target two dimension
Code carries out focusing and picture collection to identify the target two dimensional code;
Level angle parameter and vertical angle parameter of the monitoring electronic equipment in preset time is long, comprising:
With preset data acquiring frequency, multiple groups level angle parameter of the electronic equipment in preset time is long and more is acquired
Group vertical angle parameter;
Kinematic parameter of the monitoring electronic equipment in preset time is long, comprising:
Monitor level angle parameter and vertical angle parameter of the electronic equipment in preset time is long;
The variance yields of the multiple groups level angle parameter and the multiple groups vertical angle parameter is obtained as the electronic equipment
Kinematic parameter.
2. the method according to claim 1, wherein the opposing stationary control condition includes: the movement ginseng
Variance yields in number is less than preset threshold value;
Correspondingly, triggering the electronic equipment to described when the kinematic parameter meets preset opposing stationary control condition
Target two dimensional code is decoded, comprising:
When variance yields in the kinematic parameter is less than the threshold value, trigger the electronic equipment to the target two dimensional code into
Row focusing and picture collection carry out two dimensional code identification to collected picture, complete decoding.
3. a kind of decoding controller of two dimensional code, it is applied to electronic equipment, which is characterized in that described device includes:
Parameter monitoring unit, for monitoring kinematic parameter of the electronic equipment in preset time is long, the kinematic parameter table
Levy whether the electronic equipment remains static relative to target two dimensional code, target two dimensional code is in the object of opposite ground motion
On body;
Trigger unit is decrypted, for triggering the electronics when the kinematic parameter meets preset opposing stationary control condition
Equipment is decoded the target two dimensional code;
The electronic equipment is decoded the target two dimensional code, comprising:
The electronic equipment focuses to the target two dimensional code and picture collection is to identify the target two dimensional code;
The parameter monitoring unit includes:
Horizontal vertical monitors subelement
Parameter sampling module, for acquiring the electronic equipment in the preset time is long with preset data acquiring frequency
Multiple groups level angle parameter and multiple groups vertical angle movement parameter parameter obtain subelement, for based on the level angle join
Several and vertical angle parameter, obtains the kinematic parameter of the electronic equipment;
The kinematic parameter obtains subelement
Variance obtains module, and the variance yields for obtaining the multiple groups level angle parameter and the multiple groups vertical angle parameter is made
For the kinematic parameter of the electronic equipment.
4. device according to claim 3, which is characterized in that the opposing stationary control condition includes: the movement ginseng
Variance yields in number is less than preset threshold value;
Correspondingly, the decryption trigger unit includes:
Focusing control subelement triggers the electronics and sets when being less than the threshold value for the variance yields in the kinematic parameter
It is standby that focusing and picture collection are carried out to the target two dimensional code, two dimensional code identification is carried out to collected picture, completes decoding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510590433.1A CN105205429B (en) | 2015-09-16 | 2015-09-16 | A kind of decoding control method and device of two dimensional code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510590433.1A CN105205429B (en) | 2015-09-16 | 2015-09-16 | A kind of decoding control method and device of two dimensional code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105205429A CN105205429A (en) | 2015-12-30 |
CN105205429B true CN105205429B (en) | 2019-01-25 |
Family
ID=54953102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510590433.1A Active CN105205429B (en) | 2015-09-16 | 2015-09-16 | A kind of decoding control method and device of two dimensional code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105205429B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106326491A (en) * | 2016-09-14 | 2017-01-11 | 广东小天才科技有限公司 | Efficient topic seeking method and device |
CN107870666B (en) | 2016-09-28 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Terminal control method and terminal |
CN106530531B (en) * | 2016-12-14 | 2018-12-18 | 新开普电子股份有限公司 | Barcode scanning payment terminal |
CN106778437B (en) * | 2016-12-14 | 2019-04-26 | 新开普电子股份有限公司 | Barcode scanning pays the image acquisition units of terminal |
CN106779667A (en) * | 2016-12-14 | 2017-05-31 | 新开普电子股份有限公司 | Bar code decoding processing unit |
CN108833786B (en) * | 2018-06-29 | 2022-04-22 | 联想(北京)有限公司 | Mode control method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201804338U (en) * | 2010-06-25 | 2011-04-20 | 广州市旭龙条码设备有限公司 | Barcode collection terminal |
CN103581528A (en) * | 2012-07-19 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method for preprocessing in photographing process of mobile terminal and mobile terminal |
CN103632124A (en) * | 2013-12-16 | 2014-03-12 | 百度在线网络技术(北京)有限公司 | Barcode recognition method and apparatus |
EP2713607A1 (en) * | 2012-01-16 | 2014-04-02 | Huawei Device Co., Ltd. | Method and device for photographic processing and mobile apparatus |
CN103955670A (en) * | 2014-04-22 | 2014-07-30 | 广州宽度信息技术有限公司 | Method for recognizing and collecting Z-codes dynamically |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101872105A (en) * | 2010-06-02 | 2010-10-27 | 华为终端有限公司 | Method and device for photographing |
CN204631884U (en) * | 2015-05-12 | 2015-09-09 | 北京农业信息技术研究中心 | A kind of bar code scan equipment being applicable to mobile object |
-
2015
- 2015-09-16 CN CN201510590433.1A patent/CN105205429B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201804338U (en) * | 2010-06-25 | 2011-04-20 | 广州市旭龙条码设备有限公司 | Barcode collection terminal |
EP2713607A1 (en) * | 2012-01-16 | 2014-04-02 | Huawei Device Co., Ltd. | Method and device for photographic processing and mobile apparatus |
CN103581528A (en) * | 2012-07-19 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method for preprocessing in photographing process of mobile terminal and mobile terminal |
CN103632124A (en) * | 2013-12-16 | 2014-03-12 | 百度在线网络技术(北京)有限公司 | Barcode recognition method and apparatus |
CN103955670A (en) * | 2014-04-22 | 2014-07-30 | 广州宽度信息技术有限公司 | Method for recognizing and collecting Z-codes dynamically |
Also Published As
Publication number | Publication date |
---|---|
CN105205429A (en) | 2015-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105205429B (en) | A kind of decoding control method and device of two dimensional code | |
CN106716989B (en) | Imaging device, imaging method, and program | |
AU2014290798B2 (en) | Wireless video camera | |
AU2013276984B2 (en) | Display apparatus and method for video calling thereof | |
CN104331149B (en) | A kind of control method, device and electronic equipment | |
CN103079036B (en) | A kind of photographic camera and method thereof entering screening-mode fast | |
US20170046866A1 (en) | Method and device for presenting operating states | |
CN105812723A (en) | Intelligent camera monitoring method and device | |
CN104767888A (en) | Screen brightness adjusting method and device | |
CN102932592A (en) | Shooting method, device and terminal | |
WO2016087060A1 (en) | Sensor configuration switching for adaptation of video capturing frame rate | |
US9743048B2 (en) | Imaging apparatus, camera unit, display unit, image-taking method, display method and computer readable recording medium recording program thereon | |
CN106031154A (en) | Method for processing image and electronic apparatus therefor | |
CN104469121A (en) | Information processing method and electronic equipment | |
CN103442177A (en) | PTZ video camera control system and method based on gesture identification | |
CN105763813A (en) | Photographing method, device and intelligent terminal | |
CN110604579A (en) | Data acquisition method, device, terminal and storage medium | |
US20170208604A1 (en) | Smart home control system and method | |
CN104052911A (en) | Information processing method and electronic device | |
CN104270535A (en) | Method, device and system for regulating and controlling camera shooting and picture recording power consumption | |
CN105550689B (en) | information processing method, the first electronic equipment and the second electronic equipment | |
CN105376524A (en) | Fuzzy detection method, monitoring device and monitoring system for image picture | |
CN104244053A (en) | Output control method and electronic device | |
CN109036332A (en) | Intelligent terminal and its adjusting method of screen intensity, the device with store function | |
CN104378576B (en) | Information processing method and electronic equipment |
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 |