CN104822029A - Method and device for controlling rotary camera to rotate and mobile terminal - Google Patents

Method and device for controlling rotary camera to rotate and mobile terminal Download PDF

Info

Publication number
CN104822029A
CN104822029A CN201510267467.7A CN201510267467A CN104822029A CN 104822029 A CN104822029 A CN 104822029A CN 201510267467 A CN201510267467 A CN 201510267467A CN 104822029 A CN104822029 A CN 104822029A
Authority
CN
China
Prior art keywords
infrared sensor
dot matrix
gesture
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.)
Granted
Application number
CN201510267467.7A
Other languages
Chinese (zh)
Other versions
CN104822029B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510267467.7A priority Critical patent/CN104822029B/en
Publication of CN104822029A publication Critical patent/CN104822029A/en
Application granted granted Critical
Publication of CN104822029B publication Critical patent/CN104822029B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and device for controlling a rotary camera to rotate and a mobile terminal so as to control the rotary camera to rotate at any angle through gesture slide. The method comprises the following steps: obtaining a sliding distance d of a gesture on a dot matrix infrared sensor touch screen; according to the maximum angle psi that the rotary camera can rotate to and ratio of the sliding distance d of the gesture on the dot matrix infrared sensor touch screen and D, converting the sliding distance d of the gesture on the dot matrix infrared sensor touch screen into a rotation angle theta of the rotary camera obtained when sliding distance of the gesture on the dot matrix infrared sensor touch screen is d; and sending a command to a motor to enable the motor to drive the rotary camera to rotate for theta degrees. According to the technical scheme, the gesture slides on the dot matrix infrared sensor touch screen to control the rotary camera to rotate at any angle, thereby meeting the requirement for shooting angles of a user of the intelligent terminal having the rotary camera, and providing convenience for the user to use the intelligent terminal.

Description

A kind of method, device and a kind of mobile terminal controlling rotating camera and rotate
Technical field
The invention belongs to moving communicating field, particularly relate to a kind of method, device and a kind of mobile terminal that control rotating camera and rotate.
Background technology
The development of the intelligent terminal such as smart mobile phone, panel computer technology, makes the function of these terminals from strength to strength, has surmounted the simple function of communication far away.Can not rant out, the intelligent terminals such as smart mobile phone have been no longer simple meanss of communication, but integrate the handicraft of leisure, amusement and functions such as communicating.Such as, general smart mobile phone all with camera, to realize the function of taking pictures and/or making a video recording.
The camera of traditional smart mobile phone is fixedly mounted on mobile phone, user to certain angle shot photo, normally by smart mobile phone integral-rotation angle.Along with the progress of intelligent terminal technology, there is electronic camera at present.The pivoting mechanism of this camera adds a step-type electro-motor in the side of rotating lens rotating shaft, realizes camera lens (such as, 0 to 206 degree) in certain angular range rotate by motor.The development of touch screen technology, the rotation controlling rotating camera for smart phone user brings huge convenience.Such as, existing infrared sensor (sensor) touch-screen, user only needs to adopt gesture to slide on the touchscreen can control the rotation of rotating camera.
Because current infrared sensor can only identify four, the upper and lower, left and right glide direction of gesture, data are reported to be used for identifying direction after identification, notice upper layer application.Therefore, existing infrared sensor touch-screen, when user adopts gesture to slide, can only realize the disposable rotation maximum angle of rotating camera, such as, rotates to 206 ° of degree from 0 °, or, rotate to 0 ° from 206 °.When user needs with Arbitrary Rotation camera, above-mentioned existing infrared sensor touch-screen obviously can not meet the demands.
Summary of the invention
The invention provides a kind of method, device and a kind of mobile terminal that control rotating camera and rotate, control rotating camera with Arbitrary Rotation to realize adopting gesture to slide.
First aspect present invention provides a kind of method controlling rotating camera and rotate, and described method comprises:
Obtain the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
The accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, described D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits;
Send order to motor, drive described rotating camera to rotate θ ° to make described motor.
In conjunction with first aspect, in the first possible implementation of first aspect, the distance d that described acquisition gesture is slided on dot matrix infrared sensor touch-screen, comprising:
Be captured in the gesture on described dot matrix infrared sensor touch-screen;
The distance of the straight line formed to a row infrared sensor any in described dot matrix infrared sensor according to any point between original position to target location and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that described gesture is slided on dot matrix infrared sensor touch-screen.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described in be captured on described dot matrix infrared sensor touch-screen gesture after, described method also comprises:
By backoff algorithm, process is identification maneuver by mistake.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, described by backoff algorithm, process is identification maneuver by mistake, comprising:
Judge glide direction when described gesture slides into target location from original position on described dot matrix infrared sensor touch-screen, described target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d;
If in Preset Time, described gesture is back to described original position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described original position produces from described target location along the direction contrary with described glide direction.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, the accounting of distance d and the D that the described maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera, comprises:
Calculate the ratio d/D of distance d and the D that described gesture is slided on dot matrix infrared sensor touch-screen;
Calculate the product ψ d/D described in described ψ and d/D, using the anglec of rotation θ of product ψ d/D as described rotating camera.
Second aspect present invention provides a kind of device controlling rotating camera and rotate, and described device comprises:
Acquisition module, for obtaining the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
Distance angle conversion module, for the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture slide on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, described D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits;
Order sending module, for sending order to motor, drives described rotating camera to rotate θ ° to make described motor.
In conjunction with second aspect, in the first possible implementation of second aspect, described acquisition module comprises:
Gesture capturing unit, for being captured in the gesture on described dot matrix infrared sensor touch-screen;
Metrics calculation unit, for the distance of straight line that forms to a row infrared sensor any in described dot matrix infrared sensor according to any point between original position to target location and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that described gesture is slided on dot matrix infrared sensor touch-screen.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Recognition processing module by mistake, after described gesture capturing unit is captured in the gesture on described dot matrix infrared sensor touch-screen, by backoff algorithm, process is identification maneuver by mistake.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described recognition processing module by mistake comprises:
Judging unit, for judging glide direction when described gesture slides into target location from original position on described dot matrix infrared sensor touch-screen, described target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d;
Filter element, if in Preset Time, described gesture is back to described original position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described original position produces from described target location along the direction contrary with described glide direction.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described distance angle conversion module comprises:
First computing unit, for calculating the ratio d/D of distance d and the D that described gesture is slided on dot matrix infrared sensor touch-screen;
Second computing unit, for calculating the product ψ d/D described in described ψ and d/D, the anglec of rotation θ of described rotating camera during the distance d that product ψ d/D is slided on dot matrix infrared sensor touch-screen as described gesture.
Third aspect present invention provides a kind of mobile terminal, and described mobile terminal comprises the device that above-mentioned control rotating camera rotates.
From the invention described above technical scheme, the distance d slided on dot matrix infrared sensor touch-screen due to gesture can be arbitrary value, longitudinal coverage D that in the maximum angle ψ that rotating camera can rotate and dot matrix infrared sensor, any row infrared sensor transmits is fixed value, the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the anglec of rotation θ distance d that described gesture is slided on dot matrix infrared sensor touch-screen being converted into rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen can be arbitrary value, therefore, to slide on infrared sensor touch-screen with gesture with prior art and can only control rotating camera and rotate compared with fixed angle, technical scheme provided by the invention is slided on dot matrix infrared sensor touch-screen with gesture, rotating camera can be controlled with Arbitrary Rotation, meet the demand of user to shooting angle of the intelligent terminal being equipped with rotating camera, this intelligent terminal is used to bring convenience to user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow 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 of 4 × 4 infrared sensors formations that the embodiment of the present invention provides;
Fig. 2-b is the first schematic diagram that the dot matrix formed for 4 × 4 infrared sensors that the embodiment of the present invention provides calculates the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
Fig. 2-c is the second schematic diagram that the dot matrix formed for 4 × 4 infrared sensors that the embodiment of the present invention provides calculates the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
Fig. 3 is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention two provides;
Fig. 4 is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention four provides;
Fig. 6 is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention five provides;
Fig. 7 is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention six provides.
Embodiment
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, and not all embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method controlling rotating camera and rotate, and described method comprises: obtain the distance d that gesture is slided on dot matrix infrared sensor touch-screen; The accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, described D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits; Send order to motor, drive described rotating camera to rotate θ ° to make described motor.The embodiment of the present invention also provides corresponding and controls the device of rotating camera rotation and a kind of mobile terminal.Below be described in detail respectively.
Refer to accompanying drawing 1, be the realization flow of the method for the control rotating camera rotation that the embodiment of the present invention one provides, its executive agent can be the mobile terminal such as smart mobile phone, panel computer.The control rotating camera of accompanying drawing 1 example rotate method mainly comprise the following steps 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 comprises the dot matrix of some infrared sensors composition, such as, the dot matrix of N × N number of infrared sensor composition, these dot matrix infrared sensors form the sensing element part of touch-screen, as shown in accompanying drawing 2-a, it is the dot matrix infrared sensor touch-screen schematic diagram that the dot matrix of 4 × 4 infrared sensor compositions is formed.As one embodiment of the invention, the distance d that acquisition gesture is slided on dot matrix infrared sensor touch-screen comprises the steps S1011 and step S1012:
S1011, is captured in 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 infrared sensor in dot matrix can catch sensing data; Along with the slip of finger and catching of each infrared sensor, the gesture on dot matrix infrared sensor touch-screen can be captured in.
Because certain user is when sliding into another place by finger from a place, original position may be got back at once.Being ready according to user, the short time gets back to original position and should not be identified.If identify, be then exactly identify by mistake.In order to prevent the generation of this situation, in embodiments of the present invention, after being captured in the gesture on dot matrix infrared sensor touch-screen, described method also comprises: by backoff algorithm, and process is identification maneuver by mistake.Particularly, first can judge glide direction when gesture slides into target location from original position on dot matrix infrared sensor touch-screen, then, if in Preset Time, such as, in 800ms, described gesture is back to original position from target location along the direction contrary with glide direction, then filter described gesture and be back to the event that described original position produces from described target location along the direction contrary with described glide direction.Once this kind of event is filtered, then follow-up system does not have the response of opponent's gesture, thus there will not be sliding effect.
S1012, the distance of the straight line formed to a row infrared sensor any in described dot matrix infrared sensor according to any point between original position to target location and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that gesture is slided on dot matrix infrared sensor touch-screen, wherein, target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d.
Particularly, for the dot matrix that 4 × 4 infrared sensors shown in accompanying drawing 2-a are formed.As shown in accompanying drawing 2-b, suppose that in 4 × 4 infrared sensors, any row infrared sensor dot matrix i.e. 4 infrared sensors are (in figure shown in 4 stains, numbering is respectively 1, 2, 3 and 4, below be called infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4) detect gesture and slide into target location (in figure shown in circle) from original position (figure blacking triangle shown in), original position uses d to represent to the distance of target location, longitudinal coverage that 4 infrared sensors transmit uses D to represent in the drawings, between original position to target location, in the infrared sensor of any point to 4 × 4, the distance of the straight line that any row infrared sensor (4 infrared sensors) is formed uses Lmin to represent in the drawings, between original position to target location, any point (in figure shown in a square stain) uses L with the distance of 4 infrared sensors respectively 1, L 2, L 3and L 4represent.
Suppose to only have infrared sensor 1 target location to be detected in original position, original position is L to the distance of infrared sensor 1 11, as shown in accompanying drawing 2-c, so original position can obtain according to trigonometric function formula to the position d1 of a period of time inspection center's point d2 in kind in calculating chart, so, the distance d=d1+d2 that gesture is slided on dot matrix infrared sensor touch-screen.If infrared sensor 1 can't detect target location, just with infrared sensor 2 for coordinate points calculate lengthwise position, and suppose that the detection range of infrared sensor 1 is symmetrical i.e. d=2 × d1+d3 up and down, supposes the fore-and-aft distance calculated for coordinate points with infrared sensor 2 herein.
S102, the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, wherein, D is longitudinal coverage that in dot matrix infrared sensor, any row infrared sensor transmits.
As one embodiment of the invention, the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and gesture are slided on dot matrix infrared sensor touch-screen, the anglec of rotation θ distance d that described gesture is slided on dot matrix infrared sensor touch-screen being converted into rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen can be: the ratio d/D calculating distance d and the D that gesture is slided on dot matrix infrared sensor touch-screen; Calculate the product ψ d/D of ψ and d/D, the anglec of rotation θ of described rotating camera, that is, θ=ψ d/D during the distance d that can be slided on dot matrix infrared sensor touch-screen as gesture by product ψ d/D.
S103, sends order to motor, drives rotating camera to rotate θ ° to make described motor.
In embodiments of the present invention, the motor driving rotating camera to rotate can be the electro-motor of stepping, can, by the anglec of rotation θ of the rotating camera calculated being carried in order the electro-motor being sent to and driving rotating camera to rotate, rotating camera be driven to rotate anglec of rotation θ.Due to the internal mechanical structure of electro-motor, the angle that each gear of electro-motor rotates is accurately, and therefore, the embodiment of the present invention, by electro-motor, accurately can control rotating camera and rotate any one angle.
From the method that the control rotating camera of above-mentioned accompanying drawing 1 example rotates, the distance d slided on dot matrix infrared sensor touch-screen due to gesture can be arbitrary value, longitudinal coverage D that in the maximum angle ψ that rotating camera can rotate and dot matrix infrared sensor, any row infrared sensor transmits is fixed value, the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and gesture are slided on dot matrix infrared sensor touch-screen, the anglec of rotation θ distance d that described gesture is slided on dot matrix infrared sensor touch-screen being converted into rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen can be arbitrary value, therefore, to slide on infrared sensor touch-screen with gesture with prior art and can only control rotating camera and rotate compared with fixed angle, technical scheme provided by the invention is slided on dot matrix infrared sensor touch-screen with gesture, rotating camera can be controlled with Arbitrary Rotation, meet the demand of user to shooting angle of the intelligent terminal being equipped with rotating camera, this intelligent terminal is used to bring convenience to user.
Referring to accompanying drawing 3, is the structural representation of the device of the control rotating camera rotation that the embodiment of the present invention two provides.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The device of the control rotating camera rotation of accompanying drawing 3 example can be the executive agent of the method for the control rotating camera rotation that previous embodiment provides, and it can be intelligent terminal or one of them functional module.The device that the control rotating camera of accompanying drawing 3 example rotates mainly comprises acquisition module 301, distance angle conversion module 302 and order sending module 303, and each functional module is described in detail as follows:
Acquisition module 301, for obtaining 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 comprises the dot matrix of some infrared sensors composition, such as, the dot matrix of N × N number of infrared sensor composition, these dot matrix infrared sensors form the sensing element part of touch-screen, as shown in accompanying drawing 2-a, it is the dot matrix infrared sensor touch-screen schematic diagram that the dot matrix of 4 × 4 infrared sensor compositions is formed.
Distance angle conversion module 302, for the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and gesture slide on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, wherein, D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits.
Order sending module 303, for sending order to motor, drives rotating camera to rotate θ ° to make described motor.
In embodiments of the present invention, the motor driving rotating camera to rotate can be the electro-motor of stepping, order sending module 303 can, by the anglec of rotation θ of the rotating camera calculated being carried in order the electro-motor being sent to and driving rotating camera to rotate, drive rotating camera to rotate anglec of rotation θ.Due to the internal mechanical structure of electro-motor, the angle that each gear of electro-motor rotates is accurately, and therefore, the embodiment of the present invention, by electro-motor, accurately can control rotating camera and rotate any one angle.
It should be noted that, in the execution mode of the device of the control rotating camera rotation of above accompanying drawing 3 example, the division of each functional module only illustrates, can be as required in practical application, the facility of the such as configuration requirement of corresponding hardware or the realization of software is considered, and above-mentioned functions distribution is completed by different functional modules, the internal structure by the device of described control rotating camera rotation is divided into different functional modules, to complete all or part of function described above.And, in practical application, corresponding functional module in the present embodiment can be by corresponding hardware implementing, also can perform corresponding software by corresponding hardware to complete, such as, aforesaid acquisition module can be have the hardware performing the distance d that aforementioned acquisition gesture is slided on dot matrix infrared sensor touch-screen, such as getter also can be general processor or other hardware devices that can perform corresponding computer program thus complete aforementioned function, for another example aforesaid distance angle conversion module, it can be the accounting performing distance d and the D that the maximum angle ψ that can rotate according to rotating camera and gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the hardware of the anglec of rotation θ of rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, such as distance angle converter, also can be general processor or other hardware devices (each embodiment that this specification provides all can apply foregoing description principle) that can perform corresponding computer program thus complete aforementioned function.
From the device that the control rotating camera of above-mentioned accompanying drawing 3 example rotates, the distance d slided on dot matrix infrared sensor touch-screen due to the gesture of acquisition module 301 acquisition can be arbitrary value, longitudinal coverage D that in the maximum angle ψ that rotating camera can rotate and dot matrix infrared sensor, any row infrared sensor transmits is fixed value, the accounting of the maximum angle ψ that distance angle conversion module 302 can rotate according to rotating camera and distance d and the D that gesture is slided on dot matrix infrared sensor touch-screen, the anglec of rotation θ distance d that described gesture is slided on dot matrix infrared sensor touch-screen being converted into rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen can be arbitrary value, therefore, to slide on infrared sensor touch-screen with gesture with prior art and can only control rotating camera and rotate compared with fixed angle, technical scheme provided by the invention is slided on dot matrix infrared sensor touch-screen with gesture, rotating camera can be controlled with Arbitrary Rotation, meet the demand of user to shooting angle of the intelligent terminal being equipped with rotating camera, this intelligent terminal is used to bring convenience to user.
The acquisition module 301 of accompanying drawing 3 example can comprise gesture capturing unit 401 and metrics calculation unit 402, the device that the control rotating camera that the embodiment of the present invention three provides as shown in Figure 4 rotates, wherein:
Gesture capturing unit 401, for being captured in 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 infrared sensor in dot matrix can catch sensing data; Along with the slip of finger and catching of each infrared sensor, the gesture on dot matrix infrared sensor touch-screen can be captured in.
Metrics calculation unit 402, for the distance of straight line that forms according to a row infrared sensor any in any point between original position to target location to dot matrix infrared sensor and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that gesture is slided on dot matrix infrared sensor touch-screen, wherein, target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d.
Particularly, the process that metrics calculation unit 402 calculates the distance d that gesture is slided on dot matrix infrared sensor touch-screen is as follows: the dot matrix formed for 4 × 4 infrared sensors shown in accompanying drawing 2-a, as shown in accompanying drawing 2-b, suppose that in 4 × 4 infrared sensors, any row infrared sensor dot matrix i.e. 4 infrared sensors are (in figure shown in 4 stains, numbering is respectively 1, 2, 3 and 4, below be called infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4) detect gesture and slide into target location (in figure shown in circle) from original position (figure blacking triangle shown in), original position uses d to represent to the distance of target location, longitudinal coverage that 4 infrared sensors transmit uses D to represent in the drawings, between original position to target location, in the infrared sensor of any point to 4 × 4, the distance of the straight line that any row infrared sensor (4 infrared sensors) is formed uses Lmin to represent in the drawings, between original position to target location, any point (in figure shown in a square stain) uses L with the distance of 4 infrared sensors respectively 1, L 2, L 3and L 4represent.
Suppose to only have infrared sensor 1 target location to be detected in original position, original position is L to the distance of infrared sensor 1 11, as shown in accompanying drawing 2-c, so original position can obtain according to trigonometric function formula to the position d1 of a period of time inspection center's point d2 in kind in calculating chart, so, the distance d=d1+d2 that gesture is slided on dot matrix infrared sensor touch-screen.If infrared sensor 1 can't detect target location, just with infrared sensor 2 for coordinate points calculate lengthwise position, and suppose that the detection range of infrared sensor 1 is symmetrical i.e. d=2 × d1+d3 up and down, supposes the fore-and-aft distance calculated for coordinate points with infrared sensor 2 herein.
The device of accompanying drawing 4 example can also comprise recognition processing module 501 by mistake, the device that the control rotating camera that the embodiment of the present invention four provides as shown in Figure 5 rotates.Recognition processing module 501 is after gesture capturing unit 401 is captured in the gesture on dot matrix infrared sensor touch-screen by mistake, and by backoff algorithm, process is identification maneuver by mistake.
Because certain user is when sliding into another place by finger from a place, original position may be got back at once.Being ready according to user, the short time gets back to original position and should not be identified.If identify, be then exactly identify by mistake.In order to prevent the generation of this situation, in embodiments of the present invention, after gesture capturing unit 401 is captured in the gesture on dot matrix infrared sensor touch-screen, recognition processing module 501 is by backoff algorithm by mistake, and process is identification maneuver by mistake.
The mistake recognition processing module 501 of accompanying drawing 5 example can comprise judging unit 601 and filter element 602, the device that the control rotating camera that the embodiment of the present invention five provides as shown in Figure 6 rotates, wherein:
Judging unit 601, for judging glide direction when gesture slides into target location from original position on dot matrix infrared sensor touch-screen.
Filter element 602, if in Preset Time, gesture is back to original position from target location along the direction contrary with glide direction, then filtration gesture is back to the event that described original position produces from described target location along the direction contrary with described glide direction.
The distance angle conversion module 302 of accompanying drawing 3 example can comprise the first computing unit 701 and the second computing unit 702, the device that the control rotating camera that the embodiment of the present invention six provides as shown in Figure 7 rotates, wherein:
First computing unit 701, for calculating the ratio d/D of distance d and the D that gesture is slided on dot matrix infrared sensor touch-screen;
Second computing unit 702, for calculating the product ψ d/D of ψ and d/D, the anglec of rotation θ of rotating camera during the distance d that product ψ d/D is slided on dot matrix infrared sensor touch-screen as gesture.
In the device that the control rotating camera of accompanying drawing 7 example rotates, ψ is the maximum angle that rotating camera can rotate, and D is longitudinal coverage that in dot matrix infrared sensor, any row infrared sensor transmits.
The embodiment of the present invention also provides a kind of mobile terminal, the device that the simulate that this mobile terminal comprises the arbitrary example of accompanying drawing 3 to accompanying drawing 7 to be provided is slided.
It should be noted that, the content such as information interaction, implementation between each module/unit of said apparatus, due to the inventive method embodiment based on same design, its technique effect brought is identical with the inventive method embodiment, particular content see describing in the inventive method embodiment, can repeat no more herein.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (11)

1. control the method that rotating camera rotates, it is characterized in that, described method comprises:
Obtain the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
The accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, described D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits;
Send order to motor, drive described rotating camera to rotate θ ° to make described motor.
2. the method for claim 1, is characterized in that, the distance d that described acquisition gesture is slided on dot matrix infrared sensor touch-screen, comprising:
Be captured in the gesture on described dot matrix infrared sensor touch-screen;
The distance of the straight line formed to a row infrared sensor any in described dot matrix infrared sensor according to any point between original position to target location and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that described gesture is slided on dot matrix infrared sensor touch-screen, described target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d.
3. the method for claim 1, is characterized in that, described in be captured on described dot matrix infrared sensor touch-screen gesture after, described method also comprises:
By backoff algorithm, process is identification maneuver by mistake.
4. method as claimed in claim 3, is characterized in that, described by backoff algorithm, process is identification maneuver by mistake, comprising:
Judge glide direction when described gesture slides into target location from original position on described dot matrix infrared sensor touch-screen;
If in Preset Time, described gesture is back to described original position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described original position produces from described target location along the direction contrary with described glide direction.
5. the method for claim 1, it is characterized in that, the accounting of distance d and the D that the described maximum angle ψ that can rotate according to rotating camera and described gesture are slided on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, comprises:
Calculate the ratio d/D of distance d and the D that described gesture is slided on dot matrix infrared sensor touch-screen;
Calculate the product ψ d/D described in described ψ and d/D, the anglec of rotation θ of described rotating camera during the distance d slided on dot matrix infrared sensor touch-screen as described gesture by product ψ d/D.
6. control the device that rotating camera rotates, it is characterized in that, described device comprises:
Acquisition module, for obtaining the distance d that gesture is slided on dot matrix infrared sensor touch-screen;
Distance angle conversion module, for the accounting of distance d and the D that the maximum angle ψ that can rotate according to rotating camera and described gesture slide on dot matrix infrared sensor touch-screen, the distance d that described gesture is slided on dot matrix infrared sensor touch-screen is converted into the anglec of rotation θ of described rotating camera during the distance d that described gesture slides on dot matrix infrared sensor touch-screen, described D is longitudinal coverage that in described dot matrix infrared sensor, any row infrared sensor transmits;
Order sending module, for sending order to motor, drives described rotating camera to rotate θ ° to make described motor.
7. device as claimed in claim 6, it is characterized in that, described acquisition module comprises:
Gesture capturing unit, for being captured in the gesture on described dot matrix infrared sensor touch-screen;
Metrics calculation unit, for the distance of straight line that forms to a row infrared sensor any in described dot matrix infrared sensor according to any point between original position to target location and described any point respectively with the distance of each infrared sensor in described any row infrared sensor, calculate the distance d that described gesture is slided on dot matrix infrared sensor touch-screen, described target location is the terminal of described gesture on dot matrix infrared sensor touch-screen during sliding distance d.
8. device as claimed in claim 7, it is characterized in that, described device also comprises:
Recognition processing module by mistake, after described gesture capturing unit is captured in the gesture on described dot matrix infrared sensor touch-screen, by backoff algorithm, process is identification maneuver by mistake.
9. device as claimed in claim 8, is characterized in that, described recognition processing module by mistake comprises:
Judging unit, for judging glide direction when described gesture slides into target location from original position on described dot matrix infrared sensor touch-screen;
Filter element, if in Preset Time, described gesture is back to described original position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described original position produces from described target location along the direction contrary with described glide direction.
10. device as claimed in claim 6, is characterized in that, described distance angle conversion module comprises:
First computing unit, for calculating the ratio d/D of distance d and the D that described gesture is slided on dot matrix infrared sensor touch-screen;
Second computing unit, for calculating the product ψ d/D described in described ψ and d/D, the anglec of rotation θ of described rotating camera during the distance d that product ψ d/D is slided on dot matrix infrared sensor touch-screen as described gesture.
11. 1 kinds of mobile terminals, is characterized in that, described mobile terminal comprises the device that the control rotating camera described in claim 6 to 10 any one rotates.
CN201510267467.7A 2015-05-22 2015-05-22 A kind of method, apparatus that control rotating camera rotates and a kind of mobile terminal Expired - Fee Related CN104822029B (en)

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 true CN104822029A (en) 2015-08-05
CN104822029B CN104822029B (en) 2018-11-27

Family

ID=53732184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510267467.7A Expired - Fee Related 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187704A (en) * 2015-09-30 2015-12-23 江门市圆美道科技有限公司 Photography equipment wireless control emitter
CN107370945A (en) * 2017-07-25 2017-11-21 广东虹勤通讯技术有限公司 A kind of camera control method and shooting head controlling device
CN111182202A (en) * 2019-11-08 2020-05-19 广东小天才科技有限公司 Content identification method based on wearable device and wearable device
CN111385388A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Electronic device

Citations (6)

* Cited by examiner, † Cited by third party
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
CN104238578A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera
CN104320574A (en) * 2014-09-26 2015-01-28 深圳市欧珀通信软件有限公司 Method and device for controlling camera for rotation through gesture as well as infrared gesture sensor
CN104469145A (en) * 2014-11-05 2015-03-25 广东欧珀移动通信有限公司 Method and device for controlling rotation of mobile terminal camera and mobile terminal
CN104618658A (en) * 2015-02-26 2015-05-13 广东欧珀移动通信有限公司 Mobile terminal and rotating camera control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN104238578A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for controlling rotation of camera
CN104320574A (en) * 2014-09-26 2015-01-28 深圳市欧珀通信软件有限公司 Method and device for controlling camera for rotation through gesture as well as infrared gesture sensor
CN104469145A (en) * 2014-11-05 2015-03-25 广东欧珀移动通信有限公司 Method and device for controlling rotation of mobile terminal camera and mobile terminal
CN104618658A (en) * 2015-02-26 2015-05-13 广东欧珀移动通信有限公司 Mobile terminal and rotating camera control method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187704A (en) * 2015-09-30 2015-12-23 江门市圆美道科技有限公司 Photography equipment wireless control emitter
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
CN111385388A (en) * 2018-12-29 2020-07-07 Oppo广东移动通信有限公司 Electronic device
CN111385388B (en) * 2018-12-29 2021-06-25 Oppo广东移动通信有限公司 Electronic device
CN111182202A (en) * 2019-11-08 2020-05-19 广东小天才科技有限公司 Content identification method based on wearable device and wearable device

Also Published As

Publication number Publication date
CN104822029B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US11181624B2 (en) Method and apparatus for calibration between laser radar and camera, device and storage medium
CN104954676B (en) The method and electronic equipment that control camera rotates automatically
CN104822029A (en) Method and device for controlling rotary camera to rotate and mobile terminal
CN104320591B (en) A kind of front and rear method, apparatus switched of control camera and a kind of intelligent terminal
CN104238669B (en) A kind of method, device and mobile terminal for controlling mobile terminal camera rotation
US20200326709A1 (en) Method and device for controlling reset of gimbal, gimbal, and unmanned aerial vehicle
CN104301609A (en) Camera rotating control method used for mobile terminal and mobile terminal
US11850747B2 (en) Action imitation method and robot and computer readable medium using the same
WO2015142662A1 (en) Determining user handedness and orientation using a touchscreen device
CN105931263A (en) Target tracking method and electronic equipment
CN110866497B (en) Robot positioning and mapping method and device based on dotted line feature fusion
CN108919839A (en) Holder rotating direction control method, device, electronic equipment and storage medium
CN102810015A (en) Input method and terminal based on space motion
CN107562338A (en) Picture inspection method, device, electronic equipment and storage medium
CN108876857A (en) Localization method, system, equipment and the storage medium of automatic driving vehicle
CN109032190A (en) Holder rotating direction control method, device, electronic equipment and storage medium
CN104281397A (en) Refocusing method and device for multiple depth sections and electronic device
CN103365404A (en) Human-computer interaction method and human-computer interaction device
CN103399629A (en) Method and device for capturing gesture displaying coordinates
CN106575193A (en) Image location selection for use in depth photography system
CN113601510B (en) Robot movement control method, device, system and equipment based on binocular vision
CN111168688B (en) Robot action playback method and device
KR20160134822A (en) Method and Apparatus for Realizaing Human-Machine Interaction
CN104656878A (en) Method, device and system for recognizing gesture
CN104808856A (en) Method and device for simulating sliding of touch screen and mobile terminal

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
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181127