Method for controlling vehicle photographing and vehicle
By marking the photo position in the navigation interface and judging the photo conditions based on the vehicle position, the problem of single traditional DVR functions is solved, and the flexibility of the vehicle photo function and full utilization of resources are achieved.
Patent Information
- Application Number
- CN202310981316.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
AI Technical Summary
Traditional DVRs are only used in vehicles when accidents occur, resulting in single functions and waste of resources.
By displaying the target navigation route in the navigation interface, users can mark the starting position and end position of taking pictures. During driving, the vehicle determines whether the camera conditions are met based on the position, and controls the external digital recorder to take pictures.
It enriches the functions of external digital video recorders, allowing them to be fully utilized during non-accident periods, avoiding waste of resources, and improving the flexibility and efficiency of vehicle photography.
Smart Images

Figure CN119445853A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of automobile technology, and in particular relates to a method for controlling a vehicle to take photos and a vehicle. Background Art
[0002] With the development of automobile technology, the external devices of vehicles are becoming more and more abundant, for example, external digital video recorders (DVR).
[0003] In the related art, DVR is usually used to collect video images around the vehicle during driving, so that when an accident occurs, it can be played back to understand the cause of the incident in time. However, in this process, the use of DVR is single, and it only generates use value when an accident occurs, resulting in a waste of resources. Summary of the invention
[0004] The purpose of the present application is to provide a method and a vehicle for controlling vehicle photography, aiming to solve the problem that traditional DVRs are used in a single manner and are only useful when an accident occurs, resulting in a waste of resources.
[0005] A first aspect of an embodiment of the present application provides a method for controlling a vehicle to take photos, the method comprising:
[0006] Based on the navigation start position and the navigation end position, the target navigation route is displayed in the navigation interface;
[0007] In response to a target operation acting on the target navigation route, determining a starting position and an ending position of photographing on the target navigation route;
[0008] Acquiring the position of the vehicle while the vehicle is traveling based on the target navigation route;
[0009] When the position of the vehicle is between the photographing start position and the photographing end position, the external digital video recorder of the vehicle is controlled to take photos.
[0010] In some embodiments, when the position of the vehicle is between the photographing start position and the photographing end position, controlling the external digital video recorder of the vehicle to take a photo includes:
[0011] When the position of the vehicle is between the photographing start position and the photographing end position, determining that the environment where the vehicle is located meets the photographing condition;
[0012] An external digital video recorder of the vehicle is controlled to take pictures.
[0013] In some embodiments, the photographing condition includes an obstacle ratio condition;
[0014] The determining that the environment where the vehicle is located meets the photographing condition includes:
[0015] When the vehicle is traveling, controlling an external digital video recorder of the vehicle to collect video data;
[0016] Identify the video frame in the video data to obtain the proportion of the obstacle to the vehicle in the frame of the video data;
[0017] If the proportion is less than the preset proportion set in the obstacle proportion condition, it is determined that the environment in which the vehicle is located meets the obstacle proportion condition.
[0018] In some embodiments, the photographing condition includes a vehicle speed condition;
[0019] The determining that the environment where the vehicle is located meets the photographing condition includes:
[0020] Get the vehicle's speed;
[0021] If the driving speed is less than the preset speed set in the vehicle speed condition, it is determined that the environment where the vehicle is located meets the vehicle speed condition.
[0022] In some embodiments, the method further comprises:
[0023] If the driving speed is not less than the preset speed set in the speed condition, a prompt message is output, and the prompt message is used to prompt the driver to slow down the speed to take pictures.
[0024] In some embodiments, the photographing conditions include environmental conditions;
[0025] The determining that the environment where the vehicle is located meets the photographing condition includes:
[0026] Obtaining the light intensity and rainfall intensity of the environment where the vehicle is located;
[0027] If the light intensity is greater than the preset light intensity set in the environmental condition, and the rainfall intensity is less than the preset rainfall intensity set in the environmental condition, it is determined that the environment where the vehicle is located meets the environmental condition.
[0028] In some embodiments, the photographing conditions include time conditions;
[0029] The determining that the environment where the vehicle is located meets the photographing condition includes:
[0030] Get the current time point;
[0031] If the current time point is within the preset time period set in the time condition, it is determined that the environment where the vehicle is located meets the time condition.
[0032] In some embodiments, the target operation includes a first operation;
[0033] The step of determining a photographing start position and a photographing end position on the target navigation route in response to a target operation on the target navigation route comprises:
[0034] In response to a first operation acting on the target navigation route, determining a first position corresponding to the first operation on the target navigation route;
[0035] Two positions on the target navigation route, which are at a preset distance from the first position, are respectively determined as the photographing start position and the photographing end position.
[0036] In some embodiments, the target operation includes a second operation and a third operation;
[0037] The step of determining a photographing start position and a photographing end position on the target navigation route in response to a target operation on the target navigation route comprises:
[0038] In response to the second operation, determining a photo taking starting position corresponding to the second operation on the target navigation route;
[0039] In response to the third operation, a photo-taking end position corresponding to the third operation is determined on the target navigation route.
[0040] A second aspect of an embodiment of the present application provides a device for controlling a vehicle to take photos, the device comprising:
[0041] A display unit, used to display a target navigation route in a navigation interface based on a navigation start position and a navigation end position;
[0042] a determination unit, configured to determine a starting position and an ending position of photographing on the target navigation route in response to a target operation on the target navigation route;
[0043] An acquisition unit, used for acquiring the position of the vehicle while the vehicle is traveling based on the target navigation route;
[0044] The control unit is used to control the external digital video recorder of the vehicle to take photos when the position of the vehicle is between the starting position and the ending position of the photo-taking.
[0045] In some embodiments, the control unit is used to determine that the environment where the vehicle is located meets the photographing conditions when the position of the vehicle is between the photographing start position and the photographing end position; and control the external digital video recorder of the vehicle to take photos.
[0046] In some embodiments, the photographing condition includes an obstacle ratio condition;
[0047] The control unit is used to control the external digital video recorder of the vehicle to collect video data when the vehicle is traveling; identify the video screen in the video data to obtain the proportion of the obstacle of the vehicle in the screen of the video data; if the proportion is less than the preset proportion set in the obstacle proportion condition, determine that the environment where the vehicle is located meets the obstacle proportion condition.
[0048] In some embodiments, the photographing condition includes a vehicle speed condition;
[0049] The control unit is used to obtain the driving speed of the vehicle; if the driving speed is less than the preset speed set in the speed condition, it is determined that the environment where the vehicle is located meets the speed condition.
[0050] In some embodiments, the control unit is further used to output a prompt message if the driving speed is not less than a preset speed set in the speed condition, wherein the prompt message is used to prompt the driver to slow down the vehicle to take pictures.
[0051] In some embodiments, the photographing conditions include environmental conditions;
[0052] The control unit is used to obtain the light intensity and rainfall intensity of the environment where the vehicle is located; if the light intensity is greater than the preset light intensity set in the environmental conditions, and the rainfall intensity is less than the preset rainfall intensity set in the environmental conditions, it is determined that the environment where the vehicle is located meets the environmental conditions.
[0053] In some embodiments, the photographing conditions include time conditions;
[0054] The control unit is used to obtain a current time point; if the current time point is within a preset time period set in the time condition, it is determined that the environment where the vehicle is located meets the time condition.
[0055] In some embodiments, the target operation includes a first operation;
[0056] The determination unit is used to determine a first position corresponding to a first operation on the target navigation route in response to the first operation performed on the target navigation route; and determine two positions on the target navigation route that are a preset distance away from the first position as the starting position and the ending position for photographing, respectively.
[0057] In some embodiments, the target operation includes a second operation and a third operation;
[0058] The determination unit is used to determine, in response to the second operation, a starting position for photographing corresponding to the second operation on the target navigation route; and to determine, in response to the third operation, an ending position for photographing corresponding to the third operation on the target navigation route.
[0059] A third aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of controlling a vehicle to take photos as described above when executing the computer program.
[0060] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for controlling a vehicle to take photos as described above is implemented.
[0061] A fifth aspect of an embodiment of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of controlling the vehicle to take photos as described above when executing the computer program.
[0062] The beneficial effect of the embodiment of the present invention compared with the prior art is: in the embodiment of the present application, by displaying the target navigation route in the navigation interface, the starting position and ending position of the photo shooting marked by the user are received based on the target navigation route, so that when the vehicle is driving based on the target navigation position, the vehicle can determine whether to take a photo by monitoring the current position, thereby enriching the function of the external digital video recorder, allowing it to be fully utilized and preventing waste of resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of a system involved in a method for controlling a vehicle to take photos provided by an exemplary embodiment is shown;
[0064] Figure 2 A schematic flow chart of a method for controlling a vehicle to take photos provided by an exemplary embodiment is shown;
[0065] Figure 3 A schematic flow chart of a method for controlling a vehicle to take photos provided by an exemplary embodiment is shown;
[0066] Figure 4 A schematic diagram of the structure of a device for controlling a vehicle to take photos provided by an exemplary embodiment is shown;
[0067] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0068] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0069] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0070] Please refer to Figure 1 , which shows a schematic diagram of a system involved in a method for controlling vehicle photography provided by an exemplary embodiment. The system includes: an external digital video recorder (DVR) 10, an external DVR controller 20 and a vehicle controller 30. The DVR controller 20 is connected to the DVR and the vehicle controller 30 respectively.
[0071] The vehicle controller 30 is used to send a control instruction to the DVR controller 20 based on the current driving condition, and the control instruction is used to instruct the DVR controller 20 to control the DVR 10 to take pictures. The vehicle controller 30 can be a vehicle controller 30 for controlling the entire vehicle, and the vehicle controller 30 can also be a domain controller of the vehicle. In the embodiment of the present application, the type of the vehicle controller 30 is not specifically limited. The vehicle controller 30 can be any electronic device in the vehicle-mounted V3.5 host, vehicle-mounted terminal, mobile terminal, smart phone, tablet computer, laptop computer, wearable device, and personal computer (PC).
[0072] The DVR controller 20 is used to receive a control instruction sent by the vehicle controller 30, and control the DVR 10 to take pictures based on the control instruction.
[0073] The DVR 10 is used to collect video files during the driving of the vehicle, and in response to receiving a control instruction sent by the DVR controller 20, takes photos based on the control instruction, and sends the taken photos and video data to the DVR controller 20. The DVR controller 20 is also connected to the memory, and the DVR controller 20 is also used to receive the photos and video data sent by the DVR 10, and store the photos and video data in the memory.
[0074] In some embodiments, the DVR controller 20 is also used to receive a transmission instruction sent by the vehicle controller 30, and the transmission instruction is used to instruct the DVR controller 20 to transmit the stored photo or video data to the vehicle controller 30. The vehicle controller 30 is also connected to the user's electronic device in communication, and in response to the acquisition request sent by the electronic device, sends a transmission instruction to the DVR controller 20, and sends the photo or video data received based on the transmission instruction to the user's electronic device. In some embodiments, the system also includes a display screen, which is connected to the vehicle controller 30, and the display screen is used to display the picture or video data received by the vehicle controller 30.
[0075] See also Figure 2 , which shows a flow chart of a method for controlling a vehicle to take photos provided by the present application. As an example but not a limitation, the method is applied to an electronic device in a vehicle.
[0076] S201, the electronic device displays a target navigation route in a navigation interface based on a navigation start position and a navigation end position.
[0077] The electronic device determines a navigation start position and a navigation end position, determines a target navigation route between the navigation start position and the navigation end position based on the positions of the navigation start position and the navigation end position in the map, and displays the target navigation route in the navigation interface.
[0078] The navigation end position is the location of the navigation destination. In some embodiments, the electronic device displays a navigation search interface, and the navigation search interface is used to receive the destination input by the user. The electronic device determines the navigation end position based on the destination. Among them, the user can manually enter the destination through the navigation search interface, and can also enter the destination through a voice signal. In the embodiment of the present application, the input method of the navigation end position is not specifically limited.
[0079] The navigation start position may be the current position of the vehicle or the position input by the user. In some embodiments, the electronic device obtains the current position of the vehicle and determines the current position of the vehicle as the navigation start position. In some embodiments, the vehicle obtains the navigation start position input by the user, wherein the vehicle obtains the navigation start position input by the user in the same manner as the electronic device obtains the navigation end position input by the user, which is not described in detail here.
[0080] The electronic device may be an electronic device consisting of a vehicle controller and a display screen in a system involved in the method for controlling a vehicle to take photos. The electronic device may also be an electronic device of a user that is communicatively connected to the vehicle controller in the system involved in the method for controlling a vehicle to take photos. In the embodiments of the present application, the electronic device is not specifically limited.
[0081] S202: In response to a target operation on the target navigation route, the electronic device determines a starting position and an ending position for photographing on the target navigation route.
[0082] The target operation is an operation input by the user for determining the starting position and the ending position of photographing. The electronic device determines the starting position and the ending position of photographing on the target navigation route based on the position where the target operation is triggered on the target navigation route. The target operation can be a click operation.
[0083] In a first implementation method, the target operation includes a first operation, and this step may be: in response to the first operation acting on the target navigation route, determining a first position corresponding to the first operation on the target navigation route; and determining two positions on the target navigation route that are a preset distance away from the first position as the starting position and the ending position of the photographing, respectively.
[0084] The electronic device determines the first position triggered by the first operation on the target navigation route as the photo center position, and determines the photo start position and the photo end position on the target navigation route on both sides of the first position with the photo center position as the center. The preset distance can be set as needed. In the embodiment of the present application, the preset distance is not specifically limited. For example, the preset distance can be 200 meters or 500 meters.
[0085] In this implementation, the electronic device determines the starting position and the ending position of the photo-taking from the target navigation route through a single click operation by the user, thereby simplifying the operation process and optimizing the user experience.
[0086] In a second implementation method, the target operation includes a second operation and a third operation, and this step may be: in response to the second operation, the electronic device determines the starting position of photographing corresponding to the second operation on the target navigation route; in response to the third operation, the electronic device determines the ending position of photographing corresponding to the third operation on the target navigation route.
[0087] The electronic device determines the starting position and the ending position of the photo shooting according to the positions triggered by the second operation and the third operation on the target navigation route. In the embodiment of the present application, the triggering order of the second operation and the third operation is not specifically limited. When the electronic device receives two click operations acting on the target navigation route, based on the positions of the two click positions on the target navigation route, the position close to the navigation starting position is determined as the starting position of the photo shooting, and the position close to the navigation ending position is determined as the ending position of the photo shooting. In this implementation, the navigation starting position and the navigation ending position are determined by receiving two operations of the user, so that the determined navigation starting position and the navigation ending position are more in line with the user's expectations, and the accuracy of determining the navigation starting position and the navigation ending position is improved.
[0088] S203, the electronic device obtains the position of the vehicle while the vehicle is traveling based on the target navigation route.
[0089] In some embodiments, the electronic device is connected to the vehicle in communication, and the vehicle sends the current location information of the vehicle to the electronic device through the communication connection. In some embodiments, the electronic device is a vehicle-mounted terminal of the vehicle, and the electronic device determines the location of the vehicle according to its own positioning system.
[0090] S204, when the position of the vehicle is between the photographing start position and the photographing end position, the electronic device controls the external digital video recorder of the vehicle to take a photo.
[0091] The electronic device compares the position of the vehicle with the starting position of photographing, and when the position of the vehicle matches the starting position of photographing, the electronic device controls the external digital video recorder of the vehicle to start photographing. Also, the position of the vehicle is compared with the ending position of photographing, and when the position of the vehicle matches the ending position of photographing, the electronic device controls the external digital video recorder of the vehicle to stop photographing.
[0092] The matching of the vehicle position with the starting position for taking a photo indicates that the vehicle position coincides with the starting position for taking a photo or the distance between the vehicle position and the starting position for taking a photo is less than a preset value, wherein the preset value can be set as required, for example, the preset value can be 5 meters or 3 meters, etc. The principle of matching the vehicle position with the ending position for taking a photo is the same as the principle of matching the vehicle position with the starting position for taking a photo, and will not be described in detail here.
[0093] It should be noted that the electronic device controls the external digital video recorder of the vehicle to take photos at a preset frequency between the starting position and the ending position of the photo shooting, wherein the preset frequency can be set according to user needs, and in the embodiment of the present application, the preset frequency is not specifically limited. For example, the preset frequency can be one photo every 10 seconds, one photo every minute, or one photo every two minutes, etc.
[0094] Another point that needs to be explained is that after marking the starting and ending positions of taking photos based on the target navigation route, the electronic device can store the starting and ending positions of taking photos as a historical photo section. When the vehicle passes through the historical photo section in other navigation routes, the starting and ending positions of taking photos can be automatically marked based on the historical photo section, and photos can be taken based on the starting and ending positions of taking photos.
[0095] In an embodiment of the present application, the target navigation route is displayed in the navigation interface, and the starting and ending positions for taking photos marked by the user are received based on the target navigation route. Therefore, when the vehicle is driving based on the target navigation position, the vehicle can determine whether to take photos by monitoring the current position, thereby enriching the function of the external digital video recorder, allowing it to be fully utilized and preventing waste of resources.
[0096] See also Figure 3 , which shows a flow chart of a method for controlling a vehicle to take photos provided by the present application. As an example but not a limitation, the method is applied to an electronic device in a vehicle.
[0097] S301, the electronic device displays a target navigation route in a navigation interface based on a navigation start position and a navigation end position.
[0098] The principle of this step is the same as that of step S201 and will not be repeated here.
[0099] S302, the electronic device determines a starting position and an ending position for photographing on the target navigation route in response to a target operation on the target navigation route.
[0100] The principle of this step is the same as that of step S202 and will not be repeated here.
[0101] S303, the electronic device obtains the position of the vehicle while the vehicle is traveling based on the target navigation route.
[0102] The principle of this step is the same as that of step S203 and will not be repeated here.
[0103] S304: When the position of the vehicle is between the photographing start position and the photographing end position, the electronic device determines that the environment where the vehicle is located meets the photographing conditions.
[0104] When the position of the vehicle is between the starting position and the ending position of the photographing, the electronic device obtains the current environment information of the vehicle and determines whether the environment information meets the photographing condition. The photographing condition includes at least one of the obstacle ratio condition, obstacle distance condition, vehicle speed condition, environment condition, and time condition.
[0105] In some embodiments, the photographing condition includes an obstacle ratio condition; determining whether the environment in which the vehicle is located meets the photographing condition includes: when the vehicle is driving, controlling an external digital video recorder of the vehicle to collect video data; identifying the video screen in the video data to obtain the ratio of the obstacle of the vehicle in the screen of the video data; if the ratio is less than the preset ratio set in the obstacle ratio condition, determining that the environment in which the vehicle is located meets the obstacle ratio condition.
[0106] Prior to this step, the electronic device uses an obstacle recognition model to determine obstacles in the video screen. The obstacles include models of pedestrians, electric vehicles, trucks, cars, etc. When an obstacle is detected in the video screen, the proportion of the obstacle in the current screen is determined. If the proportion is less than the preset proportion, it is determined that the photo conditions are met and the photo is started. If the proportion is greater than the preset proportion, it is determined that the photo conditions are not met and the photo is not started.
[0107] It should be noted that when the video screen includes multiple obstacles, the electronic device determines the sum of the proportions of the multiple obstacles in the screen as the obstacle proportion. The obstacles are obstacles of the same type or obstacles of different types, which is not specifically limited in the embodiment of the present application. In addition, the preset proportion can be set as needed, which is not specifically limited in the embodiment of the present application. For example, the preset proportion can be 1 / 9 of the video screen.
[0108] In this implementation, obstacles in the video screen are identified so as to be accurately distinguished from other scenery or photographed scenes in the screen, and when the obstacle ratio is less than a preset ratio, it is determined that the vehicle meets the obstacle ratio condition, thereby reducing the proportion of objects in the photographed photos, so that the photographed photos can show more scenery to meet user needs.
[0109] In some embodiments, the photographing condition includes an obstacle distance condition; determining that the environment in which the vehicle is located meets the photographing condition includes: the electronic device determines the type of obstacle and the area of the obstacle in the video screen; when the type of the obstacle determines the preset area corresponding to the obstacle, when the area of the obstacle is smaller than the area corresponding to the obstacle, it is determined that the obstacle distance condition is met.
[0110] For example, when the obstacle is identified as a car, it can be determined whether the distance between the car and the current vehicle meets the obstacle distance condition based on the area of the rear windshield of the car. When the size of the rear windshield of the car exceeds the predetermined value, it means that the car is too close to the front car, and the current obstacle distance condition is not met.
[0111] In this implementation, obstacles in the video screen are identified so as to be accurately distinguished from other scenery or photographed scenes in the screen, and when the distance between the obstacle and the vehicle is greater than a preset distance, it is determined that the vehicle meets the obstacle distance condition, thereby reducing the proportion of objects in the photographed photos, so that the photographed photos can show more scenery to meet user needs.
[0112] In some embodiments, the photographing condition includes a vehicle speed condition; determining that the environment in which the vehicle is located meets the photographing condition includes: the electronic device obtains the vehicle's driving speed; if the driving speed is less than a preset speed set in the vehicle speed condition, determining that the environment in which the vehicle is located meets the vehicle speed condition.
[0113] The preset speed can be set as needed, and in the embodiment of the present application, the preset speed is not specifically limited. For example, the preset speed can be 80 kilometers per hour.
[0114] In this implementation, photos are taken when the vehicle speed is less than a preset speed, thereby preventing the problem of unclear photos caused by excessive speed.
[0115] In some embodiments, if the driving speed is not less than the preset speed set in the speed condition, a prompt message is output, and the prompt message is used to prompt the driver to slow down the speed to take pictures.
[0116] The prompt message may be a voice message, for example, the prompt message may be "There is a beautiful view ahead, slow down so I can take a photo for you." In this implementation, the prompt message reminds the driver to slow down, thereby preventing the driver from failing to take photos of the desired beautiful view due to excessive speed, thereby optimizing the user experience.
[0117] In some embodiments, the photographing conditions include environmental conditions; determining that the environment in which the vehicle is located meets the photographing conditions includes: obtaining the light intensity and rainfall intensity of the environment in which the vehicle is located; if the light intensity is greater than the preset light intensity set in the environmental conditions, and the rainfall intensity is less than the preset rainfall intensity set in the environmental conditions, it is determined that the environment in which the vehicle is located meets the environmental conditions.
[0118] In this implementation, by detecting the light intensity and rainfall intensity, shooting is performed when the light intensity and rainfall intensity are appropriate, thereby ensuring the clarity of the captured image and preventing the problem of wasting shooting resources due to unclear captured images.
[0119] In some embodiments, the photographing condition includes a time condition; determining that the environment in which the vehicle is located meets the photographing condition includes: the electronic device obtains the current time point; if the current time point is within a preset time period set in the time condition, determining that the environment in which the vehicle is located meets the time condition.
[0120] The preset time period can be set as needed. In the embodiment of the present application, the preset time period is not specifically limited. For example, the preset time period can be 7:00-18:00 in the morning in summer.
[0121] In this implementation, by shooting within a preset time period, it is ensured that there is sufficient light when taking photos, thereby ensuring the clarity of the taken photos.
[0122] S305, the electronic device controls the external digital video recorder of the vehicle to take photos.
[0123] This step is the same as the principle of the electronic device controlling the external digital video recorder of the vehicle to take photos in step S204, and will not be repeated here.
[0124] In an embodiment of the present application, the target navigation route is displayed in the navigation interface, and the starting and ending positions for taking photos marked by the user are received based on the target navigation route. Therefore, when the vehicle is driving based on the target navigation position, the vehicle can determine whether to take photos by monitoring the current position, thereby enriching the function of the external digital video recorder, allowing it to be fully utilized and preventing waste of resources.
[0125] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0126] See also Figure 4 , which shows a schematic diagram of the structure of a device for controlling vehicle photography provided by the present application, and includes various units for executing various steps in the above embodiments, see Figure 4 , the device for controlling vehicle photography comprises:
[0127] The display unit 401 is used to display the target navigation route in the navigation interface based on the navigation start position and the navigation end position;
[0128] A determination unit 402, configured to determine a starting position and an ending position of photographing on the target navigation route in response to a target operation on the target navigation route;
[0129] An acquisition unit 403 is used to acquire the position of the vehicle while the vehicle is traveling based on the target navigation route;
[0130] The control unit 404 is used to control the external digital video recorder of the vehicle to take photos when the position of the vehicle is between the starting position and the ending position of the photo shooting.
[0131] In some embodiments, the control unit 404 is used to determine that the environment where the vehicle is located meets the photographing conditions when the position of the vehicle is between the photographing start position and the photographing end position; and control the external digital video recorder of the vehicle to take photos.
[0132] In some embodiments, the photographing condition includes an obstacle ratio condition;
[0133] The control unit 404 is used to control the external digital video recorder of the vehicle to collect video data when the vehicle is traveling; identify the video screen in the video data to obtain the proportion of the obstacle of the vehicle in the screen of the video data; if the proportion is less than the preset proportion set in the obstacle proportion condition, it is determined that the environment where the vehicle is located meets the obstacle proportion condition.
[0134] In some embodiments, the photographing condition includes a vehicle speed condition;
[0135] The control unit 404 is used to obtain the driving speed of the vehicle; if the driving speed is less than the preset speed set in the speed condition, it is determined that the environment where the vehicle is located meets the speed condition.
[0136] In some embodiments, the control unit 404 is further used to output a prompt message if the driving speed is not less than a preset speed set in the speed condition, and the prompt message is used to prompt the driver to slow down the vehicle to take pictures.
[0137] In some embodiments, the photographing conditions include environmental conditions;
[0138] The control unit 404 is used to obtain the light intensity and rainfall intensity of the environment where the vehicle is located; if the light intensity is greater than the preset light intensity set in the environmental condition, and the rainfall intensity is less than the preset rainfall intensity set in the environmental condition, it is determined that the environment where the vehicle is located meets the environmental condition.
[0139] In some embodiments, the photographing condition includes a time condition;
[0140] The control unit 404 is used to obtain a current time point; if the current time point is within a preset time period set in the time condition, it is determined that the environment where the vehicle is located meets the time condition.
[0141] In some embodiments, the target operation includes a first operation;
[0142] The determination unit 402 is used to determine a first position corresponding to the first operation on the target navigation route in response to the first operation performed on the target navigation route; and determine two positions on the target navigation route that are a preset distance away from the first position as the starting position and the ending position of the photographing, respectively.
[0143] In some embodiments, the target operation includes a second operation and a third operation;
[0144] The determination unit 402 is used to determine, in response to the second operation, a starting position for photographing corresponding to the second operation on the target navigation route; and in response to the third operation, determine an ending position for photographing corresponding to the third operation on the target navigation route.
[0145] In an embodiment of the present application, the target navigation route is displayed in the navigation interface, and the starting and ending positions for taking photos marked by the user are received based on the target navigation route. Therefore, when the vehicle is driving based on the target navigation position, the vehicle can determine whether to take photos by monitoring the current position, thereby enriching the function of the external digital video recorder, allowing it to be fully utilized and preventing waste of resources.
[0146] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50, such as a program for controlling a vehicle to take photos. When the processor 50 executes the computer program 52, the steps in the above-mentioned various embodiments of the method for controlling a vehicle to take photos are implemented, such as Figure 2 Alternatively, when the processor 50 executes the computer program 52, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 4 Functions of modules 401 to 404 are shown.
[0147] Exemplarily, the computer program 52 may be divided into one or more modules / units, which are stored in the memory 51 and executed by the processor 50 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the electronic device 5 for controlling the vehicle to take photos. For example, the computer program 52 may be divided into a display unit, a determination unit, an acquisition unit, and a control unit, and the specific functions of each module are as follows:
[0148] The display unit 401 is used to display the target navigation route in the navigation interface based on the navigation start position and the navigation end position;
[0149] A determination unit 402, configured to determine a starting position and an ending position of photographing on the target navigation route in response to a target operation on the target navigation route;
[0150] An acquisition unit 403 is used to acquire the position of the vehicle while the vehicle is traveling based on the target navigation route;
[0151] The control unit 404 is used to control the external digital video recorder of the vehicle to take photos when the position of the vehicle is between the starting position and the ending position of the photo shooting.
[0152] The electronic device 5 may be any vehicle controller having a relay protection function. The electronic device 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 5 may also include input and output devices, network access devices, buses, etc.
[0153] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0154] The memory 51 may be an internal storage unit of the electronic device 5, such as a hard disk or memory of the electronic device 5. The memory 51 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 51 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
[0155] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0158] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0159] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0160] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0161] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0162] The embodiments of the present application further provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0163] The embodiment of the present application also provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0164] The present application also provides a vehicle, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of controlling the vehicle to take photos as described above when executing the computer program.
[0165] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling a vehicle to take photos, characterized in that: The method comprises: Based on the navigation start position and the navigation end position, the target navigation route is displayed in the navigation interface; In response to a target operation acting on the target navigation route, determining a starting position and an ending position of photographing on the target navigation route; Acquiring the position of the vehicle while the vehicle is traveling based on the target navigation route; When the position of the vehicle is between the photographing start position and the photographing end position, the external digital video recorder of the vehicle is controlled to take photos.
2. The method according to claim 1, characterized in that When the position of the vehicle is between the photographing start position and the photographing end position, controlling the external digital video recorder of the vehicle to take a photo comprises: When the position of the vehicle is between the photographing start position and the photographing end position, determining that the environment where the vehicle is located meets the photographing condition; An external digital video recorder of the vehicle is controlled to take pictures.
3. The method according to claim 2, characterized in that The photographing conditions include obstacle ratio conditions; The determining that the environment where the vehicle is located meets the photographing condition includes: When the vehicle is traveling, controlling an external digital video recorder of the vehicle to collect video data; Identify the video frame in the video data to obtain the proportion of the obstacle to the vehicle in the frame of the video data; If the proportion is less than the preset proportion set in the obstacle proportion condition, it is determined that the environment in which the vehicle is located meets the obstacle proportion condition.
4. The method according to claim 2, characterized in that The photographing conditions include vehicle speed conditions; The determining that the environment where the vehicle is located meets the photographing condition includes: Get the vehicle's speed; If the driving speed is less than the preset speed set in the vehicle speed condition, it is determined that the environment where the vehicle is located meets the vehicle speed condition.
5. The method according to claim 4, characterized in that The method further comprises: If the driving speed is not less than the preset speed set in the speed condition, a prompt message is output, and the prompt message is used to prompt the driver to slow down the speed to take pictures.
6. The method according to claim 2, characterized in that The photographing conditions include environmental conditions; The determining that the environment where the vehicle is located meets the photographing condition includes: Obtaining the light intensity and rainfall intensity of the environment where the vehicle is located; If the light intensity is greater than the preset light intensity set in the environmental condition, and the rainfall intensity is less than the preset rainfall intensity set in the environmental condition, it is determined that the environment where the vehicle is located meets the environmental condition.
7. The method according to claim 2, characterized in that The photographing conditions include time conditions; The determining that the environment where the vehicle is located meets the photographing condition includes: Get the current time point; If the current time point is within the preset time period set in the time condition, it is determined that the environment where the vehicle is located meets the time condition.
8. The method according to claim 1, characterized in that The target operation includes a first operation; The step of determining a photographing start position and a photographing end position on the target navigation route in response to a target operation on the target navigation route comprises: In response to a first operation acting on the target navigation route, determining a first position corresponding to the first operation on the target navigation route; Two positions on the target navigation route, which are at a preset distance from the first position, are respectively determined as the photographing start position and the photographing end position.
9. The method according to claim 1, characterized in that The target operation includes a second operation and a third operation; The step of determining a photographing start position and a photographing end position on the target navigation route in response to a target operation on the target navigation route comprises: In response to the second operation, determining a photo-taking starting position corresponding to the second operation on the target navigation route; In response to the third operation, a photo-taking end position corresponding to the third operation is determined on the target navigation route.
10. A vehicle, characterized in that: The vehicle includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for controlling a vehicle to take photos as described in any one of claims 1 to 9.