CN104822029B - A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal - Google Patents
A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal Download PDFInfo
- Publication number
- CN104822029B CN104822029B CN201510267467.7A CN201510267467A CN104822029B CN 104822029 B CN104822029 B CN 104822029B CN 201510267467 A CN201510267467 A CN 201510267467A CN 104822029 B CN104822029 B CN 104822029B
- Authority
- CN
- China
- Prior art keywords
- infrared sensor
- gesture
- dot matrix
- touch screen
- distance
- 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
Abstract
The invention discloses a kind of method, apparatus of control rotating camera rotation and a kind of mobile terminals, use gesture sliding control rotating camera with Arbitrary Rotation to realize.The method includes:Obtain the distance d that gesture is slided on dot matrix infrared sensor touch screen;The accounting of distance d and D that the maximum angle ψ and gesture that can be rotated according to rotating camera are slided on dot matrix infrared sensor touch screen, by the rotation angle, θ of gesture rotating camera when the distance d slided on dot matrix infrared sensor touch screen is converted into gesture in the distance d slided on dot matrix infrared sensor touch screen;It sends and orders to motor, so that motor driving rotating camera rotates θ °.Technical solution provided by the invention is slided on dot matrix infrared sensor touch screen with gesture, rotating camera can be controlled with Arbitrary Rotation, the demand for being equipped with the user of the intelligent terminal of rotating camera to shooting angle is met, is brought convenience to user using the intelligent terminal.
Description
Technical field
The invention belongs to mobile communication field more particularly to a kind of method, apparatus and one of control rotating camera rotation
Kind mobile terminal.
Background technique
The development of the intelligent terminals technology such as smart phone, tablet computer, so that the function of these terminals is stronger and stronger,
The simple function of communication is much surmounted.It is no exaggeration to say that the intelligent terminals such as smart phone have no longer been simple
Means of communication, but integrate the craftwork of the functions such as leisure, amusement and communication.For example, general smart phone all bands
There is camera, to realize the function of taking pictures and/or image.
The camera of traditional smart phone is fixedly mounted on mobile phone, and user is to certain angle shot photograph
Smart phone is usually rotated integrally an angle by piece.With the progress of intelligent terminal technology, occurs electronic camera shooting at present
Head.The pivoting mechanism of this camera is that a step-type electric motor is added in the side of rotating lens shaft, passes through horse
Up to (for example, 0 to the 206 degree) rotation in some angular range of realization camera lens.The development of touch screen technology is smart phone user
The rotation of control rotating camera brings huge convenience.For example, existing infrared sensor (sensor) touch screen, user is only
Need to slide the rotation of i.e. controllable rotating camera on the touchscreen using gesture.
Since current infrared sensor can only identify four, the upper and lower, left and right glide direction of gesture, reported after identification
One data is used to identify direction, notifies upper layer application.Therefore, existing infrared sensor touch screen, user are sliding using gesture
When dynamic, it can only realize that rotating camera is disposably rotated up to angle, for example, spending from 0 ° of rotation to 206 °, alternatively, revolving from 206 °
Go to 0 °.When user needs with Arbitrary Rotation camera, above-mentioned existing infrared sensor touch screen obviously cannot expire
Foot requires.
Summary of the invention
The present invention provides a kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal, to realize use
Gesture sliding control rotating camera is with Arbitrary Rotation.
First aspect present invention provides a kind of method of control rotating camera rotation, the method includes:
Obtain the distance d that gesture is slided on dot matrix infrared sensor touch screen;
The maximum angle ψ that can be rotated according to rotating camera and the gesture are on dot matrix infrared sensor touch screen
The accounting of the distance d and D of sliding convert the distance d that the gesture is slided on dot matrix infrared sensor touch screen to described
The rotation angle, θ of gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen, the D is institute
State the longitudinally covered range of any one column infrared sensor transmitting signal in dot matrix infrared sensor;
It sends and orders to motor, so that the motor drives the rotating camera to rotate θ °.
With reference to first aspect, in the first possible implementation of the first aspect, the acquisition gesture is red in dot matrix
The distance d slided on outer sensor touch screen, including:
Capture the gesture on the dot matrix infrared sensor touch screen;
According to initial position to any point between target position, into the dot matrix infrared sensor, any one column are infrared
Sensor constitute straight line distance and described any point respectively with it is each infrared in any one column infrared sensor
The distance of sensor calculates the distance d that the gesture is slided on dot matrix infrared sensor touch screen.
With reference to first aspect, in the second possible implementation of the first aspect, the capture is red in the dot matrix
After gesture on outer sensor touch screen, the method also includes:
By backoff algorithm, misrecognition movement is handled.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect
In, it is described that misrecognition movement is handled by backoff algorithm, including:
Judge the gesture when sliding into target position from initial position on the dot matrix infrared sensor touch screen
Glide direction, the target position are terminal of the gesture in sliding distance d on dot matrix infrared sensor touch screen;
If within a preset time, the gesture is back to from the target position along the direction opposite with the glide direction
The initial position, then filter the gesture be back to from the target position along the direction opposite with the glide direction it is described
The event that initial position generates.
With reference to first aspect, in a fourth possible implementation of the first aspect, described according to rotating camera energy
The accounting of distance d and D that the maximum angle ψ and the gesture enough rotated is slided on dot matrix infrared sensor touch screen, will
The distance d that the gesture is slided on dot matrix infrared sensor touch screen is converted into the rotation angle, θ of the rotating camera, packet
It includes:
Calculate the ratio d/D of distance d and D that the gesture is slided on dot matrix infrared sensor touch screen;
Product ψ d/D described in the ψ and d/D is calculated, using product ψ d/D as the rotation angle, θ of the rotating camera.
Second aspect of the present invention provides a kind of device of control rotating camera rotation, and described device includes:
Obtain module, the distance d slided on dot matrix infrared sensor touch screen for obtaining gesture;
Apart from angle conversion module, maximum angle ψ and the gesture for that can be rotated according to rotating camera exist
The accounting of the distance d and D that are slided on dot matrix infrared sensor touch screen, by the gesture on dot matrix infrared sensor touch screen
The distance d of sliding is converted into gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen
Rotation angle, θ, the D is the longitudinally covered model of any one column infrared sensor transmitting signal in the dot matrix infrared sensor
It encloses;
Command sending module is ordered for sending to motor, so that the motor drives the rotating camera to rotate θ °.
In conjunction with second aspect, in the first possible implementation of the second aspect, the acquisition module includes:
Gesture capturing unit, for capturing the gesture on the dot matrix infrared sensor touch screen;
Metrics calculation unit, for according to initial position to any point between target position to the dot matrix infrared sensing
The distance for the straight line that any one column infrared sensor is constituted in device and described any point are infrared with any one column respectively
The distance of each infrared sensor in sensor calculates the distance d that the gesture is slided on dot matrix infrared sensor touch screen.
In conjunction with second aspect, in a second possible implementation of the second aspect, described device further includes:
Processing module is misidentified, for gesture capturing unit capture on the dot matrix infrared sensor touch screen
After gesture, by backoff algorithm, misrecognition movement is handled.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect
In, the misrecognition processing module includes:
Judging unit, for judging that the gesture slides on the dot matrix infrared sensor touch screen from initial position
Glide direction when target position, the target position are gesture sliding distance d on dot matrix infrared sensor touch screen
When terminal;
Filter element, if within a preset time, the gesture from the target position along and the glide direction phase
Anti- direction is back to the initial position, then filters the gesture from the target position along opposite with the glide direction
Direction is back to the event that the initial position generates.
It is in the fourth possible implementation of the second aspect, described apart from angle conversion module in conjunction with second aspect
Including:
First computing unit, for calculating distance d and D that the gesture is slided on dot matrix infrared sensor touch screen
Ratio d/D;
Second computing unit, for calculating product ψ d/D described in the ψ and d/D, using product ψ d/D as the gesture
The rotation angle, θ of the rotating camera in the distance d slided on dot matrix infrared sensor touch screen.
Third aspect present invention provides a kind of mobile terminal, and the mobile terminal includes above-mentioned control rotating camera rotation
Device.
From aforementioned present invention technical solution it is found that the distance d slided on dot matrix infrared sensor touch screen due to gesture
It can be arbitrary value, any one column infrared sensing in the maximum angle ψ and dot matrix infrared sensor that rotating camera can rotate
The longitudinally covered range D that device emits signal is fixed value, the maximum angle ψ and the hand that can be rotated according to rotating camera
The accounting of distance d and D that gesture is slided on dot matrix infrared sensor touch screen touch the gesture in dot matrix infrared sensor
The distance d slided on screen is converted into gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen
Rotation angle, θ can be arbitrary value, therefore, slide and can only control on infrared sensor touch screen with gesture with the prior art
Rotating camera rotation fixed angle is compared, and technical solution provided by the invention is with gesture on dot matrix infrared sensor touch screen
Sliding, can control rotating camera with Arbitrary Rotation, meet the user couple for being equipped with the intelligent terminal of rotating camera
The demand of shooting angle is brought convenience to user using the intelligent terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is the implementation process schematic diagram of the method for the control rotating camera rotation that the embodiment of the present invention one provides;
Fig. 2-a is the dot matrix schematic diagram that 4 × 4 infrared sensors provided in an embodiment of the present invention are constituted;
Fig. 2-b calculates gesture for being the dot matrix provided in an embodiment of the present invention constituted by 4 × 4 infrared sensors
The first schematic diagram of the distance d slided on dot matrix infrared sensor touch screen;
Fig. 2-c calculates gesture for being the dot matrix provided in an embodiment of the present invention constituted by 4 × 4 infrared sensors
The second schematic diagram of the distance d slided on dot matrix infrared sensor touch screen;
Fig. 3 is the structural schematic diagram of the device of control rotating camera rotation provided by Embodiment 2 of the present invention;
Fig. 4 is the structural schematic diagram of the device for the control rotating camera rotation that the embodiment of the present invention three provides;
Fig. 5 is the structural schematic diagram of the device for the control rotating camera rotation that the embodiment of the present invention four provides;
Fig. 6 is the structural schematic diagram of the device for the control rotating camera rotation that the embodiment of the present invention five provides;
Fig. 7 is the structural schematic diagram of the device for the control rotating camera rotation that the embodiment of the present invention six provides.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality
Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
The embodiment of the present invention provides a kind of method of control rotating camera rotation, the method includes:Gesture is obtained to exist
The distance d slided on dot matrix infrared sensor touch screen;The maximum angle ψ and the hand that can be rotated according to rotating camera
The accounting of distance d and D that gesture is slided on dot matrix infrared sensor touch screen touch the gesture in dot matrix infrared sensor
The distance d slided on screen is converted into gesture rotation in the distance d slided on dot matrix infrared sensor touch screen and takes the photograph
As the rotation angle, θ of head, the D is that the longitudinal direction of any one column infrared sensor transmitting signal in the dot matrix infrared sensor is covered
Lid range;It sends and orders to motor, so that the motor drives the rotating camera to rotate θ °.The embodiment of the present invention also provides
The device and a kind of mobile terminal of corresponding control rotating camera rotation.It is described in detail separately below.
Attached drawing 1 is please referred to, is the implementation process of the method for the control rotating camera rotation that the embodiment of the present invention one provides,
Its executing subject can be the mobile terminals such as smart phone, tablet computer.The exemplary control rotating camera rotation of attached drawing 1
Method mainly includes the following steps that S101 to step S103:
S101 obtains the distance d that gesture is slided on dot matrix infrared sensor touch screen.
In embodiments of the present invention, dot matrix infrared sensor touch screen includes the dot matrix of several infrared sensors composition, example
Such as, N × N number of infrared sensor composition dot matrix, these dot matrix infrared sensors constitute the sensing element part of touch screen, such as attached
It is the dot matrix infrared sensor touch screen schematic diagram that the dot matrix of 4 × 4 infrared sensor compositions is constituted shown in Fig. 2-a.As this
Invention one embodiment, obtain the distance d that is slided on dot matrix infrared sensor touch screen of gesture include the following steps S1011 and
Step S1012:
S1011 captures the gesture on dot matrix infrared sensor touch screen.
In embodiments of the present invention, when finger slides on dot matrix infrared sensor touch screen, each of dot matrix is red
Outer sensor can capture sensing data;With the sliding of finger and the capture of each infrared sensor, can capture in point
Gesture on battle array infrared sensor touch screen.
Since certain user is when sliding into another place from a place for finger, start bit may be immediately fallen back to
It sets.According to being ready for user, the short time return to initial position be should not be identified.If identification, is exactly to misidentify.In order to
The generation of this situation is prevented, in embodiments of the present invention, captures the institute after the gesture on dot matrix infrared sensor touch screen
The method of stating further includes:By backoff algorithm, misrecognition movement is handled.Specifically, it can first judge gesture at dot matrix infrared sensing
Glide direction when sliding into target position from initial position on device touch screen, then, if within a preset time, for example, 800ms
Interior, the gesture is back to initial position along the direction opposite with glide direction from target position, then filters the gesture from institute
It states target position and is back to the event that the initial position generates along the direction opposite with the glide direction.Once this kind of event
It is filtered, then follow-up system does not have the response of opponent's gesture, from without sliding effect.
S1012, it is any one into the dot matrix infrared sensor according to initial position to any point between target position
The distance for the straight line that column infrared sensor is constituted and described any point respectively with it is each in any one column infrared sensor
The distance of a infrared sensor calculates the distance d that gesture is slided on dot matrix infrared sensor touch screen, wherein target position
For terminal of the gesture in sliding distance d on dot matrix infrared sensor touch screen.
Specifically, for the dot matrix that 4 × 4 infrared sensors shown in the attached drawing 2-a are constituted.As shown in attached drawing 2-b, it is assumed that
Any one column infrared sensor dot matrix i.e. 4 infrared sensors (in figure shown in 4 stains, are numbered in 4 × 4 infrared sensors
Respectively 1,2,3 and 4, individually below referred to as infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4)
It detects gesture and slides into target position (in figure shown in circle), initial position from initial position (in figure shown in blacking triangle)
Distance to target position indicates that the longitudinally covered range of 4 infrared sensor transmitting signals is indicated in figure using D using d,
Initial position to any point between target position any one column infrared sensor into 4 × 4 infrared sensors is (4 infrared
Sensor) distance of straight line that constitutes indicates that initial position to any point between target position is (in figure in figure using Lmin
Shown in one square stain) L is used at a distance from 4 infrared sensors respectively1、L2、L3And L4It indicates.
Assuming that only have infrared sensor 1 to detect target position in initial position, initial position to infrared sensor 1 away from
From for L11, as shown in attached drawing 2-c, then the position d1 of initial position to a period of time inspection center's point can be obtained according to trigonometric function formula
It arrivesThe d2 in figure is in kind calculated, in this way, gesture is slided on dot matrix infrared sensor touch screen
Distance d=d1+d2.It is just that coordinate points calculating is vertical with infrared sensor 2 if infrared sensor 1 can't detect target position
To position, and assume that the detection range of infrared sensor 1 is symmetrical i.e. d=2 × d1+d3 up and down, it is assumed herein that with infrared biography
Sensor 2 is the fore-and-aft distance that coordinate points calculate.
S102, the maximum angle ψ that can be rotated according to rotating camera and gesture are in dot matrix infrared sensor touch screen
The distance d that the gesture is slided on dot matrix infrared sensor touch screen is converted institute by the accounting of the distance d and D of upper sliding
State the rotation angle, θ of gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen, wherein D is dot matrix
The longitudinally covered range of any one column infrared sensor transmitting signal in infrared sensor.
As one embodiment of the invention, the maximum angle ψ and gesture that can be rotated according to rotating camera are in dot matrix
The accounting of the distance d and D that slide on infrared sensor touch screen slide the gesture on dot matrix infrared sensor touch screen
Distance d be converted into the rotation angle of gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen
Degree θ can be:Calculate the ratio d/D of distance d and D that gesture is slided on dot matrix infrared sensor touch screen;Calculate ψ and d/D
Product ψ d/D, product ψ d/D be can be used as into gesture rotation in the distance d slided on dot matrix infrared sensor touch screen
Turn the rotation angle, θ of camera, that is, θ=ψ d/D.
S103 sends to motor and orders, so that motor driving rotating camera rotates θ °.
In embodiments of the present invention, the motor of driving rotating camera rotation can be the electric motor of stepping, Ke Yitong
The rotation angle, θ for crossing the rotating camera that will be calculated is carried is sent to the electronic of driving rotating camera rotation in order
Motor, driving rotating camera rotation rotation angle, θ.Due to the internal mechanical structure of electric motor, each tooth of electric motor
The angle of wheel rotation is all that accurately, therefore, the embodiment of the present invention can accurately control rotating camera rotation by electric motor
Turn any one angle.
The method rotated from the exemplary control rotating camera of above-mentioned attached drawing 1 is it is found that since gesture is in dot matrix infrared sensing
The distance d slided on device touch screen can be arbitrary value, the maximum angle ψ and dot matrix infrared sensing that rotating camera can rotate
The longitudinally covered range D of any one column infrared sensor transmitting signal is fixed value in device, can be rotated according to rotating camera
Maximum angle ψ and the accounting of distance d and D slided on dot matrix infrared sensor touch screen of gesture, the gesture is existed
The distance d slided on dot matrix infrared sensor touch screen is converted into what the gesture was slided on dot matrix infrared sensor touch screen
The rotation angle, θ of rotating camera can be arbitrary value when distance d, therefore, be touched with gesture in infrared sensor with the prior art
Touch screen on sliding can only control rotating camera rotation fixed angle compare, technical solution provided by the invention is with gesture in dot matrix
It is slided on infrared sensor touch screen, rotating camera can be controlled with Arbitrary Rotation, meet and be equipped with rotating camera
Intelligent terminal demand of the user to shooting angle, brought convenience to user using the intelligent terminal.
Attached drawing 3 is please referred to, is the structural representation of the device of control rotating camera rotation provided by Embodiment 2 of the present invention
Figure.For ease of description, only parts related to embodiments of the present invention are shown.The rotation of the exemplary control rotating camera of attached drawing 3
The device turned can be the executing subject of the method for the control rotating camera rotation of previous embodiment offer, can be intelligence
Terminal or one of functional module.The device of the exemplary control rotating camera rotation of attached drawing 3 mainly includes obtaining mould
Block 301, apart from angle conversion module 302 and command sending module 303, detailed description are as follows for each functional module:
Obtain module 301, the distance d slided on dot matrix infrared sensor touch screen for obtaining gesture.
In embodiments of the present invention, dot matrix infrared sensor touch screen includes the dot matrix of several infrared sensors composition, example
Such as, N × N number of infrared sensor composition dot matrix, these dot matrix infrared sensors constitute the sensing element part of touch screen, such as attached
It is the dot matrix infrared sensor touch screen schematic diagram that the dot matrix of 4 × 4 infrared sensor compositions is constituted shown in Fig. 2-a.
Apart from angle conversion module 302, the maximum angle ψ and gesture for that can be rotated according to rotating camera are in point
The accounting of the distance d and D that are slided on battle array infrared sensor touch screen, the gesture is sliding on dot matrix infrared sensor touch screen
Dynamic distance d is converted into the rotation of gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen
Angle, θ, wherein D is the longitudinally covered range of any one column infrared sensor transmitting signal in the dot matrix infrared sensor.
Command sending module 303 is ordered for sending to motor, so that motor driving rotating camera rotates θ °.
In embodiments of the present invention, the motor of driving rotating camera rotation can be the electric motor of stepping, order hair
Send module 303 that can be sent to driving rotation in order by carrying the rotation angle, θ for the rotating camera calculated
The electric motor of camera rotation, driving rotating camera rotation rotation angle, θ.Due to the internal mechanical structure of electric motor,
The angle of each gear rotation of electric motor is that accurately, therefore, the embodiment of the present invention, can be accurate by electric motor
Control rotating camera rotates any one angle.
It should be noted that in the embodiment of the device of the exemplary control rotating camera rotation of the figures above 3, each function
The division of energy module is merely illustrative of, and can according to need in practical application, such as the configuration requirement or soft of corresponding hardware
The convenient of the realization of part considers, and above-mentioned function distribution is completed by different functional modules, i.e., rotates the control and image
The internal structure of the device of head rotation is divided into different functional modules, to complete all or part of the functions described above.
Moreover, the corresponding functional module in the present embodiment can be by corresponding hardware realization in practical application, it can also be by corresponding
Hardware execute corresponding software and complete, for example, acquisition module above-mentioned, can be to have and execute aforementioned acquisition gesture in dot matrix
The hardware of the distance d slided on infrared sensor touch screen, such as getter are also possible to be able to carry out corresponding computer program
To complete the general processor or other hardware devices of aforementioned function;For another example above-mentioned apart from angle conversion module, it can be with
It is to execute the maximum angle ψ that can be rotated according to rotating camera and gesture to slide on dot matrix infrared sensor touch screen
The accounting of distance d and D convert the gesture for the distance d that the gesture is slided on dot matrix infrared sensor touch screen and exist
The hardware of the rotation angle, θ of rotating camera when the distance d slided on dot matrix infrared sensor touch screen, such as turn apart from angle
Change device, is also possible to be able to carry out corresponding computer program to complete the general processor of aforementioned function or other hardware are set
Standby (each embodiment that this specification provides can all apply foregoing description principle).
The device rotated from the exemplary control rotating camera of above-mentioned attached drawing 3 is it is found that the hand obtained due to obtaining module 301
The distance d that gesture is slided on dot matrix infrared sensor touch screen can be arbitrary value, the maximum angular that rotating camera can rotate
The longitudinally covered range D for spending any one column infrared sensor transmitting signal in ψ and dot matrix infrared sensor is fixed value, apart from angle
The maximum angle ψ and gesture that degree conversion module 302 can be rotated according to rotating camera are in dot matrix infrared sensor touch screen
The distance d that the gesture is slided on dot matrix infrared sensor touch screen is converted institute by the accounting of the distance d and D of upper sliding
Stating gesture rotation angle, θ of rotating camera in the distance d slided on dot matrix infrared sensor touch screen can be arbitrary value,
Therefore, rotating camera rotation fixed angle phase can only be controlled by being slided on infrared sensor touch screen with the prior art with gesture
Than technical solution provided by the invention is slided on dot matrix infrared sensor touch screen with gesture, can control rotating camera
With Arbitrary Rotation, the demand for being equipped with the user of the intelligent terminal of rotating camera to shooting angle is met, is made to user
It is brought convenience with the intelligent terminal.
The exemplary acquisition module 301 of attached drawing 3 may include gesture capturing unit 401 and metrics calculation unit 402, such as attached drawing
The device for the control rotating camera rotation that the embodiment of the present invention three shown in 4 provides, wherein:
Gesture capturing unit 401, for capturing the gesture on dot matrix infrared sensor touch screen.
In embodiments of the present invention, when finger slides on dot matrix infrared sensor touch screen, each of dot matrix is red
Outer sensor can capture sensing data;With the sliding of finger and the capture of each infrared sensor, can capture in point
Gesture on battle array infrared sensor touch screen.
Metrics calculation unit 402, for according to initial position to any point between target position to dot matrix infrared sensing
The distance for the straight line that any one column infrared sensor is constituted in device and described any point are infrared with any one column respectively
The distance of each infrared sensor in sensor calculates the distance d that gesture is slided on dot matrix infrared sensor touch screen,
In, target position is terminal of the gesture in sliding distance d on dot matrix infrared sensor touch screen.
Specifically, metrics calculation unit 402 calculates the mistake for the distance d that gesture is slided on dot matrix infrared sensor touch screen
Journey is as follows:For the dot matrix that 4 × 4 infrared sensors shown in the attached drawing 2-a are constituted, as shown in attached drawing 2-b, it is assumed that 4 × 4 red
Any one column infrared sensor dot matrix i.e. 4 infrared sensors in outer sensor (in figure shown in 4 stains, number is respectively 1,
2,3 and 4, referred to as infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4 individually below) detection is in one's hands
Gesture slides into target position (in figure shown in circle) from initial position (in figure shown in blacking triangle), initial position to target position
The distance set indicates that the longitudinally covered range of 4 infrared sensor transmitting signals is indicated in figure using D, initial position using d
To any point between target position into 4 × 4 infrared sensors any one column infrared sensor (4 infrared sensors) structure
At the distance of straight line indicated in figure using Lmin, initial position to any point between target position (pros in figure
Shown in shape stain) L is used at a distance from 4 infrared sensors respectively1、L2、L3And L4It indicates.
Assuming that only have infrared sensor 1 to detect target position in initial position, initial position to infrared sensor 1 away from
From for L11, as shown in attached drawing 2-c, then the position d1 of initial position to a period of time inspection center's point can be obtained according to trigonometric function formula
It arrivesThe d2 in figure is in kind calculated, in this way, gesture is slided on dot matrix infrared sensor touch screen
Distance d=d1+d2.It is just that coordinate points calculating is vertical with infrared sensor 2 if infrared sensor 1 can't detect target position
To position, and assume that the detection range of infrared sensor 1 is symmetrical i.e. d=2 × d1+d3 up and down, it is assumed herein that with infrared biography
Sensor 2 is the fore-and-aft distance that coordinate points calculate.
The exemplary device of attached drawing 4 can also include misrecognition processing module 501, the embodiment of the present invention four as shown in Fig. 5
The device of the control rotating camera rotation of offer.Processing module 501 is misidentified to capture for gesture capturing unit 401 in dot matrix
After gesture on infrared sensor touch screen, by backoff algorithm, misrecognition movement is handled.
Since certain user is when sliding into another place from a place for finger, start bit may be immediately fallen back to
It sets.According to being ready for user, the short time return to initial position be should not be identified.If identification, is exactly to misidentify.In order to
The generation of this situation is prevented, in embodiments of the present invention, gesture capturing unit 401 is captured in dot matrix infrared sensor touch screen
On gesture after, misrecognition processing module 501 is by backoff algorithm, processing misrecognition movement.
The exemplary misrecognition processing module 501 of attached drawing 5 may include judging unit 601 and filter element 602, such as attached drawing 6
The device for the control rotating camera rotation that the shown embodiment of the present invention five provides, wherein:
Judging unit 601, for judging that gesture slides into target from initial position on dot matrix infrared sensor touch screen
Glide direction when position.
Filter element 602, if gesture is returned from target position along the direction opposite with glide direction within a preset time
It is back to initial position, then filters gesture from the target position and is back to the starting along the direction opposite with the glide direction
The event that position generates.
Attached drawing 3 it is exemplary apart from angle conversion module 302 may include the first computing unit 701 and the second computing unit
702, the device for the control rotating camera rotation that the embodiment of the present invention six as shown in Fig. 7 provides, wherein:
First computing unit 701, for calculating distance d and D that gesture is slided on dot matrix infrared sensor touch screen
Ratio d/D;
Second computing unit 702, it is infrared in dot matrix using product ψ d/D as gesture for calculating the product ψ d/D of ψ and d/D
The rotation angle, θ of rotating camera when the distance d slided on sensor touch screen.
In the device of the exemplary control rotating camera rotation of attached drawing 7, ψ is the maximum angular that rotating camera can rotate
Degree, D are the longitudinally covered ranges of any one column infrared sensor transmitting signal in dot matrix infrared sensor.
The embodiment of the present invention also provides a kind of mobile terminal, which includes that attached drawing 3 to 7 any example of attached drawing provides
Simulated touch screen sliding device.
It should be noted that the contents such as information exchange, implementation procedure between each module/unit of above-mentioned apparatus, due to
Embodiment of the present invention method is based on same design, and bring technical effect is identical as embodiment of the present invention method, particular content
It can be found in the narration in embodiment of the present invention method, details are not described herein again.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (5)
1. a kind of method of control rotating camera rotation, which is characterized in that the method is applied to including the infrared biography of dot matrix
The camera of the smart phone of sensor touch screen controls, and user is slided on the dot matrix infrared sensor touch screen by gesture
The control for realizing rotation angle of camera, the method includes:
The distance d that gesture is slided on dot matrix infrared sensor touch screen is obtained, including:Capture is in the dot matrix infrared sensor
Gesture on touch screen;It is any one into the dot matrix infrared sensor according to initial position to any point between target position
The distance for the straight line that column infrared sensor is constituted and described any point respectively with it is each in any one column infrared sensor
The distance of a infrared sensor calculates the distance d that the gesture is slided on dot matrix infrared sensor touch screen, the target position
It is set to terminal of the gesture in sliding distance d on dot matrix infrared sensor touch screen;
The maximum angle ψ and the gesture that can be rotated according to rotating camera are slided on dot matrix infrared sensor touch screen
Distance d and D accounting, convert the gesture for the distance d that the gesture is slided on dot matrix infrared sensor touch screen
The rotation angle, θ of the rotating camera in the distance d slided on dot matrix infrared sensor touch screen, the D are the points
The longitudinally covered range of any one column infrared sensor transmitting signal in battle array infrared sensor;
It sends and orders to electric motor, so that rotating camera described in the electrical motor driven rotates θ °;
Before the transmission order to electric motor, the method also includes:By backoff algorithm, misrecognition movement is handled,
Specially:
Judge sliding of the gesture when sliding into target position from initial position on the dot matrix infrared sensor touch screen
Direction;
If within a preset time, the gesture is back to from the target position along the direction opposite with the glide direction described
Initial position then filters the gesture from the target position and is back to the starting along the direction opposite with the glide direction
The event that position generates.
2. the method as described in claim 1, which is characterized in that the maximum angle ψ that can be rotated according to rotating camera
And the accounting of distance d and D that the gesture is slided on dot matrix infrared sensor touch screen, the gesture is infrared in dot matrix
The distance d slided on sensor touch screen is converted into the gesture in the distance d slided on dot matrix infrared sensor touch screen
The rotation angle, θ of the rotating camera, including:
Calculate the ratio d/D of distance d and D that the gesture is slided on dot matrix infrared sensor touch screen;
The product ψ d/D for calculating the ψ and d/D is sliding on dot matrix infrared sensor touch screen using product ψ d/D as the gesture
The rotation angle, θ of rotating camera when dynamic distance d.
3. a kind of device of control rotating camera rotation, which is characterized in that described device is applied to including the infrared biography of dot matrix
The camera of the smart phone of sensor touch screen controls, and user is slided on the dot matrix infrared sensor touch screen by gesture
Realize the control of rotation angle of camera, described device includes:
Obtain module, the distance d slided on dot matrix infrared sensor touch screen for obtaining gesture;
Apart from angle conversion module, the maximum angle ψ and the gesture for that can be rotated according to rotating camera are in dot matrix
The accounting of the distance d and D that slide on infrared sensor touch screen slide the gesture on dot matrix infrared sensor touch screen
Distance d be converted into the rotation of gesture rotating camera in the distance d slided on dot matrix infrared sensor touch screen
Gyration θ, the D are the longitudinally covered ranges of any one column infrared sensor transmitting signal in the dot matrix infrared sensor;
Command sending module is ordered for sending to electric motor, so that rotating camera described in the electrical motor driven is revolved
Turn θ °;
The acquisition module includes:
Gesture capturing unit, for capturing the gesture on the dot matrix infrared sensor touch screen;
Metrics calculation unit is used for according to initial position to any point between target position into the dot matrix infrared sensor
The distance for the straight line that any one column infrared sensor is constituted and described any point respectively with any one column infrared sensing
The distance of each infrared sensor in device, the distance d for calculating that the gesture slides on dot matrix infrared sensor touch screen are described
Target position is terminal of the gesture in sliding distance d on dot matrix infrared sensor touch screen
Described device further includes:
Processing module is misidentified, captures the gesture on the dot matrix infrared sensor touch screen for the gesture capturing unit
Later, it is sent described to electric motor before ordering, passes through backoff algorithm, handle misrecognition movement;
The misrecognition processing module includes:
Judging unit, for judging that the gesture slides into target from initial position on the dot matrix infrared sensor touch screen
Glide direction when position;
Filter element, if the gesture is from the target position along opposite with the glide direction within a preset time
Direction is back to the initial position, then filters the gesture from the target position along the direction opposite with the glide direction
It is back to the event that the initial position generates.
4. device as claimed in claim 3, which is characterized in that described to include apart from angle conversion module:
First computing unit, for calculating the ratio of distance d and D that the gesture is slided on dot matrix infrared sensor touch screen
d/D;
Second computing unit, it is red in dot matrix using product ψ d/D as the gesture for calculating the product ψ d/D of the ψ and d/D
The rotation angle, θ of the rotating camera when distance d slided on outer sensor touch screen.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes the rotation camera shooting of control described in claim 3 or 4
The device of head rotation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267467.7A CN104822029B (en) | 2015-05-22 | 2015-05-22 | A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510267467.7A CN104822029B (en) | 2015-05-22 | 2015-05-22 | A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104822029A CN104822029A (en) | 2015-08-05 |
CN104822029B true CN104822029B (en) | 2018-11-27 |
Family
ID=53732184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510267467.7A Active CN104822029B (en) | 2015-05-22 | 2015-05-22 | A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104822029B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187704B (en) * | 2015-09-30 | 2018-07-10 | 江门市圆美道科技有限公司 | A kind of wireless control transmitter of photographic equipment |
CN107370945A (en) * | 2017-07-25 | 2017-11-21 | 广东虹勤通讯技术有限公司 | A kind of camera control method and shooting head controlling device |
CN111385388B (en) * | 2018-12-29 | 2021-06-25 | Oppo广东移动通信有限公司 | Electronic device |
CN111182202B (en) * | 2019-11-08 | 2022-05-27 | 广东小天才科技有限公司 | Content identification method based on wearable device and wearable device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870156A (en) * | 2014-03-05 | 2014-06-18 | 美卓软件设计(北京)有限公司 | Method and device for processing object |
CN103995788A (en) * | 2014-05-27 | 2014-08-20 | 广东欧珀移动通信有限公司 | Method and device for controlling camera of touch screen terminal to rotate |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320574B (en) * | 2014-09-26 | 2017-06-09 | 广东欧珀移动通信有限公司 | A kind of method of gesture control camera rotation, device and infrared gesture sensor |
CN104238578B (en) * | 2014-09-26 | 2017-02-15 | 广东欧珀移动通信有限公司 | Method and device for controlling rotation of camera |
CN104469145B (en) * | 2014-11-05 | 2018-01-16 | 广东欧珀移动通信有限公司 | A kind of method, device and mobile terminal for controlling mobile terminal camera rotation |
CN104618658B (en) * | 2015-02-26 | 2017-11-03 | 广东欧珀移动通信有限公司 | Mobile terminal and its rotating camera control method |
-
2015
- 2015-05-22 CN CN201510267467.7A patent/CN104822029B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870156A (en) * | 2014-03-05 | 2014-06-18 | 美卓软件设计(北京)有限公司 | Method and device for processing object |
CN103995788A (en) * | 2014-05-27 | 2014-08-20 | 广东欧珀移动通信有限公司 | Method and device for controlling camera of touch screen terminal to rotate |
Also Published As
Publication number | Publication date |
---|---|
CN104822029A (en) | 2015-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104822029B (en) | A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal | |
EP3120232B1 (en) | Determining user handedness and orientation using a touchscreen device | |
US11625841B2 (en) | Localization and tracking method and platform, head-mounted display system, and computer-readable storage medium | |
CN107517372A (en) | A kind of VR content imagings method, relevant device and system | |
CN104238669B (en) | A kind of method, device and mobile terminal for controlling mobile terminal camera rotation | |
CN107820593A (en) | A kind of virtual reality exchange method, apparatus and system | |
CN104320591B (en) | A kind of front and rear method, apparatus switched of control camera and a kind of intelligent terminal | |
CN106325509A (en) | Three-dimensional gesture recognition method and system | |
CN102508575B (en) | Screen writing device, screen writing system and realization method thereof | |
CN202127481U (en) | Stereo image taking device capable of changing imaging axis | |
CN102810015B (en) | Input method based on space motion and terminal | |
CN107430192A (en) | Increase the method and apparatus of the frame rate of flight time measurement | |
CN106576156B (en) | Wearable mediation reality system and method | |
US20170140215A1 (en) | Gesture recognition method and virtual reality display output device | |
CN110232707A (en) | A kind of distance measuring method and device | |
CN108151738A (en) | Codified active light marked ball with attitude algorithm | |
CN105892668B (en) | Apparatus control method and device | |
CN103399629A (en) | Method and device for capturing gesture displaying coordinates | |
CN107682595B (en) | interactive projection method, system and computer readable storage medium | |
CN109933190B (en) | Head-mounted display equipment and interaction method thereof | |
CN110567484B (en) | Method and device for calibrating IMU and rigid body posture and readable storage medium | |
CN109076206A (en) | Stereoscopic imaging method and device based on unmanned plane | |
CN108259731A (en) | A kind of camera apparatus of autozoom, system and method | |
CN113282169B (en) | Interaction method and device of head-mounted display equipment and head-mounted display equipment | |
CN106293078A (en) | Virtual reality exchange method based on photographic head and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18 Patentee before: Guangdong Opel Mobile Communications Co., Ltd. |
|
CP03 | Change of name, title or address |