CN108919839A - Holder rotating direction control method, device, electronic equipment and storage medium - Google Patents

Holder rotating direction control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN108919839A
CN108919839A CN201810731464.8A CN201810731464A CN108919839A CN 108919839 A CN108919839 A CN 108919839A CN 201810731464 A CN201810731464 A CN 201810731464A CN 108919839 A CN108919839 A CN 108919839A
Authority
CN
China
Prior art keywords
tripod head
equipment
head equipment
course changing
electronic equipment
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
CN201810731464.8A
Other languages
Chinese (zh)
Other versions
CN108919839B (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.)
BEIJING TRICOLOR TECHNOLOGY Co Ltd
Original Assignee
BEIJING TRICOLOR TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING TRICOLOR TECHNOLOGY Co Ltd filed Critical BEIJING TRICOLOR TECHNOLOGY Co Ltd
Priority to CN201810731464.8A priority Critical patent/CN108919839B/en
Publication of CN108919839A publication Critical patent/CN108919839A/en
Application granted granted Critical
Publication of CN108919839B publication Critical patent/CN108919839B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/10Control of position or direction without using feedback

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present embodiments relate to human-computer interaction technique field, a kind of holder rotating direction control method, device, electronic equipment and storage medium are provided, the method includes:Respond the initial position that the clicking operation in interaction area obtains clicking operation;Respond the real time position that drag operation is obtained with the continual drag operation of clicking operation in interaction area;Calculate the displacement vector between initial position and real time position;According to displacement vector, generates course changing control instruction and be sent to tripod head equipment, so that tripod head equipment is turned to according to course changing control instruction.Compared with prior art, the embodiment of the present invention executes clicking operation in interaction area and the course changing control to tripod head equipment can be realized with the continual drag operation of clicking operation, and operating process is simple and intuitive, improves user experience.

Description

Holder rotating direction control method, device, electronic equipment and storage medium
Technical field
The present embodiments relate to human-computer interaction technique fields, in particular to a kind of holder rotating direction control method, dress It sets, electronic equipment and storage medium.
Background technique
Holder is a kind of device for being used to support and carrying video camera and carry out horizontal and vertical directions rotation, passes through cloud Platform rotation, drives video camera to carry out different angle shooting.When user utilizes the human-computer interaction interface real time inspection of software client Video camera passback video image when, user can by remotely control holder turned to obtain more preferably video camera view Angle.Virtual key for controlling holder steering, the virtual key are set usually in the user interface of software client at present Usually four directions or from all directions to virtual direction key, user clicks corresponding virtual direction key by operation mouse to adjust cloud The horizontal rotation angle and pitch angle of platform.But when user's operation mouse clicks virtual direction key, mouse needs Accurate Points Virtual direction key position is hit, could trigger and form course changing control order, therefore this mode operating process is comparatively laborious, Inadequate simple, intuitive.
Summary of the invention
Be designed to provide a kind of holder rotating direction control method, device, electronic equipment and the storage of the embodiment of the present invention are situated between Matter, to improve the above problem.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, being applied to electronic equipment, the electricity the embodiment of the invention provides a kind of holder rotating direction control method Sub- equipment and tripod head equipment communicate to connect, and the electronic equipment is previously provided with interaction area, the method includes:Response institute State the initial position that the clicking operation in interaction area obtains the clicking operation;Respond in the interaction area with the point It hits and operates the real time position that continual drag operation obtains the drag operation;Calculate the initial position and the real-time position Displacement vector between setting;According to institute's displacement vector, generates course changing control instruction and be sent to the tripod head equipment, so that described Tripod head equipment is turned to according to course changing control instruction.
Second aspect, the embodiment of the invention also provides a kind of holder steering control devices, are applied to electronic equipment, described Electronic equipment and tripod head equipment communicate to connect, and the electronic equipment is previously provided with interaction area, and described device includes first Obtain module, the second acquisition module, computing module and control module.Wherein, the first acquisition module is for responding the interactive areas Clicking operation in domain obtains the initial position of the clicking operation;Second acquisition module is for responding in the interaction area The real time position of the drag operation is obtained with the continual drag operation of the clicking operation;Computing module is described for calculating Displacement vector between initial position and the real time position;Control module is used to generate according to institute's displacement vector and turn to control System instruction is sent to the tripod head equipment, so that the tripod head equipment is turned to according to course changing control instruction.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, the electronic equipment is communicated with tripod head equipment Connection, and it is previously provided with interaction area, the electronic equipment further includes:One or more processors;Memory, for storing One or more programs, when one or more of programs are executed by one or more of processors, so that one Or multiple processors realize above-mentioned holder rotating direction control method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the computer program realize above-mentioned holder rotating direction control method when being executed by processor
Compared with the prior art, it a kind of holder rotating direction control method provided in an embodiment of the present invention, device, electronic equipment and deposits Storage media, firstly, the clicking operation in response interaction area obtains the initial position of clicking operation;Then, interaction area is responded The interior real time position that drag operation is obtained with the continual drag operation of clicking operation;Finally, calculate initial position and in real time Displacement vector between position, and generate course changing control instruction according to displacement vector and turned to controlling tripod head equipment.With it is existing There is technology to compare, the embodiment of the present invention, which executes clicking operation in interaction area and with the continual drag operation of clicking operation, is The course changing control to tripod head equipment can be achieved, operating process is simple and intuitive, improves user experience.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the first application scenarios side that electronic equipment provided in an embodiment of the present invention and tripod head equipment interact Frame schematic diagram.
Fig. 2 shows the second application scenarios sides that electronic equipment provided in an embodiment of the present invention and tripod head equipment interact Frame schematic diagram.
Fig. 3 shows the third application scenarios side that electronic equipment provided in an embodiment of the present invention and tripod head equipment interact Frame schematic diagram.
Fig. 4 shows the block diagram of electronic equipment provided in an embodiment of the present invention.
Fig. 5 shows holder rotating direction control method flow chart provided in an embodiment of the present invention.
Fig. 6 shows the first exemplary diagram provided in an embodiment of the present invention.
Fig. 7 shows the second exemplary diagram provided in an embodiment of the present invention.
Fig. 8 shows the block diagram of holder steering control device provided in an embodiment of the present invention.
Icon:10- electronic equipment;20- tripod head equipment;30- network;40- server;50- audio video processor;101- is deposited Reservoir;102- storage control;103- processor;104- internal interface;105- display module;200- holder course changing control dress It sets;201- first obtains module;202- second obtains module;203- computing module;204- control module;205- first executes mould Block;The second execution module of 206-.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Please refer to Fig. 1, Fig. 1 show electronic equipment 10 provided in an embodiment of the present invention and at least one tripod head equipment 20 into First application scenarios block diagram of row interaction.Electronic equipment 10 passes through controlling cable and holder based on default communication protocol Equipment 20 is communicated, to realize the holder course changing control to tripod head equipment 20.Default communication protocol may be, but not limited to, string Row bus agreement, the network protocol of the port RJ45, usb protocol etc..Electronic equipment 10 may be, but not limited to, and smart phone is put down The operating system of plate computer, desktop computer, laptop etc., electronic equipment 10 may be, but not limited to, Android (Android) system, IOS (iPhone operating system) system, Windows phone system, Windows system Deng tripod head equipment 20 can be horizontal holder, vertical holder and all-directional tripod head.
Referring to figure 2., Fig. 2 shows electronic equipment provided in an embodiment of the present invention 10 and at least one tripod head equipment 20 into Second application scenarios block diagram of row interaction.Electronic equipment 10 can be communicated by network 30 with server 40, service Device 40 can be communicated by network 30 with tripod head equipment 20, to realize the holder course changing control to tripod head equipment 20.It is specific next It says, electronic equipment 10 will be controlled after the course changing control instruction that tripod head equipment 20 turns to is encoded and is transmitted to by network 30 Server 40, server 40 are decoded course changing control instruction to obtain the target address information carried in course changing control instruction, And course changing control instruction is transmitted to the corresponding tripod head equipment 20 of target address information by network 30, target address information can be with Include, but are not limited to IP address, port and the network interface card information etc. of tripod head equipment 20.Network 30 may be, but not limited to, network friendship It changes planes, cable router, wireless router, bluetooth, RS485 bus etc..
Referring to figure 3., Fig. 3 show electronic equipment provided in an embodiment of the present invention 10 and at least one tripod head equipment 20 into The third application scenarios block diagram of row interaction.Electronic equipment 10 can be communicated by network 30 with server 40, service Device 40 can be communicated by network 30 at least one audio video processor 50, and each audio video processor 50 passes through one Control unit controls a tripod head equipment 20, to realize the holder course changing control to tripod head equipment 20.Specifically, electric Sub- equipment 10 will control and be transmitted to service by network 30 after the course changing control instruction that tripod head equipment 20 turns to is encoded Device 40, server 40 are decoded course changing control instruction to obtain the target address information carried in course changing control instruction, and will Course changing control instruction is transmitted to the corresponding audio video processor 50 of target address information by network 30, and audio video processor 50 is logical It crosses control unit to control tripod head equipment 20, target address information may include, but be not limited to audio video processor 50 IP address, port and network interface card information etc..Control unit can be integrated in audio video processor 50 in the form of board, be also possible to Independently of the signal forwarding device except audio video processor 50.Audio video processor 50, which may be, but not limited to, has splicing The processor of at least one of function, matrix functions, KVM function function.
In embodiments of the present invention, camera is fixedly installed on tripod head equipment 20, camera can be by the video of acquisition Image is sent to electronic equipment 10 and is shown, user can be according to the video image being shown on electronic equipment 10, to installation There is the tripod head equipment 20 of camera to carry out course changing control to obtain better camera visual angle.
Referring to figure 4., electronic equipment 10 include holder steering control device 200, memory 101, storage control 102, Processor 103, internal interface 104 and display module 105.The memory 101, storage control 102, processor 103, inside Interface 104 and each element of display module 105 are directly or indirectly electrically connected between each other, to realize the transmission or friendship of data Mutually.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.The holder Steering control device 200 includes that at least one can be stored in the memory 101 in the form of software or firmware (firmware) In or the software function module that is solidificated in the operating system of the electronic equipment 10.The processor 103 is for executing storage The executable module stored in device 101, such as software function module or computer that the holder steering control device 200 includes Program.
Wherein, memory 101 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 103 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor 103 can be with It is general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP), speech processor and video processor etc.;Can also be digital signal processor, specific integrated circuit, Field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components. It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be Microprocessor or the processor 103 are also possible to any conventional processor etc..
The internal interface 104 is used to couple processor 103 and memory 101 for various input/output devices.? In some embodiments, internal interface 104, processor 103 and storage control 102 can be realized in one single chip.At it In his some examples, they can be realized by independent chip respectively.
Display module 105 is used to carry out the video image for the camera acquisition being fixedly installed on tripod head equipment 20 real-time Interaction between display and realization interactive device and electronic equipment 10.Display module 105 can be display screen, touch screen etc., Interactive device can be mouse, stylus, gesture operation etc..
First embodiment
Referring to figure 4., Fig. 4 shows holder rotating direction control method flow chart provided in an embodiment of the present invention.Holder turns to Control method includes the following steps:
Step S101 responds the initial position that the clicking operation in interaction area obtains clicking operation.
In embodiments of the present invention, it is previously provided with interaction area in the human-computer interaction interface of electronic equipment 10, the interaction Region can identify the operation of interactive device, and interaction area can be set in human-computer interaction interface to the video of camera acquisition The display area that image is shown also can be set independently of the display shown to the video image that camera acquires Other display areas except region.
In embodiments of the present invention, clicking operation can be user using some seat in interactive device click interaction area What punctuate generated, initial position can be the active position of clicking operation.Electronic equipment 10 can have display screen, display screen pair After the video image of camera acquisition is shown, if user needs to carry out course changing control, user to tripod head equipment 20 It can use some coordinate points that mouse is clicked in interaction area and generate clicking operation.Electronic equipment 10 can have touch screen, After the video image that touch screen acquires camera is shown, if user needs to carry out steering control to tripod head equipment 20 System, then some coordinate points that user can use in stylus or gesture operation click interaction area generate clicking operation.
Step S102 is responded in interaction area and is obtained the real-time of drag operation with the continual drag operation of clicking operation Position.
In embodiments of the present invention, drag operation can be user using some seat in interactive device click interaction area After punctuate generates clicking operation, dragging is generated in interaction area, and clicking operation is continual, dragging behaviour with drag operation The real time position made in interaction area can be different from initial position, can also be identical as initial position.
In embodiments of the present invention, electronic equipment 10 can have display screen, and user is clicked in interaction area using mouse Some coordinate points generate clicking operation after, user continues to pin mouse and is subjected to displacement generation dragging behaviour in interaction area Make, obtains the real time position of drag operation.
Electronic equipment 10 can have touch screen, and user clicks some in interaction area using stylus or gesture operation After coordinate points generate clicking operation, continues with stylus or gesture operation and be subjected to displacement generation dragging behaviour in interaction area Make, obtains the real time position of drag operation.
Step S103 calculates the displacement vector between initial position and real time position.
Fig. 6 is please referred to, in two-dimensional coordinate system, using the initial position of clicking operation as origin, calculates clicking operation Displacement vector between initial position and the real time position (for example, A, B, C, D) of drag operation, displacement vector include displacement and Direction of displacement, for example, initial position O is (0,1), real time position A is (3,5), then the displacement of displacement vector is 5, more than direction StringReal time position A is (6,9), then the displacement of displacement vector is 10, direction cosines
Step S104 generates course changing control instruction and is sent to tripod head equipment according to displacement vector so that tripod head equipment according to Course changing control instruction is turned to.
In embodiments of the present invention, course changing control instruction may include target direction, according to displacement vector, generates and turns to control The method instructed is made, may include:
Firstly, the horizontal component and vertical component of displacement vector are calculated, for example, the displacement of displacement vector is 5, more than direction StringThe horizontal vector that displacement vector can then be calculated is 3, vertical component 4.
Then, the direction according to horizontal component and vertical component, determines the target direction of tripod head equipment 20, can be set The direction of horizontal component corresponds to the horizontal rotatio direction of tripod head equipment 20, and the direction of vertical component corresponds to tripod head equipment 20 Pitching direction of rotation, specifically, the direction of horizontal component are defined as to the right direction, and corresponding tripod head equipment 20 is along side clockwise To rotation;The direction of horizontal component is defined as negative direction to the left, and corresponding tripod head equipment 20 is rotated in the counterclockwise direction;Vertical component Direction be defined as positive direction upwards, corresponding tripod head equipment 20 is rotated along direction is looked up;The direction of vertical component is defined as downwards Negative direction, corresponding tripod head equipment 20 are rotated along direction is looked up.In conjunction with the direction of horizontal component and vertical component, cloud can be obtained The target direction that platform turns to can be and rotate clockwise, rotates counterclockwise, look up rotation, overlook rotation, rotate clockwise knot Conjunction look up rotation, rotate clockwise in conjunction with overlook rotation, counterclockwise rotation combine look up rotation, counterclockwise rotation combine overlook revolve Turn.
Therefore, the determination process of the target direction of tripod head equipment 20 may include:The first step sets the direction of horizontal component It is set to the horizontal rotatio direction of tripod head equipment 20;Second step revolves the pitching that the direction of vertical component is set as tripod head equipment 20 Turn direction;Horizontal rotatio direction and pitching direction of rotation are combined by third step, can obtain the target side of tripod head equipment 20 To, be integrated to the example shown in Fig. 6, the direction of horizontal component to the right, the direction of vertical component it is upward, then the water of tripod head equipment 20 Flat direction of rotation be rotated in a clockwise direction, pitching direction of rotation is to rotate along looking up direction, the target side of tripod head equipment 20 To for be rotated clockwise in conjunction with look up direction rotate to get to course changing control instruction for be rotated clockwise combination look up Direction rotates.
In embodiments of the present invention, course changing control instruction can also include steering angle, that is to say, that according to displacement arrow Amount, the method for generating the course changing control instruction of tripod head equipment 20 can also include:Displacement according to horizontal component and vertical component Amount, calculates the steering angle of tripod head equipment 20, steering angle can be tripod head equipment 20 respectively in the horizontal direction, vertical direction Rotation angle.Specifically, firstly, displacement and default rotation angle according to horizontal component, calculates tripod head equipment 20 horizontal rotation angle, default rotation angle can be the corresponding rotation angle of unit displacement amount, for example, default rotation angle It is 5 °, is integrated to the example shown in Fig. 6, the displacement of horizontal component is 3, then the horizontal rotation angle of tripod head equipment 20 is 15 °; Then, according to the displacement of vertical component and default rotation angle, the vertical rotation angle of tripod head equipment 20, example are calculated Such as, the displacement of vertical component is 4, then the vertical rotation angle of tripod head equipment 20 is 20 °;Finally, by horizontal rotatio direction and Vertical rotary direction is combined, and obtains the steering angle of tripod head equipment 20, for example, the steering angle of tripod head equipment 20 is level 15 ° of rotation, 20 ° of vertical rotary rotate 20 ° to get to course changing control instruction to be rotated clockwise 15 ° in conjunction with looking up direction.
In embodiments of the present invention, course changing control instruction can also include turning velocity, that is to say, that according to displacement arrow Amount, the method for generating the course changing control instruction of tripod head equipment 20 can also include:Firstly, obtaining drag operation in real time in interaction Dragging speed in region, dragging speed can be calculated by real-time displacement of the drag operation in interaction area and dragging time It obtains, for example, dragging speed is 3cm/s;According between the dragging speed of drag operation and the turning velocity of tripod head equipment 20 Corresponding relationship calculates the turning velocity of tripod head equipment 20, the dragging speed of drag operation is previously stored in electronic equipment 10 Corresponding relationship between the turning velocity of tripod head equipment 20, for example, turning velocity=5* dragging speed, then tripod head equipment 20 Turning velocity is 15cm/s.
In embodiments of the present invention, it can also be controlled according to clicking operation of the user in interaction area and drag operation Tripod head equipment 20 starts and stops, and therefore, holder rotating direction control method provided in an embodiment of the present invention is further comprising the steps of.
Step S105 is generated when detecting that drag operation starts and is turned to enabled instruction to control tripod head equipment starting.
In embodiments of the present invention, when detecting that user clicking operation and open to a certain coordinate points in interaction area When beginning to drag, generates steering enabled instruction and be simultaneously sent to tripod head equipment 20.Electronic equipment 10 can have display screen, and user utilizes Mouse, which clicks some coordinate points in interaction area and generates to continue to pin mouse after clicking operation, to be started to drag in interaction area When to tripod head equipment 20 send turn to enabled instruction.
Electronic equipment 10 can have touch screen, and user clicks some in interaction area using stylus or gesture operation Coordinate points continue with when stylus or gesture operation start to drag in interaction area after generating clicking operation to tripod head equipment 20 send steering enabled instruction.
Step S106 is generated at the end of detecting drag operation and is turned to halt instruction to control tripod head equipment stopping.
In embodiments of the present invention, it when detecting that user stops operation in interaction area, generates and turns to halt instruction And tripod head equipment 20 is sent to control the stopping of tripod head equipment 20, that is to say, that as long as the not sent steering of electronic equipment 10 stops Instruction, tripod head equipment 20 will continue to turn to, until arriving at mechanical position limitation position.Electronic equipment 10 can have display screen, when It is sent when mousebutton lifts to tripod head equipment 20 and turns to enabled instruction;Electronic equipment 10 can have touch screen, work as stylus Or gesture operation sends when lifting to tripod head equipment 20 and turns to enabled instruction.
Holder rotating direction control method provided in an embodiment of the present invention can carry out following two mode to tripod head equipment 20 Course changing control:
First, when detecting that drag operation of the user in interaction area starts, generates and turn to enabled instruction to control Start to tripod head equipment 20, while controlling tripod head equipment 20 along the corresponding target of running track of the drag operation in interaction area Direction is turned to, and at the end of detecting drag operation of the user in interaction area, is generated and is turned to halt instruction to control Tripod head equipment 20 stops, as long as the not sent steering halt instruction of electronic equipment 10, tripod head equipment 20 will continue to turn to, until supporting Up to mechanical position limitation position.Furthermore it is also possible to control tripod head equipment 20 according to dragging speed of the drag operation in interaction area Turning velocity.
Second, when detecting that drag operation of the user in interaction area starts, generates and turn to enabled instruction to control Start to tripod head equipment 20;Tripod head equipment 20 is controlled along the corresponding target of running track of the drag operation in interaction area simultaneously Direction is turned to;According to the displacement vector between the initial position of clicking operation and the real time position of drag operation, determine The steering angle of tripod head equipment 20;At the end of detecting drag operation of the user in interaction area, generates steering and stop referring to It enables to control the stopping of tripod head equipment 20.Furthermore it is also possible to control holder according to dragging speed of the drag operation in interaction area The turning velocity of equipment 20.
In embodiments of the present invention, user clicks some coordinate points in interaction area using interactive device and generates click behaviour After work, the drag operation by the initial position of clicking operation, if changing the side of drag operation after being dragged to some position To, then using the position as steering node, and according to the steering node determine course changing control instruct.Specifically, by the steering The position of node obtains the real time position of drag operation as origin, calculates the position of steering node and the reality of drag operation When position between displacement vector, further according to displacement vector generate course changing control instruction be sent to tripod head equipment 20, course changing control Instruction may include target direction, can also include steering angle and turning velocity.
Fig. 7 is please referred to, in two-dimensional coordinate system, using steering node M as origin, obtains the real time position (example of drag operation Such as, E, F, G, H etc.), calculate the displacement vector between the position M of steering node and real time position E, F, G, H of drag operation; According to the direction of the horizontal component of displacement vector and vertical component, the target direction of tripod head equipment 20 is determined;Further according to level The displacement of component and vertical component calculates the steering angle and turning velocity of tripod head equipment 20.
It should be noted that if running track of the drag operation in interaction area due to mousebutton, stylus or Gesture operation lifts and breakpoint occurs, then when mousebutton, stylus or gesture operation are again tapped on and dragged, mouse is pressed The position that key, stylus or gesture operation are presently in calculates displacement vector as new dot, and then according to displacement vector Determine that course changing control instructs and is sent to tripod head equipment 20.
In addition, drag operation is not necessarily oblique line in user's practical operation, it is also possible to curve, in this case, Curve can be split into microcosmic curve to calculate displacement vector, be integrated in Fig. 7, can regard E, F, G, H as knuckle Point is calculated.
Second embodiment
Fig. 8 is please referred to, Fig. 8 shows the block diagram of holder steering control device 200 provided in an embodiment of the present invention. Holder steering control device 200 includes that the first acquisition module 201, second obtains module 202, computing module 203, control module 204, the first execution module 205 and the second execution module 206.
First obtains module 201, and the initial position of clicking operation is obtained for responding the clicking operation in interaction area.
Second obtains module 202, for responding dragging in interaction area with the continual drag operation acquisition of clicking operation The real time position of dynamic operation.
Computing module 203, for calculating the displacement vector between initial position and real time position.
Control module 204, for generating course changing control instruction and being sent to tripod head equipment, so that holder according to displacement vector Equipment is turned to according to course changing control instruction.
In embodiments of the present invention, course changing control instruction includes target direction, and control module is executed according to displacement vector, raw At the mode that course changing control instructs, including:Calculate the horizontal component and vertical component of displacement vector;According to horizontal component and vertically The target direction of tripod head equipment is determined in the direction of component.
In embodiments of the present invention, course changing control instruction further includes steering angle, and control module is executed according to displacement vector, The mode that the course changing control of tripod head equipment instructs is generated, further includes:According to the displacement of horizontal component and vertical component, calculate The steering angle of tripod head equipment.
In embodiments of the present invention, the dragging speed of drag operation and turning for tripod head equipment are previously stored in electronic equipment To the corresponding relationship between speed, course changing control instruction further includes turning velocity, and control module is executed according to displacement vector, generated Tripod head equipment course changing control instruction mode, further include:Dragging speed of the drag operation in interaction area is obtained in real time;According to According to the corresponding relationship between the dragging speed of drag operation and the turning velocity of tripod head equipment, the steering speed of tripod head equipment is calculated Degree.
First execution module 205 turns to enabled instruction for generating when detecting that drag operation starts to control holder Equipment starting.
Second execution module 206 turns to halt instruction for generating at the end of detecting drag operation to control holder Equipment stops.
The embodiment of the present invention further discloses a kind of computer readable storage medium, is stored thereon with computer program, described The holder rotating direction control method that present invention discloses is realized when computer program is executed by processor 103.
In conclusion a kind of holder rotating direction control method provided in an embodiment of the present invention, device, electronic equipment and storage are situated between Matter, the electronic equipment and tripod head equipment communicate to connect, and electronic equipment is previously provided with interaction area, the method includes: Respond the initial position that the clicking operation in interaction area obtains clicking operation;Respond interaction area in clicking operation not between Disconnected drag operation obtains the real time position of drag operation;Calculate the displacement vector between initial position and real time position;Foundation Displacement vector generates course changing control instruction and is sent to tripod head equipment, so that tripod head equipment is turned to according to course changing control instruction. Compared with prior art, the embodiment of the present invention executes clicking operation in interaction area and grasps with the continual dragging of clicking operation The course changing control to tripod head equipment can be realized, operating process is simple and intuitive, improves user experience.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module 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.It needs Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (10)

1. a kind of holder rotating direction control method, which is characterized in that be applied to electronic equipment, the electronic equipment and tripod head equipment are logical Letter connection, and the electronic equipment is previously provided with interaction area, the method includes:
Respond the initial position that the clicking operation in the interaction area obtains the clicking operation;
It responds in the interaction area and obtains the real-time of the drag operation with the continual drag operation of the clicking operation Position;
Calculate the displacement vector between the initial position and the real time position;
According to institute's displacement vector, generate course changing control instruction and be sent to the tripod head equipment so that the tripod head equipment according to The course changing control instruction is turned to.
2. the method as described in claim 1, which is characterized in that the method also includes:
When detecting that the drag operation starts, generates and turn to enabled instruction to control the tripod head equipment starting;
At the end of detecting the drag operation, generates and turn to halt instruction to control the tripod head equipment stopping.
3. the method as described in claim 1, which is characterized in that the course changing control instruction includes target direction, the foundation Institute's displacement vector generates the step of course changing control instructs, including:
Calculate the horizontal component and vertical component of institute's displacement vector;
According to the direction of the horizontal component and vertical component, the target direction of the tripod head equipment is determined.
4. method as claimed in claim 3, which is characterized in that course changing control instruction further includes steering angle, it is described according to According to institute's displacement vector, the step of generating the course changing control instruction of tripod head equipment, further include:
According to the displacement of the horizontal component and vertical component, the steering angle of the tripod head equipment is calculated.
5. the method as claimed in claim 3 or 4, which is characterized in that be previously stored with drag operation in the electronic equipment Corresponding relationship between dragging speed and the turning velocity of tripod head equipment, the course changing control instruction further includes turning velocity, institute The step of stating the course changing control instruction that tripod head equipment is generated according to institute's displacement vector further include:
Dragging speed of the drag operation in the interaction area is obtained in real time;
According to the corresponding relationship between the dragging speed of drag operation and the turning velocity of tripod head equipment, calculates the holder and set Standby turning velocity.
6. a kind of holder steering control device, which is characterized in that be applied to electronic equipment, the electronic equipment and tripod head equipment are logical Letter connection, and the electronic equipment is previously provided with interaction area, described device includes:
First obtains module, and the initial position of the clicking operation is obtained for responding the clicking operation in the interaction area;
Second obtains module, obtains institute with the continual drag operation of the clicking operation for responding in the interaction area State the real time position of drag operation;
Computing module, for calculating the displacement vector between the initial position and the real time position;
Control module, for generating course changing control instruction and being sent to the tripod head equipment, so that described according to institute's displacement vector Tripod head equipment is turned to according to course changing control instruction.
7. device as claimed in claim 6, which is characterized in that described device further includes:
First execution module turns to enabled instruction for generating when detecting that the drag operation starts to control the cloud The starting of platform equipment;
Second execution module turns to halt instruction for generating at the end of detecting the drag operation to control the cloud Platform equipment stops.
8. device as claimed in claim 6, which is characterized in that the course changing control instruction includes target direction, the control Module is executed according to institute's displacement vector, generates the mode of course changing control instruction, including:
Calculate the horizontal component and vertical component of institute's displacement vector;
According to the direction of the horizontal component and vertical component, the target direction of the tripod head equipment is determined.
9. a kind of electronic equipment, which is characterized in that the electronic equipment and tripod head equipment communicate to connect, and are previously provided with interaction Region, the electronic equipment further include:
One or more processors;
Memory, for storing one or more programs, when one or more of programs are by one or more of processors When execution, so that one or more of processors realize such as method of any of claims 1-6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt Such as method of any of claims 1-6 is realized when processor executes.
CN201810731464.8A 2018-07-05 2018-07-05 Cloud deck steering control method and device, electronic equipment and storage medium Active CN108919839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810731464.8A CN108919839B (en) 2018-07-05 2018-07-05 Cloud deck steering control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810731464.8A CN108919839B (en) 2018-07-05 2018-07-05 Cloud deck steering control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108919839A true CN108919839A (en) 2018-11-30
CN108919839B CN108919839B (en) 2021-08-10

Family

ID=64425318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810731464.8A Active CN108919839B (en) 2018-07-05 2018-07-05 Cloud deck steering control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108919839B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110568867A (en) * 2019-09-10 2019-12-13 天津市高速公路科技发展有限公司 Control method, device and equipment of cloud deck
CN110719401A (en) * 2019-09-23 2020-01-21 深圳市景阳信息技术有限公司 Control method and device for pan-tilt scanning, electronic equipment and storage medium
CN111328387A (en) * 2019-07-19 2020-06-23 深圳市大疆创新科技有限公司 Pan-tilt control method, device and computer readable storage medium
CN111381606A (en) * 2018-12-27 2020-07-07 杭州海康威视系统技术有限公司 Holder control method and device, electronic equipment and storage medium
CN111787274A (en) * 2020-05-21 2020-10-16 视联动力信息技术股份有限公司 Equipment control method and device, terminal equipment and storage medium
CN111970443A (en) * 2020-08-13 2020-11-20 深圳市阳日电子有限公司 Cloud deck control method and equipment and computer readable storage medium
CN114205523A (en) * 2021-11-18 2022-03-18 苏州长风航空电子有限公司 Monitoring image control method for photoelectric turntable
CN116700572A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Device interconnection interaction method, electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040136388A1 (en) * 2002-12-26 2004-07-15 Schaff Glen D. Video-monitor/recording/playback system
CN103108170A (en) * 2013-02-28 2013-05-15 深圳市云宙多媒体技术有限公司 Video monitoring cloud platform controlling method and device
CN103327310A (en) * 2013-07-12 2013-09-25 浙江宇视科技有限公司 Monitoring and cruising method based on mouse trail tracking
CN105812724A (en) * 2014-12-31 2016-07-27 浙江大华技术股份有限公司 Panoramic head controlling method and system
CN106664369A (en) * 2014-09-05 2017-05-10 富士胶片株式会社 Pan/tilt operation device, camera system, program for pan/tilt operation, and pan/tilt operation method
CN106791586A (en) * 2015-11-19 2017-05-31 杭州海康威视数字技术股份有限公司 A kind of method and monitoring device, device, system being monitored to mobile target
CN106888361A (en) * 2015-12-11 2017-06-23 深圳市轻生活科技有限公司 Video interactive control method and device
CN107247458A (en) * 2017-05-24 2017-10-13 中国电子科技集团公司第二十八研究所 UAV Video image object alignment system, localization method and cloud platform control method
CN207503037U (en) * 2017-11-23 2018-06-15 亿嘉和科技股份有限公司 Machine user tripod head transfer

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040136388A1 (en) * 2002-12-26 2004-07-15 Schaff Glen D. Video-monitor/recording/playback system
CN103108170A (en) * 2013-02-28 2013-05-15 深圳市云宙多媒体技术有限公司 Video monitoring cloud platform controlling method and device
CN103327310A (en) * 2013-07-12 2013-09-25 浙江宇视科技有限公司 Monitoring and cruising method based on mouse trail tracking
CN106664369A (en) * 2014-09-05 2017-05-10 富士胶片株式会社 Pan/tilt operation device, camera system, program for pan/tilt operation, and pan/tilt operation method
CN105812724A (en) * 2014-12-31 2016-07-27 浙江大华技术股份有限公司 Panoramic head controlling method and system
CN106791586A (en) * 2015-11-19 2017-05-31 杭州海康威视数字技术股份有限公司 A kind of method and monitoring device, device, system being monitored to mobile target
CN106888361A (en) * 2015-12-11 2017-06-23 深圳市轻生活科技有限公司 Video interactive control method and device
CN107247458A (en) * 2017-05-24 2017-10-13 中国电子科技集团公司第二十八研究所 UAV Video image object alignment system, localization method and cloud platform control method
CN207503037U (en) * 2017-11-23 2018-06-15 亿嘉和科技股份有限公司 Machine user tripod head transfer

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381606A (en) * 2018-12-27 2020-07-07 杭州海康威视系统技术有限公司 Holder control method and device, electronic equipment and storage medium
CN111328387A (en) * 2019-07-19 2020-06-23 深圳市大疆创新科技有限公司 Pan-tilt control method, device and computer readable storage medium
CN111328387B (en) * 2019-07-19 2024-02-20 深圳市大疆创新科技有限公司 PTZ control method, PTZ control equipment and computer readable storage medium
CN110568867A (en) * 2019-09-10 2019-12-13 天津市高速公路科技发展有限公司 Control method, device and equipment of cloud deck
CN110719401A (en) * 2019-09-23 2020-01-21 深圳市景阳信息技术有限公司 Control method and device for pan-tilt scanning, electronic equipment and storage medium
CN110719401B (en) * 2019-09-23 2021-09-10 深圳市景阳信息技术有限公司 Control method and device for pan-tilt scanning, electronic equipment and storage medium
CN111787274A (en) * 2020-05-21 2020-10-16 视联动力信息技术股份有限公司 Equipment control method and device, terminal equipment and storage medium
CN111970443A (en) * 2020-08-13 2020-11-20 深圳市阳日电子有限公司 Cloud deck control method and equipment and computer readable storage medium
CN114205523A (en) * 2021-11-18 2022-03-18 苏州长风航空电子有限公司 Monitoring image control method for photoelectric turntable
CN114205523B (en) * 2021-11-18 2024-06-04 苏州长风航空电子有限公司 Photoelectric turntable monitoring image control method
CN116700572A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 Device interconnection interaction method, electronic device and storage medium
CN116700572B (en) * 2022-11-22 2024-02-27 荣耀终端有限公司 Device interconnection interaction method, electronic device and storage medium

Also Published As

Publication number Publication date
CN108919839B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN108919839A (en) Holder rotating direction control method, device, electronic equipment and storage medium
CN109032190A (en) Holder rotating direction control method, device, electronic equipment and storage medium
US11860989B2 (en) Verification method and device
US20160092080A1 (en) Touch interface for precise rotation of an object
JP6048898B2 (en) Information display device, information display method, and information display program
US9086837B1 (en) Collaboration sessions
CN105190509B (en) Content rotation is provided during scroll actions
CN107562201B (en) Directional interaction method and device, electronic equipment and storage medium
CN104102335A (en) Gesture control method, device and system
CN104144184A (en) Method for controlling far-end device and electronic devices
CN103324348A (en) Windows desktop control method based on intelligent mobile terminals
CN103970259A (en) Screen mode switching method and terminal equipment
CN108803669A (en) Holder rotating direction control method, device, electronic equipment and storage medium
CN106600664B (en) drawing method and device of symmetric graph
CN110162955A (en) Man-machine recognition methods, device, medium and electronic equipment
WO2015131630A1 (en) Replacement method and device for desktop icon
CN109544702A (en) Three-dimension varying processing method, device, electronic equipment and storage medium
CN110502873A (en) A kind of method and apparatus for the reading permission managing novel chapters and sections
CN104598121A (en) Picture zooming method and device
US10701431B2 (en) Handheld controller gestures for virtual reality video playback
WO2020200255A1 (en) Erase control processing method, apparatus, and device
CN110288207A (en) It is a kind of that the method and apparatus of scene information on duty is provided
CN104346095B (en) A kind of information processing method and electronic equipment
CN104822029A (en) Method and device for controlling rotary camera to rotate and mobile terminal
CN110413177A (en) A kind of method and apparatus for e-book page turning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant