CN104679428A - Method for judging photograph rotation direction according to single finger gestures - Google Patents

Method for judging photograph rotation direction according to single finger gestures Download PDF

Info

Publication number
CN104679428A
CN104679428A CN201510062731.3A CN201510062731A CN104679428A CN 104679428 A CN104679428 A CN 104679428A CN 201510062731 A CN201510062731 A CN 201510062731A CN 104679428 A CN104679428 A CN 104679428A
Authority
CN
China
Prior art keywords
photo
rotation
coordinate
sense
touch point
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.)
Pending
Application number
CN201510062731.3A
Other languages
Chinese (zh)
Inventor
李靖
敬亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Pinguo Technology Co Ltd
Original Assignee
Chengdu Pinguo Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Pinguo Technology Co Ltd filed Critical Chengdu Pinguo Technology Co Ltd
Priority to CN201510062731.3A priority Critical patent/CN104679428A/en
Publication of CN104679428A publication Critical patent/CN104679428A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Abstract

The invention relates to the technical field of photograph processing, and discloses a method for judging photograph rotation direction according to single finger gestures. The method comprises a first step of obtaining a screen area for displaying photographs after entering a photograph browsing mode, and setting a gesture recognition area in the screen area; a second step of obtaining a first touch point coordinate P1 (x1, y1), judging whether x1 is in the gesture recognition area; if the result is positive, performing a third step, and if the result is negative, obtaining a new touch point to be as the first touch point coordinate P1 (x1, y1), and performing the judgment again; the third step of judging whether the tangent value of an included angle between the sliding direction of the touch point and y axis is smaller than a setting threshold value; if the result is positive, performing a fourth step, and if the result is negative, returning the second step; the fourth step of obtaining the coordinate P2 (x2, y2) of the touch point which is moved, and judging whether the photograph needs to be rotated or not. By the method disclosed by the invention, the intention of a user can be recognized through judging the touch point of a single finger so as to judge whether the photograph needs to be rotated or not.

Description

A kind of according to singly referring to that gesture judges the method for photo sense of rotation
Technical field
The present invention relates to photo rotation technique field, particularly relating to a kind of according to singly referring to that gesture judges the method for photo sense of rotation.
Background technology
User often needs when browsing photo on mobile terminals to rotate photo, and scheme conventional at present has two kinds, and the first is to provide a rotary knob, and user completes rotation with finger contact button; The second is by identifying two rotating tendency pointed, completing rotation.Above two kinds of implementations all cause negative effect to Consumer's Experience, and the first scheme allows the vision at interface be affected, and first scheme is pointed when reality uses can be very tired, and during user's one hand use equipment, almost cannot complete.
Existing patented claim CN201310260871.2 discloses a kind of method of picture autorotation, device and terminal, and described method comprises: the information obtaining photo to be uploaded; Extract the direction property value that the exchangeable image file information in the information of described photo to be uploaded comprises; According to described direction property value, rotate described photo to be uploaded; Postrotational photo to be uploaded is uploaded.By the present invention, the automatic rotation treating upload pictures can be realized, improve the uploading speed of photo.
But such photo spinning solution is the direction property value that computer comprises according to exchangeable image file information carries out photo rotation, cannot rotate, obviously also cannot meet the use of user according to the idea of user.
The photo files that existing patent CN200510108193.3 discloses a kind of camera mobile phone is preserved and transmission method, when digital cameras such as utilizing camera mobile phone is taken pictures, distinguish the photo (longitudinally long photo) of photo (laterally long photo) and the endways shooting of taking sidewards, other procedure operation is carried out without the need to user, just directly can show by the direction of shooting, thus improve the convenience of user.The present invention includes following steps: the step detecting photograph taking direction when taking pictures; Generate the code in the photograph taking direction representing above-mentioned detection, the step of together preserving with the image of shooting.In addition, for achieving the above object, the present invention also comprises the steps:, when photo files being transferred to computer etc., to read the step of the photograph taking Direction code be together stored in photo files; When above-mentioned photograph taking Direction code, when representing code (CODE=0) by longitudinally taking, carrying out post-treatment procedures, the photo of transverse direction is rotated to be longitudinal direction, then carry out the step transmitted in inside.It identifies automatically according to horizontal length or longitudinal progress row, equally also cannot rotate according to the idea of user, can not meet the needs of user.
Summary of the invention
For judgement photo sense of rotation of the prior art method Presence of an interface unsightly, inconvenient operation or the technical matters that cannot realize flexibly according to the idea of user, the invention discloses a kind of according to singly referring to that gesture judges the method for photo sense of rotation.
Goal of the invention of the present invention is realized by following technical proposals:
According to singly referring to that gesture judges a method for photo sense of rotation, it specifically comprises the following steps:
Step one, enter photo browse mode after, obtain the screen area of display photo, gesture identification region is set in this screen area, the horizontal ordinate scope in described gesture identification region is [0, (ScreenWidth/3+N)] ∪ [(ScreenWidth-(ScreenWidth/3+N)), ScreenWidth];
The coordinate of step 2, acquisition first touch point p1 (x 1 , y 1 ), judge x 1 whether drop in gesture identification region, be, enter step 3, otherwise obtain the coordinate of new touch point as first touch point p1 (x 1 , y 1 )and continue to judge;
Whether the tangent value of step 3, the glide direction judging touch point and y-axis angle is less than the threshold value of setting, is continue step 4, otherwise returns step 2; Wherein glide direction is the trend direction of finger initial motion;
Step 4, get touch point moved after coordinate p2 (x 2 , y 2 ), judge that photo needs to rotate, otherwise judge that photo does not need to rotate.
Further, above-mentioned N=20.
Further, in above-mentioned steps three, the threshold value of setting is 0.6.
Further, said method also comprises by judging that the coordinate of first touch point obtains the sense of rotation of photo.
Further, the detailed process that coordinate above by judgement first touch point obtains the sense of rotation of photo is: if P1 is in the gesture identification region on the right side of screen, when the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is counterclockwise, when the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is clockwise direction.
Further, the detailed process that coordinate above by judgement first touch point obtains the sense of rotation of photo is: when P1 is in the gesture identification region on the left of screen, when the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is clockwise direction, when the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is counterclockwise.
Further, said method also comprises the sense of rotation rotation photo according to determining.
Further, the above-mentioned angle once rotated is 90 degree.
By adopting above technical scheme, the invention has the beneficial effects as follows: method of the present invention makes one-handed performance just can complete photo rotation, improves Consumer's Experience.Simplify algorithm, the probability that the program of reducing is made mistakes simultaneously.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that the present invention realizes on screen.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with specific embodiment, the present invention is described in more detail.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Below using mobile phone as intelligent display terminal, screen is vertical detailed description implementation process of the present invention, and certainly, display terminal is not limited to mobile phone, also can be panel computer or other display terminal, is also not limited to realize when screen is vertical.Any one is based on the system of mobile platform (such as iOS/Android/WP), adopts method of the present invention can both realize allowing user rotate photo easily when browsing photo.
The invention discloses a kind of according to singly referring to that gesture judges the method for photo sense of rotation, it specifically comprises the following steps:
Step one, enter photo browse mode after, obtain the screen area of display photo, gesture identification region is set in this screen area, the horizontal ordinate scope in described gesture identification region is [0, (ScreenWidth/3+N)] ∪ [(ScreenWidth-(ScreenWidth/3+N)), ScreenWidth], wherein N can be 20 pixels, in fact the numerical value of N can set as required flexibly, can be such as the pixel arbitrarily between 10-40, wherein ScreenWidth be the pixel wide of current screen.
The coordinate of step 2, acquisition first touch point p1 (x 1 , y 1 ), judge x 1 whether drop in gesture identification region, be, enter step 3, otherwise obtain the coordinate of new touch point as first touch point p1 (x 1 , y 1 )and continue to judge.
Whether the tangent value of step 3, the glide direction judging touch point and y-axis angle is less than the threshold value of setting, and such as setting threshold value is 0.6, is continue step 4, otherwise returns step 2.When the tangent value of glide direction and y-axis angle is less than 0.6, continue step 4; Otherwise return step 2.Wherein glide direction is the trend direction of finger initial motion, can be such as the direction that the line between first touch point and second touch point is formed.
Step 4, get touch point moved after coordinate p2 (x 2 , y 2 ), then judge that photo needs to rotate.
The present invention, by judging the touch point of single finger, just can identify the intention of user, thus enough judges the need of rotation photo.When P1 drops in identified region, and the tangent value of glide direction and y-axis angle is when being less than 0.6, judge that photo needs to rotate, when judged result be photo need rotate time, just can rotate photo as required, the concrete algorithm how rotating photo does not belong to emphasis of the present invention, and prior art can realize, and is not described in detail at this.
Fig. 1 is the schematic diagram that the present invention realizes on screen.
Further, said method also comprises by judging that the coordinate of first touch point obtains the sense of rotation of photo.Be specially: if P1 is in the gesture identification region (3 o'clock side) on the right side of screen, if the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is that counterclockwise if the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is clockwise direction.If P1 is in the gesture identification region of (9 o'clock side) on the left of screen, if the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is clockwise direction, if the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is counterclockwise.
Further, said method also comprises the sense of rotation rotation photo according to determining, the angle once rotated is 90 degree.
Above-mentioned explanation illustrate and describes a preferred embodiment of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (8)

1., according to singly referring to that gesture judges a method for photo sense of rotation, it specifically comprises the following steps:
Step one, enter photo browse mode after, obtain the screen area of display photo, gesture identification region is set in this screen area, the horizontal ordinate scope in described gesture identification region is [0, (ScreenWidth/3+N)] ∪ [(ScreenWidth-(ScreenWidth/3+N)), ScreenWidth];
The coordinate of step 2, acquisition first touch point p1 (x 1 , y 1 ), judge x 1 whether drop in gesture identification region, be, enter step 3, otherwise obtain the coordinate of new touch point as first touch point p1 (x 1 , y 1 )and continue to judge;
Whether the tangent value of step 3, the glide direction judging touch point and y-axis angle is less than the threshold value of setting, is continue step 4, otherwise returns step 2; Wherein glide direction is the trend direction of finger initial motion;
Step 4, get touch point moved after coordinate p2 (x 2 , y 2 ), judge that photo needs to rotate.
2. as claimed in claim 1 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that described N=20.
3. as claimed in claim 1 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that the threshold value set in described step 3 is 0.6.
4. as claimed in claim 1 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that described method also comprises by judging that the coordinate of first touch point obtains the sense of rotation of photo.
5. as claimed in claim 1 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that by judging that the detailed process that the coordinate of first touch point obtains the sense of rotation of photo is: if P1 is in the gesture identification region on the right side of screen, when the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is counterclockwise, when the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is clockwise direction.
6. as described in claim 4 or 5 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that by judging that the detailed process that the coordinate of first touch point obtains the sense of rotation of photo is: when P1 is in the gesture identification region on the left of screen, when the y coordinate of P2 is positioned at above the y coordinate of P1, sense of rotation is clockwise direction, when the y coordinate of P2 is positioned at below the y coordinate of P1, sense of rotation is counterclockwise.
7. as claimed in claim 6 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that described method also comprises and rotate photo according to the sense of rotation determined.
8. as claimed in claim 7 according to singly referring to that gesture judges the method for photo sense of rotation, it is characterized in that the angle once rotated is 90 degree.
CN201510062731.3A 2015-02-06 2015-02-06 Method for judging photograph rotation direction according to single finger gestures Pending CN104679428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510062731.3A CN104679428A (en) 2015-02-06 2015-02-06 Method for judging photograph rotation direction according to single finger gestures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510062731.3A CN104679428A (en) 2015-02-06 2015-02-06 Method for judging photograph rotation direction according to single finger gestures

Publications (1)

Publication Number Publication Date
CN104679428A true CN104679428A (en) 2015-06-03

Family

ID=53314566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510062731.3A Pending CN104679428A (en) 2015-02-06 2015-02-06 Method for judging photograph rotation direction according to single finger gestures

Country Status (1)

Country Link
CN (1) CN104679428A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027903A (en) * 2016-06-29 2016-10-12 努比亚技术有限公司 View-finding interface rotating device and method
CN106997258A (en) * 2017-03-02 2017-08-01 惠州Tcl移动通信有限公司 A kind of interface of mobile terminal method of controlling rotation and system
CN108132753A (en) * 2017-12-21 2018-06-08 广州阿里巴巴文学信息技术有限公司 A kind of recognition methods, device and the terminal device of user gesture operation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257811A (en) * 2012-02-20 2013-08-21 腾讯科技(深圳)有限公司 Picture display system and method based on touch screen
US20150002698A1 (en) * 2013-06-26 2015-01-01 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Inclination angle compensation system and method for picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257811A (en) * 2012-02-20 2013-08-21 腾讯科技(深圳)有限公司 Picture display system and method based on touch screen
US20150002698A1 (en) * 2013-06-26 2015-01-01 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Inclination angle compensation system and method for picture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027903A (en) * 2016-06-29 2016-10-12 努比亚技术有限公司 View-finding interface rotating device and method
CN106027903B (en) * 2016-06-29 2020-03-31 努比亚技术有限公司 View finding interface rotating device and method
CN106997258A (en) * 2017-03-02 2017-08-01 惠州Tcl移动通信有限公司 A kind of interface of mobile terminal method of controlling rotation and system
CN108132753A (en) * 2017-12-21 2018-06-08 广州阿里巴巴文学信息技术有限公司 A kind of recognition methods, device and the terminal device of user gesture operation

Similar Documents

Publication Publication Date Title
CN104471519B (en) Method and device for presenting panoramic photo in mobile terminal and mobile terminal
MY195861A (en) Information Processing Method, Electronic Device, and Computer Storage Medium
US9912853B2 (en) Switching between cameras of an electronic device
MY192140A (en) Information processing method, terminal, and computer storage medium
CN107613202B (en) Shooting method and mobile terminal
CN104199906B (en) A kind of recommendation method and device of shooting area
US10798302B2 (en) Method of capturing based on usage status of electronic device and related products
CN105892881A (en) Human-computer interaction method and device, and mobile equipment
WO2022156598A1 (en) Bluetooth connection method and apparatus, and electronic device
US20160188282A1 (en) Image Receiving Apparatus and Method Thereof for Determining an Orientation of a Screen of an Electronic Apparatus
CN108415646B (en) Touch function setting method and device
CN104679428A (en) Method for judging photograph rotation direction according to single finger gestures
US20170192653A1 (en) Display area adjusting method and electronic device
CN112911147A (en) Display control method, display control device and electronic equipment
CN103713849A (en) Method and device for image shooting and terminal device
US9838615B2 (en) Image editing method and electronic device using the same
US20180336243A1 (en) Image Search Method, Apparatus and Storage Medium
CN107024988A (en) A kind of method and device that operation is performed based on user action
US8970483B2 (en) Method and apparatus for determining input
WO2017215211A1 (en) Picture display method based on intelligent terminal having touch screen, and electronic apparatus
CN108769527B (en) Scene identification method and device and terminal equipment
US10877641B2 (en) Image adjustment method, apparatus, device and computer readable storage medium
CN104881107B (en) A kind of information processing method and electronic equipment
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN109583453B (en) Image identification method and device, data identification method and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150603