Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, Fig. 1 is the first embodiment process flow diagram of the method for a kind of screen control of proposing of the present invention, the embodiment of the present invention is by obtaining the view data of function screen, determine user's screen operator pattern, according to determining that the screen operator pattern obtaining arranges the screen operator interface model of terminal.The embodiment of the present invention at least comprises as shown in the figure:
Step S110, obtains the view data of function screen, and the view data of described function screen comprises the view data of left-handed operation screen and the view data of right-hand operated screen.In concrete reality, can in mobile terminal system, clap software by installation infrared camera prison, when needs switch screen, open and move this application software, take in real time the hand image of user's function screen.When user's paddling once or while clicking the application menu of a screen display interface, infrared camera is just taken user's paddling or clicked the hand shadow of screen, is equivalent to take a hand and is vertically mapped to the image on function screen.For example, when user clicks the digital unlock button on screen operator interface, haptic feedback system on screen feeds back to infrared camera prison by finger contact induced signal and claps software, the now infrared camera action of handling it at once, finger image to user's button click is once taken, could release, the finger image of 5 user's button clicks of infrared camera prison bat software shooting if user need to press No. 5 buttons.
After infrared camera prison photographed the hand shadow information of user's function screen each time, by the view data of this hand shadow information generating run screen, the view data of this function screen may be the view data of left-handed operation screen, is likely also the view data of right-hand operated screen.For example, in the situation that user uses respectively the right hand and left-handed operation screen, with the right hand, click 1 number key of digital unlock button, now take the right hand and click the hand image of 1 number key, with left hand, click again 2 number keys of digital unlock button, now take left hand and click the hand image of 2 number keys.And the hand image of respectively the described right hand being clicked to 1 number key is generated as the view data of right-hand operated screen, the hand image that described left hand is clicked to 2 number keys is generated as the view data of left-handed operation screen.
Step S120, according to the view data of the described function screen getting, determines screen operator pattern.In specific implementation, after step S110 gets the view data of function screen, can be first by the view data of described function screen, the hand image that simulates user's function screen in the picture plane of infrared camera prison bat software, the finger image of this simulation can be called image simulation track.Referring to Fig. 2, Fig. 2 is the image simulation track of clapping the right-hand operated screen simulating in the picture plane of software at infrared camera prison.Then by the compass applications of establishing in this software, judge the direction of the image simulation track of the user's function screen simulating in picture plane.
The described method that judges image simulation track is: if the summit, upper right of described image simulation track and described screen is less than the first predetermined threshold value to cornerwise acute angle angle on summit, lower-left, the direction of described function screen is the direction of left-handed operation screen; If the left upper apex of described image simulation track and described screen is less than the second predetermined threshold value to cornerwise acute angle angle on summit, bottom right, the direction of described function screen is the direction of right-hand operated screen.Wherein, the first predetermined threshold value and the second predetermined threshold value can all be set to 30 °.For example, user clicks respectively 1 number key of digital unlock button with the right hand, clicks again 2 number keys of digital unlock button with left hand.If the left upper apex of image simulation track and screen is less than 30 ° to cornerwise acute angle angle on summit, bottom right, this image simulation track is that the right hand of taking is clicked the hand image of 1 number key; If the summit, upper right of image simulation track and screen is less than 30 ° to cornerwise acute angle angle on summit, lower-left, this image simulation track is that the left hand of taking is clicked the hand image of 2 number keys.After judging the direction of described image simulation track, the directional information of function screen is saved in to direction of operating database.
Optionally, at direction of operating database, the number of times initialization zero clearing of the number of times to left-handed operation screen and right-hand operated screen respectively in advance.After the direction judgement to described image simulation track, if the direction of described function screen is the direction of left-handed operation screen, count the number of times of left-handed operation screen, the number of times of left-handed operation screen adds 1; If the direction of described function screen is the direction of right-hand operated screen, count the number of times of right-hand operated screen, the number of times of right-hand operated screen adds 1.
Further, when determining that the described left-handed operation screen number of times that obtains and right-hand operated screen number of times sum reach predetermined threshold value, just can from database, extract described left-handed operation screen number of times and right-hand operated screen number of times, be submitted to CPU processor.Then, described CPU processor is made comparisons the number of times of the number of times of described left-handed operation screen and described right-hand operated screen; If the number of times of described left-handed operation screen is not less than the number of times of described right-hand operated screen, described screen operator pattern is left-handed operation pattern, if the number of times of described left-handed operation screen is less than the number of times of described right-hand operated screen, described screen operator pattern is right-hand operated pattern.
Step S130, according to determining that the screen operator pattern obtaining arranges screen interface display mode, described screen interface display mode comprises left-handed operation interface model and right-hand operated interface model, and described left-handed operation interface model is contrary with the menu display position left and right of described right-hand operated interface model.Wherein, for user's use habit, described left-handed operation interface model can refer to that the application menu button of left-handed operation that facilitates that in menu button, frequency of utilization is high is positioned at the left side of screen display interface, and described right-hand operated interface model can refer to that the application menu button of right-hand operated that facilitates that in menu button, frequency of utilization is high is positioned at the right of screen display interface.
In specific implementation, when determining that the screen operator pattern obtaining is left-handed operation pattern, and current screen demonstration is right-hand operated interface model, do not mate with described left-handed operation pattern, screen carries out flip horizontal 180 degree switchings, make the application menu button on the left side that is positioned at screen be turned to the right that is positioned at screen, and the application menu button that is positioned at the right is turned to the left side that is positioned at screen, other content for example word, the background image showing for screen interface do not changed position.As shown in Figure 3,screen display state 310 is in right-hand operated interface model, release key mapping is in the right of screen, use right-hand operated unlock button more convenient, and determine that by step S120 the screen operator pattern obtaining is left-handed operation pattern, now user to use left-handed operation unlock button be inconvenient, so screen is switched to right-hand operated interface model from right-hand operated interface model, after switching inscreen display state 320 as shown in the figure.If what current screen showed is left-handed operation interface model, with described left-handed operation pattern match, do not need screen to switch.
Equally, when determining that the screen operator pattern obtaining is right-hand operated pattern, and current screen demonstration is left-handed operation interface model, do not mate with described right-hand operated pattern, screen carries out flip horizontal 180 degree switchings, make the application menu button on the left side that is positioned at screen be turned to the right that is positioned at screen, and the application menu button that is positioned at the right is turned to the left side that is positioned at screen, other content for example word, the background image showing for screen interface do not changed position.If what current screen showed is right-hand operated interface model, with described right-hand operated pattern match, do not need screen to switch.
Please refer to Fig. 4, Fig. 4 is an example structure schematic diagram of the terminal for screen control that proposes of the present invention, as shown in the figure, for the terminal of screen control, at least comprise:data capture unit 410,pattern determining unit 450 andinterface setting unit 460, described terminal also comprises:data processing unit 420,direction determining unit 430 and number oftimes computing unit 440, wherein:
Data capture unit 410, for obtaining the view data of function screen, the view data of described function screen comprises the view data of left-handed operation screen and the view data of right-hand operated screen.Concrete, can in mobile terminal system, clap software by installation infrared camera prison, when needs switch screen, open and move this application software, take in real time the hand image of user's function screen.When user's paddling once or while clicking the application menu of a screen display interface, infrared camera is just taken user's paddling or clicked the hand shadow of screen, is equivalent to take a hand and is vertically mapped to the image on function screen.For example, when user clicks the digital unlock button on screen operator interface, haptic feedback system on screen feeds back to infrared camera prison by finger contact induced signal and claps software, the now infrared camera action of handling it at once, finger image to user's button click is once taken, could release, the finger image of 5 user's button clicks of infrared camera prison bat software shooting if user need to press No. 5 buttons.
Data processing unit 420, is processed into image simulation track data for the view data of described function screen thatdata capture unit 410 is got.Concrete, after infrared camera prison photographed the hand shadow information of user's function screen each time, by the view data of this hand shadow information generating run screen, the view data of this function screen may be the view data of left-handed operation screen, is likely also the view data of right-hand operated screen.For example, in the situation that user uses respectively the right hand and left-handed operation screen, with the right hand, click 1 number key of digital unlock button, now take the right hand and click the hand image of 1 number key, with left hand, click again 2 number keys of digital unlock button, now take left hand and click the hand image of 2 number keys.And the hand image of respectively the described right hand being clicked to 1 number key is generated as the view data of right-hand operated screen, the hand image that described left hand is clicked to 2 number keys is generated as the view data of left-handed operation screen.
Direction determining unit 430, for processing the described image simulation track data obtaining, the direction of decision screen according to data processing unit 420.Afterdata processing unit 420 processing obtain the view data of described function screen, can be first by the view data of described function screen, the hand image that simulates user's function screen in the picture plane of infrared camera prison bat software, the finger image of this simulation can be called image simulation track.Referring to Fig. 2, Fig. 2 is the image simulation track of clapping the right-hand operated screen simulating in the picture plane of software at infrared camera prison.Then by the compass applications of establishing in this software, judge the direction of the hand image of the user's function screen simulating in picture plane.Concrete,direction determining unit 430 also comprises thefirst judgement subelement 531 and thesecond judgement subelement 532, wherein:
First judges subelement 531, if the summit, upper right of described image simulation track and described screen is less than the first predetermined threshold value to cornerwise acute angle angle on summit, lower-left, the direction of described function screen is the direction of left-handed operation screen.Wherein, the first predetermined threshold value can be set to 30 °.
Second judges subelement 532, if the left upper apex of described image simulation track and described screen is less than the second predetermined threshold value to cornerwise acute angle angle on summit, bottom right, the direction of described function screen is the direction of right-hand operated screen.Wherein, the second predetermined threshold value can be set to 30 °.For example, user clicks respectively 1 number key of digital unlock button with the right hand, clicks again 2 number keys of digital unlock button with left hand.If the left upper apex of image simulation track and screen is less than 30 ° to cornerwise acute angle angle on summit, bottom right, this image simulation track is that the right hand of taking is clicked the hand image of 1 number key, if the summit, upper right of image simulation track and screen is less than 30 ° to cornerwise acute angle angle on summit, lower-left, this image simulation track is that the left hand of taking is clicked the hand image of 2 number keys.After judging the direction of described image simulation track, the directional information of function screen is saved in to direction of operating database.
Number oftimes computing unit 440, for the direction of the described function screen judged according todirection determining unit 430, calculates the number of times of described left-handed operation screen or the number of times of described right-hand operated screen.Concrete, at direction of operating database, the number of times initialization zero clearing of the number of times to left-handed operation screen and right-hand operated screen respectively in advance.After the direction judgement to described image simulation track, if the direction of described function screen is the direction of left-handed operation screen, count the number of times of left-handed operation screen, the number of times of left-handed operation screen adds 1; If the direction of described function screen is the direction of right-hand operated screen, count the number of times of right-hand operated screen, the number of times of right-hand operated screen adds 1.
Pattern determining unit 450, for the view data of the described function screen that gets according todata capture unit 410, determines screen operator pattern.Concrete,pattern determining unit 450 also comprises: threshold value is determinedsubelement 651, definite relativelysubelement 652 anddefinite subelement 653, wherein:
Threshold value is determinedsubelement 651, for determining whether the number of times of described left-handed operation screen and the number of times sum of described right-hand operated screen reach predetermined threshold value.When the described left-handed operation screen number of times calculating when number oftimes computing unit 440 and right-hand operated screen number of times reach predetermined threshold value, just can from database, extract described left-handed operation screen number of times and right-hand operated screen number of times, be submitted to CPU processor.
Determine relativelysubelement 652, if obtain the number of times of described left-handed operation screen and the number of times sum of described right-hand operated screen reaches predetermined threshold value, the number of times of the number of times of more described left-handed operation screen and described right-hand operated screen for determining.After the number of times of the number of times of described left-handed operation screen and described right-hand operated screen is submitted to CPU processor, CPU processor is made comparisons the number of times of the number of times of described left-handed operation screen and described right-hand operated screen.
Determinesubelement 653, if be not less than the number of times of described right-hand operated screen for the number of times of described left-handed operation screen, described screen operator pattern is left-handed operation pattern, if the number of times of described left-handed operation screen is less than the number of times of described right-hand operated screen, described screen operator pattern is right-hand operated pattern.
Interface setting unit 460, for determining that according topattern determining unit 450 the screen operator pattern obtaining arranges screen interface display mode, described screen interface display mode comprises left-handed operation interface model and right-hand operated interface model, and described left-handed operation interface model is contrary with the menu display position left and right of described right-hand operated interface model.Wherein, for user's use habit, described left-handed operation interface model can refer to that the application menu button of left-handed operation that facilitates that in menu button, frequency of utilization is high is positioned at the left side of screen display interface, and described right-hand operated interface model can refer to that the application menu button of right-hand operated that facilitates that in menu button, frequency of utilization is high is positioned at the right of screen display interface.
Concrete, when determining that the screen operator pattern obtaining is left-handed operation pattern, and current screen demonstration is right-hand operated interface model, do not mate with described left-handed operation pattern, screen carries out flip horizontal 180 degree switchings, make the application menu button that is positioned at the screen left side be turned to the right that is positioned at screen, and the application menu button being positioned on the right of screen is turned to the left side that is positioned at screen, content for example word, the background image of other that show for screen interface are not changed position.As shown in Figure 3,screen display state 310 is in right-hand operated interface model, release key mapping is in the right of screen, use right-hand operated unlock button more convenient, and determine that bypattern determining unit 450 the screen operator pattern obtaining is left-handed operation pattern, now user to use left-handed operation unlock button be inconvenient, so screen is switched to right-hand operated interface model from right-hand operated interface model, after switching inscreen display state 320 as shown in the figure.If what current screen showed is left-handed operation interface model, with described left-handed operation pattern match, do not need screen to switch.
Equally, when determining that the screen operator pattern obtaining is right-hand operated pattern, and current screen demonstration is left-handed operation interface model, do not mate with described right-hand operated pattern, screen carries out flip horizontal 180 degree switchings, make the application menu button that is positioned at the screen left side be turned to the right that is positioned at screen, and the application menu button being positioned on the right of screen is turned to the left side that is positioned at screen, content for example word, the background image of other that show for screen interface are not changed position.If what current screen showed is right-hand operated interface model, with described right-hand operated pattern match, do not need screen to switch.
The embodiment of the present invention has proposed a kind of method and terminal of screen control.Obtain the view data of function screen, the view data of the described function screen getting is processed, judged and calculates, obtain the number of times of left-handed operation screen and the number of times of right-hand operated screen; By relatively the number of times of left-handed operation screen and the number of times of right-hand operated screen are determined screen operator pattern; According to determining that the screen operator pattern obtaining arranges screen interface display mode, described screen interface display mode comprises left-handed operation interface model and right-hand operated interface model, and described left-handed operation interface model is contrary with the menu display position left and right of described right-hand operated interface model.The embodiment of the present invention can arrange screen interface display mode neatly according to user's use habit, makes user operation menu more convenient, strengthens user's experience.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Subelement in embodiment of the present invention device or unit can merge according to actual needs, divide and delete.
Subelement described in the embodiment of the present invention or unit, can pass through universal integrated circuit, for example CPU(Central Processing Unit, central processing unit), or by ASIC(Application Specific Integrated Circuit, special IC) realize.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.