Summary of the invention
The invention provides a kind of method that automatically wireless terminal is operated restriction and wireless terminal, to solve how to realize when being not prohibited by child and using wireless terminal, the technical problem that child resistant wireless terminal is limited。
For solving above-mentioned technical problem, the invention provides a kind of method that wireless terminal is operated restriction automatically, described method includes:
The operation of selectional restriction;
When detecting that the operation to wireless terminal meets pre-conditioned, calculate the head circumference of head portrait in camera lens by the front-facing camera of wireless terminal and proximity transducer;
If the head circumference calculated belongs to head circumference of child, then according to the restriction operation selected, the operation of described wireless terminal is limited。
Alternatively, described pre-conditioned one or more of is included:
The finger that the operation time of wireless terminal exceedes threshold value, touch wireless terminal screen is unlocked operation less than threshold value with to wireless terminal under resting state。
Alternatively, described front-facing camera by wireless terminal and proximity transducer calculate the head circumference of head portrait in camera lens, including:
After capturing head portrait by front-facing camera, the length and width pixel value of head portrait in the camera lens of sensor record in acquisition front-facing camera, and the distance of face distance front-facing camera is measured by being arranged on the proximity transducer at front-facing camera place;
The length and width pixel value of head portrait, the actual distance of face distance front-facing camera measured in described camera lens are compared with the data base value of storage, the actual (tube) length width values of face can be obtained;
Circumference is calculated for diameter, the head circumference that the circumference of gained is in camera lens head portrait with the developed width of calculated face。
Alternatively, the operation of described restriction includes:
Web browsing operations and/or e-bank's operation。
For solving above-mentioned technical problem, the invention provides a kind of wireless terminal being automatically operated restriction, described wireless terminal includes restriction operation and selects module, restriction operation executing module, wherein:
Restriction operation selects module, for the operation of selectional restriction;
Restriction operation executing module, for detecting when the operation to wireless terminal meets pre-conditioned, calculates the head circumference of head portrait in camera lens by the front-facing camera of wireless terminal and proximity transducer;If the head circumference calculated belongs to head circumference of child, then according to the restriction operation selected, the operation of described wireless terminal is limited。
Alternatively, pre-conditioned one or more of is included:
The finger that the operation time of wireless terminal exceedes threshold value, touch wireless terminal screen is unlocked operation less than threshold value with to wireless terminal under resting state。
Alternatively, limit operation executing module, for calculating the head circumference of head portrait in camera lens by the front-facing camera of wireless terminal and proximity transducer, including:
After capturing head portrait by front-facing camera, the length and width pixel value of head portrait in the camera lens of sensor record in acquisition front-facing camera, and the distance of face distance front-facing camera is measured by being arranged on the proximity transducer at front-facing camera place;
The length and width pixel value of head portrait, the actual distance of face distance front-facing camera measured in described camera lens are compared with the data base value of storage, the actual (tube) length width values of face can be obtained;
Circumference is calculated for diameter, the head circumference that the circumference of gained is in camera lens head portrait with the developed width of calculated face。
Alternatively, restriction operation selects module, for the operation of selectional restriction, including:
Select web browsing operations and/or e-bank's operation as the operation of restriction。
Technique scheme is by judging in photographic head, whether the portrait head circumference of record is head circumference of child, and then child resistant wireless terminal is limited, do not need the head of a family and forbid that child uses wireless terminal, even when child use wireless terminal and the head of a family not child at one's side time, also can automatically the operation of child be limited。
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with accompanying drawing, embodiments of the invention are described in detail。It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually。
Fig. 1 is the automatic method flow diagram that wireless terminal is operated restriction of the embodiment of the present invention。
The operation of S101 selectional restriction;
Alternatively, the restriction operation of selection includes web browsing operations and/or e-bank's operation;
S102 detection is to whether the operation of wireless terminal meets pre-conditioned, if meeting pre-conditioned, performs step S103;If being unsatisfactory for pre-conditioned, continue executing with step S102;
Described pre-conditioned include one or more of:
The finger that the operation time of wireless terminal exceedes threshold value, touch wireless terminal screen is unlocked operation less than threshold value with to wireless terminal under resting state;
Alternatively, judge whether the finger touching wireless terminal screen includes less than the method for threshold value: calculate the number of grid point on the screen that the finger being pressed against on wireless terminal screen covers, if the number of grid point is less than preset value on the screen covered, then can determine whether that the finger touching wireless terminal screen is less than threshold value;Wherein, the preset value of described grid point can be arranged as required to;
S103 calculates the head circumference of head portrait in camera lens by front-facing camera and the proximity transducer of wireless terminal;
Alternatively, the head circumference method of head portrait in camera lens that calculates includes:
After capturing head portrait by front-facing camera, the length and width pixel value of head portrait in the camera lens of sensor record in acquisition front-facing camera, and the distance of face distance front-facing camera is measured by being arranged on the proximity transducer at front-facing camera place;
The length and width pixel value of head portrait, the actual distance of face distance front-facing camera measured in described camera lens are compared with the data base value of storage, the actual (tube) length width values of face can be obtained, described data base value be 2x2cm image distance front-facing camera distance h time, the length and width pixel value of image in camera lens;Tentation data reference value is that 2x2cm image is when distance front-facing camera distance h1, in camera lens, the length and width pixel value of image is m1, so when actual face distance front-facing camera distance is for h1, in camera lens, the length and width pixel value of face is m2, and the length and width value of actual face is (2 × m2)/m1;
Circumference is calculated for diameter, the head circumference that the circumference of gained is in camera lens head portrait with the developed width of calculated face;
Alternatively, described data base value can be written into wireless terminal when wireless terminal dispatches from the factory, and described data base value can obtain in the following manner:
A 2x2cm square is placed before front-facing camera, require that this square can fill up the picture of front-facing camera, calculated the distance of this square distance front-facing camera by proximity transducer, and obtain foursquare length and width pixel value in camera lens by the sensor in front-facing camera。With this distance for starting point, by square with the spacing every 1cm away from front-facing camera, record on each position foursquare length and width pixel value in camera lens, until square being placed on the position apart from described starting point 50cm, a series of squares of record are positioned at the length and width pixel value of diverse location as described data base value;
By the method for above-mentioned acquisition data base value it can be seen that data base is affected by the photosensitive size of camera lens and camera lens pixel, different lens data reference values is different;
S104 judges whether the head circumference calculated belongs to head circumference of child, if belonging to head circumference of child, performs step S105;If being not belonging to head circumference of child, perform step S106;
Alternatively, whether the head circumference that judgement calculates belongs to the method for head circumference of child includes: the standard value of the head circumference calculated to relevant head circumference of child compared, the standard value of described head circumference of child can refer to the head circumference of child of record in Ministry of Public Health " less than 7 years old upgrowth and development of children reference standard of China ", WHO children growth standard (2006), if described in the head circumference that calculates in the standard value range of head circumference of child, then the head circumference calculated belongs to head circumference of child;
Alternatively, if upgrowth and development of children is too fast, the size of head circumference of child is likely to bigger than standard value, in order to make judged result and actual value more press close to, can add 1 as the actual age of people belonging to the head circumference calculated using the age of the child that the standard value passed through with head circumference of child is determined;
The operation of described wireless terminal is limited by S105 according to the operation of selectional restriction;
S106 flow process terminates。
Fig. 2 is the wireless terminal comprising modules figure being automatically operated restriction of the embodiment of the present invention。
This wireless terminal includes: restriction operation selects module, restriction operation executing module, wherein,
Restriction operation selects module, for the operation of selectional restriction;
Alternatively, described restriction operation selects module to select web browsing operations and/or e-bank's operation as the operation of restriction;
Restriction operation executing module, for detecting when the operation to wireless terminal meets pre-conditioned, calculates the head circumference of head portrait in camera lens by the front-facing camera of wireless terminal and proximity transducer;If the head circumference calculated belongs to head circumference of child, then according to the operation of selectional restriction, the operation of described wireless terminal is limited;
Described pre-conditioned include one or more of:
The finger that the operation time of wireless terminal exceedes threshold value, touch wireless terminal screen is unlocked operation less than threshold value with to wireless terminal under resting state;
Alternatively, restriction operation executing module detects the finger touching wireless terminal screen in the following manner less than threshold value: calculate the number of grid point on the screen that the finger being pressed against on wireless terminal screen covers, if the number of grid point is less than preset value on the screen covered, then can determine whether that the finger touching wireless terminal screen is less than threshold value;Wherein, the preset value of described grid point can be arranged as required to;
Alternatively, limit operation executing module, for calculating the head circumference of head portrait in camera lens by the front-facing camera of wireless terminal and proximity transducer, including:
After capturing head portrait by front-facing camera, the length and width pixel value of head portrait in the camera lens of sensor record in acquisition front-facing camera, and the distance of face distance front-facing camera is measured by being arranged on the proximity transducer at front-facing camera place;The length and width pixel value of head portrait, the actual distance of face distance front-facing camera measured in described camera lens are compared with the data base value of storage, the actual (tube) length width values of face can be obtained, described data base value be 2x2cm image distance front-facing camera distance h time, the length and width pixel value of image in camera lens;Tentation data reference value is that 2x2cm image is when distance front-facing camera distance h1, in camera lens, the length and width pixel value of image is m1, so when actual face distance front-facing camera distance is for h1, in camera lens, the length and width pixel value of face is m2, and the length and width value of actual face is (2 × m2)/m1;Circumference is calculated for diameter, the head circumference that the circumference of gained is in camera lens head portrait with the developed width of calculated face。
Alternatively, described data base value can be written into wireless terminal when wireless terminal dispatches from the factory, and described data base value can obtain in the following manner:
A 2x2cm square is placed before front-facing camera, require that this square can fill up the picture of front-facing camera, calculated the distance of this square distance front-facing camera by proximity transducer, and obtain foursquare length and width pixel value in camera lens by the sensor in front-facing camera。With this distance for starting point, by square with the spacing every 1cm away from front-facing camera, record on each position foursquare length and width pixel value in camera lens, until square being placed on the position apart from described starting point 50cm, a series of squares of record are positioned at the length and width pixel value of diverse location as described data base value。
Alternatively, restriction operation executing module judges whether the head circumference calculated belongs to head circumference of child in the following manner: the standard value of the head circumference calculated to relevant head circumference of child compared, the standard value of described head circumference of child can refer to the head circumference of child of record in Ministry of Public Health " less than 7 years old upgrowth and development of children reference standard of China ", WHO children growth standard (2006), if described in the head circumference that calculates in the standard value range of head circumference of child, then the head circumference calculated belongs to head circumference of child;
If upgrowth and development of children is too fast, the size of head circumference of child is likely to bigger than standard value, in order to make judged result and actual value more press close to, the age of the child that the standard value passed through with head circumference of child is determined also can be added 1 as the actual age of people belonging to the head circumference calculated by restriction operation executing module。
One of ordinary skill in the art will appreciate that all or part of step in said method can be carried out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, such as read only memory, disk or CD etc.。Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuit to realize, and correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes。The present invention is not restricted to the combination of the hardware and software of any particular form。
It should be noted that; the present invention also can have other various embodiments; when without departing substantially from present invention spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and deformation according to the present invention, but these change accordingly and deformation all should belong to the scope of the claims appended by the present invention。