Vehicle-mounted camera control method, device and equipment, storage medium and vehicle
By switching the mode of the vehicle-mounted camera and establishing a memory connection when it receives a service request, the problem of startup delay of the vehicle-mounted camera is solved, clear image data is obtained in a timely manner, and resource consumption and memory usage are reduced.
Patent Information
- Application Number
- CN202410946026.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-15
AI Technical Summary
The vehicle-mounted camera requires a certain delay to be powered on after being started, resulting in the inability to obtain clear image data in time and unable to meet driving needs.
By receiving requests from the business system, the vehicle-mounted camera in the dormant state is controlled to switch to the working mode, and a connection is established with the memory in the working mode for shooting and data storage to ensure timely acquisition of image data.
It realizes the timely wake-up of the vehicle camera and the effective acquisition of image data, provides the video data required by the user for driving, reduces resource consumption, and saves memory resources.
Smart Images

Figure CN118784976A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to the field of vehicle-mounted camera control, and specifically to a control method, device, equipment, storage medium and vehicle for a vehicle-mounted camera. Background Art
[0002] With the rapid development of vehicle industry technology, in-vehicle intelligent driving systems are also booming. In in-vehicle intelligent systems, visual recognition systems are an important technical means. Visual recognition systems refer to vehicles that can collect image data around the vehicle through on-board cameras, and identify and judge based on the collected image data to assist vehicle driving. Therefore, the prospects for in-vehicle camera control systems are broad.
[0003] In the case of passing, after the vehicle starts, if a certain on-board camera is needed to take pictures, the on-board camera will be controlled to be powered on. However, it takes a certain delay from the on-board camera being powered on to normal operation, so the vehicle cannot obtain image data through the on-board camera in time, or the obtained image data is not clear enough, which makes it impossible to meet driving needs. Summary of the invention
[0004] The object of the present invention is to provide a control method, device, equipment, storage medium and vehicle for a vehicle-mounted camera, which are used to obtain image data required for vehicle driving in a timely and accurate manner through the vehicle-mounted camera.
[0005] According to a first aspect of the present application, a method for controlling a vehicle-mounted camera is provided, the method comprising: a vehicle-mounted terminal receives a service request from a first service system, the first service request being used to request acquisition of image data of a target area; when it is determined that the target vehicle-mounted camera is in a sleep state, the vehicle-mounted terminal controls the target vehicle-mounted camera to switch from a sleep mode to a working mode; the shooting area of the target vehicle-mounted camera includes the target area requested to be acquired; when the vehicle-mounted camera is in the sleep mode, the shooting frequency of the vehicle's vehicle-mounted camera is lower than a preset threshold and no connection is established with the vehicle's memory, and in this working mode, the vehicle's vehicle-mounted camera establishes a communication connection with the vehicle's memory; the vehicle-mounted terminal controls the target vehicle-mounted camera to shoot, and stores the shot image data in the vehicle's memory, so that the first service system acquires the image data from the vehicle's memory.
[0006] According to the above technical means, after receiving a service request from the first business system for requesting to obtain image data of the target area, the vehicle-mounted terminal can control the target vehicle-mounted camera to switch from sleep mode to working mode when it is determined that the target vehicle-mounted camera is in sleep mode. Since the vehicle-mounted camera is in power-on mode in sleep mode, the vehicle can wake up the vehicle-mounted camera in time. At the same time, since the vehicle-mounted camera is in sleep mode, the shooting frequency of the vehicle's vehicle-mounted camera is lower than the preset threshold and no connection is established with the vehicle's memory. In this working mode, the vehicle's vehicle-mounted camera establishes a communication connection with the vehicle's memory, controls the target vehicle-mounted camera to shoot, and stores the captured image data in the vehicle's memory, so that the first business system obtains image data from the vehicle's memory. Thereby providing effective video data for user driving.
[0007] In a possible implementation, the above-mentioned "receiving a business request from the first business system" includes: in response to vehicle startup, controlling multiple vehicle-mounted cameras set in the vehicle to power on, and establishing a data link between the multiple vehicle-mounted cameras and the vehicle's memory, so that the multiple vehicle-mounted cameras enter a sleep mode; the above-mentioned multiple vehicle-mounted cameras include the target vehicle-mounted camera that needs to be called.
[0008] According to the above technical means, a service request from the first service system is received, a vehicle startup is responded to, multiple vehicle cameras set in the vehicle are controlled to be powered on, and a data link is established between the multiple vehicle cameras and the vehicle memory, so that the multiple vehicle cameras enter a sleep mode. The resource consumption of the vehicle cameras can be greatly reduced.
[0009] In a possible implementation, the above-mentioned "determining that the target vehicle-mounted camera is in a dormant state" includes: when the first business system has not used the image data captured by the target vehicle-mounted camera of the vehicle, detecting whether the target vehicle-mounted camera is connected to the memory; if the target vehicle-mounted camera is not connected to the memory, determining that the target vehicle-mounted camera is in a dormant state.
[0010] According to the above technical means, when the first business system has not used the image data captured by the vehicle target onboard camera, the vehicle system detects whether the target onboard camera is connected to the memory, and if the onboard camera is not connected to the memory, it is determined that the target onboard camera is in a dormant state. The vehicle camera situation can be better managed.
[0011] In a possible implementation, the method further includes: upon determining that the business processing of the first business system is completed, disconnecting the data link between the target camera and the memory, and deleting the image data captured by the vehicle-mounted camera in the memory.
[0012] According to the above technical means, after the management service determines that the business processing of the first business system is completed, it disconnects the data link between the target camera and the memory and deletes the image data captured by the vehicle-mounted camera in the memory, which can effectively save memory resources and improve the system computing power.
[0013] In a possible implementation, the method further includes: determining whether a scene in which the vehicle is located has changed; and in the case where the scene in which the vehicle is located has changed, determining that a business process of the first business system is completed.
[0014] According to the above technical means, the system determines whether the scene in which the vehicle is located has changed, and in the case where the scene in which the vehicle is located has changed, determines that the business processing of the first business system is completed.
[0015] In a possible implementation, the method further includes: when the scene in which the vehicle is located changes, determining a first vehicle-mounted camera that matches the changed scene; the first vehicle-mounted camera is different from the target vehicle-mounted camera; controlling the first vehicle-mounted camera to switch from sleep mode to working mode, and controlling the target vehicle-mounted camera to switch from working mode to sleep mode, and deleting image data captured by the target vehicle-mounted camera in the memory.
[0016] According to the above technical means, when the scene in which the vehicle is located changes, the first vehicle-mounted camera matching the changed scene is determined, the first vehicle-mounted camera is controlled to switch from sleep mode to working mode, the target vehicle-mounted camera is controlled to switch from working mode to sleep mode, and the image data captured by the target vehicle-mounted camera in the memory is deleted. This can effectively reduce resource consumption and memory usage.
[0017] According to a second aspect provided by the present application, a camera control device is provided, including: an acquisition unit, a determination unit and a control unit, the acquisition unit being used to acquire a business request from a first business system, the business request being used to request acquisition of image data of a target area; the determination unit being used to determine whether a target vehicle-mounted camera is in a sleep mode; the control unit being used to control the target vehicle-mounted camera to switch from the sleep mode to the working mode; the shooting area of the target vehicle-mounted camera includes the target area; in the sleep mode, the vehicle-mounted camera of the vehicle is in a powered-on state, but the shooting frequency is lower than a preset threshold and is not connected to the memory of the vehicle, and in the working mode, the vehicle-mounted camera of the vehicle establishes a communication connection with the memory of the vehicle;
[0018] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0019] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0020] According to a fifth aspect provided by the present application, a vehicle is provided, comprising the electronic device provided by the third aspect above.
[0021] Therefore, the above technical features of the present application have the following beneficial effects:
[0022] (1) The present application can manage that after the vehicle terminal receives a service request from the first service system for requesting to obtain image data of the target area, when it is determined that the target vehicle camera is in a dormant state, it can control the target vehicle camera to switch from the dormant mode to the working mode. Since the vehicle camera is in the power-on mode in the dormant mode, the vehicle can wake up the vehicle camera in time. At the same time, since the vehicle camera is in the dormant mode, the shooting frequency of the vehicle's vehicle camera is lower than the preset threshold and no connection is established with the vehicle's memory. In this working mode, the vehicle's vehicle camera establishes a communication connection with the vehicle's memory, controls the target vehicle camera to shoot, and stores the captured image data in the vehicle's memory, so that the first service system obtains the image data from the vehicle's memory. This provides effective video data for the user's driving.
[0023] (2) The present application can accept a service request from the first service system, respond to vehicle startup, control the power-on of multiple vehicle-mounted cameras set in the vehicle, and establish a data link between the multiple vehicle-mounted cameras and the vehicle memory, so that the multiple vehicle-mounted cameras enter a sleep mode. This can greatly reduce the resource consumption of the vehicle-mounted cameras.
[0024] (3) In the case where the first service system has not used the image data captured by the vehicle target vehicle camera, the vehicle system can detect whether the target vehicle camera is connected to the memory. If the vehicle camera is not connected to the memory, it is determined that the target vehicle camera is in a dormant state. This can better manage the vehicle camera situation.
[0025] (4) This application can, through the management service, determine that the business processing of the first business system is completed, disconnect the data link between the target camera and the memory, and delete the image data captured by the vehicle camera in the memory. This can effectively save memory resources and improve the system computing power.
[0026] (5) The present application can determine whether the scene in which the vehicle is located has changed through the system, and when the scene in which the vehicle is located has changed, determine that the business processing of the first business system is completed.
[0027] (6) When the scene in which the vehicle is located changes, the present application can determine the first vehicle-mounted camera that matches the changed scene, control the first vehicle-mounted camera to switch from sleep mode to working mode, control the target vehicle-mounted camera to switch from working mode to sleep mode, and delete the image data captured by the target vehicle-mounted camera in the memory. This can effectively reduce resource consumption and memory usage.
[0028] It should be noted that the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.
[0029] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0031] Figure 1 is a structural schematic diagram of a control system according to an exemplary embodiment;
[0032] Figure 2 is a flow chart of a method for controlling a vehicle-mounted camera according to an exemplary embodiment;
[0033] Figure 3 is a schematic diagram of another method for controlling a vehicle-mounted camera according to an exemplary embodiment;
[0034] Figure 4 is a schematic diagram of a camera control device according to an exemplary embodiment;
[0035] Figure 5 The diagram is a schematic diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0038] For ease of understanding, the control method of the vehicle-mounted camera provided by the present application is specifically introduced below in conjunction with the accompanying drawings. The execution subject of the method provided by the present application can be a vehicle or a device in the vehicle (such as a vehicle-mounted terminal, a system (such as a vehicle-mounted system), etc. The following description is taken as an example of the execution subject being a vehicle terminal.
[0039] For ease of understanding, the control method of the vehicle-mounted camera provided in this application is specifically introduced below with reference to the accompanying drawings.
[0040] In one example, Figure 1 As shown, the present application provides a structure of a control system, which can be applied to a vehicle, and the control system can include a vehicle-mounted terminal and multiple vehicle-mounted cameras. The vehicle-mounted terminal is connected to the multiple vehicle-mounted cameras respectively. For example, the multiple vehicle-mounted cameras can include a front-view camera, a rear-view camera, a periscopic camera, and a surround-view camera.
[0041] Among them, the vehicle-mounted terminal, as the driving entity, can respond to the driver's operations and call and use multiple vehicle-mounted cameras according to needs.
[0042] Among them, the front-view camera is used to obtain image data of the target area in front of the vehicle, the rear-view camera is used to obtain image data of the target area behind the vehicle, the surround-view camera is used to obtain image data of the target areas on both sides of the vehicle, and the surround-view camera is used to obtain overall image data around the vehicle.
[0043] Figure 2 is a flow chart of a method for controlling a vehicle-mounted camera according to an exemplary embodiment. Figure 2 As shown, the process may include the following steps:
[0044] S201. The vehicle-mounted terminal receives a service request from a first service system.
[0045] The first business system is a system configured for the vehicle, and the first business system needs image data collected by the vehicle for business processing to assist the driving of the vehicle. For example, the first business system may be an automatic driving system, a multimedia system, a radar system, etc. The business request may be used to request to obtain image data of a target area. The target area may be an area around the vehicle. For example, it may be an area on both sides of the vehicle or an area behind the vehicle.
[0046] In a possible implementation, in response to the driver's driving operation, the first service system may send a service request to the vehicle terminal. Correspondingly, the vehicle terminal receives the service request from the first service system.
[0047] The driving operation may refer to the operation of the vehicle by the driver, for example, the driving operation may be a lane change operation or a reverse operation.
[0048] In another possible implementation, in response to the vehicle starting or during the vehicle driving, the first service system may send a service request to the vehicle terminal. Correspondingly, the vehicle terminal receives the service request from the first service system.
[0049] In one possible scenario, the first service system is a radar system. After the vehicle is started, in order to detect whether there are obstacles around the vehicle that affect the vehicle's driving, the first service system can send a service request to the vehicle terminal. In this way, the vehicle terminal can respond to the service request of the first service system and collect image data around the vehicle through the vehicle camera.
[0050] In another possible scenario, the vehicle is in an automatic driving mode, and the first service system is an automatic driving system. In order to detect the driving conditions of vehicles around the vehicle, the first service system may send a service request to the vehicle-mounted terminal.
[0051] S202: When it is determined that the target vehicle-mounted camera is in the sleep mode, control the target vehicle-mounted camera to switch from the sleep mode to the working mode.
[0052] The target vehicle-mounted camera is a vehicle-mounted camera whose shooting area includes the target area among multiple vehicle-mounted cameras configured for the vehicle.
[0053] In the present application, in sleep mode, the vehicle camera is powered on, but the shooting frequency is lower than the preset threshold, and no connection is established with the vehicle's memory. The preset threshold can be the shooting frequency when the vehicle camera is working normally. In working mode, the shooting frequency of the vehicle camera is adjusted to the normal frequency, and a data connection is established with the vehicle's memory, and the acquired target area image data is transmitted in real time. The vehicle's memory can be a double data rate synchronous dynamic random access memory (DDR SDRAM).
[0054] It should be noted that, in this application, establishing a connection with the vehicle's memory means that the vehicle-mounted camera can directly store the captured image data in the vehicle's memory. Not establishing a connection with the vehicle's memory means that the vehicle-mounted camera can capture image data, but cannot store the image data or can directly delete the image data, thereby reducing the occupied memory.
[0055] In one scenario, after the vehicle is started, all configured onboard cameras can be controlled to enter sleep mode. That is, the vehicle can control all onboard cameras to power on, but no data link between the onboard cameras and the memory is established. In this way, when the vehicle needs to collect image data through the onboard cameras, the onboard cameras in sleep mode can be quickly awakened, reducing the power-on time of the onboard cameras, thereby ensuring that the image data required by the first business system can be collected in a timely manner through the onboard cameras.
[0056] In a possible implementation, the vehicle terminal can determine whether the target vehicle camera is in sleep mode by detecting the connection between the target vehicle camera and the memory. As can be seen from S201, if the target vehicle camera is not connected to the memory, it means that the target vehicle camera is in sleep mode; if the target vehicle camera is connected to the memory, it means that the target vehicle camera is in working mode.
[0057] In another possible implementation, different status identifiers can be set for vehicle cameras in different states. The status identifier can be a number or a letter or a combination of numbers and letters. For example, the status identifier of a vehicle camera in a dormant state can be 0, and the status identifier of a vehicle camera in a working state can be 1. When a camera in a dormant state enters a working state from a dormant state, the vehicle terminal can change the status identifier of the camera from 0 to 1; when a camera in a working state enters a dormant mode from a working mode, the vehicle terminal can change the status identifier of the camera from 1 to 0. In this way, the vehicle terminal can accurately determine the status of each vehicle camera based on the status identifier of the vehicle camera.
[0058] In one scenario, the first business system is a new system added to the vehicle. For example, the first business system can be an automatic driving system, a multimedia system, a radar system, etc. The vehicle-mounted terminal can detect whether the target vehicle-mounted camera is connected to the memory, or whether it is connected to the memory. If the target vehicle camera is already connected to the memory, the vehicle-mounted terminal can transmit the image data taken by the target vehicle-mounted camera in the memory to the first business system, or the vehicle-mounted terminal can send information to the first business system indicating that the image data taken by the target vehicle-mounted camera can be directly obtained from the memory. In this way, the first business system can directly obtain the image data taken by the target vehicle-mounted camera, and then perform business processing based on the image data.
[0059] In this application, when it is determined that the target camera is in sleep mode, the vehicle terminal can control the target vehicle camera to switch from sleep mode to working mode. For example, the vehicle terminal can establish a connection between the target vehicle camera and the memory, and adjust the shooting frequency of the target vehicle camera to the frequency during normal operation. In this way, the target vehicle camera can enter the working mode.
[0060] S203, controlling the target vehicle-mounted camera to take pictures, and storing the taken image data into the vehicle's memory.
[0061] In one possible implementation, the vehicle terminal responds to the driver's driving operation and determines the target camera that the driver actively needs to use. The vehicle terminal can connect the target camera to the memory and put it into working mode, so that the target vehicle camera can take pictures and store the taken image data in the vehicle's memory.
[0062] In one possible scenario, the vehicle terminal determines that the vehicle is changing lanes to the left in response to the driver's driving operation, and the on-board terminal can determine that a surround view camera (that is, the target on-board camera) needs to be used for shooting. In this scenario, the on-board terminal can wake up the surround view camera in a dormant state and control the surround view camera to work mode. The surround view camera in working mode can capture the image data required when the vehicle changes lanes, and store the captured image data in the vehicle's memory through a data link with the memory. In this way, the automatic driving system or the system that assists the vehicle in changing lanes can obtain the image data captured by the surround view camera from the memory, and then display it on the vehicle's display screen to assist the driver in driving.
[0063] In another possible scenario, the vehicle terminal responds to the user's driving operation and performs a reverse parking operation. If it is determined that a surround view camera (i.e., the target vehicle camera) needs to be used, the vehicle terminal can connect the surround view camera to the shared memory and update its status. The vehicle camera can store the captured image data in the memory through the data link.
[0064] In another possible implementation, the vehicle-mounted terminal controls the target vehicle-mounted camera to shoot in response to the startup of the vehicle or business needs during the driving of the vehicle, and transmits the shot image data to the vehicle memory.
[0065] based on Figure 2 According to the technical solution, in the present application, after receiving a service request from the first business system for requesting to obtain image data of the target area, the vehicle-mounted terminal can control the target vehicle-mounted camera to switch from sleep mode to working mode when it is determined that the target vehicle-mounted camera is in sleep mode. Since the vehicle-mounted camera is in a powered-on state in sleep mode, the vehicle can wake up the vehicle-mounted camera in time. At the same time, since the vehicle-mounted camera is in sleep mode, the shooting frequency of the vehicle's vehicle-mounted camera is lower than the preset threshold and no connection is established with the vehicle's memory. In this working mode, the vehicle's vehicle-mounted camera establishes a communication connection with the vehicle's memory, controls the target vehicle-mounted camera to shoot, and stores the captured image data in the vehicle's memory, so that the first business system obtains image data from the vehicle's memory. Thereby providing effective video data for user driving.
[0066] In one embodiment, Figure 3 As shown, the method provided in the present application may further include S301.
[0067] S301. When it is determined that the business processing of the first business system is completed, disconnect the data link between the target camera and the memory, and delete the image data captured by the target vehicle-mounted camera in the memory.
[0068] The completion of the business processing of the first business system may mean that the first business system does not need to use the image data captured by the target vehicle-mounted camera.
[0069] In one possible implementation, the vehicle-mounted terminal may determine whether the scene in which the vehicle is located has changed, and if the scene in which the vehicle is located has changed, determine that the business processing of the first business system is completed.
[0070] In one example, the vehicle is in a lane-changing scenario at the current time, and in response to the completion of the vehicle's lane change, the vehicle switches from the lane-changing scenario to the normal driving scenario. In the lane-changing scenario, the vehicle needs to shoot through the cameras on both sides of the vehicle (that is, the target vehicle-mounted cameras), and store the captured image data in the memory, so that the automatic driving system (that is, the first business system) can obtain the image data on both sides of the vehicle from the memory to assist the vehicle in changing lanes. In the normal driving scenario, the vehicle no longer needs to use the target vehicle-mounted camera and enter the normal driving scenario. That is, the vehicle-mounted terminal can determine that the business processing of the first business system has been completed after the vehicle's lane change is completed. At this point, the vehicle-mounted terminal can control the target vehicle-mounted camera to re-enter the sleep mode. At the same time, the vehicle-mounted terminal can delete the image data captured by the target vehicle-mounted camera stored in the memory. Thereby, memory is saved.
[0071] In another example, when the scene in which the target vehicle is located changes, a first vehicle-mounted camera matching the changed scene is determined; the first vehicle-mounted camera is different from the target vehicle-mounted camera. The vehicle-mounted terminal can control the first vehicle-mounted camera to switch from sleep mode to working mode, control the target vehicle-mounted camera to switch from working mode to sleep mode, and delete the image data captured by the target vehicle-mounted camera in the memory.
[0072] based on Figure 3 According to the technical solution, the present application determines that the business processing of the first business system is completed, and can promptly disconnect the target camera from the memory, and delete the image data taken by the target vehicle-mounted camera in the memory, so that the camera can re-enter the sleep mode, which can effectively reduce the camera resource consumption and improve the utilization efficiency of vehicle resources.
[0073] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the camera control device or electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of this application.
[0074] The embodiment of the present application can exemplarily divide the functional modules of the vehicle-mounted camera control device or electronic device according to the above method. For example, the vehicle-mounted camera control device or electronic device can include various functional modules corresponding to the various functional divisions, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0075] Figure 4 FIG. 1 is a schematic diagram of a camera control device according to an exemplary embodiment. Figure 4 The camera control device 40 includes: an acquisition unit 401, a determination unit 402, and a control unit 403.
[0076] In a possible manner, the acquisition unit 401 receives a service request from a first service system, where the service request is used to request acquisition of image data of a target area.
[0077] In a possible manner, when the determination unit 402 determines that the target vehicle-mounted camera is in a sleep state, the target vehicle-mounted camera is controlled to switch from the sleep mode to the working mode.
[0078] In one possible manner, the control unit 403 controls the target vehicle-mounted camera to take pictures, and stores the taken image data into the vehicle's memory, so that the first business system obtains the image data from the memory.
[0079] In one possible manner, the control unit 403 controls multiple vehicle-mounted cameras set in the vehicle to power on, and establishes data links between the multiple vehicle-mounted cameras and the memory, so that the multiple vehicle-mounted cameras enter a sleep mode; the multiple vehicle-mounted cameras include a target vehicle-mounted camera.
[0080] In one possible manner, the determination unit 402 determines that the target vehicle camera is in a dormant state. If the first business system has not used the image data captured by the target vehicle camera, it is detected whether the target vehicle camera is connected to the memory. If the target vehicle camera is not connected to the memory, it is determined that the target vehicle camera is in a dormant state.
[0081] In one possible manner, the determination unit 402 determines that the business processing of the first business system is completed, disconnects the data link between the target camera and the memory, and deletes the image data captured by the vehicle-mounted camera in the memory.
[0082] In one possible manner, the determination unit 402 determines that the business processing of the first business system is completed, including: determining whether the scene in which the vehicle is located has changed; and when the scene in which the vehicle is located has changed, determining that the business processing of the first business system is completed.
[0083] In a possible manner, the determining unit 402 determines a first vehicle-mounted camera that matches the changed scene when the scene in which the vehicle is located changes. The first vehicle-mounted camera is different from the target vehicle-mounted camera.
[0084] In one possible manner, the control unit 403 controls the first vehicle-mounted camera to switch from sleep mode to working mode, controls the target vehicle-mounted camera to switch from working mode to sleep mode, and deletes the image data captured by the target vehicle-mounted camera in the memory.
[0085] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0086] Figure 5 FIG. 1 is a schematic diagram of an electronic device according to an exemplary embodiment. Figure 5 As shown, the electronic device 50 includes but is not limited to: a processor 501 and a memory 502 .
[0087] The memory 502 is used to store executable instructions of the processor 501. It can be understood that the processor 501 is configured to execute instructions to implement the control method of the vehicle-mounted camera in the above embodiment.
[0088] It should be noted that those skilled in the art can understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Figure 5 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0089] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 501 may include one or more processing units. Optionally, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.
[0090] The memory 502 can be used to store software programs and various data. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0091] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 502 including instructions, and the above instructions can be executed by the processor 501 of the electronic device 50 to implement the method in the above embodiment.
[0092] In actual implementation, Figure 4 The functions of the acquisition unit 401 and the determination unit 402 in Figure 5 The processor 501 in the embodiment calls the computer program stored in the memory 502. The specific execution process can refer to the description of the method part in the above embodiment, which will not be repeated here.
[0093] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0094] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 501 of the electronic device to complete the method in the above embodiment.
[0095] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.
[0096] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0097] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, 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.
[0098] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0099] 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.
[0100] If the integrated 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 readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.
[0101] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling a vehicle-mounted camera, characterized in that: Applied to a vehicle-mounted terminal, the method comprises: Receiving a business request from a first business system, wherein the business request is used to request to obtain image data of a target area; When it is determined that the target vehicle-mounted camera is in a sleep mode, the target vehicle-mounted camera is controlled to switch from the sleep mode to the working mode; the shooting area of the target vehicle-mounted camera includes the target area; in the sleep mode, the vehicle-mounted camera of the vehicle is in a powered-on state, but the shooting frequency is lower than a preset threshold and is not connected to the memory of the vehicle; in the working mode, the vehicle-mounted camera of the vehicle establishes a communication connection with the memory of the vehicle; The target vehicle-mounted camera is controlled to shoot, and the shot image data is stored in the memory of the vehicle, so that the first business system obtains the image data from the memory.
2. The method according to claim 1, characterized in that The method further comprises: In response to vehicle startup, multiple vehicle-mounted cameras provided on the vehicle are controlled to be powered on so that the multiple vehicle-mounted cameras enter the sleep mode; the multiple vehicle-mounted cameras include the target vehicle-mounted camera.
3. The method according to claim 1 or 2, characterized in that: The step of determining that the target vehicle-mounted camera is in a dormant state includes: Detecting whether the target vehicle-mounted camera is connected to the memory; If the target vehicle-mounted camera is not connected to the memory, it is determined that the target vehicle-mounted camera is in the dormant state.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: When it is determined that the business processing of the first business system is completed, the data link between the target camera and the memory is disconnected, and the image data captured by the vehicle-mounted camera in the memory is deleted.
5. The method according to claim 4, characterized in that The determining that the business processing of the first business system is completed includes: Determining whether the scene in which the vehicle is located has changed; When the scene in which the vehicle is located changes, it is determined that the business processing of the first business system is completed.
6. The method according to claim 5, characterized in that The method further comprises: In the case where the scene in which the vehicle is located changes, determining a first vehicle-mounted camera that matches the changed scene; the first vehicle-mounted camera is different from the target vehicle-mounted camera; Control the first vehicle-mounted camera to switch from the sleep mode to the working mode, control the target vehicle-mounted camera to switch from the working mode to the sleep mode, and delete the image data captured by the target vehicle-mounted camera in the memory.
7. A camera control device, characterized in that: The device comprises: An acquisition unit, used for acquiring a service request from the first service system, wherein the service request is used for requesting to acquire image data of a target area; A determination unit, used to determine whether the target vehicle-mounted camera is in a sleep mode; A control unit, used for controlling the target vehicle-mounted camera to switch from a sleep mode to an operating mode; the shooting area of the target vehicle-mounted camera includes the target area; in the sleep mode, the vehicle-mounted camera of the vehicle is in a powered-on state, but the shooting frequency is lower than a preset threshold and is not connected to the memory of the vehicle; in the operating mode, the vehicle-mounted camera of the vehicle establishes a communication connection with the memory of the vehicle; The control unit is further used to control the target vehicle-mounted camera to take pictures, and store the taken image data into the memory of the vehicle, so that the first business system obtains the image data from the memory.
8. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is capable of performing the method as claimed in any one of claims 1 to 6.
10. A vehicle, characterized in that: Comprising the electronic device described in claim 8.
Citation Information
Cited By
Memory allocation method and device for target computing system and automatic driving vehicle
CN119806812A
