Shooting method of vehicle-mounted pan-tilt camera, electronic equipment and storage medium
By setting scenes and trajectory parameters on the time-lapse shooting interface of the on-board gimbal camera, the problem of single trajectory delay shooting effect in the existing technology is solved, and rich shooting effects and high-quality user experience are achieved.
Patent Information
- Application Number
- CN202411213487.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-24
AI Technical Summary
The track delay shooting function of the existing vehicle-mounted gimbal camera has a single shooting effect, which cannot meet the diverse shooting needs of users and enhance the challenge of driving and travel shooting.
By setting scene parameters and trajectory parameters in the time-lapse shooting interface of the on-board gimbal camera, including shooting interval, shooting duration, rotation trajectory and tick point, the rotation and shooting of the gimbal camera are controlled to provide rich shooting effects.
It has achieved rich track delay shooting effects, improved user experience, simplified operations, and is suitable for diverse shooting needs, and improved the diversity and quality of shooting effects.
Smart Images

Figure CN119183009A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of shooting technology, and in particular to a shooting method, electronic equipment and storage medium of a vehicle-mounted pan-tilt camera. Background Art
[0002] Time-lapse photography refers to taking multiple photos at fixed intervals and based on the position of the lens over a period of time, and then combining these photos into a video or animation to show the passage of time. Time-lapse photography has become a common shooting technique for people to record beautiful scenes in life. With the rise of smart connected cars, in order to meet the diverse shooting needs of users and enhance the fun of driving travel photography, the installation of gimbal cameras and the deployment of time-lapse photography functions on gimbal cameras have gradually become a must-have for smart connected cars.
[0003] In the related art, the trajectory time-lapse shooting function of the vehicle-mounted gimbal camera is implemented by rotating from left to right or from right to left along a fixed trajectory within a certain period of time, and taking multiple photos at fixed intervals. This shooting method has a single shooting effect.
[0004] Therefore, there is an urgent need to provide a time-lapse shooting method for a vehicle-mounted pan-tilt camera that can enrich the shooting effect, so as to solve the current problems. Summary of the invention
[0005] One of the purposes of the present invention is to provide a shooting method of a vehicle-mounted pan-tilt camera to solve the problem of single shooting effect of the trajectory delay shooting function in the prior art; the second purpose is to provide an electronic device.
[0006] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0007] A shooting method of a vehicle-mounted pan-tilt camera, comprising:
[0008] Display the time-lapse shooting interface of the vehicle-mounted PTZ camera, wherein the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings;
[0009] In response to a setting operation on the scene parameter setting, a target scene parameter is obtained, wherein the scene parameter includes a shooting interval and a shooting duration;
[0010] In response to a setting operation on the trajectory parameter setting, obtaining trajectory parameters, the trajectory parameters including a rotation trajectory;
[0011] The vehicle-mounted pan-tilt camera is controlled to rotate along the rotation trajectory within the shooting duration, and the vehicle-mounted pan-tilt camera shoots images at the shooting interval during the rotation process.
[0012] According to the above technical means, since the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings, the scene parameters and trajectory parameters can be set. After the settings are completed, the vehicle-mounted gimbal camera can control the vehicle-mounted gimbal camera to perform time-lapse shooting based on the scene parameters and trajectory parameters. Different scene parameters correspond to different shooting durations and shooting intervals, and different trajectory parameters correspond to different rotation trajectories. That is, by setting the scene parameters and trajectory parameters, the shooting effect of the trajectory time-lapse function can be enriched and the user experience can be improved.
[0013] Further, the step of obtaining the trajectory parameters in response to the setting operation of the trajectory parameters includes:
[0014] In response to a point-fixing operation for setting the trajectory parameters, obtaining a point-fixing operation, wherein the point-fixing operation is used to determine a target orientation of the vehicle-mounted PTZ camera, and the setting operation includes a point-fixing operation;
[0015] According to the marking points, the rotation trajectory of the vehicle-mounted pan-tilt camera is obtained.
[0016] According to the above technical means, due to the setting of the points, the orientation of the vehicle-mounted gimbal camera can be indicated, the angle at which the vehicle-mounted gimbal camera needs to rotate can be determined, and the rotation trajectory can be quickly generated; in addition, based on the random setting of the points, a variety of rotation trajectories can be set according to needs, thereby enriching the shooting effect of time-lapse photography.
[0017] Further, the trajectory parameter setting includes an outer slide rail control and an inner slide rail control, the inner slide rail control is set in the outer slide rail control, the outer slide rail control reflects the movement range of the inner slide rail control, and the step of obtaining the puncture point in response to the puncture point operation of the trajectory parameter setting includes:
[0018] In response to a sliding operation on the inner slide rail control, selecting a direction point based on the sliding of the inner slide rail control;
[0019] In response to a puncture point adding operation, a puncture point is added at the direction point to obtain the puncture point, wherein the puncture point operation includes the sliding operation and the puncture point adding operation.
[0020] According to the above technical means, the operation of adding puncture points is simple and quick.
[0021] Further, obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes:
[0022] If one of the pricking points is obtained, the pricking point is taken as a starting point, and a preset angle is rotated leftward or rightward based on the pricking point as the rotation trajectory.
[0023] According to the above technical means, by setting one point, the starting point of the time-lapse shooting can be selected to enrich the function of the time-lapse shooting.
[0024] Further, obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes:
[0025] If two pricking points are obtained, the first pricking point is taken as the starting point and the second pricking point is taken as the end point, and the rotation trajectory is determined based on the first pricking point and the second pricking point.
[0026] According to the above technical means, by setting two points, the rotation range of time-lapse shooting can be selected, the shooting viewing angle range can be selected, and then more images in the viewing angle range can be selected to make the video or animation show more changing details.
[0027] Further, obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes:
[0028] If three pricking points are obtained, the first pricking point is determined as the starting point, the second pricking point is determined as the way point, and the third pricking point is determined as the end point. The rotation trajectory is determined based on the first pricking point, the second pricking point, and the third pricking point.
[0029] According to the above technical means, by setting the points, it is possible to control the back and forth rotation of the vehicle-mounted gimbal camera, and shoot back and forth in a specific direction to enrich the shooting effect.
[0030] Furthermore, the time-lapse shooting interface further includes a preview control, and the method further includes:
[0031] In response to the selection operation of the preview control, a trajectory preview interface is displayed, wherein the trajectory preview interface sequentially displays images captured when the vehicle-mounted pan-tilt camera rotates, the vehicle-mounted pan-tilt camera rotates along the rotation trajectory, or the vehicle-mounted pan-tilt camera rotates based on the sliding position of the inner slide rail control.
[0032] According to the above technical means, a preview interface is used to assist in the setting of points, and the shooting effects of the preview-set scene parameters and trajectory parameters can be adjusted, and settings can be made based on real-time images, which can improve the setting effects of scene parameters and trajectory parameters and enhance user experience.
[0033] Furthermore, the method further includes: in response to a removal operation on the tying point, deleting the tying point.
[0034] According to the above technical means, points can be added or removed according to needs.
[0035] Further, the step of obtaining target scene parameters in response to the setting operation of the scene parameters includes:
[0036] In response to a click operation on the scene parameter setting, displaying a scene selection interface, the scene selection interface including a plurality of scenes and scene parameters corresponding to each scene;
[0037] In response to a scene selection operation in the scene selection interface, obtaining a target scene;
[0038] Based on the target scene, the target scene parameter is determined.
[0039] According to the above technical means, multiple scenes can be selected, and scene parameters can be set conveniently and quickly. In addition, selecting a scene that matches the shooting scene can improve the shooting effect.
[0040] Further, the trajectory parameter also includes a total rotation angle; the controlling the vehicle-mounted pan-tilt camera to rotate along the rotation trajectory within the shooting duration, and the vehicle-mounted pan-tilt camera to capture images at the shooting interval during the rotation process, includes:
[0041] Determining a target rotation speed according to the total rotation angle and the shooting duration;
[0042] The vehicle-mounted pan-tilt camera is controlled to rotate along the rotation trajectory at the target rotation speed, and the vehicle-mounted pan-tilt camera captures images at the shooting interval during the rotation process.
[0043] An electronic device, comprising: a memory, a processor;
[0044] The memory is used to store computer programs / instructions; the processor is used to implement the above-mentioned method according to the computer programs / instructions stored in the memory.
[0045] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the method as described above.
[0046] A computer program product comprises a computer program, wherein the computer program is used to implement the method described above when executed by a processor.
[0047] Beneficial effects of the present invention:
[0048] (1) In the present invention, the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings. By setting the scene parameters and trajectory parameters, after the settings are completed, the vehicle-mounted gimbal camera can control the vehicle-mounted gimbal camera to perform time-lapse shooting based on the scene parameters and trajectory parameters. Different scene parameters correspond to different shooting durations and shooting intervals, and different trajectory parameters correspond to different rotation trajectories. That is, by setting the scene parameters and trajectory parameters, the shooting effect of the trajectory time-lapse function can be enriched and the user experience can be improved.
[0049] (2) The present invention sets the rotation trajectory by puncturing points, which is simple and quick to operate. Based on the setting of puncturing points, the vehicle-mounted gimbal camera can have rotation modes such as left-right rotation and left-right back-and-forth rotation, thus enriching the trajectory time-lapse shooting effect.
[0050] (3) The interactive mode provided by the time-lapse shooting interface of the present invention, the setting mode of scene parameters and trajectory parameters is simple and convenient, easy to learn, and easy to set a high-quality trajectory time-lapse shooting effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of a process of a photographing method of a vehicle-mounted pan-tilt camera provided by an embodiment of the present invention;
[0052] Figure 2 A schematic diagram of a time-lapse shooting interface of a vehicle-mounted PTZ camera application provided by an embodiment of the present invention;
[0053] Figure 3 for Figure 2 A schematic diagram showing an inner slide control sliding within an outer slide control in a time-lapse shooting interface;
[0054] Figure 4 A schematic diagram of the shooting angle of view of a vehicle-mounted pan-tilt camera provided by an embodiment of the present invention;
[0055] Figure 5 for Figure 2 Schematic diagram of the correspondence between the inner slide rail control in the time-lapse shooting interface and the shooting angle of the vehicle-mounted gimbal camera, and schematic diagram of the correspondence between the outer slide rail control and the shooting angle of the vehicle-mounted gimbal camera;
[0056] Figure 6 for Figure 1 A further detailed flow diagram of S103;
[0057] Figure 7 Schematic diagram of the process of adding points in the shooting method of the vehicle-mounted pan-tilt camera provided by the present invention Figure 1 ;
[0058] Figure 8 Schematic diagram of the process of adding points in the shooting method of the vehicle-mounted pan-tilt camera provided by the present invention Figure 2 ;
[0059] Fig. 9 A schematic diagram of a scene setting interface for a vehicle-mounted PTZ camera application provided by an embodiment of the present invention;
[0060] Fig.10 A schematic diagram of a process of removing puncture points in a shooting method of a vehicle-mounted pan-tilt camera provided by the present invention;
[0061] Fig.11 A schematic diagram of a time-lapse shooting interface and a preview interface of a vehicle-mounted gimbal camera application provided in accordance with an embodiment of the present invention.
[0062] Among them, 10-scene parameter setting; 20-track parameter setting; 21-external slide rail control; 22-internal slide rail control; 5-point indicator. DETAILED DESCRIPTION
[0063] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0064] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0065] Time-lapse photography refers to taking multiple photos at fixed intervals and based on the position of the lens over a period of time, and then combining these photos into a video or animation to show the passage of time. Time-lapse photography has become a common shooting technique for people to record beautiful scenes in life. With the rise of smart connected cars, in order to meet the diverse shooting needs of users and enhance the fun of driving travel photography, the installation of gimbal cameras and the deployment of time-lapse photography functions on gimbal cameras have gradually become a must-have for smart connected cars.
[0066] In the related art, the trajectory time-lapse shooting function of the vehicle-mounted gimbal camera is implemented as follows: rotating from left to right or from right to left along a fixed trajectory within a certain period of time, and taking multiple photos at fixed intervals. The shooting effect of this shooting method is single; or the user can manually drag the slider in the interface to manually adjust the rotation angle and rotation speed of the vehicle-mounted gimbal camera to obtain the shooting effect the user wants, but this method has high requirements on the user's shooting level and is not universal.
[0067] Based on this, the embodiment of the present application provides a time-lapse shooting method for a vehicle-mounted gimbal camera that is simple to operate and can enrich the shooting effects, so as to solve the above-mentioned problems. The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0068] In this application, the electronic device is used as the execution subject to execute the shooting method of the vehicle-mounted pan-tilt camera of the following embodiment. Specifically, the execution subject can be a hardware device of the electronic device, or a software application that implements the following embodiment in the electronic device, or a computer-readable storage medium installed with the software application that implements the following embodiment, or a code that implements the software application of the following embodiment. Among them, the electronic device can be a car, or it can be an intelligent control terminal of the car (such as a car terminal), and the electronic device includes a vehicle-mounted pan-tilt camera application (APP).
[0069] Figure 1 A schematic diagram of a process flow of a photographing method of a vehicle-mounted pan-tilt camera provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0070] S101, displaying a time-lapse shooting interface of the vehicle-mounted PTZ camera, where the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings;
[0071] like Figure 2 As shown, when the user opens the vehicle-mounted gimbal camera APP and selects the trajectory time-lapse shooting function, the vehicle-mounted gimbal camera APP switches to the time-lapse shooting interface, which includes a scene parameter setting 10 and a trajectory parameter setting 20. The user (such as the car owner, etc.) can set the scene parameters of the time-lapse shooting through the scene parameter setting 10 of the time-lapse shooting interface, and set the trajectory parameters of the time-lapse shooting through the trajectory parameter setting 20 of the time-lapse shooting interface.
[0072] As an example, the scene parameter setting 10 is displayed as an icon button, such as Figure 2 The icon button of the sunrise and sunset scene shown on the left side is clicked to trigger the setting operation of the scene parameter setting 10.
[0073] As an example, the track parameter setting 20 includes an outer slide rail control 21 and an inner slide rail control 22. Figure 3 As shown, the outer slide rail control 21 is larger than the inner slide rail control 22. The inner slide rail control 22 is set inside the outer slide rail control 21. The inner slide rail control 22 can move within the frame range of the outer slide rail control 21. The frame range of the outer slide rail control 21 maps the rotatable range (also the maximum viewing angle range) of the vehicle-mounted gimbal camera; the position of the inner slide rail control 22 maps the range captured by the current position of the vehicle-mounted gimbal camera.
[0074] Among them, the inner slide rail control 22 is used to indicate the rotation and rotation direction of the vehicle-mounted pan-tilt camera. For example, when the inner slide rail control 22 slides along the left side of the outer slide rail control 21, it indicates that the vehicle-mounted pan-tilt camera rotates to the left. The rotation direction of the vehicle-mounted pan-tilt camera corresponds to the sliding position of the inner slide rail control 22. When the inner slide rail control 22 slides along the right side of the outer slide rail control 21, it indicates that the vehicle-mounted pan-tilt camera rotates to the right. In this example, the rotation direction of the vehicle-mounted pan-tilt camera is set by the inner slide rail control 22.
[0075] As an example, combined with reference Figure 4 and Figure 5 , the rotation angle of the vehicle-mounted PTZ camera is 180 degrees, that is, the rotation range indicated by the outer slide rail control 21 is 180 degrees, and the inner slide rail control 22 can drive the vehicle-mounted PTZ camera left and right to obtain images within the 180-degree viewing angle. The inner slide rail control 22 indicates that the FOV angle of the vehicle-mounted PTZ camera is 120 degrees.
[0076] It should be noted that the trajectory parameter setting 20 may also be other setting controls. For example, the trajectory parameter setting 20 includes a variety of different trajectory templates. The target trajectory template is selected to complete the setting of the trajectory parameters.
[0077] S102, in response to a setting operation on setting scene parameters, obtaining target scene parameters, wherein the scene parameters include a shooting interval and a shooting duration;
[0078] In this step, the shooting interval refers to the interval time for the vehicle-mounted gimbal camera to shoot images. Taking the shooting interval of 1 frame / 2 seconds as an example, after the vehicle-mounted gimbal camera takes an image, it will take another image after an interval of 2 seconds (that is, one image is taken every 2 seconds).
[0079] Shooting duration refers to the total duration of the time-lapse shooting of the trajectory started this time. For example, if the shooting duration is 10 minutes, the vehicle-mounted gimbal camera will be controlled to shoot continuously for 10 minutes, and then the images taken within 10 minutes will be formed into a video or animation.
[0080] As an example, the scene parameter setting may be a custom setting, such as a custom shooting interval and shooting duration.
[0081] As an example, scene parameter settings can also be selected based on configured scenes. Fig. 9 As shown, for example, the system is configured with multiple scenes and scene parameters corresponding to each scene. When the user clicks on the scene parameter setting, the scene setting interface is displayed on the time-lapse shooting interface, and each scene and the scene parameters corresponding to the scene are displayed on the scene setting interface, and the user can directly select.
[0082] That is, the specific implementation of step S102 may be:
[0083] In response to a click operation on setting scene parameters, a scene selection interface is displayed, wherein the scene selection interface includes a plurality of scenes and scene parameters corresponding to each scene;
[0084] In response to a scene selection operation in a scene selection interface, obtaining a target scene;
[0085] Based on the target scene, target scene parameters are determined.
[0086] Optionally, in this example, the scene setting interface also includes custom options, through which scene parameters can be customized, or custom scenes can be selected through customization, and the time-lapse shooting scenes can be continuously enriched through custom settings, thereby enriching the shooting effects.
[0087] The specific implementation method is: in response to the scene customization operation in the scene selection interface, obtain the customization parameters and the scene name; generate a new scene according to the customization parameters and the scene name, and display the new scene in the scene selection interface.
[0088] Optionally, the scenes in this step include but are not limited to time travel, traffic, wind and clouds, sunrise and sunset, star tracks or light and shadow changes, etc. The following lists examples of scene parameters corresponding to the above scenes:
[0089] Example scene 1: Time travel, the corresponding scene parameters can be selected as: take 2 photos with a shooting interval of 1 second, and continue shooting for 10 minutes.
[0090] Example scene 2: Traffic (cars coming and going), the corresponding scene parameters can be selected as: take one picture every 1 second, and continue shooting for 10 minutes.
[0091] Example scene 3: Wind rolls and clouds disperse. The corresponding scene parameters can be selected as follows: take one picture every 2 seconds, and continue shooting for 10 minutes.
[0092] Example scene 4: Sunrise and sunset. The corresponding scene parameters can be: take one picture every 5 seconds, and continue shooting for 30 minutes.
[0093] Example scene 5: Star trails or light and shadow changes. The corresponding scene parameters can be: take one photo every 25 seconds, and continue shooting for 60 minutes.
[0094] Exemplarily, in the custom parameter settings, the shooting duration can be selected from 3 minutes, 5 minutes, 20 minutes, 30 minutes, 60 minutes, 120 minutes and unlimited time (stops after the user presses Stop); the shooting interval can be selected from 1 second, 2 seconds, 3 seconds, 5 seconds, 10 seconds, and 25 seconds.
[0095] S103, in response to a setting operation on setting the trajectory parameters, obtaining the trajectory parameters, the trajectory parameters including the rotation trajectory;
[0096] When the user operates the trajectory parameter setting, the trajectory parameters can be set to form the trajectory parameters.
[0097] In this step, the rotation trajectory refers to the rotation path of the vehicle-mounted gimbal camera when executing the time-lapse shooting function.
[0098] Among them, step S102 and step S103 are not limited by the described action sequence, and step S102 and step S103 can be performed in other sequences or simultaneously.
[0099] S104, controlling the vehicle-mounted pan-tilt camera to rotate along the rotation trajectory within the shooting duration, and the vehicle-mounted pan-tilt camera shoots images at shooting intervals during the rotation process.
[0100] In this step, the electronic device executes when it detects that the start shooting button is triggered, that is, after the user sets the scene parameters and trajectory parameters, the execution starts after clicking the start shooting button.
[0101] The vehicle-mounted gimbal camera starts shooting from the starting point of the rotation trajectory, shoots images according to the shooting interval, rotates along the rotation trajectory during the shooting process, and controls the rotation to the end point of the rotation trajectory within the shooting time to complete the shooting.
[0102] The vehicle-mounted gimbal camera can rotate at a constant speed or the user can set a rotation speed change rule. The implementation of the constant speed rotation can refer to the following embodiments. The rotation speed change rule can be set by the user or selected based on the reference rule.
[0103] It should be noted that in the embodiment of the present application, the vehicle-mounted gimbal camera will memorize the adjusted parameter settings after a single power-on cycle, and the memory will be cleared when powered on again, and the parameters will return to the default values. Therefore, when entering the vehicle-mounted gimbal trajectory time-lapse shooting interface, if the user does not trigger the scene parameter setting and trajectory parameter setting, and directly triggers the start of shooting, the vehicle-mounted gimbal camera will be controlled to shoot according to the recommended scene parameters and trajectory parameters.
[0104] In this embodiment, the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings. The scene parameters and trajectory parameters can be set. After the settings are completed, the vehicle-mounted gimbal camera can control the vehicle-mounted gimbal camera to perform time-lapse shooting based on the scene parameters and trajectory parameters. Different scene parameters correspond to different shooting durations and shooting intervals, and different trajectory parameters correspond to different rotation trajectories. That is, by setting the scene parameters and trajectory parameters, the shooting effect of the trajectory time-lapse function can be enriched and the user experience can be improved.
[0105] In addition, in the related art, in order to shoot a better video or image, the user needs to participate in the shooting. In this case, the user's shooting skills are required to be high, resulting in low enthusiasm for user shooting creation. Based on this, in one embodiment of the present application, a method for setting trajectory parameters is proposed, which is simple and easy to learn, and can enrich the shooting effect. Specifically, the trajectory parameters of the trajectory time-lapse shooting are set in the following way. Figure 6 As shown, based on the above Figures 1 to 5 The embodiment shown, Figure 1 Step S103 in includes
[0106] S601, in response to a point-fixing operation on setting trajectory parameters, obtaining a point-fixing operation, where the point-fixing operation is used to determine a target position of a vehicle-mounted PTZ camera;
[0107] It should be noted that the user's setting operation for trajectory parameter setting includes point operation. Point operation refers to setting the rotation direction of the vehicle-mounted gimbal camera by setting one or more points, and the point position corresponds to the target direction to which the vehicle-mounted gimbal camera needs to rotate.
[0108] S602, obtaining a rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points.
[0109] In this step, the rotation trajectory of the vehicle-mounted pan-tilt camera is generated by setting the points. For example, one point indicates the direction where the vehicle-mounted pan-tilt camera starts shooting. Or the angle between two points indicates the rotation trajectory of the vehicle-mounted pan-tilt camera. Or the angles and positions between three points indicate the back-and-forth rotation trajectory of the vehicle-mounted pan-tilt camera, etc.
[0110] The following describes the specific methods for setting the points and generating the rotation trajectory when the number of points is different:
[0111] (I) Example of setting one puncture point:
[0112] The specific implementation of step S601 is:
[0113] In response to a sliding operation on the inner slide rail control, selecting a direction point based on the sliding of the inner slide rail control;
[0114] In response to the puncture point adding operation, a puncture point is added at the direction point to obtain a puncture point.
[0115] The inner rail control can slide inside the outer rail control. Different positions of the inner rail control represent different viewing angles of the vehicle-mounted PTZ camera. In this embodiment, the user selects the direction point required by the user by sliding the inner rail control, and then points at the changed direction point, thereby completing the operation of adding a point at the drop point. After adding the point, the vehicle-mounted PTZ camera will rotate to the direction point to collect images.
[0116] like Figure 2 As shown, a point indicator 23 is provided on the inner rail control 22. When the inner rail control 22 moves, the position indicated by the point indicator 23 is a direction point. When the user selects a position and clicks the point indicator 23, the position is the selected direction point, and a point is added at the position. Optionally, the point indicator 23 is located at the center of the inner rail control 22.
[0117] As an example, after a puncture point is added, a serial number (and a puncture point indicator) is displayed at the point in that direction, and the serial number indicates which puncture point the puncture point is.
[0118] Based on the above process, in this embodiment, completing the point-binding operation includes two operation processes: a sliding operation and a point-binding adding operation.
[0119] After adding one point, the user chooses to start shooting, and only one point is set. In this case, the specific implementation of step S602 is:
[0120] Taking the piercing point as the starting point, the rotation trajectory is to rotate left or right by a preset angle based on the piercing point.
[0121] That is to say, if one point is set, it means that the vehicle-mounted gimbal camera starts shooting from this point, rotates the preset angle in the default rotation direction, and completes the trajectory time-lapse shooting.
[0122] In this embodiment, by setting one anchor point, the starting angle of the vehicle-mounted gimbal shooting can be selected, which can avoid shooting some unnecessary angles and enrich the shooting function.
[0123] (II) Example of setting two puncture points:
[0124] The specific implementation of step S601 is:
[0125] In response to a sliding operation on the inner slide rail control, selecting a first direction point based on the sliding of the inner slide rail control;
[0126] In response to the first piercing point adding operation, a piercing point is added at a first direction point to obtain a first piercing point;
[0127] In response to the continued sliding operation of the inner slide rail control, selecting a second direction point based on the sliding of the inner slide rail control;
[0128] In response to the second piercing point adding operation, a piercing point is added at a second direction point to obtain a second piercing point.
[0129] In this embodiment, the method of adding the puncture points is the same as that in the above-mentioned embodiment (I), and will not be described in detail again.
[0130] The user can refer to the following procedure to continue the operation Figure 7 For example, the first step: move the inner slide control to the first direction point and add 1 tie point; the second step: continue to slide the inner slide control, select another direction point (the second direction point), and then add a tie point, then two tie points are obtained (tie point 1 and tie point 2). That is, by selecting two direction points to add tie points, two tie points are obtained. Optionally, the first tie point represents the starting point of the vehicle-mounted gimbal camera, and the second tie point represents the end point of the vehicle-mounted gimbal camera.
[0131] It should be noted that when adding the second puncture point, if the first direction point and the second direction point are the same, the puncture point addition fails and the puncture point cannot be added to avoid adding some invalid puncture points and affecting the setting of trajectory parameters.
[0132] After adding two points, the user chooses to start shooting, which means that two points are set. In this case, the specific implementation of step S602 is:
[0133] The first piercing point is taken as the starting point and the second piercing point is taken as the end point. Based on the first piercing point and the second piercing point, a rotation trajectory is determined.
[0134] That is to say, if two points are set, the path between the two positions mapped by the two points is the rotation trajectory, that is, the vehicle-mounted gimbal camera starts shooting from the first point, rotates to the position of the second point, and rotates to the position of the second point to complete the trajectory time-lapse shooting.
[0135] In this embodiment, by setting two points, the shooting range of the vehicle-mounted gimbal can be selected, and more images can be taken within the shooting range to capture subtle changes in the environment; or a more suitable shooting range can be selected for time-lapse shooting according to the current scene. Compared with time-lapse shooting in a fixed orientation, a larger shooting angle can be obtained, a more complete scene image can be obtained, the effect of time-lapse shooting can be improved, and the shooting function can be enriched.
[0136] (III) Example of setting three points:
[0137] The specific implementation of step S601 is:
[0138] In response to a sliding operation on the inner slide rail control, selecting a first direction point based on the sliding of the inner slide rail control;
[0139] In response to the first piercing point adding operation, a piercing point is added at a first direction point to obtain a first piercing point;
[0140] In response to the continued sliding operation of the inner slide rail control, selecting a second direction point based on the sliding of the inner slide rail control;
[0141] In response to the second piercing point adding operation, a piercing point is added at a second direction point to obtain a second piercing point;
[0142] In response to the continued sliding operation of the inner slide rail control, selecting a third direction point based on the sliding of the inner slide rail control;
[0143] In response to the third piercing point adding operation, a piercing point is added at the third piercing point to obtain the third piercing point.
[0144] In this embodiment, the method of adding the puncture points is the same as that in the above-mentioned embodiment (I), and will not be described in detail again.
[0145] The specific operation process of the user can refer to Figure 8 , Step 1: Move the inner slide control to the first direction point and add one tie point; Step 2: Continue to slide the inner slide control, select another direction point (second direction point), and then add a tie point to add two tie points; Step 3: After adding two tie points, continue to slide the inner slide control, select the third direction point, and then add a tie point to add three tie points.
[0146] It should be noted that, in this embodiment, when adding points, the orientations of two adjacent points are different, while the orientations of non-adjacent points can be the same or different. For example, the third direction point and the first direction point can be the same or different. If the first direction point and the third direction point are the same, it is equivalent to the vehicle-mounted pan-tilt camera rotating from the first direction point to the second direction point, and then returning to the first direction point (third direction point) to control the vehicle-mounted pan-tilt camera to rotate back and forth; if the first direction point and the third direction point are different, it is equivalent to the vehicle-mounted pan-tilt camera rotating from the first direction point to the second direction point, and then rotating to the third direction point. The rotation trajectory can be extended or reversed through the third direction point. That is, by selecting 2 or 3 direction points to add points, 3 points can be obtained. Optionally, the first point represents the starting point of the vehicle-mounted pan-tilt camera, the second point represents the waypoint of the vehicle-mounted pan-tilt camera, and the third point represents the end point of the vehicle-mounted pan-tilt camera.
[0147] After adding three points, the user chooses to start shooting, which means that three points have been set. In this case, the specific implementation of step S602 is:
[0148] Determine the first puncture point as the starting point, the second puncture point as the way point, and the third puncture point as the end point, and determine the rotation trajectory based on the first puncture point, the second puncture point, and the third puncture point.
[0149] That is to say, if three points are set, the path between the three positions mapped by the three points is the rotation trajectory, that is, the vehicle-mounted gimbal camera starts shooting from the first point, rotates to the position of the second point, and then rotates to the position of the third point, and rotates to the position of the third point to complete the trajectory time-lapse shooting.
[0150] In this embodiment, the positions where the three points are added can be: the first point and the third point are on the left and right sides of the second point (that is, the three points are added in sequence along the same direction). The positions where the three points are added can also be: the second point and the third point are on the left and right sides of the first point. The positions where the three points are added can also be: the first point and the second point are on the left and right sides of the third point. In this way, the deployment of the three points adding positions can realize the setting of the vehicle-mounted gimbal camera to rotate back and forth (reciprocating rotation) during the shooting process, and can shoot back and forth at a certain direction, increase the image details of the direction, enrich the time-lapse shooting function, and improve the shooting effect.
[0151] In this embodiment, the spacing between the puncture points can be set according to the requirements. In the example of three puncture points, the spacing between adjacent puncture points can be the same or different. For example, by setting different spacing between adjacent puncture points, the image acquisition time in different viewing angle ranges can be controlled. If the image acquisition time required for some viewing angle ranges is short, the spacing between the two puncture points in the viewing angle range will be set shorter. If the image acquisition time required for some viewing angle ranges is long, the spacing between the two puncture points in the viewing angle range will be set longer. In this way, the time-lapse shooting effect can be enriched.
[0152] In addition, in this embodiment, the trajectory parameters can be set by setting the points, and the operation is simple and easy to learn, making the time-lapse shooting function universal.
[0153] As an example, after setting the trajectory parameters, you can also cancel the trajectory parameters to adjust the trajectory parameters. The following takes canceling a point as an example to illustrate the process of canceling trajectory parameters:
[0154] From the user operation perspective: Fig.10 As shown in the figure, the user presses and holds the point and slides the point away from the outer rail control, and the point is removed. Or in some examples, the user long presses the point, and a "×" button is displayed above the point. Clicking the button removes the point.
[0155] As an example, after the tie point is removed, the inner slide track control is not slid, and the tie point indicator is not displayed on the inner slide track control, such as Fig.10 If the inner rail control is slid, a point indicator is displayed on the inner rail control, indicating that the point operation can be performed again, such as Fig.10 This method can prevent the user from accidentally touching the point indicator after removing the point at that location, and then adding a point at the original removed location, which affects the user experience.
[0156] From the perspective of the electronic device executing the program, the electronic device deletes the puncture point in response to the removal operation of the puncture point. The removal operation can be an operation of pressing the identified puncture point and sliding it away from the outer slide rail control. Or it can also be an operation of pressing the puncture point and clicking the "×" button.
[0157] In one embodiment, the user can select the direction point in the following manner. Fig.11 As shown, this embodiment is based on all the above embodiments, and the shooting method of the vehicle-mounted pan-tilt camera also includes:
[0158] In response to the selection operation of the preview control, a track preview interface is displayed, wherein the track preview interface sequentially displays images captured when the vehicle-mounted pan-tilt camera rotates based on the sliding of the inner slide rail control.
[0159] In this embodiment, the time-lapse shooting interface also includes a preview control. When the user clicks the preview control, the electronic device displays a trajectory preview interface, and the image captured by the vehicle-mounted gimbal camera is displayed on the trajectory preview interface.
[0160] When the user slides the inner slide control, the vehicle-mounted gimbal camera rotates with the inner slide control. During the rotation of the vehicle-mounted gimbal camera, the image in the track preview interface is updated based on the current position. The user can observe the current position through the image displayed in the track preview interface. When the track preview interface shows the position required by the user, stop sliding the inner slide control. At this time, the direction point where the inner slide control is currently located is the selected direction point, and you can add a point at this direction point to lock the position of the vehicle-mounted gimbal camera during time-lapse shooting.
[0161] In this embodiment, the trajectory preview interface provides users with clearer and more accurate direction points, which facilitates the setting of points and makes the operation simpler. When users need to use the time-lapse shooting function in driving scenes and parking scenes, they can also quickly and conveniently set scene parameters and trajectory parameters based on the embodiment of the present application, so that users can capture fleeting scenery.
[0162] In one embodiment, the user can preview the set trajectory parameters in the following manner to determine whether the set trajectory parameters meet the requirements, and then adjust or reset the trajectory parameters. This embodiment is based on all the above embodiments, and the shooting method of the vehicle-mounted pan-tilt camera also includes:
[0163] In response to the selection operation of the preview control, a trajectory preview interface is displayed, wherein the trajectory preview interface sequentially displays images captured by the vehicle-mounted pan-tilt camera when it rotates based on the rotation trajectory.
[0164] In this embodiment, the time-lapse shooting interface also includes a preview control. After the user sets the trajectory parameters and scene parameters, the preview control is displayed on the time-lapse shooting interface. The user can click the preview control to preview the image effect captured by the vehicle-mounted PTZ camera based on the currently set trajectory parameters and scene parameters in the trajectory preview interface. If the image effect is consistent with the expected effect, click Start Shooting, and the vehicle-mounted PTZ camera starts shooting. If the image effect is inconsistent with the expected effect, the user can delete the point, reset the trajectory parameters, or reselect the scene.
[0165] As an example, in order to enable the vehicle-mounted gimbal camera to rotate along the rotation trajectory at a uniform speed within the shooting duration, it is also necessary to determine the target rotation speed of the vehicle-mounted gimbal camera during the time-lapse shooting process. Therefore, the method in the embodiment of the present application also includes: first determining the target rotation speed according to the total rotation angle and the shooting duration; and then controlling the vehicle-mounted gimbal camera to rotate along the rotation trajectory at the target rotation speed, and the vehicle-mounted gimbal camera captures images at shooting intervals during the rotation process.
[0166] The target rotation speed is calculated as follows: ω=n / t, where ω is the target rotation speed, n is the total rotation angle, and t is the shooting time.
[0167] It should be noted that in this embodiment, when the vehicle-mounted gimbal camera is shooting, it rotates in the order in which the points are added. Therefore, the total rotation angle is the angle from the first point to the second point, or the angle from the first point to the second point, and then the total angle from the second point to the third point.
[0168] Therefore, the total rotation angle is determined according to the position of the piercing point. For example, when one piercing point is set, the total rotation angle is the preset angle. When two piercing points are set, the total rotation angle is the angle between the two piercing points. When three piercing points are set, the total rotation angle is the sum of the first angle and the second angle, the first angle being the angle between the first piercing point and the second piercing point, and the second angle being the angle between the second piercing point and the third piercing point.
[0169] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor;
[0170] The memory is used to store computer programs / instructions; the processor is used to execute the computer programs / instructions stored in the memory to implement the methods involved in the above embodiments.
[0171] The electronic device also includes a communication interface and a CAN bus, wherein the processor is used to provide computing power and control capabilities, and can be a GPU, CPU, NPU, MCU, FPGA, etc. The storage device includes an internal memory and a non-volatile memory. The non-volatile memory stores a computer program that implements the above method. The internal memory provides an environment for program startup and operation. The communication interface is used to communicate with an external terminal by wire or wireless.
[0172] In this embodiment, the electronic device may be an electronic component in a car, or may be a car. Alternatively, the electronic device may be a mobile terminal.
[0173] The present invention also provides a computer-readable storage medium / computer program product, in which computer-readable storage medium stores computer execution instructions / the computer program product includes computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the methods involved in the above-mentioned embodiments.
[0174] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A shooting method of a vehicle-mounted pan-tilt camera, characterized in that: include: Display the time-lapse shooting interface of the vehicle-mounted PTZ camera, wherein the time-lapse shooting interface includes scene parameter settings and trajectory parameter settings; In response to a setting operation on the scene parameter setting, a target scene parameter is obtained, wherein the scene parameter includes a shooting interval and a shooting duration; In response to a setting operation on the trajectory parameter setting, obtaining trajectory parameters, the trajectory parameters including a rotation trajectory; The vehicle-mounted pan-tilt camera is controlled to rotate along the rotation trajectory within the shooting duration, and the vehicle-mounted pan-tilt camera shoots images at the shooting interval during the rotation process.
2. The method according to claim 1, characterized in that The step of obtaining the trajectory parameters in response to the setting operation of the trajectory parameters includes: In response to a point-fixing operation for setting the trajectory parameters, obtaining a point-fixing operation, wherein the point-fixing operation is used to determine a target orientation of the vehicle-mounted PTZ camera, and the setting operation includes a point-fixing operation; According to the marking points, the rotation trajectory of the vehicle-mounted pan-tilt camera is obtained.
3. The method according to claim 2, characterized in that The track parameter setting includes an outer rail control and an inner rail control, the inner rail control is set in the outer rail control, the outer rail control reflects the moving range of the inner rail control, and the obtaining of the puncture point in response to the puncture point operation of the track parameter setting includes: In response to a sliding operation on the inner slide rail control, selecting a direction point based on the sliding of the inner slide rail control; In response to a puncture point adding operation, a puncture point is added at the direction point to obtain the puncture point, wherein the puncture point operation includes the sliding operation and the puncture point adding operation.
4. The method according to claim 2 or 3, characterized in that: The step of obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes: If one of the pricking points is obtained, the pricking point is taken as a starting point, and a preset angle is rotated leftward or rightward based on the pricking point as the rotation trajectory.
5. The method according to claim 2 or 3, characterized in that: The step of obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes: If two pricking points are obtained, the first pricking point is taken as the starting point and the second pricking point is taken as the end point, and the rotation trajectory is determined based on the first pricking point and the second pricking point.
6. The method according to claim 2 or 3, characterized in that: The step of obtaining the rotation trajectory of the vehicle-mounted pan-tilt camera according to the marking points includes: If three pricking points are obtained, the first pricking point is determined as the starting point, the second pricking point is determined as the way point, and the third pricking point is determined as the end point. The rotation trajectory is determined based on the first pricking point, the second pricking point, and the third pricking point.
7. The method according to claim 3, characterized in that The time-lapse shooting interface further includes a preview control, and the method further includes: In response to the selection operation of the preview control, a trajectory preview interface is displayed, wherein the trajectory preview interface sequentially displays images captured when the vehicle-mounted pan-tilt camera rotates, the vehicle-mounted pan-tilt camera rotates along the rotation trajectory, or the vehicle-mounted pan-tilt camera rotates based on the sliding position of the inner slide rail control.
8. The method according to claim 2 or 3, characterized in that: The method further comprises: In response to a removal operation on the tie point, the tie point is deleted.
9. The method according to claim 1, characterized in that: The step of obtaining target scene parameters in response to the setting operation of the scene parameters includes: In response to a click operation on the scene parameter setting, displaying a scene selection interface, the scene selection interface including a plurality of scenes and scene parameters corresponding to each scene; In response to a scene selection operation in the scene selection interface, obtaining a target scene; Based on the target scene, the target scene parameter is determined.
10. The method according to claim 1, characterized in that The trajectory parameter also includes a total rotation angle; the step of controlling the vehicle-mounted pan-tilt camera to rotate along the rotation trajectory within the shooting duration, and the vehicle-mounted pan-tilt camera to shoot images at the shooting interval during the rotation process, includes: Determining a target rotation speed according to the total rotation angle and the shooting duration; The vehicle-mounted pan-tilt camera is controlled to rotate along the rotation trajectory at the target rotation speed, and the vehicle-mounted pan-tilt camera captures images at the shooting interval during the rotation process.
11. An electronic device, characterized in that: include: Memory, processor; The memory is used to store computer programs / instructions; The processor is configured to implement the method according to any one of claims 1 to 10 according to the computer program / instructions stored in the memory.
12. A computer-readable storage medium / computer program product, characterized in that: The computer-readable storage medium stores a computer program / the computer program product includes a computer program, and when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 10.
