Summary of the invention
In order to solve the problems of the technologies described above, the invention discloses a kind of determination method and system of shooting area, do not need independent amplification icon, make preview interface cleaner and tidier, and can the region that user chooses arbitrarily in preview interface be amplified, concrete technical scheme is:
The invention discloses a kind of defining method of shooting area, be applied to have and take pictures or/and the touch screen terminal of camera function, comprising:
Taking pictures or camera function unlatching of described terminal, and after showing preview interface on the touchscreen, detect the touch operation of user in described preview interface;
When after the touch operation defined area of user in described preview interface being detected, amplify the displaying contents of described defined area.
Preferably,
The displaying contents of described defined area is amplified to the preview interface of whole touch-screen.
Preferably,
Also comprise after the displaying contents of the described defined area of described amplification:
Displaying contents after described amplification is shown between two parties in the preview interface of described touch-screen.
Preferably,
After the described touch operation when the defined area of user in described preview interface being detected, the displaying contents amplifying described defined area specifically comprises:
When after the touch operation defined area of user in described preview interface being detected, to the center-spot of described defined area;
The described center-spot to defined area also, after obtaining clear displaying contents, amplifies described displaying contents.
Preferably,
The operation of the described detection touch defined area of user in preview interface specifically comprises:
After user's push on the touchscreen being detected and lifting operation, record described push and lift operation coordinate on the touchscreen;
Described defined area is determined according to described push and the coordinate lifting operation.
Preferably,
Describedly determine that described defined area comprises according to push and the coordinate that lifts operation:
Whether the horizontal ordinate lifting operation described in judgement is greater than the horizontal ordinate of described push, and described in lift operation ordinate whether be greater than the ordinate of described push:
If so, then the region between the coordinate of described push and the coordinate lifting operation is defined as the rectangular area delimited.
Preferably,
Described defined area also comprises after being formed:
User's push on the touchscreen detected and after lifting operation, whether the horizontal ordinate lifting operation described in judgement is less than the horizontal ordinate of described push, and described in lift operation ordinate whether be less than the ordinate of described push:
If so, then the preview interface on described touch-screen is returned to original interface.
Preferably,
Also comprise the step that convergent-divergent is carried out in the region after to amplification after the displaying contents of the described defined area of described amplification, described convergent-divergent step comprises:
Detect the operation region after described amplification being carried out to convergent-divergent on touch-screen;
After the operation to the area zoom after described amplification on touch-screen being detected, according to scaling, convergent-divergent is carried out in the region after described amplification.
Preferably,
Described scaling is determined according to the area of the area of described defined area and described touch-screen preview interface, or described scaling is default fixed proportion.
Preferably,
After the described operation to the area zoom after described amplification detected on touch-screen, according to scaling, convergent-divergent is carried out in the region after described amplification and specifically comprises:
User's push on the touchscreen detected and after lifting operation, whether the horizontal ordinate lifting operation described in judgement is less than the horizontal ordinate of described push, and described in lift operation ordinate whether be less than the ordinate of described push:
If so, then according to scaling, convergent-divergent is carried out in the region after described amplification.
The invention also discloses a kind of certainty annuity of shooting area, comprising:
Touch operation detection module, for taking pictures or camera function unlatching in described terminal, and after showing preview interface on the touchscreen, detects the touch operation of user in described preview interface;
Amplification module, after the touch operation of the defined area of user in described preview interface being detected when described touch operation detection module, amplifies the displaying contents of described defined area.
Preferably,
Described system also comprises display module placed in the middle, and the displaying contents after being amplified by described amplification module shows between two parties in the preview interface of described touch-screen.
Preferably,
Described system also comprises focus module, for amplify described defined area at described amplification module displaying contents before focused in the center of described defined area.
Preferably,
Described touch operation detection module also for, detect user's push on the touchscreen and lift operation, and whether the horizontal ordinate lifting operation described in judging is less than the horizontal ordinate of described push, and described in lift operation ordinate whether be less than the ordinate of described push;
Described system also comprises:
Original interface recovers module, horizontal ordinate for lifting operation described in detecting at described touch operation detection module is less than the horizontal ordinate of described push, and described in lift operation ordinate when being less than the ordinate of described push, the preview interface on described touch-screen is returned to original interface.
Preferably,
Described touch operation detection module also for, detect user zoom operations on the touchscreen;
Described system also comprises:
Zoom module, for after described touch operation detection module detects user's zoom operations on the touchscreen, carries out convergent-divergent according to scaling by the region after described amplification.
Beneficial effect of the present invention is:
1, the present invention can amplify user defined area on the touchscreen, does not need independent amplification icon, makes preview interface cleaner and tidier.
2, the present invention to the image auto-focusing in user defined area on the touchscreen, can improve the sharpness of image.
3, on the touchscreen defined area time, a touch action just can complete, and improves Consumer's Experience.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Embodiment of the method
Embodiment one
In one embodiment of the present of invention, disclose a kind of defining method of shooting area, as shown in Figure 1, comprising:
Taking pictures or camera function unlatching of S01, terminal, and after showing preview interface on the touchscreen, detect the touch operation of user in preview interface.
When concrete operations, first-selection will start taking pictures or camera function of terminal, after startup, the touch-screen of terminal can show preview interface, user can carry out the operation of defined area on the touchscreen, present embodiment discloses a kind of method of defined area, namely, detect user's push on the touchscreen and lift operation, record push and lift operation coordinate on the touchscreen, with the upper left side of touch-screen for co-ordinate zero point, the horizontal ordinate that and if only if lifts operation is greater than the horizontal ordinate of push, and the ordinate lifting operation is valid function when being greater than the ordinate of push, when namely drawing from the upper left lower right of touch-screen, operation effectively.When operating effective, with this coordinate line of 2 for diagonal line, form rectangular area, the length of this rectangular area is X1-X0, and width is Y1-Y0, and wherein (X1, Y1) is for lifting the coordinate of operation, the coordinate that (X0, Y0) is push.When user needs defined area, only need to carry out the region that scribing operation can form a rectangle on the touchscreen, handled easily, other shapes can certainly be formed, such as circular.Also other operations except scribing operation can be used to determine defined area.
After defined area is formed, if user wants the initial interface of getting back to preview, can slide from the lower right upper left side of screen, namely after terminal detects user's push on the touchscreen and lifts operation, whether the horizontal ordinate judging to lift operation is less than the horizontal ordinate of push, and whether the ordinate lifting operation is less than the ordinate of push, if so, then the preview interface on touch-screen is returned to original interface.Certainly, also can arrange other and trigger the method recovering original interface, such as long by defined area, terminal detects long by operation, and when being greater than default time threshold, returns to original preview interface.
S02, when after the touch operation defined area of user in preview interface being detected, to the center-spot of defined area.
When focusing to the center of defined area, first will determine the center point coordinate of defined area, such as, the horizontal ordinate at the center, rectangular area in S01 is (X1-X0)/2, and ordinate is (Y1-Y0)/2.
S03, after obtaining clear displaying contents, displaying contents is amplified to the center-spot of defined area.
Area after the amplification of the displaying contents in the present embodiment can be determined according to the size of the size of touch-screen preview interface and defined area.The formula of concrete enlargement factor is:
A=K (S1/S2), wherein, A is the enlargement factor (A >=1) of defined area displaying contents, K is default amplification coefficient, S1 is the area of touch-screen preview interface, and S2 is the area of defined area, and the value of K is preferably 0 < K≤1.(K determines according to the collocation of different screen and camera, can fix, can certainly open to different user, carry out senior setting in Default Value.)
Illustrate with accompanying drawing 6, accompanying drawing 7 and accompanying drawing 8 below, accompanying drawing 6 is original preview interface, and there is B and a at interface, now, if user wants a amplifying the screen upper left corner, can delimit the region (as shown in Figure 7) at a place, suppose that the area of delimiting is Sa=1 ㎝2, the area of touch-screen preview interface is S=5 ㎝2, the amplification coefficient preset is K=3/5, then enlargement factor is A=(3/5) and 5=3, the displaying contents by the region at a place amplifies 3 times, and accompanying drawing 7 is the schematic diagram after the displaying contents in the region at a place amplifies.
S04, by amplify after displaying contents show between two parties in touch-screen preview interface.
Embodiment two
Present embodiment discloses a kind of defining method of shooting area, as shown in Figure 2, comprising:
Taking pictures or camera function unlatching of S11, terminal, and after showing preview interface on the touchscreen, detect the touch operation of user in preview interface.
S12, when after the touch operation defined area of user in preview interface being detected, amplify defined area displaying contents and store.
The present embodiment is different from mainly containing in embodiment one at 2:
1, after the touch operation defined area of user in preview interface being detected, directly amplify the displaying contents of defined area, namely eliminate the focus steps of amplifying before displaying contents.
2, after amplifying the displaying contents of defined area, this displaying contents is not shown in the preview interface of touch-screen, but directly displaying contents is stored, can direct imaging after storage, also can carry out other follow-up operations.
Embodiment three
Present embodiment discloses a kind of method of convergent-divergent of shooting area, the basis of the above embodiments one implemented, namely the region after the amplification in embodiment one is carried out to the method for convergent-divergent, as shown in Figure 3, comprising:
S21, the operation to the area zoom after amplification detected on touch-screen;
User is preferably the operation of the area zoom after amplification:
After pressing and lift operation on touch-screen being detected, whether the horizontal ordinate judging to lift operation is less than the horizontal ordinate of described push, and whether the ordinate lifting operation is less than the ordinate of described push, be if so, then considered as user carries out convergent-divergent operation to the region after amplification.
Certainly, also can arrange the operation of other convergent-divergents, such as long by defined area, terminal detects long by operation, and when being greater than default time threshold, carries out convergent-divergent to the region after amplifying.
S22, detect on touch-screen to amplify after region carry out the operation of convergent-divergent after, according to scaling, convergent-divergent is carried out in the region after described amplification.
When convergent-divergent, centered by the center in the region after amplifying, convergent-divergent is carried out to magnification region, in the present embodiment, scaling can be determined according to the area of the area of touch-screen preview interface and defined area, such as, A=K(S3/S1), wherein, A is scaling, K is zoom factor, S1 is the area of touch-screen preview interface, and S3 is that (K determines according to the collocation of different screen and camera, can fix in Default Value for the area of defined area, can certainly open to different user, carry out senior setting).
Certainly, fixing scaling also can be preset in the terminal, such as, after the zoom operations of user being detected, by the area zoom 1/2 after amplification.
Device embodiment
Embodiment four
Present embodiment discloses a kind of certainty annuity of shooting area, as shown in Figure 4, comprising:
Touch operation detection module, for taking pictures or camera function unlatching in described terminal, and after showing preview interface on the touchscreen, detects the touch operation of user in described preview interface;
Focus module, for after described touch operation detection module detects the touch operation of the defined area of user in described preview interface, focuses to the center of defined area.
Amplification module, for focusing to the center of defined area in described focus module and obtaining, clearly after displaying contents, amplifying displaying contents.
Display module placed in the middle, the displaying contents after being amplified by described amplification module shows between two parties in touch-screen preview interface.
Original interface recovers module, for lifting and push on touch-screen being detected at described touch operation detection module, and the horizontal ordinate lifting operation described in determining is less than the horizontal ordinate of described push, and described in lift operation ordinate when being less than the ordinate of described push, the preview interface on described touch-screen is returned to original interface.
Embodiment five
Present embodiment discloses a kind of certainty annuity of shooting area, as shown in Figure 5, comprising:
Touch operation detection module, for taking pictures or camera function unlatching in described terminal, and after showing preview interface on the touchscreen, detects the touch operation of user in described preview interface;
Focus module, for after described touch operation detection module detects the touch operation of the defined area of user in described preview interface, focuses to the center of defined area.
Amplification module, for focusing to the center of defined area in described focus module and obtaining, clearly after displaying contents, amplifying displaying contents.
Zoom module, for after described touch operation detection module detects user's zoom operations on the touchscreen, carries out convergent-divergent according to scaling by the region after described amplification.
User is preferably the operation of the area zoom after amplification:
After pressing and lift operation on touch-screen being detected, whether the horizontal ordinate judging to lift operation is less than the horizontal ordinate of described push, and whether the ordinate lifting operation is less than the ordinate of described push, be if so, then considered as user carries out convergent-divergent operation to the region after amplification.
Certainly, also can arrange the operation of other convergent-divergents, such as long by defined area, terminal detects long by operation, and when being greater than default time threshold, carries out convergent-divergent to the region after amplifying.
When convergent-divergent, centered by the center in the region after amplifying, convergent-divergent is carried out to magnification region, in the present embodiment, scaling can be determined according to the area of the area of touch-screen preview interface and defined area, such as, A=K(S3/S1), wherein, A is scaling, K is zoom factor, S1 is the area of touch-screen preview interface, and S3 is that (K determines according to the collocation of different screen and camera, can fix in Default Value for the area of defined area, can certainly open to different user, carry out senior setting).
Certainly, fixing scaling also can be preset in the terminal, such as, after the zoom operations of user being detected, by the area zoom 1/2 after amplification.