A sliding zoom shooting method and related device
By obtaining and calculating relevant parameters in the on-board scene, the automatic control of sliding zoom shooting is achieved, which solves the problem of difficulty in controlling the camera speed and zoom ratio at the same time in the on-board scene, and improves the shooting effect.
Patent Information
- Application Number
- CN202211476030.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2042-11-23
AI Technical Summary
The prior art is difficult to achieve sliding zoom shooting in vehicle-mounted scenarios, especially during vehicle driving, and it is difficult to accurately control the camera's movement speed and zoom ratio at the same time.
By obtaining initial parameters, including sliding zoom shooting time, initial zoom ratio and sampling interval time, and obtaining the distance, angle and vehicle speed between the on-board camera and the target subject at the current moment, calculate the target zoom ratio at the next moment, and realize sliding zoom shooting.
Even if the target subject is not in front of the on-board camera, the target zoom ratio can be automatically calculated and the sliding zoom shooting can be completed, enhancing the visual effect of zoom shooting.
Smart Images

Figure CN115866397B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular, to a sliding zoom shooting method and related devices. Background Art
[0002] Sliding zoom is a classic video shooting technique. By using sliding zoom, the visual effect of the image can be enhanced, giving the audience a richer visual experience. With the increasing maturity of autonomous driving technology, the sensors and cameras configured based on the vehicle environment have become almost comprehensive, and multiple perception sensors have been equipped on the vehicle, including panoramic RGB cameras, ranging sensors, and so on. Therefore, shooting based on the vehicle scenario has great development potential. Due to the movable attribute of the vehicle, sliding zoom shooting under vehicle control has irreplaceable advantages.
[0003] In the prior art, except for fixed-position cameras, sliding zoom shooting is only applied to the shooting of drones and mobile phones, but the solutions of both cannot be applied to the shooting of vehicle scenarios. In the shooting environment of drones, the flight of drones in the air is not restricted by lanes like the driving of cars. Therefore, sliding zoom shooting of drones can keep the target shooting object always facing the camera directly. However, in the vehicle environment, due to the influence of lanes, the target shooting object to be photographed may not necessarily be in front of the camera.
[0004] In the shooting scenario of mobile phones, it is often difficult to accurately control the moving speed of the camera by walking, so it is impossible to accurately control the moving speed of the camera and the zoom ratio at the same time, and the zoom effect of the captured image is not obvious. In the vehicle environment, since the driving speed of the vehicle is much faster than the walking speed of people, it is necessary to accurately control the speed of the camera and the zoom ratio at the same time to achieve sliding zoom shooting. Although there are technical solutions for controlling the vehicle speed in the prior art, they do not involve the simultaneous control of the vehicle speed and zoom.
[0005] Therefore, how to achieve sliding zoom shooting of vehicle-mounted cameras has become a technical problem that needs to be urgently solved by those skilled in the art. Summary of the Invention
[0006] Based on the above problems, in order to achieve sliding zoom shooting of vehicle-mounted cameras, the present application provides a sliding zoom shooting method and related devices.
[0007] The embodiments of the present application disclose the following technical solutions:
[0008] In the first aspect, the present application discloses a sliding zoom shooting method, which specifically includes:
[0009] Obtain initial parameters, where the initial parameters at least include the time for sliding zoom shooting;
[0010] Obtain the distance between the vehicle-mounted camera and the target shooting object at the current moment, the included angle between the line connecting the vehicle-mounted camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment;
[0011] Perform sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and included angle at the current moment;
[0012] When the shooting time of the vehicle-mounted camera for the target shooting object reaches the time for sliding zoom shooting, stop shooting.
[0013] Optionally, the performing sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and included angle at the current moment specifically includes:
[0014] The initial parameters further include: the initial zoom ratio and the sampling interval time;
[0015] Calculate the target zoom ratio for the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and included angle at the current moment;
[0016] Take the target zoom ratio for the next moment as the zoom ratio at the current moment, and calculate the target zoom ratio for the next moment according to the vehicle speed at the current moment, the sampling interval time, the distance and included angle at the current moment;
[0017] Perform the sliding zoom shooting based on the target zoom ratio for the next moment.
[0018] Optionally, the target zoom ratio for the next moment is specifically calculated by the following formula:
[0019] ;
[0020] Wherein, represents the zoom ratio at the current moment t i of, represents the target zoom ratio at the next moment t i+1 of, represents the distance i obtained at the current moment t, the included angle i obtained at the current moment t represents the sampling interval time.
[0021] Optionally, before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and the included angle at the current moment, the method further includes:
[0022] Obtaining the speed of the target shooting object;
[0023] Adjusting the vehicle speed at the current moment according to the speed of the target shooting object and the sliding zoom shooting mode to obtain a first adjusted vehicle speed.
[0024] Optionally, before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and the included angle at the current moment, the method further includes:
[0025] Adjusting the vehicle speed at the current moment according to the action state of the target shooting object to obtain a second adjusted vehicle speed.
[0026] Optionally, after stopping shooting, the method further includes:
[0027] If there is an uncovered area in the shooting of the target shooting object by the vehicle-mounted camera, using other vehicle-mounted cameras to perform sliding zoom shooting on the uncovered area of the target shooting object;
[0028] Stitching the uncovered picture of the target shooting object captured by the other vehicle-mounted camera with the picture of the target shooting object captured by the vehicle-mounted camera.
[0029] Optionally, before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and the included angle at the current moment, the method further includes:
[0030] If the vehicle speed at the current moment exceeds a preset vehicle speed threshold, initiating a vehicle speed change request.
[0031] In a second aspect, the present application discloses a sliding zoom shooting device, specifically including:
[0032] An initialization module, configured to obtain initial parameters, where the initial parameters at least include a sliding zoom shooting time;
[0033] An acquisition module, configured to acquire the distance between the vehicle-mounted camera and the target shooting object at the current moment, the included angle between the connection line of the vehicle-mounted camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment;
[0034] A zoom ratio acquisition module, configured to perform sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and the included angle at the current moment;
[0035] A stop shooting module, configured to stop shooting when the shooting time of the in-vehicle camera for the target shooting object reaches the sliding zoom shooting time.
[0036] Optionally, the device further includes: a vehicle speed adjustment module; the vehicle speed adjustment module is configured to:
[0037] Obtain the speed of the target shooting object;
[0038] Adjust the vehicle speed at the current moment according to the speed of the target shooting object and the sliding zoom shooting mode to obtain a first adjusted vehicle speed.
[0039] Optionally, the vehicle speed adjustment module is configured to:
[0040] Adjust the vehicle speed at the current moment according to the motion state of the target shooting object to obtain a second adjusted vehicle speed.
[0041] Optionally, the device further includes: a picture stitching module; the picture stitching module is configured to:
[0042] If there is an uncovered area in the shooting of the target shooting object by the in-vehicle camera, use other in-vehicle cameras to perform sliding zoom shooting on the uncovered area of the target shooting object;
[0043] Stitch the uncovered picture of the target shooting object captured by the other in-vehicle camera with the picture of the target shooting object captured by the in-vehicle camera.
[0044] In a third aspect, the present application discloses an electronic device, including:
[0045] A memory, configured to store a calculator program;
[0046] A processor, configured to implement the steps of the sliding zoom shooting method as described in any possible one of the first aspect when executing the computer program.
[0047] In a fourth aspect, the present application discloses a vehicle, including the electronic device as described in the third aspect.
[0048] Compared with the prior art, the present application has the following beneficial effects: The present application discloses a sliding zoom shooting method and related devices. Before performing sliding zoom shooting, initial parameters are set, and the distance between the in-vehicle camera and the target shooting object at the current moment, as well as the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction, are obtained. Then, according to the vehicle speed and zoom ratio at the current moment, the sampling interval time, and the distance and angle, the target zoom ratio for the next moment is obtained. When the shooting time of the in-vehicle camera for the target shooting object reaches the sliding zoom shooting time, the shooting is stopped. Through the above sliding zoom shooting method, even if the target shooting object is not directly in front of the in-vehicle camera, the target zoom ratio can be automatically calculated and the sliding zoom shooting can be completed. During the process of sliding zoom shooting, the zoom ratio can be controlled in real time based on the vehicle speed, enhancing the visual effect of the zoom shooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0050] Figure 1 It is a flowchart of a sliding zoom shooting method provided by an embodiment of the present application;
[0051] Figure 2 It is a schematic diagram of the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction provided by an embodiment of the present application;
[0052] Figure 3 It is a schematic diagram of the derivation of formula (1) provided by an embodiment of the present application;
[0053] Figure 4 It is a schematic diagram of the structure of a sliding zoom shooting device provided by an embodiment of the present application;
[0054] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0055] As described above, in current sliding zoom shooting, except for the camera with a fixed position, sliding zoom shooting is only applied to the shooting of drones and mobile phones, but the solutions of both cannot be applied to the shooting in the vehicle-mounted scenario. In the shooting environment of a drone, the movement of the drone in the air is not restricted by lanes like the movement of a car on the ground. Therefore, when using a drone for sliding zoom shooting, the target object can always be in a state facing the camera directly. However, in a vehicle-mounted environment, due to the influence of lanes, the target object to be shot may not necessarily be directly in front of the camera. In the shooting scenario of a mobile phone, it is often difficult to accurately control the moving speed of the camera by walking, so it is impossible to accurately control the moving speed of the camera and the zoom ratio at the same time, and the zoom effect of the shot is not obvious. In a vehicle-mounted environment, since the driving speed of the vehicle is much faster than the walking speed, it is necessary to accurately control the speed of the camera and the zoom ratio at the same time to achieve sliding zoom shooting. Although there are technical solutions for controlling the vehicle speed in the prior art, they do not involve the simultaneous control of the vehicle speed and zooming.
[0056] After research, the inventor provides a sliding zoom shooting method and related device. Before performing sliding zoom shooting, initial parameters are set, and the distance between the vehicle-mounted camera and the target object to be shot at the current moment and the angle between the line connecting the vehicle-mounted camera and the target object to be shot and the driving direction are obtained. Then, according to the vehicle speed and zoom ratio at the current moment, the sampling interval time, and the distance and angle, the target zoom ratio at the next moment is obtained. When the shooting time of the vehicle-mounted camera for the target object to be shot reaches the sliding zoom shooting time, the shooting is stopped. Through the above sliding zoom shooting method, even if the target object to be shot is not directly in front of the vehicle-mounted camera, the target zoom ratio can be automatically calculated and the sliding zoom shooting can be completed. During the process of sliding zoom shooting, the simultaneous control of the vehicle speed of the vehicle and the zoom ratio can be achieved, enhancing the visual effect of the zoom shooting.
[0057] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0058] Method Embodiment
[0059] See Figure 1 , which is a schematic flowchart of a sliding zoom shooting method provided by an embodiment of this application, and specifically includes:
[0060] S101: Obtain initial parameters, where the initial parameters at least include the time for sliding zoom shooting.
[0061] First, obtain initial parameters. The initial parameters are used to determine the shooting time for sliding zoom shooting, the initial zoom ratio, and the sampling interval time for vehicle speed during the process of sliding zoom shooting. Before performing sliding zoom shooting, the user can also set the final zoom ratio for sliding zoom shooting. During the process of sliding zoom shooting, the initial parameters play a crucial role in calculating the zoom ratio at specific moments. The initial zoom ratio is determined by the specific sliding zoom shooting mode. Before performing sliding shooting, the user can determine the required sliding zoom shooting mode through the in-vehicle interaction interface. According to the determined sliding zoom shooting mode by the user, the optimal value of the initial zoom ratio can be recommended to the user. For example, when the determined sliding zoom shooting mode by the user is "pull away and zoom in", the initial zoom ratio can be set to the minimum zoom ratio of the camera. When the determined sliding zoom shooting mode by the user is "get closer and zoom out", the initial zoom ratio can be set to the maximum zoom ratio of the camera. The set initial zoom ratio and final zoom ratio by the user can be the minimum zoom ratio and the maximum zoom ratio of the in-vehicle camera, or any value between the minimum zoom ratio and the maximum zoom ratio of the in-vehicle camera.
[0062] S102: Obtain the distance between the in-vehicle camera and the target shooting object at the current moment, the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment.
[0063] After completing the setting of the initial parameters, measure the distance between the in-vehicle camera and the target shooting object at the current moment, and the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction at the current moment. The distance measurement can be completed by using the in-vehicle distance sensor, such as lidar, millimeter-wave radar, etc., to perform real-time ranging on the target shooting object, and use the obtained actual distance as a parameter for calculating the vehicle speed and zoom ratio.
[0064] See Figure 2 , Figure 2 which is a schematic diagram of the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction provided by the embodiment of the present application.
[0065] As Figure 2 shown, it is the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction at the current moment, representing the driving speed and driving direction of the vehicle, and the speed and movement direction of the target shooting object. When obtaining the angle, it can be calculated based on the installation angle and rotation angle of the in-vehicle camera on the vehicle body, the position and distance of the target shooting object in the picture, and the FOV of the camera.
[0066] S103: Perform a sliding zoom shot according to the vehicle speed at the current moment, the initial parameters, and the distance and angle at the current moment.
[0067] After obtaining the distance between the in-vehicle camera and the target shooting object at the current moment and the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction, calculate the target zoom ratio at the next moment according to the vehicle speed at the current moment, the zoom ratio at the current moment, the sampling interval time, the distance and the angle at the current moment. The target zoom ratio at the next moment can be calculated by the following formula:
[0068] ;
[0069] Wherein, represents the zoom ratio at the current moment t i , represents the target zoom ratio at the next moment t i+1 , represents the distance obtained at the current moment t i , the angle obtained at the current moment t i , represents the sampling interval time.
[0070] The derivation process of the above formula is as follows:
[0071] Figure 3 is a schematic diagram for the derivation of formula (1) provided by the embodiment of the present application. For the convenience of understanding the derivation process of the above formula, the following can be combined with Figure 3 to introduce and explain the derivation process of formula (1).
[0072] As Figure 3 shown, the camera moves from O0 to O1, and the FOV field of view angle of the camera remains unchanged, and the covered object plane range shrinks from H0 to H1. According to the ratio between similar triangles, calculate the main body frame ratio at different times respectively. As shown in the following Figure 3 derivation, it can be obtained that the zoom ratio is proportional to the distance, that is:
[0073] (1)
[0074] And and The relationship between them is:
[0075] (2)
[0076] Wherein, and respectively represent the distances between the in-vehicle camera and the target object measured at the start and end of the sliding zoom shooting, represents the driving speed set at the start of the sliding zoom shooting, represents the angle between the line connecting the in-vehicle camera and the target object and the driving direction at the start of the sliding zoom shooting, represents the sliding zoom shooting time set by the user.
[0077] From the above two formulas, it can be deduced that:
[0078] (3)
[0079] Among them, and respectively represent the initial zoom ratio and the final zoom ratio of the sliding zoom at the start and end of the sliding zoom shooting, both of which can be set by the user himself.
[0080] Thus, at any moment, the relationship is satisfied:
[0081] (4)
[0082] The following will specifically describe the calculation process of the corresponding target zoom ratio at each moment during the sliding zoom shooting using the above formulas:
[0083] ① Calculate the initial values and .
[0084] When the sliding zoom shooting mode selected by the user is to shorten the distance (i.e., < ), the known parameters are , and , and are set by the user himself. According to formula (3), can be calculated, and the vehicle is controlled to move forward at for time, then the target zoom ratio at the next moment is:
[0085] (5)
[0086] If is 0 and the target object is stationary, then the sliding zoom ratio will also change from to at a uniform speed within , and the speed remains unchanged. That is, the zoom ratio at the next moment is:
[0087] (6)
[0088] However, when is not zero and the target shooting object has a certain speed, it is necessary to calculate and .
[0089] ② After the 1st moment, calculate and .
[0090] After the 1st moment, calculate according to the vehicle speed. If the target shooting object is stationary and is zero, then the distance between the in-vehicle camera and the target shooting object at the current moment should be:
[0091] (7)
[0092] The actually obtained distance between the in-vehicle camera and the target shooting object is and . Judge whether and are equal. If they are equal, calculate according to the formula in the previous step. If they are not equal, recalculate and as shown in the following formula:
[0093] (8)
[0094] (9)
[0095] ③ After the i-th moment, calculate and .
[0096] After the i-th moment, calculate according to the vehicle speed. If the target shooting object is stationary and is zero, then the distance between the in-vehicle camera and the target shooting object at the current moment should be:
[0097] (10)
[0098] The actually obtained distance between the in-vehicle camera and the target shooting object is and . Judge whether and Whether they are equal. If they are equal, perform uniform zoom calculation If they are not equal, recalculate and as shown in the following formula:
[0099] (11)
[0100] (12)
[0101] Repeat the above steps in a loop to calculate the target zoom ratio at the next moment and use it in the specific process of smooth zooming until the zoom ratio is adjusted to the final zoom ratio set by the user.
[0102] S104: When the shooting time of the vehicle-mounted camera for the target shooting object reaches the smooth zoom shooting time, stop shooting.
[0103] The smooth zoom shooting time is set by the user himself during the initial parameter setting stage. By setting the smooth zoom shooting time by the user himself, it is convenient for the user to achieve the desired smooth zoom shooting effect.
[0104] This embodiment discloses a smooth zoom shooting method and related device. Before performing smooth zoom shooting, set initial parameters, and obtain the distance between the vehicle-mounted camera and the target shooting object at the current moment and the angle between the line connecting the vehicle-mounted camera and the target shooting object and the driving direction. Then, according to the vehicle speed and zoom ratio at the current moment, the sampling interval time, and the distance and angle, obtain the target zoom ratio at the next moment. When the shooting time of the vehicle-mounted camera for the target shooting object reaches the smooth zoom shooting time, stop shooting. Through the above smooth zoom shooting method, even if the target shooting object is not directly in front of the vehicle-mounted camera, it can automatically calculate the target zoom ratio and complete smooth zoom shooting. During the process of smooth zoom shooting, it is possible to realize real-time control of the zoom ratio based on the vehicle speed, enhancing the visual effect of zoom shooting.
[0105] As an optional implementation manner, before step S103, it further includes:
[0106] Obtain the speed of the target shooting object.
[0107] According to the speed of the target shooting object and the smooth zoom shooting mode, adjust the vehicle speed at the current moment to obtain the first adjusted vehicle speed.
[0108] During the process of performing a sliding zoom shot on the target shooting object, the vehicle speed can be adjusted according to the movement speed of the target shooting object and the sliding zoom shooting mode selected by the user. For example, when the sliding zoom shooting mode selected by the user is "increase the distance and zoom in", the current vehicle speed is adjusted to be less than the speed of the target shooting object. Conversely, when the sliding zoom shooting mode selected by the user is "decrease the distance and zoom out", the current vehicle speed is adjusted to be greater than the speed of the target shooting object.
[0109] During the process of adjusting the vehicle speed according to the speed of the target shooting object and the sliding zoom shooting mode, the current vehicle speed can also be adjusted according to the current traffic congestion situation of the road. For example, when the current road is not congested, that is, when there are no vehicles or objects within the preset range around the vehicle, the adjustment range of the vehicle speed can be increased. For example, when the vehicle speed needs to be increased, the vehicle speed can be directly adjusted from 30 km / h to 50 km / h within a moment. When the road is relatively congested, that is, when there are vehicles or objects within the preset range around the vehicle, the adjustment range of the vehicle speed can be decreased. For example, when the vehicle speed needs to be increased, the vehicle speed is only adjusted from 30 km / h to 35 km / h within a moment, so as to ensure driving safety.
[0110] According to the sliding zoom shooting mode and the movement speed of the target shooting object, the control of the vehicle speed and the sliding zoom multiple is automatically completed. The zoom effect is obvious, and the vehicle speed and the zoom multiple can be automatically adjusted according to the movement speed of the target shooting object, realizing the sliding zoom shooting based on the in-vehicle camera.
[0111] In another alternative embodiment, before step S103, it further includes:
[0112] Adjust the vehicle speed at the current moment according to the action state of the target shooting object to obtain a second adjusted vehicle speed.
[0113] During the process of performing sliding zoom shooting, the vehicle speed can be adjusted according to the motion state of the target shooting object to enhance the zoom effect. Among them, the motion state of the target shooting object can be expressed as two motion states: intense and stable. For example, when the motion state of the target shooting object is in an intense state, its specific intense state can be the motion state when the target shooting object is performing sports such as running and long jumping, which are accompanied by large body motion changes. When the target shooting object is in such a motion state, the vehicle speed can be slowed down to promote the change of the background in the lens and slowly focus on the motion of the target shooting object. When the motion state of the target shooting object is in a stable state, its specific stable state can be when the target shooting object is walking slowly or in a stationary state. At this time, there are no large body motion changes in the target shooting object, and at this time, it can be considered that the motion state of the target shooting object is in a stable state. At this time, the vehicle speed can be increased to advance the lens, thereby highlighting the change of the lens background. In the embodiments of the present application, whether the motion of the target shooting object is intense or stable can be identified and defined through some limb motion recognition algorithms. No limitation is made here.
[0114] Adjusting the vehicle speed at the current moment according to the motion state of the target shooting object enhances the zoom effect, and under different motion states of the target shooting object, pictures with different sliding zoom shooting effects can be taken, enriching the user experience.
[0115] During the process of performing sliding zoom shooting, sometimes the field of view angle of a single camera is difficult to completely cover the object to be photographed. For this reason, the present application provides a preferred solution as follows:
[0116] In another alternative embodiment, after step S104, it further includes:
[0117] If there is an uncovered area in the shooting of the target shooting object by the vehicle-mounted camera, another vehicle-mounted camera is used to perform sliding zoom shooting on the uncovered area of the target shooting object.
[0118] The uncovered picture of the target shooting object taken by the other vehicle-mounted camera is spliced with the picture of the target shooting object taken by the vehicle-mounted camera.
[0119] During the process of performing sliding zoom shooting using a vehicle-mounted camera, the sliding zoom shooting can be completed based on a body surround camera, a driving recorder, and a dedicated vehicle-mounted pan-tilt device. There are no excessive requirements and limitations on the installation position of the vehicle-mounted camera and the specific configuration of the camera, as long as it is ensured that the vehicle-mounted camera shoots towards the outside of the vehicle, meets the requirements of photographic image quality, and has a zoom function.
[0120] During the shooting process, due to the limitation of the field of view angle, there will be a situation where a single vehicle-mounted camera cannot cover the entire shooting scene. Multiple vehicle-mounted cameras can be used to shoot the target shooting object, thereby forming a camera with a larger field of view angle for use. Finally, through image stitching, the images captured by multiple vehicle-mounted cameras are stitched and integrated to obtain the complete target shooting object.
[0121] As another alternative implementation, before step S103, it further includes:
[0122] If the vehicle speed at the current moment exceeds the preset vehicle speed threshold, a vehicle speed change request is initiated.
[0123] Combining the automatic control of the vehicle speed and the sliding zoom ratio with the preset vehicle speed threshold, the preset vehicle speed threshold can be set by the user himself, and the setting of the vehicle speed threshold will also be completed in combination with the specific speed limit requirements of the current section. After adjusting the vehicle speed according to the action state and movement speed of the target shooting object, if the vehicle speed at the current moment exceeds the preset vehicle speed threshold, a vehicle speed change request is sent to the user to ensure the driving safety of the user.
[0124] Next, a sliding zoom shooting device provided by an embodiment of the present application will be introduced. The sliding zoom shooting device described below can be mutually referred to with the sliding zoom shooting method described above.
[0125] Device Embodiment
[0126] See Figure 2 , this figure is a schematic structural diagram of a sliding zoom shooting device provided by an embodiment of the present application.
[0127] An initialization module 100, configured to obtain initial parameters, where the initial parameters at least include the sliding zoom shooting time;
[0128] An acquisition module 200, configured to acquire the distance between the vehicle-mounted camera and the target shooting object at the current moment, the included angle between the line connecting the vehicle-mounted camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment;
[0129] A zoom ratio acquisition module 300, configured to perform sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and included angle at the current moment;
[0130] A stop shooting module 400, configured to stop shooting when the shooting time of the vehicle-mounted camera for the target shooting object reaches the sliding zoom shooting time.
[0131] Optionally, the device further includes: a vehicle speed adjustment module; the vehicle speed adjustment module is used for:
[0132] Obtain the speed of the target shooting object;
[0133] Adjust the vehicle speed at the current moment according to the speed of the target shooting object and the sliding zoom shooting mode to obtain a first adjusted vehicle speed.
[0134] Optionally, the vehicle speed adjustment module is configured to:
[0135] Adjust the vehicle speed at the current moment according to the motion state of the target shooting object to obtain a second adjusted vehicle speed.
[0136] Optionally, the device further includes: a picture stitching module; the picture stitching module is configured to:
[0137] If there is an uncovered area in the shooting of the target shooting object by the vehicle-mounted camera, use other vehicle-mounted cameras to perform sliding zoom shooting on the uncovered area of the target shooting object;
[0138] Stitch the uncovered picture of the target shooting object captured by the other vehicle-mounted camera with the picture of the target shooting object captured by the vehicle-mounted camera.
[0139] Embodiment of Electronic Device
[0140] See Figure 5 , this figure is a schematic structural diagram of an electronic device provided by an embodiment of the present application, including:
[0141] A memory 11 for storing a computer program;
[0142] A processor 12 for implementing the steps of the vehicle-mounted sliding zoom shooting method described in any of the above method embodiments when executing the computer program.
[0143] In this embodiment, the device can be an in-vehicle computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a palm computer, or a portable computer.
[0144] The device may include a memory 11, a processor 12, and a bus 13.
[0145] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, magnetic disk, optical disc, etc. The memory 11 can be an internal storage unit of the device in some embodiments, such as the hard disk of the device. The memory 11 can also be an external storage device of the device in other embodiments, such as a plug-in hard disk equipped on the device, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Further, the memory 11 can also include both the internal storage unit and the external storage device of the device. The memory 11 can be used not only to store application software installed on the device and various types of data, such as program codes for executing the fault prediction method, etc., but also to temporarily store data that has been output or will be output.
[0146] The processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments, and is used to run the program codes stored in the memory 11 or process data, such as program codes for executing the fault prediction method, etc.
[0147] The bus 13 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 5 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0148] Further, the device can also include a network interface 14. The network interface 14 can optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), and is usually used to establish a communication connection between the device and other electronic devices.
[0149] Optionally, the device may further include a user interface 15, which may include a display, an input unit such as a keyboard, and optionally, the user interface 15 may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch liquid crystal display, and an OLED (Organic Light-Emitting Diode) toucher, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display the information processed in the device and to display a visual user interface.
[0150] Figure 5 Only the device with components 11-15 is shown. Those skilled in the art can understand that Figure 5 the shown structure does not constitute a limitation on the device, and it may include fewer or more components than shown, or combine some components, or have different component arrangements.
[0151] Vehicle Embodiment
[0152] The embodiment of the present application also provides a vehicle, which includes the memory and the processor in the above-mentioned electronic device embodiment.
[0153] It should be noted that the embodiments in this specification are all described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, they are described relatively simply, and the relevant parts can refer to the partial descriptions of the method embodiments. The method and device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components prompted as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0154] The above is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A sliding zoom shooting method, characterized in that, Specifically include: Obtain initial parameters, where the initial parameters at least include the sliding zoom shooting time; Obtain the distance between the in-vehicle camera and the target shooting object at the current moment, the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment; Perform sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and angle at the current moment; When the shooting time of the in-vehicle camera for the target shooting object reaches the sliding zoom shooting time, stop shooting; The performing sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and angle at the current moment specifically includes: The initial parameters further include: the initial zoom ratio and the sampling interval time; Take the target zoom ratio at the next moment as the zoom ratio at the current moment, and calculate the target zoom ratio at the next moment according to the vehicle speed at the current moment, the sampling interval time, the distance and angle at the current moment; Perform the sliding zoom shooting based on the target zoom ratio at the next moment.
2. The method according to claim 1, characterized in that, The target zoom ratio at the next moment is specifically calculated by the following formula: ; Among them, represents the zoom ratio at the current moment t i ; represents the zoom ratio at the next moment t i+1 ; represents the distance obtained at the current moment t i ; the included angle obtained at the current moment t i ; represents the sampling interval time. It should be noted that there seems to be some inaccuracies in the original Chinese text structure. In the translation, some punctuation marks are adjusted to make the English expression more logical. If this is a very strict patent text, it is recommended to double-check the original text and the translation requirements according to the actual situation.
3. The method according to claim 1, characterized in that, Before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and angle at the current moment, further include: Obtain the speed of the target shooting object; Adjust the vehicle speed at the current moment according to the speed of the target shooting object and the sliding zoom shooting mode to obtain the first adjusted vehicle speed.
4. The method according to claim 1, characterized in that, Before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and angle at the current moment, further include: Adjust the vehicle speed at the current moment according to the action state of the target shooting object to obtain the second adjusted vehicle speed.
5. The method according to claim 1, characterized in that, After stopping shooting, further include: If there are uncovered areas in the shooting of the target shooting object by the in-vehicle camera, use other in-vehicle cameras to perform sliding zoom shooting on the uncovered areas of the target shooting object; Stitch the uncovered images of the target shooting object captured by the other in-vehicle cameras with the images of the target shooting object captured by the in-vehicle camera.
6. The method according to claim 1, characterized in that, Before calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the initial zoom ratio, the sampling interval time, and the distance and angle at the current moment, further include: If the vehicle speed at the current moment exceeds the preset vehicle speed threshold, initiate a vehicle speed change request.
7. A sliding zoom shooting device, characterized in that, Specifically include: An initialization module, used to obtain initial parameters, where the initial parameters at least include the sliding zoom shooting time; An acquisition module, used to obtain the distance between the in-vehicle camera and the target shooting object at the current moment, the angle between the line connecting the in-vehicle camera and the target shooting object and the driving direction at the current moment, and the vehicle speed at the current moment; A zoom ratio acquisition module, used to perform sliding zoom shooting according to the vehicle speed at the current moment, the initial parameters, and the distance and angle at the current moment; A stop shooting module, which is used to stop shooting when the shooting time of the in-vehicle camera for the target shooting object reaches the sliding zoom shooting time; The initial parameters further include: an initial zoom ratio and a sampling interval time; The zoom ratio acquisition module is specifically used for: Taking the target zoom ratio at the next moment as the zoom ratio at the current moment, and calculating the target zoom ratio at the next moment according to the vehicle speed at the current moment, the sampling interval time, the distance and the included angle at the current moment; Performing the sliding zoom shooting based on the target zoom ratio at the next moment.
8. The device according to claim 7, characterized in that, It further includes: A vehicle speed adjustment module; the vehicle speed adjustment module is used for: Obtaining the speed of the target shooting object; Adjusting the vehicle speed at the current moment according to the speed of the target shooting object and the sliding zoom shooting mode to obtain a first adjusted vehicle speed.
9. The device according to claim 8, wherein, The vehicle speed adjustment module is used for: Adjusting the vehicle speed at the current moment according to the action state of the target shooting object to obtain a second adjusted vehicle speed.
10. The device according to claim 7, wherein, It further includes: A picture stitching module; the picture stitching module is used for: If there is an uncovered area in the shooting of the target shooting object by the in-vehicle camera, using other in-vehicle cameras to perform sliding zoom shooting on the uncovered area of the target shooting object; Stitching the uncovered picture of the target shooting object captured by the other in-vehicle camera with the picture of the target shooting object captured by the in-vehicle camera.
11. An electronic device, wherein, It includes: A memory, which is used to store a computer program; A processor, which is used to implement the steps of the sliding zoom shooting method according to any one of claims 1 to 6 when executing the computer program.
12. A vehicle, wherein, An electronic device including the one described in claim 11.
Citation Information
Patent Citations
Automobile picture pick-up system and data process method of synchronous change of visual angle of automobile picture pick-up system and automobile speed
CN103101497A
Method and device for acquiring sliding zoom video
CN108234879A