Cradle head cruising method, electronic equipment and computer readable storage medium

By displaying a panoramic preview of the PTZ camera's field of view and the preset positions selected by the user on a visual interface, users can input a cruise route on the interface. This solves the problems in existing technologies where the positional relationship of preset positions is difficult to display intuitively and the cruise route does not meet user needs, thus realizing user-customized PTZ cruise.

CN119052648APending Publication Date: 2024-11-29HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410975759.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In existing technologies, the relative positional relationships between the preset gimbal positions set by the user are difficult to display intuitively, and the generated cruise routes are not what the user expects, making it difficult to meet the user's needs.

Method used

The visual interface displays a panoramic preview of the PTZ camera's field of view, along with multiple preset positions selected by the user. The user can input a cruise route on the interface, and the PTZ controller will cruise according to the user-defined route.

Benefits of technology

This allows users to intuitively observe the relative positions between preset positions and set the cruise route according to actual needs, enabling the gimbal to move according to user requirements and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052648A_ABST
    Figure CN119052648A_ABST
Patent Text Reader

Abstract

The invention discloses a pan-tilt cruising method, electronic equipment and a computer readable storage medium, the pan-tilt cruising method comprises the following steps: displaying a view field panoramic preview of a pan-tilt camera on a visual interface, the pan-tilt camera comprising a pan-tilt and a camera installed on the pan-tilt; displaying a plurality of preset positions selected by the user on the view field panoramic preview, wherein the plurality of preset positions comprise a first target preset position and a second target preset position; obtaining a target cruise route from the first target preset position to the second target preset position input by the user on the visual interface; and controlling the holder to cruise from the first target preset position to the second target preset position according to the target cruise route. According to the cruise method, on one hand, the relative position relation between the preset positions can be visually displayed on the visual interface, and on the other hand, the user can set the cruise route according to the actual demand of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gimbal control technology, and in particular to a gimbal cruise method, electronic equipment and computer-readable storage medium. Background Art

[0002] Currently, after the user sets the preset positions of the gimbal, the relative position relationship between the preset positions cannot be intuitively displayed to the user, and the cruise route generated based on the preset positions is often the shortest route calculated by the device itself, not the cruise route the user wants to set, so it is difficult to meet the user's requirements. Summary of the invention

[0003] The present application provides a gimbal cruise method, an electronic device and a computer-readable storage medium, which can intuitively display the relative position relationship between various preset positions on a visual interface on the one hand, and enable users to set cruise routes according to their actual needs on the other hand.

[0004] A first aspect of an embodiment of the present application provides a gimbal cruise method, the method comprising: displaying a panoramic preview image of the field of view of a gimbal camera on a visualization interface, the gimbal camera comprising a gimbal and a camera mounted on the gimbal; displaying multiple preset positions selected by a user on the panoramic preview image of the field of view, the multiple preset positions comprising a first target preset position and a second target preset position; obtaining a target cruise route from the first target preset position to the second target preset position input by the user on the visualization interface; and controlling the gimbal to cruise from the first target preset position to the second target preset position according to the target cruise route.

[0005] A second aspect of an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a communication circuit, wherein the processor is coupled to the memory and the communication circuit, respectively, and program data is stored in the memory. The processor implements the steps in the above method by executing the program data in the memory.

[0006] A third aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the above method.

[0007] The beneficial effect is: the present application displays a panoramic preview of the field of view of the pan-tilt camera on a visual interface and displays multiple preset positions selected by the user on the panoramic preview of the field of view, so that the user can observe the relative positions between the preset positions as a whole. At the same time, the present application also allows the user to input a cruise route from the visual interface to meet the actual needs of the user, so that the pan-tilt can cruise according to the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] 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 are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0009] Figure 1 It is a flow chart of an implementation method of the pan-tilt cruise method of the present application;

[0010] Figure 2 This is a panoramic preview of the application field of view Figure 1 A schematic diagram of the structure of an implementation method;

[0011] Figure 3 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0012] Figure 4 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0013] Figure 5 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0014] Figure 6 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0015] Figure 7 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0016] Figure 8 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0017] Fig. 9 It is a structural schematic diagram of another implementation method of the panoramic preview image of the field of view of the present application;

[0018] Fig.10 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0019] Fig.11 It is a structural schematic diagram of another embodiment of the electronic device of the present application;

[0020] Fig.12 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0021] 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 application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] It should be noted that the terms "first" and "second" in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0023] Before introducing the pan-tilt cruise method of the present application, it should be first explained that the pan-tilt cruise method of the present application is executed by a pan-tilt controller, which is used to control the pan-tilt to cruise between multiple preset positions, so that the camera installed on the pan-tilt can shoot the target scene. The pan-tilt controller can be integrated in the pan-tilt, or it can be independent of the pan-tilt and communicate with the pan-tilt. At the same time, the pan-tilt controller can be a processor or a single-chip microcomputer, and the present application does not limit the specific structure of the pan-tilt controller.

[0024] See also Figure 1 In one embodiment of the present application, the gimbal cruise method includes:

[0025] S110: Displaying a panoramic preview image of the field of view of the PTZ camera on a visualization interface.

[0026] Specifically, the pan-tilt camera includes a pan-tilt and a camera mounted on the pan-tilt. The direction of the camera is controlled by the pan-tilt. During the rotation of the pan-tilt, the camera shoots, thereby shooting the area in which it is located. In one embodiment, the panoramic preview image of the field of view displayed on the visualization interface is as follows: Figure 2 shown.

[0027] The panoramic preview of the field of view of the PTZ camera refers to the images of the entire field of view that the PTZ camera can capture, that is, during the PTZ rotation, all the images that the camera can capture are included in the panoramic preview of the field of view. Or it can be understood that the PTZ camera cannot capture images outside the panoramic preview of the field of view. By displaying the panoramic preview of the field of view on the visual interface, users can set preset positions and cruise routes from a global perspective. For details, please refer to the following introduction.

[0028] Wherein, a display that displays a visualization interface is connected to a pan / tilt controller, the pan / tilt controller sends a panoramic preview image of the field of view to the display, and the display displays the panoramic preview image of the field of view.

[0029] In one embodiment, before step S110, a panoramic preview image of the field of view may be constructed according to the following steps:

[0030] S210: During the rotation of the pan / tilt head, a plurality of target images captured by the camera are acquired.

[0031] Specifically, after the pan-tilt camera is installed, the user can manually operate the pan-tilt to rotate, so that the camera captures multiple images (defined as target images) during the pan-tilt rotation process.

[0032] S220: Perform fusion processing on multiple target images to obtain a panoramic preview image of the field of view.

[0033] Specifically, after obtaining a plurality of target images, a fusion technology is used to perform fusion processing on the plurality of target images to obtain a panoramic preview image of the field of view.

[0034] Among them, the rotation angle range of the gimbal (for example, when the camera zoom is minimum, the shooting angle range of the horizontal rotation of the gimbal and the shooting angle range of the vertical rotation) are fixed parameters of the equipment, which have been set when the gimbal leaves the factory. Therefore, according to the rotation angle range of the gimbal and the zoom of the camera during the rotation of the gimbal, the position and proportion of each target image taken by the camera in the panoramic preview image of the field of view can be obtained. Therefore, according to these parameters such as position and proportion, multiple target images can be fused to obtain a panoramic preview image of the field of view. The specific process of the fusion belongs to the prior art and will not be described in detail here.

[0035] In one application scenario, during the process of manual operation of the pan / tilt by the user, the camera can collect all images, so that step S220 can obtain a complete panoramic preview of the field of view. Considering that it takes a certain amount of time for the camera to collect all images, in another application scenario, in order to improve efficiency, during the process of manual operation of the pan / tilt by the user, the camera can collect part of the images. At this time, the panoramic preview of the field of view obtained in step S220 may be incomplete, and the images of the areas that the camera failed to collect can be replaced with grayscale images in the panoramic preview of the field of view. Later, during the pan / tilt cruising process, the panoramic preview of the field of view can be updated in real time according to the images captured by the camera. That is to say, in this application scenario, the panoramic preview of the field of view constructed at the beginning may be incomplete, and the incomplete panoramic preview of the field of view can be continuously updated according to the images collected by the camera.

[0036] In another embodiment, the panoramic preview image of the field of view may also be obtained by fusing and splicing historical images taken by the camera. In summary, the present application does not impose any specific restrictions on the construction process of the panoramic preview image of the field of view.

[0037] S120: Displaying a plurality of preset positions selected by the user on the panoramic preview image of the field of view, wherein the plurality of preset positions include a first target preset position and a second target preset position.

[0038] Specifically, before step S120, the user chooses to set multiple preset positions according to his or her needs. The PTZ controller displays the multiple preset positions selected by the user on the panoramic preview image of the field of view in step S120. At this time, through the visual interface, the user can intuitively see the positions of the multiple preset positions in the panoramic preview image of the field of view, as well as the relative positions between the multiple preset positions. Figure 2 ,In an application scenario, five preset positions are displayed in the ,viewing panoramic preview image, which are represented by P1, P2, P3, P4, and P5 respectively.

[0039] Among them, the user can select multiple preset positions through the client, and the client can be a mobile client APP, or an NVR client or a VMS client. This application does not limit the specific type of the client.

[0040] In one embodiment, before step S120, the method further includes: obtaining a position point manually selected by a user on the panoramic preview image of the field of view, and selecting the position point as a preset position.

[0041] Specifically, in this embodiment, the user manually selects several position points in the panoramic preview image of the field of view, and then the pan / tilt controller uses the several position points as preset positions. The form in which the user manually selects several position points in the panoramic preview image of the field of view can be various. For example, the user can click the position point in the panoramic preview image of the field of view by clicking the mouse, or, when the display has a touch function, the user can also select the position point by touching the finger. When the user selects several position points, he can select several position points in sequence, or he can first select a position point, then slide from the position point to the next position point and pause, and then slide to the next position point and pause, and so on. In this process, the position point at which the user pauses each time is the position point selected by the user. In order to improve the accuracy of the setting and avoid user misoperation, a time threshold can also be set. Only when the user's pause time at a certain position point reaches the time threshold, the position point is determined as the position point selected by the user. The time threshold can be, for example, 2 seconds, 5 seconds, etc., which is set according to actual needs.

[0042] The user can also input a trigger command before or after selecting a position point each time. After receiving the trigger command, the PTZ controller recognizes the position point selected by the user and uses the position point as a preset position. For example, there is a target button on the visualization interface. When the user needs to set a preset position, first click the target button, then select a position point in the panoramic preview image of the field of view. At this time, the PTZ controller will recognize the position point selected by the user and use the position point as a preset position.

[0043] In this implementation, the user can manually select a preset position directly in the panoramic preview image of the field of view, which is simple and convenient to operate.

[0044] In another embodiment, before step S120, the method further includes: during the rotation of the pan / tilt head, in response to receiving a trigger instruction input by a user, determining the current rotation position of the pan / tilt head as a preset position.

[0045] Specifically, different from the above-mentioned embodiment, in this embodiment, the user does not directly select the preset position in the panoramic preview image of the field of view. Instead, during the process of rotating the gimbal, when the user finds that the current rotation position of the gimbal is a suitable position, the user inputs a trigger instruction, such as clicking the favorite button on the control panel. For the gimbal controller, after receiving the trigger instruction input by the user, the current rotation position of the gimbal is directly determined as the preset position.

[0046] In another embodiment, the preset position can be determined by combining the methods in the above two embodiments. Specifically, in this embodiment, the position point manually selected by the user on the panoramic preview image of the field of view can be determined as the preset position, and the current rotation position of the gimbal when the user inputs a trigger command during the rotation of the gimbal can be determined as the preset position.

[0047] In summary, the present application does not impose any specific limitation on the specific process of determining the preset position.

[0048] S130: Acquire a target cruise route from a first target preset position to a second target preset position input by a user on a visual interface.

[0049] Specifically, since a plurality of preset positions are displayed on the panoramic preview image of the field of view, the user can set an ideal cruise route through the panoramic preview image of the field of view.

[0050] After the user sets the target cruise route, the target cruise route can also be displayed on the visual interface, for example, Figure 2 In the implementation manner, the route L3 is the target cruise route input by the user, and the preset positions P4 and P5 are respectively the first target preset position and the second target preset position.

[0051] In one embodiment, the specific process of the user setting the target cruise route on the visualization interface includes: obtaining a sliding route of the user sliding from a first target preset position to a second target preset position on the visualization interface, and determining the sliding route as the target cruise route.

[0052] Specifically, when it is necessary to set a cruising route between two preset positions (for the sake of convenience, one of the preset positions is defined as the first target preset position, and the other preset position is defined as the second target preset position), the user slides from the first target preset position to the second target preset position on the visual interface (it can also be understood as connecting the first target preset position and the second target preset position). For the gimbal controller, it obtains the sliding route generated by the user's sliding process, and determines the sliding route as the target cruising route. The target cruising route is the ideal route that the user wants the gimbal to cruise from the first target preset position to the second target preset position.

[0053] The user may slide a finger on the visual interface to generate a sliding route, or may slide a mouse on the visual interface to generate a sliding route. The present application does not limit the specific sliding method.

[0054] In the above-mentioned embodiment, the target cruise route is input on the visual interface by sliding, but in other embodiments, the target cruise route can also be input by selecting a route template. For example, route templates of various shapes such as S-shaped, straight line, broken line, sawtooth, square wave, etc. are pre-set. After the user selects the first target preset position and the second target preset position, the user selects a shaped route template through the visual interface, such as S-shaped, and then the pan / tilt controller sets the target cruise route between the first target preset position and the second target preset position according to the route template selected by the user.

[0055] In summary, the present application does not limit the specific process of a user setting a cruise route between two preset positions.

[0056] Among them, the cruise route between any two preset positions in the panoramic preview image of the field of view can be set according to the above method.

[0057] S140: According to the target cruising route, the PTZ is controlled to cruise from the first target preset position to the second target preset position.

[0058] Specifically, after obtaining the target cruising route, the PTZ controller can control the PTZ to move according to the target cruising route, so that the PTZ cruises from the first target preset position to the second target preset position, so that the PTZ can cruise according to user needs.

[0059] From the above content, it can be seen that the present application displays a panoramic preview of the field of view of the gimbal camera on a visual interface and displays multiple preset positions selected by the user on the panoramic preview of the field of view, so that the user can observe the relative positions between the preset positions as a whole. At the same time, the present application also allows the user to input a cruise route from the visual interface to meet the actual needs of the user, so that the gimbal can cruise according to the user's needs.

[0060] Considering that if the target cruise route is jittery, the pan / tilt will also be jittery during movement, which will eventually result in poor quality of the images captured by the camera, in order to avoid this situation, in one embodiment, before step S140, the target cruise route is further smoothed. Figure 3 As shown in Figure 2, before smoothing, the target cruise route has jitter. Figure 2 As shown, after smoothing, the target cruise route becomes smooth, and when the subsequent gimbal rotates according to the target cruise route, the camera can ensure stable shooting.

[0061] In one embodiment, the target cruise route is further processed before step S140, and the processing process includes: generating multiple discrete cruise points on the target cruise route, wherein, in the subsequent process of controlling the gimbal cruise, the gimbal is controlled to start from the first target preset position, and arrive at the second target preset position after rotating to the multiple discrete cruise points in sequence.

[0062] Specifically, after obtaining the target cruise route set by the user, the target cruise route is discretely selected to generate multiple discrete cruise points. In an application scenario, the multiple discrete cruise points obtained by discretely selecting the target cruise route are as follows: Figure 4 As shown, Figure 4 Discrete cruise points are represented by black dots.

[0063] The purpose of generating multiple discrete cruise points is to enable the gimbal to start from the first target preset position and reach the second target preset position after rotating to multiple discrete cruise points in sequence when cruising, thereby completing the process of cruising from the first target preset position to the second target preset position.

[0064] Among them, the present application does not limit the specific process of generating multiple discrete cruise points. For example, a discrete cruise point can be taken every 5 degrees in the horizontal direction, or a discrete cruise point can be taken every 2 degrees in the vertical direction. Among them, when generating discrete cruise points, the density of discrete cruise points can also be determined according to the curvature of the target cruise route. For example, the target cruise route is divided into multiple sub-segments, wherein the greater the curvature of the sub-segment, the more discrete cruise points are distributed on the sub-segment, and the denser the distribution of discrete cruise points is. In other words, the more curved the sub-segment, the more discrete cruise points are distributed on the sub-segment, and the straighter the sub-segment, the fewer discrete cruise points are distributed on the sub-segment. It can be understood that the more discrete cruise points are generated, the closer the subsequent gimbal's cruise route is to the target cruise route, and the closer it is to the user's needs.

[0065] After generating a plurality of discrete cruise points on the target cruise route, parameters corresponding to the discrete cruise points can be set for each discrete cruise point according to the user's input for the discrete cruise point, wherein the subsequent pan / tilt head adjusts the pan / tilt head or the camera according to the parameters when the pan / tilt head rotates to within the route range corresponding to the discrete cruise point, wherein the parameters include at least one of the rotation speed and the field of view.

[0066] Specifically, Figure 4As shown, after generating multiple discrete cruise points on the target cruise route, the multiple discrete cruise points are displayed on the visual interface, and then after the user selects a discrete cruise point (can be selected by long pressing, double clicking, etc.), the rotation speed and field of view corresponding to the discrete cruise point can be set. When the PTZ rotates to the route range corresponding to the discrete cruise point, the rotation of the PTZ is controlled according to the rotation speed corresponding to the discrete cruise point, and the shooting angle of the camera is controlled according to the field of view corresponding to the discrete cruise point. In other words, within the route range corresponding to the discrete cruise point, the PTZ rotates at the rotation speed corresponding to the discrete cruise point, and within the route range corresponding to the discrete cruise point, the camera shoots at the shooting angle corresponding to the discrete cruise point.

[0067] In order to explain the route range corresponding to the discrete cruise points, discrete cruise points 1, 2 and 3 are combined for explanation, wherein the center point between discrete cruise points 1 and 2 is defined as center point A, and the center point between discrete cruise points 2 and 3 is defined as center point B:

[0068] Discrete cruise point 1, discrete cruise point 2, and discrete cruise point 3 are set adjacent to each other, wherein the route range corresponding to discrete cruise point 2 can be the route range between center point A and center point B, the route range between discrete cruise point 1 and discrete cruise point 2, or the route range between discrete cruise point 2 and discrete cruise point 3.

[0069] In summary, the route range corresponding to the discrete cruise point only needs to be a route that includes the discrete cruise point, and there is no restriction on how to set it specifically.

[0070] In one embodiment, for each discrete cruise point, the user can set the size of a certain parameter by setting the attributes of an icon, that is, for the gimbal controller, it sets the parameter size of the discrete cruise point according to the attributes of the icon selected by the user for the discrete cruise point, wherein the attributes of the icon include at least one of the size of the icon and the color of the icon.

[0071] Specifically, combined Figure 5 , take the example that the parameter includes the rotation speed and the icon attribute is the icon size:

[0072] After the user inputs a trigger command to enter the page for setting the speed corresponding to the discrete cruise point, a circular icon is displayed at each discrete cruise point on the visual interface. The user can select a discrete cruise point and switch the circular icon at the discrete cruise point to select a circular icon of appropriate size. In an application scenario, the smaller the circular icon, the slower the speed corresponding to the discrete cruise point, and the slower the subsequent pan / tilt rotates in the route range corresponding to the discrete cruise point. In an application scenario, the speed can be divided into four levels, namely, ultra-slow, slow, medium, and high, so the circular icon also has four specifications: ultra-small circular icon, small circular icon, medium circular icon, and large circular icon. The ultra-small circular icon corresponds to ultra-slow speed, the small circular icon corresponds to slow speed, and so on. After the user selects a circular icon of appropriate size for each discrete cruise point, the pan / tilt controller can determine the speed corresponding to each discrete cruise point, and subsequently during the pan / tilt rotation process, the pan / tilt rotation speed can be controlled within the route range corresponding to each discrete cruise point.

[0073] The level of the rotation speed may also be indicated by the color of the icon. For example, the darker the color of the icon, the greater the rotation speed.

[0074] In one embodiment, when the parameters include both the rotational speed and the field of view, for each discrete cruise point, the rotational speed corresponding to the discrete cruise point is set according to the attributes of a first icon selected by the user for the discrete cruise point, and the field of view corresponding to the discrete cruise point is set according to the attributes of a second icon selected by the user for the discrete cruise point, wherein the first icon and the second icon are different.

[0075] To facilitate understanding, a specific example is given here:

[0076] Combination Figure 5 After the user inputs a trigger command to enter the page for setting the speed corresponding to the discrete cruise point, a circular icon is displayed at each discrete cruise point on the visual interface. The user can select a discrete cruise point and switch the circular icon at the discrete cruise point, and select a circular icon of appropriate size to set the speed corresponding to the discrete cruise point.

[0077] Combination Figure 6 After the user inputs a trigger command to enter the field of view corresponding to the discrete cruise point, a square icon is displayed at each discrete cruise point on the visual interface. The user can select a discrete cruise point and switch the square icon at the discrete cruise point to select a square icon of appropriate size. Different sizes of square icons correspond to different field of view sizes.

[0078] In the above example, the rotation speed corresponds to a circular icon and the field of view corresponds to a square icon, but the present application is not limited to this. The rotation speed may correspond to a square icon and the field of view may correspond to a triangular icon.

[0079] In the above embodiments, the parameters corresponding to the discrete cruise points are set by selecting icons, but the present application is not limited to this. In other embodiments, for each discrete cruise point, the user can also directly enter a specific value to set the parameter.

[0080] In one embodiment, before controlling the gimbal cruise, the cruise route set by the user can also be optimized to avoid redundancy or intersection of the cruise routes set by the user. That is, before step S140, it also includes: in response to the intersection of the target cruise route with other cruise routes; optimizing at least one of the target cruise route and other cruise routes so that the optimized target cruise route and other cruise routes no longer intersect.

[0081] Specifically, each time a user sets a cruise route, the cruise route may be optimized, or overall optimization may be performed after the user has set all the cruise routes.

[0082] For the sake of convenience, let's take the example of overall optimization after the user has set all the cruise routes:

[0083] like Figure 7 As shown in FIG. 1 , there is an intersection between the cruise routes set by the user, specifically, there is an intersection between the cruise route between the preset positions P1-P3 and the cruise route between the preset positions P2-P4. After optimization, as shown in FIG. Figure 8 As shown, all cruise routes will not intersect.

[0084] Among them, when optimizing the gimbal controller, it can be optimized according to the principle of shortest cruising route or less repeated content in the images taken by the camera. The specific process of the optimization will not be described here.

[0085] To better understand the above solution, here is a specific example:

[0086] See also Figure 7 , a panoramic preview of the field of view is displayed on the visual interface, and after the user sets each preset position, the user can, for example, manually slide to set a sliding route between two preset positions, that is, a cruise route between two preset positions. After the user has set all the cruise routes, some cruise routes may intersect or be redundant (such as Figure 7 As shown in the figure, the cruise route is optimized first, so that there is no intersection of the cruise routes after optimization. The optimized panoramic preview of the field of view is shown in the figure Figure 8 shown.

[0087] Then the PTZ controller discretely selects points from all the cruise routes to obtain multiple discrete cruise points.

[0088] like Fig. 9 As shown, for each discrete cruise point, the user can set the parameters corresponding to the discrete cruise point, such as rotation speed, field of view size, etc., by selecting an icon.

[0089] After the user has set the parameters of all discrete cruise points, the gimbal controls the gimbal to cruise, that is, rotates to each discrete cruise point in turn according to the parameters corresponding to the discrete cruise points, so that the gimbal moves according to the cruise route set by the user.

[0090] From the above content, it can be seen that the present application not only allows users to intuitively set preset positions, but also allows users to flexibly set cruise routes, and also allows users to flexibly set parameters such as the rotation speed and field of view of the camera during the pan / tilt cruise process. The operation is simple and can meet the needs of users.

[0091] See also Fig.10 , Fig.10 1 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 200 includes a processor 210, a memory 220 and a communication circuit 230. The processor 210 is coupled to the memory 220 and the communication circuit 230 respectively. The memory 220 stores program data. The processor 210 implements the steps in any of the above-mentioned implementation methods by executing the program data in the memory 220. The detailed steps can be found in the above-mentioned implementations and will not be repeated here.

[0092] Among them, the electronic device 200 is specifically the above-mentioned gimbal controller, which controls the gimbal to cruise through the above-mentioned steps when working. The detailed process can be found in the above-mentioned related content, and no limitation is made here.

[0093] See also Fig.11 , Fig.11 3 is a schematic diagram of the structure of another embodiment of the electronic device of the present application. The electronic device 300 comprises a display module 310, an acquisition module 320 and a control module 330 which are connected in sequence.

[0094] The display module 310 is used to display a panoramic preview image of the field of view of the pan-tilt camera on a visual interface. The pan-tilt camera includes a pan-tilt and a camera mounted on the pan-tilt, and to display multiple preset positions selected by the user on the panoramic preview image of the field of view. The multiple preset positions include a first target preset position and a second target preset position.

[0095] The acquisition module 320 is used to acquire a target cruise route from a first target preset position to a second target preset position input by a user on a visual interface.

[0096] The control module 330 is used to control the pan / tilt head to cruise from a first target preset position to a second target preset position according to a target cruise route.

[0097] Among them, the electronic device 300 is specifically the above-mentioned gimbal controller, which controls the gimbal to cruise through the above-mentioned steps when working. The detailed process can be found in the above-mentioned related content, and no limitation is made here.

[0098] See also Fig.12 , Fig.12 The computer-readable storage medium 400 stores a computer program 410, which can be executed by a processor to implement the steps in any of the above methods.

[0099] Among them, the computer-readable storage medium 400 can specifically be a device that can store the computer program 410, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or it can also be a server that stores the computer program 410. The server can send the stored computer program 410 to other devices for execution, or it can also run the stored computer program 410 by itself.

[0100] The above description is only an embodiment of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A pan / tilt cruising method, characterized in that: The method comprises: Displaying a panoramic preview image of the field of view of a pan-tilt camera on a visual interface, wherein the pan-tilt camera includes a pan-tilt and a camera mounted on the pan-tilt; Displaying multiple preset positions selected by a user on the panoramic preview image of the field of view, wherein the multiple preset positions include a first target preset position and a second target preset position; Acquire a target cruise route from the first target preset position to the second target preset position input by a user on the visualization interface; According to the target cruising route, the pan / tilt head is controlled to cruise from the first target preset position to the second target preset position.

2. The method according to claim 1, characterized in that: Before controlling the pan / tilt platform to cruise from the first target preset position to the second target preset position according to the target cruise route, the method further includes: A plurality of discrete cruise points on the target cruise route are generated, wherein, in a subsequent process of controlling the gimbal cruise, the gimbal is controlled to start from the first target preset position, and arrive at the second target preset position after rotating to the plurality of discrete cruise points in sequence.

3. The method according to claim 2, characterized in that Before controlling the pan / tilt platform to cruise from the first target preset position to the second target preset position according to the target cruise route, the method further includes: For each of the discrete cruise points, parameters corresponding to the discrete cruise points are set according to a user input for the discrete cruise points, wherein subsequently when the pan / tilt head rotates to within a route range corresponding to the discrete cruise point, the pan / tilt head or the camera is adjusted according to the parameters, wherein the parameters include at least one of a rotation speed and a field of view.

4. The method according to claim 3, characterized in that The method further comprises: For each of the discrete cruise points, a parameter size corresponding to the discrete cruise point is set according to the attributes of the icon selected by the user for the discrete cruise point, wherein the attributes of the icon include at least one of the size of the icon and the color of the icon.

5. The method according to claim 4, characterized in that The parameters include rotation speed and field of view; For each of the discrete cruise points, a rotation speed corresponding to the discrete cruise point is set according to an attribute of a first icon selected by a user for the discrete cruise point, and a field of view corresponding to the discrete cruise point is set according to an attribute of a second icon selected by a user for the discrete cruise point, wherein the first icon and the second icon are different.

6. The method according to claim 1, characterized in that The step of acquiring the target cruise route from the first target preset position to the second target preset position input by the user on the visual interface includes: A sliding route of a user sliding from the first target preset position to the second target preset position on the visual interface is acquired, and the sliding route is determined as the target cruising route.

7. The method according to claim 1, characterized in that Before displaying the plurality of preset positions selected by the user on the panoramic preview image of the field of view, the method further includes: Acquire a position point manually selected by a user on the panoramic preview image of the field of view, and select the position point as the preset position; And / or, during the rotation of the pan / tilt platform, in response to receiving a trigger instruction input by a user, the current rotation position of the pan / tilt platform is determined as the preset position.

8. The method according to claim 1, characterized in that Before displaying the panoramic preview image of the field of view of the PTZ camera on the visualization interface, the method further includes: During the rotation of the pan / tilt head, a plurality of target images captured by the camera are acquired; A plurality of the target images are fused to obtain a panoramic preview image of the field of view.

9. The method according to claim 1, characterized in that: Before controlling the pan / tilt platform to cruise from the first target preset position to the second target preset position according to the target cruise route, the method further includes: In response to the target cruise route intersecting another cruise route; Optimize at least one of the target cruise route and the other cruise routes so that the optimized target cruise route and the other cruise routes no longer intersect.

10. The method according to claim 1, characterized in that Before controlling the pan / tilt platform to cruise from the first target preset position to the second target preset position according to the target cruise route, the method further includes: The target cruise route is smoothed.

11. An electronic device, characterized in that: The electronic device includes a processor, a memory and a communication circuit, the processor is coupled to the memory and the communication circuit respectively, the memory stores program data, and the processor implements the steps in the method as described in any one of claims 1-10 by executing the program data in the memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can be executed by a processor to implement the steps in the method according to any one of claims 1 to 10.