Control method, device and equipment of cloud deck

文档序号:1708340 发布日期:2019-12-13 浏览:10次 中文

阅读说明:本技术 云台的控制方法、装置和设备 (Control method, device and equipment of cloud deck ) 是由 徐晋 刘长顺 李冠军 于 2019-09-10 设计创作,主要内容包括:本申请涉及一种云台的控制方法、装置和设备。其中,所述方法包括:获取对云台的控制指令;若控制指令由操作鼠标生成,判断控制指令是否包含鼠标第一输入指令;其中,鼠标第一输入指令由用户按压鼠标的第一按键并拖动生成;若控制指令中包含所述鼠标第一输入指令,根据鼠标第一输入指令中鼠标指针的位移方向生成第一转动方向参数,以及根据鼠标第一输入指令中鼠标指针的位移量生成第一转动速度参数;将第一转动方向参数和第一转动速度参数发送至云台,以控制云台按照第一转动方向参数和第一转动速度参数调整自身姿态。本申请实施例提供的技术方案,相对于传统的云台控制方法,能够提升用户操作的流畅度和便捷性,从而具有更高的实用性。(the application relates to a control method, a device and equipment of a cloud deck. Wherein the method comprises the following steps: acquiring a control instruction for the holder; if the control instruction is generated by operating the mouse, judging whether the control instruction comprises a first input instruction of the mouse; the first input instruction of the mouse is generated by pressing a first key of the mouse and dragging the first key by a user; if the control instruction comprises the first input instruction of the mouse, generating a first rotation direction parameter according to the displacement direction of a mouse pointer in the first input instruction of the mouse, and generating a first rotation speed parameter according to the displacement amount of the mouse pointer in the first input instruction of the mouse; and sending the first rotating direction parameter and the first rotating speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the first rotating direction parameter and the first rotating speed parameter. Compared with the traditional holder control method, the technical scheme provided by the embodiment of the application can improve the smoothness and convenience of user operation, so that the method has higher practicability.)

1. A control method of a pan-tilt head is characterized by comprising the following steps:

Acquiring a control instruction for the holder;

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a first input instruction of the mouse; the first input instruction of the mouse is generated by pressing a first key of the mouse by a user and dragging a mouse pointer to move in a computer screen where the video image area is located;

if the control instruction comprises the first input instruction of the mouse, generating a first rotation direction parameter according to the displacement direction of a mouse pointer in the first input instruction of the mouse, and generating a first rotation speed parameter according to the displacement amount of the mouse pointer in the first input instruction of the mouse;

and sending the first rotation direction parameter and the first rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the first rotation direction parameter and the first rotation speed parameter.

2. The method of claim 1, wherein generating a first rotation speed parameter according to a displacement of a mouse pointer in the first input command of the mouse comprises:

Dividing the actual displacement of the mouse pointer by the reference displacement and rounding up to be used as a speed multiple based on the preset corresponding relation between the reference rotation speed of the holder and the reference displacement of the mouse pointer;

And multiplying the reference rotating speed by the speed multiple to serve as the first rotating speed parameter.

3. The method of claim 2, further comprising:

And displaying the speed multiple to a user at the initial position of the mouse pointer clicking and dragging or the position near the mouse pointer in the screen.

4. The method of claim 1, further comprising:

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a second input instruction of the mouse; the second input instruction of the mouse is generated by pressing a second key of the mouse after the user controls the mouse pointer to move to a preset direction control area;

If the control instruction comprises the second input instruction of the mouse, generating a second rotation direction parameter according to the specific position of a mouse pointer in the second input instruction of the mouse in the direction control area, and generating a second rotation speed parameter according to a preset rotation speed;

and sending the second rotation direction parameter and the second rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the second rotation direction parameter and the second rotation speed parameter.

5. The method of claim 1, further comprising:

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a mouse roller input instruction or not; the mouse wheel input instruction is generated by controlling the mouse wheel to roll by a user;

If the control instruction comprises the mouse wheel input instruction, generating a zooming instruction based on the rolling direction of the mouse wheel in the mouse wheel input instruction;

and sending the zooming instruction to a camera to control the camera to zoom.

6. The method according to claim 1, wherein after acquiring the control command for the pan/tilt head, the method further comprises:

if the control instruction is generated by an operation keyboard, judging whether the control instruction comprises a first input instruction of the keyboard; the first input instruction of the keyboard is generated by pressing any one directional control key of a plurality of preset directional control keys on the keyboard by a user;

if the control instruction comprises the first input instruction of the keyboard, generating a fourth rotation direction parameter according to the direction corresponding to the pressed direction control key, and generating a fourth rotation speed parameter according to a preset rotation speed;

And sending the fourth rotation direction parameter and the fourth rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the fourth rotation direction parameter and the fourth rotation speed parameter.

7. the method according to claim 4 or 6, wherein the determination of the preset rotation speed comprises:

acquiring a mouse click signal in a preset speed control area;

And taking the rotation speed parameter corresponding to the clicking position of the mouse clicking signal as the preset rotation speed.

8. the method according to claim 1, wherein after acquiring the control command for the pan/tilt head, the method further comprises:

if the control instruction is generated by an operation keyboard, judging whether the control instruction comprises a second input instruction of the keyboard; the second input instruction of the keyboard is generated by pressing any preset position control key in a plurality of preset position control keys on the keyboard by a user;

If the control instruction comprises the second input instruction of the keyboard, generating a fifth rotation direction parameter and a fifth rotation speed parameter according to the angle parameter of the holder corresponding to the pressed preset position control key;

And sending the fifth rotation direction parameter, the fifth rotation speed parameter and the angle parameter to the holder so as to control the holder to rotate to a preset position.

9. A control device of a pan/tilt head, comprising:

The acquisition module is used for acquiring a control instruction of the holder;

the judging module is used for judging whether the control instruction comprises a first input instruction of the mouse if the control instruction is generated by operating the mouse; the first input instruction of the mouse is generated by pressing a first key of the mouse by a user and dragging a mouse pointer to move in a computer screen where the video image area is located;

the generating module is used for generating a first rotating direction parameter according to the displacement direction of a mouse pointer in the first mouse input instruction and generating a first rotating speed parameter according to the displacement amount of the mouse pointer in the first mouse input instruction if the control instruction comprises the first mouse input instruction;

and the sending module is used for sending the first rotating direction parameter and the first rotating speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the first rotating direction parameter and the first rotating speed parameter.

10. A control device of a pan/tilt head, comprising:

a memory and a processor coupled to the memory;

The memory is used for storing a program for executing at least a control method of a head according to any one of claims 1 to 8;

The processor is used for calling and executing the program stored in the memory.

Technical Field

the application relates to the technical field of video monitoring, in particular to a control method, a control device and control equipment of a cloud deck.

Background

the tripod head is a supporting device for installing and fixing a camera, the commonly used electric tripod head comprises a fixed part and a rotating part, the fixed part is used for being fixed on a wall or an electric pole and other structures, and the rotating part is connected with the camera and is used for driving the camera to rotate so as to adjust the shooting angle of the camera. The rotating part is usually realized by two stepping motors, wherein one stepping motor is used for driving the holder to rotate left and right, and the other stepping motor is used for driving the holder to rotate up and down.

disclosure of Invention

The application provides a control method, a device and equipment of a cloud deck, and aims to solve the problem that the traditional cloud deck control method is low in practicability due to the fact that the traditional cloud deck control method is not smooth enough and convenient.

the above object of the present application is achieved by the following technical solutions:

in a first aspect, an embodiment of the present application provides a method for controlling a pan/tilt head, where the method includes:

Acquiring a control instruction for the holder;

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a first input instruction of the mouse; the first input instruction of the mouse is generated by pressing a first key of the mouse by a user and dragging a mouse pointer to move in a computer screen where the video image area is located;

If the control instruction comprises the first input instruction of the mouse, generating a first rotation direction parameter according to the displacement direction of a mouse pointer in the first input instruction of the mouse, and generating a first rotation speed parameter according to the displacement amount of the mouse pointer in the first input instruction of the mouse;

And sending the first rotation direction parameter and the first rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the first rotation direction parameter and the first rotation speed parameter.

Optionally, the generating a first rotation speed parameter according to a displacement of a mouse pointer in the first input instruction of the mouse includes:

Dividing the actual displacement of the mouse pointer by the reference displacement and rounding up to be used as a speed multiple based on the preset corresponding relation between the reference rotation speed of the holder and the reference displacement of the mouse pointer;

And multiplying the reference rotating speed by the speed multiple to serve as the first rotating speed parameter.

optionally, the method further includes:

And displaying the speed multiple to a user at the initial position of the mouse pointer clicking and dragging or the position near the mouse pointer in the screen.

optionally, the method further includes:

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a second input instruction of the mouse; the second input instruction of the mouse is generated by pressing a second key of the mouse after the user controls the mouse pointer to move to a preset direction control area;

If the control instruction comprises the second input instruction of the mouse, generating a second rotation direction parameter according to the specific position of a mouse pointer in the second input instruction of the mouse in the direction control area, and generating a second rotation speed parameter according to a preset rotation speed;

And sending the second rotation direction parameter and the second rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the second rotation direction parameter and the second rotation speed parameter.

optionally, the method further includes:

If the control instruction is generated by operating a mouse, judging whether the control instruction comprises a mouse roller input instruction or not; the mouse wheel input instruction is generated by controlling the mouse wheel to roll by a user;

if the control instruction comprises the mouse wheel input instruction, generating a zooming instruction based on the rolling direction of the mouse wheel in the mouse wheel input instruction;

And sending the zooming instruction to a camera to control the camera to zoom.

Optionally, after the control instruction for the pan/tilt head is acquired, the method further includes:

if the control instruction is generated by an operation keyboard, judging whether the control instruction comprises a first input instruction of the keyboard; the first input instruction of the keyboard is generated by pressing any one directional control key of a plurality of preset directional control keys on the keyboard by a user;

If the control instruction comprises the first input instruction of the keyboard, generating a fourth rotation direction parameter according to the direction corresponding to the pressed direction control key, and generating a fourth rotation speed parameter according to a preset rotation speed;

and sending the fourth rotation direction parameter and the fourth rotation speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the fourth rotation direction parameter and the fourth rotation speed parameter.

optionally, the process of determining the preset rotation speed includes:

acquiring a mouse click signal in a preset speed control area;

and taking the rotation speed parameter corresponding to the clicking position of the mouse clicking signal as the preset rotation speed.

Optionally, after the control instruction for the pan/tilt head is acquired, the method further includes:

If the control instruction is generated by an operation keyboard, judging whether the control instruction comprises a second input instruction of the keyboard; the second input instruction of the keyboard is generated by pressing any preset position control key in a plurality of preset position control keys on the keyboard by a user;

if the control instruction comprises the second input instruction of the keyboard, generating a fifth rotation direction parameter and a fifth rotation speed parameter according to the angle parameter of the holder corresponding to the pressed preset position control key;

and sending the fifth rotation direction parameter, the fifth rotation speed parameter and the angle parameter to the holder so as to control the holder to rotate to a preset position.

in a second aspect, an embodiment of the present application further provides a control device for a pan/tilt head, where the device includes:

The acquisition module is used for acquiring a control instruction of the holder;

the judging module is used for judging whether the control instruction comprises a first input instruction of the mouse if the control instruction is generated by operating the mouse; the first input instruction of the mouse is generated by pressing a first key of the mouse by a user and dragging a mouse pointer to move in a computer screen where the video image area is located;

The generating module is used for generating a first rotating direction parameter according to the displacement direction of a mouse pointer in the first mouse input instruction and generating a first rotating speed parameter according to the displacement amount of the mouse pointer in the first mouse input instruction if the control instruction comprises the first mouse input instruction;

And the sending module is used for sending the first rotating direction parameter and the first rotating speed parameter to the holder so as to control the holder to adjust the posture of the holder according to the first rotating direction parameter and the first rotating speed parameter.

in a third aspect, an embodiment of the present application further provides a control device for a pan/tilt head, where the device includes:

A memory and a processor coupled to the memory;

The memory is used for storing a program, and the program is at least used for executing any one of the control methods of the cradle head;

The processor is used for calling and executing the program stored in the memory.

The technical scheme provided by the embodiment of the application can have the following beneficial effects:

When the technical scheme is applied, a user can input a control instruction through a mouse, and the operation can be realized by pressing and dragging a specific key of the mouse, so that after the operation is identified by computer software, the rotating direction of the cradle head can be determined according to the dragged displacement direction, the rotating speed of the cradle head can be determined according to the dragged displacement, and finally the cradle head can be controlled to adjust the posture of the cradle head according to the determined rotating direction and rotating speed; on the other hand, the dragging direction of the mouse can be any direction, so that the cradle head can be controlled to rotate in any direction, and the operation of a user is very convenient. Therefore, the technical scheme of the application has higher practicability compared with the traditional holder control method.

it is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

the accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.

Fig. 1 is a schematic flow chart of a control method of a pan-tilt provided in an embodiment of the present application;

Fig. 2 is a schematic flow chart of another pan-tilt control method provided in the second embodiment of the present application;

Fig. 3 is a schematic flow chart of another pan-tilt control method provided in the third embodiment of the present application;

Fig. 4 is a schematic flow chart of another pan-tilt control method according to a fourth embodiment of the present disclosure;

fig. 5 is a schematic flow chart of another pan-tilt control method according to a fifth embodiment of the present disclosure;

fig. 6 is a schematic flow chart of an actual application process of the control method of the pan/tilt head provided in the embodiment of the present application;

fig. 7 is a schematic structural diagram of a control device of a pan/tilt head according to an embodiment of the present disclosure;

Fig. 8 is a schematic structural diagram of a control device of a pan/tilt head according to an embodiment of the present application.

Detailed Description

reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

before explaining the technical scheme of the present application, a conventional pan/tilt control method and the problems thereof will be explained in detail.

in a conventional pan/tilt/zoom control method, the control panel is usually implemented by a control panel in a background monitoring device (generally, a computer), the control panel is a computer software program, the computer is used as a carrier and is connected with the pan/tilt/zoom through a data line, the control panel includes a direction button for controlling a direction, and a user can click a corresponding button in the control panel through a mouse to control the direction of the pan/tilt/zoom. However, since the control panel is usually disposed on one side of the video image area, when the control panel is used for control, the user's line of sight needs to be continuously switched between the control panel and the video image, and thus the operation process is not smooth enough. In addition, the direction keys of the control panel only comprise four keys of up-down, left-right and so only one stepping motor can be controlled to operate each time, namely, the cradle head can only be controlled to rotate towards one direction of up-down, left-right at the same time, but the cradle head cannot be controlled to rotate towards directions such as up-left, down-left and the like, and at the moment, a user needs to operate for many times, so that the operation is not convenient enough. In order to solve the above problem, an embodiment of the present application first provides a method for controlling a pan/tilt head, where the method is implemented by a user operating a mouse.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:智能双轴跟踪太阳能光伏充电装置及双轴跟踪方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!