Pan-tilt camera control method and device, electronic equipment and storage medium
By obtaining the control interaction information of the target object and applying mapping strategy processing, controlling the rotation angle and speed of the gimbal camera, the problem of difficulty in rotating the gimbal camera in the existing technology is solved, and a more intuitive and accurate operating experience is achieved.
Patent Information
- Application Number
- CN202311315333.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2025-04-11
AI Technical Summary
In the prior art, it is difficult to control the rotation of the gimbal camera, and users need to be proficient in operating the virtual rocker to rotate the gimbal camera to the desired angle.
By obtaining the control interaction information of the target object on the control interaction area, the first mapping strategy is used to process the current motion trajectory, and the rotation angle parameters of the gimbal camera are obtained; at the same time, the second mapping strategy is used to process the current motion speed, and the rotation speed parameters are obtained, and the gimbal camera is then controlled to rotate the specified rotation angle parameters according to the rotation speed parameters.
It reduces the difficulty of controlling the rotation of the gimbal camera, allowing users to operate the gimbal camera more intuitively and achieve more accurate angle control.
Smart Images

Figure CN119815177A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device control technology, and in particular to a pan-tilt camera control method, device, electronic device and storage medium. Background Art
[0002] With the development of science and technology, there are more and more types of cameras. For example, a pan-tilt camera has appeared.
[0003] Currently, the rotation of the pan-tilt camera is remotely controlled through a virtual joystick in the control terminal. However, the method of controlling the rotation of the pan-tilt camera through the virtual joystick requires the user to operate the virtual joystick skillfully to rotate the pan-tilt camera to the angle required by the user, resulting in greater difficulty in controlling the rotation of the pan-tilt camera. Summary of the invention
[0004] The embodiments of the present application provide a pan-tilt camera control method, device, electronic device and storage medium, aiming to solve the technical problem of the difficulty in controlling the rotation of a pan-tilt camera in the prior art.
[0005] On the one hand, an embodiment of the present application provides a pan-tilt camera control method, which is applied to an electronic device, wherein the electronic device includes a control interaction area of a pan-tilt camera, and the pan-tilt camera control method includes:
[0006] Acquiring control interaction information of the target object for the control interaction area, and acquiring a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object;
[0007] According to the first mapping strategy, a first mapping process is performed on the current motion trajectory to obtain a rotation angle parameter of the pan / tilt camera;
[0008] According to the second mapping strategy, a second mapping process is performed on the current motion speed to obtain a rotation speed parameter of the pan / tilt camera;
[0009] Control the above-mentioned pan / tilt camera to rotate the above-mentioned rotation angle parameter according to the above-mentioned rotation speed parameter.
[0010] On the one hand, an embodiment of the present application provides a pan-tilt camera control device, which is applied to an electronic device, wherein the electronic device includes a control interaction area of a pan-tilt camera, and the pan-tilt camera control device includes:
[0011] An information acquisition module, used to acquire control interaction information of the target object for the control interaction area, and to acquire a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object;
[0012] A first mapping module, used to perform a first mapping process on the current motion trajectory according to the first mapping strategy to obtain a rotation angle parameter of the pan / tilt camera;
[0013] A second mapping module, used to perform a second mapping process on the current motion speed according to the second mapping strategy to obtain a rotation speed parameter of the pan / tilt camera;
[0014] The rotation control module is used to control the above-mentioned pan / tilt camera to rotate the above-mentioned rotation angle parameter according to the above-mentioned rotation speed parameter.
[0015] The present application also provides an electronic device, which includes at least one processor, a memory and at least one application, wherein the at least one application is stored in the memory and is configured to be executed by the processor to implement the steps of the pan-tilt camera control method.
[0016] The present application also provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the above-mentioned pan-tilt camera control method.
[0017] The present application also provides a pan-tilt camera control system, including an electronic device and a pan-tilt camera, the electronic device executes the pan-tilt camera control method, and the pan-tilt camera rotates the rotation angle parameter according to the rotation speed parameter.
[0018] The present application obtains control interaction information of a target object for a control interaction area, and obtains a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object; according to the first mapping strategy, a first mapping process is performed on the current motion trajectory to obtain a rotation angle parameter of a gimbal camera; according to the second mapping strategy, a second mapping process is performed on the current motion speed to obtain a rotation speed parameter of the gimbal camera; the gimbal camera is controlled to rotate a rotation angle parameter according to the rotation speed parameter, so as to control the rotation of the gimbal camera according to the current motion trajectory and the current motion speed of the target object, thereby reducing the difficulty of controlling the rotation of the gimbal camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1A schematic diagram of a process flow of a pan / tilt camera control method provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of a control interaction area provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of a time setting page provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the current motion trajectory provided by an embodiment of the present application;
[0024] Figure 5 A schematic diagram of a pan / tilt camera control device provided in an embodiment of the present application;
[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0027] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the term "multiple" means two or more, unless otherwise clearly and specifically defined.
[0028] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0029] The electronic device in the present application may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch or a smart charging station, etc., but is not limited thereto.
[0030] The following is an explanation of the pan-tilt camera control method provided by the present application. In this embodiment, it will be described from the perspective of the pan-tilt camera control device. In order to facilitate the explanation of the pan-tilt camera method of the present application, the following will be explained in detail with the pan-tilt camera device integrated in the terminal, that is, the terminal will be used as the execution subject for detailed explanation.
[0031] like Figure 1 As shown, Figure 1 This is a flow chart of an embodiment of a pan-tilt camera control method in an embodiment of the present application, and the pan-tilt camera control method includes:
[0032] 101. Obtain control interaction information of a target object for a control interaction area, and obtain a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object.
[0033] The target object refers to an object that can control its own limbs to operate in the control interaction area. The type of the target object can be selected according to actual conditions, for example, the target object can be a user or a robot, and the embodiment of the present application does not limit this.
[0034] The target object can control its own limbs to directly operate on the control interaction area, for example, directly operate on the control interaction area, so that the terminal obtains the control interaction information of the target object for the control interaction area. Alternatively, the target object can also operate on the control interaction area through its own limb control input device, for example, operate on the control interaction area through its own limb control input device, so that the terminal obtains the control interaction information of the target object for the control interaction area.
[0035] The type of input device can be selected according to actual conditions. For example, the input device can be a mouse or a stylus pen, which is not limited in the embodiments of the present application.
[0036] The current motion trajectory of the target object refers to the trajectory of the target object's current motion with respect to the control interaction area. The current motion speed of the target object refers to the speed of the target object's current motion with respect to the control interaction area. For example, the form of motion may include sliding, then the current motion trajectory of the target object may include the sliding trajectory of the target object on the control interaction area at the current moment, and the current motion speed of the target object may include the sliding speed of the target object on the control interaction area at the current moment. For another example, the form of motion may include a combination of interactive operations such as clicking, sliding, and long pressing, then the current motion trajectory of the target object may include a combination of motion trajectories formed when the target object performs interactive operations such as clicking, sliding, and long pressing on the control interaction area at the current moment, and the current motion speed of the target object may include the motion speed inferred at the current moment based on the combined interactive operations such as clicking, sliding, and long pressing on the control interaction area.
[0037] The control interaction area refers to the area where the terminal can obtain the interactive operation of the target object, and the control interaction area can be used for the target object to control the PTZ camera. For example, the terminal can obtain the control interaction information of the target object through the touch area in the control interaction area, and the control interaction information may include the current motion trajectory and current motion speed of the target object.
[0038] Optionally, a specific interactive control operation can be configured for the touch area in the control interaction area to quickly trigger a specific function of the PTZ camera. For example, a double-click function can be configured for the touch area. When the user triggers a double-click operation in the touch area, the terminal can obtain control interaction information of the target object through the touch area in the control interaction area. The control interaction information may include double-click operation information. Correspondingly, the terminal can quickly trigger functions such as zooming, tracking, and shooting.
[0039] The position, proportion, presentation form, etc. of the touch area in the control interaction area can be configured according to actual conditions. For example, the touch area can be located below the control interaction area (for example, Figure 2 Alternatively, the touch area may be located above the control interaction area, which is not limited in the present application. For example, the touch area may occupy a fixed proportion of the control interaction area (for example, Figure 2Alternatively, the proportion of the touch area in the control interaction area may be adjusted accordingly according to different control interaction modes triggered by the target object, which is not limited in the present embodiment of the present application. For another example, the presentation form of the touch area in the control interaction area may be presented in a fixed position and proportion (for example, Figure 2 Alternatively, the presentation form of the touch area in the control interaction area may be that when no control interaction operation of the target object on the touch area is detected within a preset time, the touch area is displayed in thumbnail form until a trigger operation of the target object on the thumbnailed touch area is detected, and then the touch area is displayed in the form before thumbnail form. The embodiments of the present application are not limited here.
[0040] Optionally, after displaying the control interaction area, the terminal may suppress the screen from turning off, so that the target object can control the PTZ camera.
[0041] Optionally, the touch area in the control interaction area may include a touchpad and a first control control, and the touchpad may be used to obtain the current motion trajectory and the current motion speed. The type of the first control control may be set according to actual conditions, and the embodiment of the present application does not limit this.
[0042] For example, Figure 2 As shown, the first control control may include a mirror control, a gimbal reset control, a direction control, and a zoom control. Among them, the mirror control can be used to adjust the image to a mirror mode; the gimbal reset control can be used to quickly restore the gimbal to an initial position; the direction control can be used to finely adjust the rotation of the gimbal; and the zoom control can be used to zoom the image.
[0043] Optionally, the control interaction area may also include a control area for the pan-tilt camera, and the control area includes controls for controlling the pan-tilt camera. The controls may be set according to actual conditions, and the embodiments of the present application are not limited thereto.
[0044] For example, the control area and the controls for controlling the PTZ camera included in the control area are as follows: Figure 2 As shown. The overhead control indicates the overhead shooting mode, which can be used to control the PTZ camera to shoot overhead, for example, to achieve shooting by hanging the camera above the object being shot; the whiteboard control indicates the whiteboard mode, which can be used to control the PTZ camera to shoot the whiteboard; the Tracking control indicates the tracking mode, which can be used to control the PTZ camera to track the object, for example, to track the moving user; the Deskview control indicates the smart desktop mode, which can be used to display the objects on the desktop; the Preset Position control indicates the preset position, which provides 6 editable preset positions for quickly switching to the corresponding position.
[0045] The terminal can respond to the trigger operation on the pan-tilt camera client to display the control interaction area on the pan-tilt camera client, and then respond to the sliding operation of the target object on the control interaction area to obtain the current motion trajectory and current motion speed of the target object.
[0046] The type of the pan-tilt camera client can be set according to actual conditions. For example, the pan-tilt camera client can be in the form of an application, a mini-program or a web page, which is not limited in the embodiments of the present application.
[0047] The first mapping strategy refers to a strategy of mapping the current motion trajectory to a rotation angle parameter, and the second mapping strategy refers to a strategy of mapping the current motion speed to a rotation speed parameter. The longer the current motion trajectory, the larger the rotation angle parameter, and the faster the current motion speed, the larger the rotation speed parameter.
[0048] The forms of the first mapping strategy and the second mapping strategy can be set according to actual conditions. For example, the first mapping strategy can be a first mapping function, and the second mapping strategy can be a second mapping function, or the first mapping strategy can be a first mapping table, and the second mapping strategy can be a second mapping table, or the first mapping strategy can be a first mapping function, and the second mapping strategy can be a second mapping table, or the first mapping strategy can be a first mapping table, and the second mapping strategy can be a second mapping function. The embodiments of the present application are not limited here.
[0049] In some embodiments, obtaining the control interaction information of the target object for the control interaction area may include:
[0050] Get the target sampling time;
[0051] According to the target sampling time, control interaction information of the target object for the control interaction area is obtained.
[0052] The target sampling time refers to the interval for obtaining the control interaction information. For example, the target sampling time may be 30 milliseconds, which means that the terminal obtains the control interaction information every 30 milliseconds.
[0053] The target sampling time can be fixed or dynamically changing. When the target sampling time is dynamically changing, the process of obtaining the target sampling time can be:
[0054] Displaying a time setting page, the time setting page includes a time setting control;
[0055] In response to a trigger operation on a time setting control, the time corresponding to the trigger operation is used as a target sampling time.
[0056] For example, the time setting page can be Figure 3 As shown, Figure 3 The touch throttling in the example is a time setting control. The triggering operation of the time setting control may be, for example, a dragging operation of the time setting control. The time "15 milliseconds" at the end position of the dragging operation is used as the target sampling time.
[0057] Alternatively, when the target sampling time changes dynamically, the process of obtaining the target sampling time may also be:
[0058] Get the historical sliding data of the target object;
[0059] Predict the control interaction habit parameters of the target object based on historical sliding data;
[0060] Generate target sampling time based on control interaction habit parameters.
[0061] Among them, the historical sliding data can be analyzed to obtain the changes corresponding to the historical sliding data, and the control interaction habit parameters of the target object can be predicted based on the changes. Alternatively, the historical sliding data can be input into a trained prediction model for prediction to obtain the control interaction habit parameters of the target object.
[0062] In the related art, if the target sampling time is too long for the target object, the rotation of the gimbal camera may cause a time delay to the target object. If the target sampling time is too short for the target object, the gimbal camera may rotate frequently and consume high power.
[0063] For example, Figure 4 As shown, the target object is the target user. In 0-30 milliseconds, the target user's finger slides from position A to position B on the control interaction area. In 31-60 milliseconds, the target user's finger slides from position B to position C on the control interaction area. If the target sampling time is 60 milliseconds, the current motion trajectory collected is AC. AC is first mapped to obtain the rotation angle parameter corresponding to AC. The pan-tilt camera is controlled to rotate the rotation angle parameter corresponding to AC. The pan-tilt camera rotates once.
[0064] If the target sampling time is 30 milliseconds, the current motion trajectory AB is first collected, and the first mapping processing is performed on AB to obtain the rotation angle parameters corresponding to AB, and the gimbal camera is controlled to rotate the rotation angle parameters corresponding to AB. Then, the current motion trajectory BC is collected, and the first mapping processing is performed on BC to obtain the rotation angle parameters corresponding to BC, and the gimbal camera is controlled to rotate the rotation angle parameters corresponding to BC. At this time, the rotation angle parameters of the gimbal camera are actually the rotation angle parameters corresponding to AC. However, the gimbal camera rotates twice, and the power consumption is relatively high.
[0065] In an embodiment of the present application, historical sliding data of the target object is obtained, and the control interaction habit parameters of the target object are predicted based on the historical sliding data. Then, based on the control interaction habit parameters, a target sampling time is generated, so that the target sampling time changes as the control interaction habits of the target object change. This not only reduces the phenomenon of delay caused by the rotation of the pan-tilt camera to the target object, but also reduces the number of rotations of the pan-tilt camera, thereby reducing the power consumption of the pan-tilt camera.
[0066] 102. Perform a first mapping process on the current motion trajectory according to the first mapping strategy to obtain a rotation angle parameter of the pan / tilt camera.
[0067] The pan-tilt camera may include a pan-tilt and a shooting device, wherein the shooting device may be fixedly mounted on the pan-tilt or may be detachably mounted on the pan-tilt, which is not limited in the embodiments of the present application. The pan-tilt camera may drive the shooting device to rotate by controlling the pan-tilt to rotate on one or more axes. Optionally, the pan-tilt camera may specifically be a pan-tilt camera.
[0068] After obtaining the current motion trajectory and the first mapping strategy, the terminal may substitute the current motion trajectory into the first mapping strategy to perform the first mapping process, thereby obtaining the rotation angle parameter of the pan-tilt camera.
[0069] Optionally, the rotation angle parameter may include an angle and a rotation direction. Alternatively, the rotation angle parameter may also include only an angle, excluding the rotation direction of the pan-tilt camera. In this case, the rotation direction of the pan-tilt camera may be determined according to the movement direction of the target object in the control interaction area. The movement direction of the target object in the control interaction area may be used as the rotation direction of the pan-tilt camera, or the opposite direction of the movement direction of the target object in the control interaction area may be used as the rotation direction of the pan-tilt camera.
[0070] Optionally, when the rotation angle parameter does not include the rotation direction of the pan-tilt camera, before performing the first mapping process on the current motion trajectory according to the first mapping strategy to obtain the rotation angle parameter terminal of the pan-tilt camera, the terminal can display the direction selection page (for example, Figure 3As shown, the direction selection page and the time setting page can be the same page), the direction selection page can include a positive direction control and a negative direction control. In response to the selection operation of the positive direction control, the positive direction is used as the rotation direction of the pan-tilt camera, or, in response to the selection operation of the negative direction control, the negative direction is used as the rotation direction of the pan-tilt camera. After obtaining the current motion trajectory, the motion direction of the target object in the control interaction area can be obtained. If the rotation direction of the pan-tilt camera is the positive direction, the motion direction of the target object in the control interaction area is used as the rotation direction of the pan-tilt camera. If the rotation direction of the pan-tilt camera is the negative direction, the opposite direction of the motion direction of the target object in the control interaction area is used as the rotation direction of the pan-tilt camera.
[0071] Optionally, in the process of performing the first mapping process on the current motion trajectory according to the first mapping strategy, a step of smoothing the current motion trajectory using a smoothing algorithm may be included.
[0072] 103. According to the second mapping strategy, perform a second mapping process on the current motion speed to obtain a rotation speed parameter of the pan / tilt camera.
[0073] The second mapping strategy may include at least one. When the second mapping strategy includes one, the terminal may directly substitute the current motion speed into the second mapping strategy for second mapping processing to obtain the rotation speed parameter of the pan-tilt camera.
[0074] When the second mapping strategy includes multiple ones, a target second mapping strategy can be screened out from the multiple second mapping strategies according to the degree to which the pan-tilt camera follows the target object, and then the second mapping processing is performed on the current motion speed according to the target second mapping strategy. At this time, each second mapping strategy can be set to correspond to a different sensitivity type, and the sensitivity type can indicate the degree to which the pan-tilt camera follows the target object (for example, the following degree can be understood as the hand-following degree of the pan-tilt camera). According to the second mapping strategy, the second mapping processing is performed on the current motion speed to obtain the rotation speed parameter of the pan-tilt camera, which can include:
[0075] Determine the target sensitivity type;
[0076] Filtering out a second mapping strategy that matches the target sensitivity type from a plurality of second mapping strategies to obtain a target second mapping strategy;
[0077] According to the target second mapping strategy, the current motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan / tilt camera.
[0078] Among them, when the sensitivity type indicates that the degree of following the target object of the gimbal camera is higher, the rotation speed parameter of the gimbal camera is larger, and when the sensitivity type indicates that the degree of following the target object of the gimbal camera is lower, the rotation speed parameter of the gimbal camera is smaller.
[0079] In an embodiment of the present application, a target sensitivity type is determined; a second mapping strategy matching the target sensitivity type is screened out from a plurality of second mapping strategies to obtain a target second mapping strategy; according to the target second mapping strategy, a second mapping process is performed on the current motion speed to obtain a rotation speed parameter of the gimbal camera, so as to determine the rotation speed parameter of the gimbal camera according to the degree to which the gimbal camera follows the target object, so that for the same current motion speed, when the degree to which the gimbal camera follows the target object is different, the rotation speed parameter of the gimbal camera is also different.
[0080] Optionally, the target sensitivity type may be determined according to the current motion speed, or the target sensitivity type may be determined according to the rotation angle parameter. When the target sensitivity type is determined according to the current motion speed, the process of determining the target sensitivity type may be:
[0081] Acquire at least two speed types, where the sensitivity types corresponding to the speed types indicate the degree to which the PTZ camera follows the target object when the target object is at a motion speed corresponding to the speed type;
[0082] Determine the speed type corresponding to the current motion speed and obtain the target speed type;
[0083] The sensitivity type corresponding to the target speed type is determined as the target sensitivity type.
[0084] Among them, a speed type can be associated with a sensitivity type, and the sensitivity type associated with the speed type is the sensitivity type corresponding to the speed type.
[0085] The faster the movement speed, the higher the degree of following the target object indicated by the speed type corresponding to the movement speed and the sensitivity type corresponding to the movement speed; the slower the movement speed, the lower the degree of following the target object indicated by the speed type corresponding to the movement speed and the sensitivity type corresponding to the movement speed.
[0086] The speed type can be divided according to the speed threshold. For example, when the speed types include two, the speed type can be a high speed type and a low speed type, the movement speed corresponding to the high speed type is a movement speed greater than the speed threshold, and the movement speed corresponding to the low speed type is a movement speed less than or equal to the speed threshold. For another example, when the speed types include three, the speed types can be a high speed type, a medium speed type and a low speed type, the movement speed corresponding to the high speed type is a movement speed greater than the first speed threshold, the movement speed corresponding to the medium speed type is a movement speed less than or equal to the first speed threshold and greater than the second speed threshold, and the movement speed corresponding to the low speed type is a movement speed less than or equal to the second speed threshold.
[0087] When the speed type includes two, after obtaining the current movement speed, the terminal can compare the current movement speed with the speed threshold. If the current movement speed is greater than the speed threshold, the speed type corresponding to the current movement speed is the high speed type, that is, the target speed type is the high speed type. If the current movement speed is less than the speed threshold, the speed type corresponding to the current movement speed is the low speed type, that is, the target speed type is the low speed type.
[0088] Optionally, the terminal may display a speed threshold setting page, the speed threshold setting page including a threshold setting control, and the speed threshold is acquired in response to a triggering operation on the threshold setting control.
[0089] For example, Figure 3 As shown, the speed threshold setting page and the time setting page can be the same page. Figure 3 The speed limit value control in is a threshold setting control. In response to a drag operation on the threshold setting control, the terminal can use the value 16 at the stop position of the drag operation as the speed threshold.
[0090] In an embodiment of the present application, at least two speed types are obtained, and the sensitivity type corresponding to the speed type indicates the degree to which the gimbal camera follows the target object when the target object is at a movement speed corresponding to the speed type; the speed type corresponding to the current movement speed is determined to obtain the target speed type; the sensitivity type corresponding to the target speed type is determined as the target sensitivity type, so as to change the degree to which the gimbal camera follows the target object according to the current movement speed.
[0091] Optionally, a speed type may correspond to at least one sensitivity coefficient. When a speed type corresponds to a sensitivity coefficient, after the terminal selects a second mapping strategy that matches the target sensitivity type from multiple second mapping strategies and obtains the target second mapping strategy, it can directly perform second mapping processing on the current motion speed according to the target second mapping strategy to obtain the rotation speed parameter of the pan-tilt camera.
[0092] When a speed type corresponds to multiple sensitivity coefficients, the current motion speed can also be subjected to a second mapping process according to the sensitivity coefficient. At this time, before the current motion speed is subjected to a second mapping process according to the target second mapping strategy and the rotation speed parameter of the pan / tilt camera is obtained, the following may also be included:
[0093] Displaying a sensitivity setting page, the sensitivity setting page including at least two sensitivity setting controls corresponding to the speed types;
[0094] In response to a trigger operation on a sensitivity setting control, a sensitivity coefficient corresponding to the speed type is determined, the sensitivity coefficient indicating a following level of the target object by the gimbal camera when the target object is at a moving speed corresponding to the speed type.
[0095] Among them, a following degree can be divided into multiple following sub-degrees, and one following sub-degree corresponds to a following level. When the target object is at a moving speed corresponding to the speed type, the following level in the following degree of the PTZ camera for the target object is higher, indicating that the following sub-degree in the following degree indicated by the sensitivity type corresponding to the speed type of the PTZ camera is higher, and when the target object is at a moving speed corresponding to the speed type, the following level in the following degree of the PTZ camera for the target object is lower, indicating that the following sub-degree in the following degree indicated by the sensitivity type corresponding to the speed type of the PTZ camera is lower.
[0096] For example, the sensitivity setting page can be Figure 3 As shown, the sensitivity setting page and the time setting page are the same page, and the speed type can include a high speed type and a low speed type. Figure 3 The touch low speed sensitivity in is the sensitivity setting control corresponding to the low speed type. Figure 3 The touch high speed sensitivity is the sensitivity setting control corresponding to the high speed type. In response to the dragging operation of the sensitivity setting control corresponding to the low speed type, the value 3 is used as the sensitivity coefficient corresponding to the low speed type. In response to the dragging operation of the sensitivity setting control corresponding to the high speed type, the value 5 is used as the sensitivity coefficient corresponding to the low speed type.
[0097] At this time, according to the target second mapping strategy, the current motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan / tilt camera, which may include:
[0098] According to the sensitivity coefficient corresponding to the target speed type, the current movement speed is adjusted to obtain the adjusted movement speed;
[0099] According to the target second mapping strategy, the adjusted motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan-tilt camera.
[0100] For example, the sensitivity coefficient corresponding to the target speed type may be multiplied by the current movement speed to obtain the adjusted movement speed, or a speed adjustment parameter associated with the sensitivity coefficient corresponding to the target speed type may be determined, and the speed adjustment parameter may be multiplied by the current movement speed to obtain the adjusted movement speed.
[0101] Alternatively, a second mapping strategy may include multiple second sub-mapping strategies, and different sensitivity systems correspond to different second sub-mapping strategies, that is, the target second mapping strategy includes multiple second sub-mapping strategies. At this time, according to the target second mapping strategy, the current motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan-tilt camera, which may include:
[0102] Selecting a second sub-mapping strategy that matches the sensitivity coefficient corresponding to the target speed type from the second sub-mapping strategy of the target second mapping strategy to obtain the target second sub-mapping strategy;
[0103] According to the target second sub-mapping strategy, the current motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan-tilt camera.
[0104] When the target sensitivity type is determined according to the rotation angle parameter, the process of determining the target sensitivity type may be:
[0105] Acquire at least two preset angle intervals, where the sensitivity types corresponding to the preset angle intervals indicate the degree to which the PTZ camera follows the target object when the rotation angle parameter is within the preset angle interval;
[0106] The preset angle interval where the rotation angle parameter is located is determined as the target preset angle interval;
[0107] The sensitivity type corresponding to the target preset angle range is determined as the target sensitivity type.
[0108] Among them, the larger the rotation angle parameter, the larger the preset angle interval, the higher the degree of following the target object indicated by the sensitivity type corresponding to the preset angle interval, the larger the rotation speed parameter of the gimbal camera, the smaller the rotation angle parameter, the smaller the preset angle interval, the lower the degree of following the target object indicated by the sensitivity type corresponding to the preset angle interval, and the smaller the rotation speed parameter of the gimbal camera.
[0109] In an embodiment of the present application, at least two preset angle intervals are obtained, and the sensitivity type corresponding to the preset angle interval indicates the degree to which the gimbal camera follows the target object when the rotation angle parameter is in the preset angle interval; the preset angle interval in which the rotation angle parameter is located is determined as the target preset angle interval; the sensitivity type corresponding to the target preset angle interval is determined as the target sensitivity type, so that when the rotation angle parameter is larger, the rotation speed parameter is larger, and when the rotation angle parameter is smaller, the rotation speed parameter is smaller.
[0110] Optionally, when the target sensitivity is determined according to the rotation angle parameter and the current motion speed at the same time, the process of determining the target sensitivity may be:
[0111] Acquire at least two speed types, where the sensitivity types corresponding to the speed types indicate the degree to which the PTZ camera follows the target object when the target object is at a motion speed corresponding to the speed type;
[0112] Determine the speed type corresponding to the current motion speed and obtain the target speed type;
[0113] Determine the sensitivity type corresponding to the target speed type as the first target sensitivity type;
[0114] Acquire at least two preset angle intervals, where the sensitivity types corresponding to the preset angle intervals indicate the degree to which the PTZ camera follows the target object when the rotation angle parameter is within the preset angle interval;
[0115] The preset angle interval where the rotation angle parameter is located is determined as the target preset angle interval;
[0116] Determine the sensitivity type corresponding to the preset angle interval of the target as the second target sensitivity type;
[0117] A target sensitivity type is determined according to the first target sensitivity type and the second target sensitivity type.
[0118] Among them, the priority of the first target sensitivity type and the priority of the second target sensitivity type can be determined. If the priority of the first target sensitivity type is higher than the priority of the second target sensitivity type, the first target sensitivity type is used as the target sensitivity type. If the priority of the first target sensitivity type is lower than the priority of the second target sensitivity type, the second target sensitivity type is used as the target sensitivity type.
[0119] Alternatively, an intermediate sensitivity type between the first target sensitivity type and the second target sensitivity type may be used as the target sensitivity type. For example, if the first target sensitivity type is a high speed type and the second target sensitivity type is a low speed type, the intermediate speed type may be used as the target sensitivity type.
[0120] Alternatively, the current emotion of the target object may be acquired, and the sensitivity type that matches the current emotion between the first target sensitivity type and the second target sensitivity type is used as the target sensitivity type.
[0121] For example, the degree to which the gimbal camera follows the target object indicated by the first target sensitivity type is higher than the degree to which the gimbal camera follows the target object indicated by the second target sensitivity type. If the current emotion is a calm emotion, the second target sensitivity type is used as the sensitivity type that matches the current emotion. If the current emotion is an impatient emotion, the first target sensitivity type is used as the sensitivity type that matches the current emotion.
[0122] Optionally, in the process of performing the second mapping process on the current motion speed according to the second mapping strategy, a step of smoothing the current motion speed using a smoothing algorithm may be included.
[0123] 104. Control the PTZ camera to rotate according to the rotation speed parameter and the rotation angle parameter.
[0124] After obtaining the rotation speed parameter and the rotation angle parameter, the terminal may send the rotation speed parameter and the rotation angle parameter to the pan-tilt camera, and the pan-tilt camera then rotates the rotation angle parameter according to the rotation speed parameter.
[0125] The terminal may send the rotation speed parameter and the rotation angle parameter to the pan-tilt camera in a wired or wireless manner. When the terminal sends the rotation speed parameter and the rotation angle parameter to the pan-tilt camera in a wireless manner, the terminal and the pan-tilt camera may be located in the same wireless local area network.
[0126] In an embodiment of the present application, control interaction information of the target object for the control interaction area is obtained, as well as a first mapping strategy and a second mapping strategy, wherein the control interaction information includes the current motion trajectory and the current motion speed of the target object; according to the first mapping strategy, a first mapping process is performed on the current motion trajectory to obtain a rotation angle parameter of the gimbal camera; according to the second mapping strategy, a second mapping process is performed on the current motion speed to obtain a rotation speed parameter of the gimbal camera; the gimbal camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter, so as to control the rotation of the gimbal camera according to the current motion trajectory and the current motion speed of the target object. When the current motion trajectory and the current motion speed are different, the rotation angle parameter and the rotation speed parameter of the gimbal camera are also different, which gives the user a more intuitive operating experience and reduces the difficulty of controlling the rotation of the gimbal camera.
[0127] In some embodiments, controlling the pan / tilt camera to rotate the rotation angle parameter according to the rotation speed parameter may include:
[0128] Get the preset rotation speed threshold;
[0129] If the rotation speed parameter is less than or equal to the preset rotation speed threshold, the pan / tilt camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter.
[0130] If the rotation speed parameter is greater than the preset rotation speed threshold, the pan / tilt camera is controlled to rotate the rotation angle parameter according to the preset rotation speed threshold.
[0131] When the rotation speed parameter of the pan-tilt camera is too large, if the pan-tilt camera rotates the rotation angle parameter according to the rotation speed parameter, the pan-tilt camera will cause shaking. Therefore, in the embodiment of the present application, a preset rotation speed threshold is obtained; if the rotation speed parameter is less than or equal to the preset rotation speed threshold, the pan-tilt camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter. If the rotation speed parameter is greater than the preset rotation speed threshold, the pan-tilt camera is controlled to rotate the rotation angle parameter according to the preset rotation speed threshold to avoid the shaking of the pan-tilt camera due to too fast rotation speed.
[0132] As can be seen from the above, the present application obtains the control interaction information of the target object for the control interaction area, and obtains the first mapping strategy and the second mapping strategy, wherein the control interaction information includes the current motion trajectory and the current motion speed of the target object; according to the first mapping strategy, the current motion trajectory is subjected to a first mapping processing to obtain the rotation angle parameter of the gimbal camera; according to the second mapping strategy, the current motion speed is subjected to a second mapping processing to obtain the rotation speed parameter of the gimbal camera; the gimbal camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter, so as to realize the control of the rotation of the gimbal camera according to the current motion trajectory and the current motion speed of the target object, thereby reducing the difficulty of controlling the rotation of the gimbal camera.
[0133] In order to facilitate better implementation of the pan-tilt camera control method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the pan-tilt camera control. The meanings of the terms are the same as those in the pan-tilt camera control method, and the specific implementation details can refer to the description in the method embodiment.
[0134] For example, Figure 5 As shown, the pan-tilt camera control device is applied to an electronic device, and the electronic device includes a control interaction area of a pan-tilt camera. The pan-tilt camera control device may include:
[0135] The information acquisition module 501 is used to acquire the control interaction information of the target object for the control interaction area, and acquire the first mapping strategy and the second mapping strategy, wherein the control interaction information includes the current motion trajectory and current motion speed of the target object.
[0136] The first mapping module 502 is used to perform a first mapping process on the current motion trajectory according to a first mapping strategy to obtain a rotation angle parameter of the pan-tilt camera.
[0137] The second mapping module 503 is used to perform a second mapping process on the current motion speed according to a second mapping strategy to obtain a rotation speed parameter of the pan / tilt camera.
[0138] The rotation control module 504 is used to control the pan / tilt camera to rotate according to the rotation speed parameter and the rotation angle parameter.
[0139] Optionally, the second mapping strategy includes multiple ones, each second mapping strategy corresponds to a different sensitivity type, and the sensitivity type indicates the degree to which the PTZ camera follows the target object. The second mapping module 503 is specifically used to execute:
[0140] Determine the target sensitivity type;
[0141] Filtering out a second mapping strategy that matches the target sensitivity type from a plurality of second mapping strategies to obtain a target second mapping strategy;
[0142] According to the target second mapping strategy, the current motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan / tilt camera.
[0143] Optionally, the second mapping module 503 is specifically configured to execute:
[0144] Acquire at least two speed types, where the sensitivity types corresponding to the speed types indicate the degree to which the PTZ camera follows the target object when the target object is at a motion speed corresponding to the speed type;
[0145] Determine the speed type corresponding to the current motion speed and obtain the target speed type;
[0146] The sensitivity type corresponding to the target speed type is determined as the target sensitivity type.
[0147] Optionally, the pan / tilt camera control device further includes:
[0148] Set up the module to execute:
[0149] Displaying a sensitivity setting page, the sensitivity setting page including at least two sensitivity setting controls corresponding to the speed types;
[0150] In response to a trigger operation on a sensitivity setting control, a sensitivity coefficient corresponding to the speed type is determined, the sensitivity coefficient indicating a following level of the target object by the gimbal camera when the target object is at a moving speed corresponding to the speed type.
[0151] Accordingly, the second mapping module 503 is specifically configured to execute:
[0152] According to the sensitivity coefficient corresponding to the target speed type, the current movement speed is adjusted to obtain the adjusted movement speed;
[0153] According to the target second mapping strategy, the adjusted motion speed is subjected to second mapping processing to obtain the rotation speed parameter of the pan-tilt camera.
[0154] Optionally, the second mapping module 503 is specifically configured to execute:
[0155] Acquire at least two preset angle intervals, where the sensitivity types corresponding to the preset angle intervals indicate the degree to which the PTZ camera follows the target object when the rotation angle parameter is within the preset angle interval;
[0156] The preset angle interval where the rotation angle parameter is located is determined as the target preset angle interval;
[0157] The sensitivity type corresponding to the target preset angle range is determined as the target sensitivity type.
[0158] Optionally, the information acquisition module 501 is specifically configured to execute:
[0159] Get the target sampling time;
[0160] According to the target sampling time, control interaction information of the target object for the control interaction area is obtained.
[0161] Optionally, the information acquisition module 501 is specifically configured to execute:
[0162] Displaying a time setting page, the time setting page includes a time setting control;
[0163] In response to a trigger operation on a time setting control, the time corresponding to the trigger operation is used as a target sampling time.
[0164] Optionally, the information acquisition module 501 is specifically configured to execute:
[0165] Get the historical sliding data of the target object;
[0166] Predict the control interaction habit parameters of the target object based on historical sliding data;
[0167] Generate target sampling time based on control interaction habit parameters.
[0168] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.
[0169] An embodiment of the present application also provides an electronic device, which includes one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the pan-tilt camera control method in any of the embodiments of the pan-tilt camera control method.
[0170] For example, electronic devices can Figure 6 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0171] The processor 601 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing the application 603 stored in the memory 602 and calling the data stored in the memory 602. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.
[0172] The memory 602 can be used to store the application 603. The processor 601 executes various functional applications and data processing by running the application 603 stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), and the application 603, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0173] The electronic device also includes a power supply 604 for supplying power to various components. Preferably, the power supply 604 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 604 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0174] The electronic device may further include an input unit 605, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0175] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the application programs stored in the memory 602, thereby realizing various functions, such as:
[0176] Acquire control interaction information of the target object for the control interaction area, and acquire a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object;
[0177] According to the first mapping strategy, a first mapping process is performed on the current motion trajectory to obtain a rotation angle parameter of the pan / tilt camera;
[0178] According to the second mapping strategy, the current motion speed is subjected to a second mapping process to obtain a rotation speed parameter of the pan / tilt camera;
[0179] Control the PTZ camera to rotate according to the rotation speed parameter and the rotation angle parameter.
[0180] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the device connection method above, which will not be elaborated here.
[0181] An embodiment of the present invention provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any of the PTZ camera control methods provided in the embodiments of the present invention. For example, the computer program is loaded by the processor to perform the following steps:
[0182] Acquire control interaction information of the target object for the control interaction area, and acquire a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object;
[0183] According to the first mapping strategy, a first mapping process is performed on the current motion trajectory to obtain a rotation angle parameter of the pan / tilt camera;
[0184] According to the second mapping strategy, the current motion speed is subjected to a second mapping process to obtain a rotation speed parameter of the pan / tilt camera;
[0185] Control the PTZ camera to rotate according to the rotation speed parameter and the rotation angle parameter.
[0186] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0187] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0188] The present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned pan / tilt camera control method.
[0189] The present application also provides a pan-tilt camera control system, which includes an electronic device and a pan-tilt camera. The electronic device executes the above-mentioned pan-tilt camera control method, and the pan-tilt camera rotates according to a rotation speed parameter and a rotation angle parameter.
[0190] The above is a detailed introduction to a pan-tilt camera control method provided in an embodiment of the present application. Specific embodiments are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A pan / tilt camera control method, characterized in that: Applied to an electronic device, the electronic device includes a control interaction area of a pan / tilt camera, and the method includes: Acquire control interaction information of the target object for the control interaction area, and acquire a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object; According to the first mapping strategy, performing a first mapping process on the current motion trajectory to obtain a rotation angle parameter of the pan / tilt camera; According to the second mapping strategy, performing a second mapping process on the current motion speed to obtain a rotation speed parameter of the pan / tilt camera; The pan / tilt camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter.
2. The PTZ camera control method according to claim 1, characterized in that: The second mapping strategies include a plurality of strategies, each of which corresponds to a different sensitivity type, and the sensitivity type indicates the degree to which the PTZ camera follows the target object; The step of performing a second mapping process on the current motion speed according to the second mapping strategy to obtain a rotation speed parameter of the pan / tilt camera includes: Determine the target sensitivity type; Filtering out a second mapping strategy matching the target sensitivity type from a plurality of the second mapping strategies to obtain a target second mapping strategy; According to the target second mapping strategy, the current motion speed is subjected to a second mapping process to obtain a rotation speed parameter of the pan / tilt camera.
3. The PTZ camera control method according to claim 2, characterized in that: The determining of the target sensitivity type comprises: Acquire at least two speed types, wherein the sensitivity types corresponding to the speed types indicate the degree to which the PTZ camera follows the target object when the target object is at a moving speed corresponding to the speed type; Determine the speed type corresponding to the current motion speed to obtain the target speed type; The sensitivity type corresponding to the target speed type is determined as the target sensitivity type.
4. The PTZ camera control method according to claim 3, characterized in that: Before performing the second mapping process on the current motion speed according to the target second mapping strategy to obtain the rotation speed parameter of the pan-tilt camera, the method further includes: Displaying a sensitivity setting page, the sensitivity setting page including at least two sensitivity setting controls corresponding to the speed types; In response to a trigger operation on the sensitivity setting control, determining a sensitivity coefficient corresponding to the speed type, the sensitivity coefficient indicating a following level of the target object followed by the PTZ camera when the target object is at a moving speed corresponding to the speed type; According to the target second mapping strategy, the current motion speed is subjected to a second mapping process to obtain a rotation speed parameter of the pan / tilt camera, including: According to the sensitivity coefficient corresponding to the target speed type, the current movement speed is adjusted to obtain an adjusted movement speed; According to the target second mapping strategy, the adjusted motion speed is subjected to a second mapping process to obtain a rotation speed parameter of the pan / tilt camera.
5. The PTZ camera control method according to claim 2, characterized in that: The determining of the target sensitivity type comprises: Acquire at least two preset angle intervals, wherein the sensitivity types corresponding to the preset angle intervals indicate the degree to which the pan / tilt camera follows the target object when the rotation angle parameter is within the preset angle interval; Determine the preset angle interval where the rotation angle parameter is located as the target preset angle interval; The sensitivity type corresponding to the target preset angle interval is determined as the target sensitivity type.
6. The PTZ camera control method according to claim 1, characterized in that: The acquiring the control interaction information of the target object for the control interaction area includes: Get the target sampling time; According to the target sampling time, control interaction information of the target object for the control interaction area is acquired.
7. The PTZ camera control method according to claim 6, characterized in that: The obtaining of the target sampling time comprises: Displaying a time setting page, the time setting page including a time setting control; In response to a trigger operation on the time setting control, the time corresponding to the trigger operation is used as the target sampling time.
8. The PTZ camera control method according to claim 6, wherein: The obtaining of the target sampling time comprises: Obtaining historical sliding data of the target object; predicting control interaction habit parameters of the target object according to the historical sliding data; Generate target sampling time based on control interaction habit parameters.
9. The PTZ camera control method according to any one of claims 1 to 8, characterized in that: The controlling the pan / tilt camera to rotate the rotation angle parameter according to the rotation speed parameter comprises: Get the preset rotation speed threshold; If the rotation speed parameter is less than or equal to the preset rotation speed threshold, the pan / tilt camera is controlled to rotate the rotation angle parameter according to the rotation speed parameter.
10. A pan / tilt camera control device, characterized in that: Applied to an electronic device, the electronic device includes a control interaction area of a pan / tilt camera, and the device includes: An information acquisition module, used to acquire control interaction information of the target object for the control interaction area, and to acquire a first mapping strategy and a second mapping strategy, wherein the control interaction information includes a current motion trajectory and a current motion speed of the target object; A first mapping module, configured to perform a first mapping process on the current motion trajectory according to the first mapping strategy to obtain a rotation angle parameter of the pan / tilt camera; A second mapping module, configured to perform a second mapping process on the current motion speed according to the second mapping strategy to obtain a rotation speed parameter of the pan / tilt camera; The rotation control module is used to control the pan / tilt camera to rotate the rotation angle parameter according to the rotation speed parameter.
11. An electronic device, characterized in that: The electronic device includes at least one processor, a memory and at least one application, wherein the at least one application is stored in the memory and is configured to be executed by the processor to implement the steps of the pan-tilt camera control method described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps of the pan-tilt camera control method according to any one of claims 1 to 9.
13. A pan / tilt camera control system, characterized in that: The invention comprises an electronic device and a pan-tilt camera, wherein the electronic device executes the pan-tilt camera control method according to any one of claims 1 to 9, and the pan-tilt camera rotates the rotation angle parameter according to the rotation speed parameter.