Camera control method and device, vehicle, storage medium and program product
The finite state machine (FSM) is used to control the status of the camera, power off or on, which solves the problem of low efficiency of abnormal recovery of camera software in the existing technology, realizes automatic and fast abnormal recovery of camera software, and improves the efficiency of abnormal recovery.
Patent Information
- Application Number
- CN202411155990.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-08
AI Technical Summary
Existing technology cannot achieve automatic and efficient camera software abnormality recovery, and the abnormality recovery efficiency is low.
The finite state machine (FSM) is used to control the status of the camera, power off or on to achieve camera software exception recovery, use the FSM to synchronize information about software exceptions in the camera, and automatically perform exception recovery without manual intervention.
It realizes fast and automatic recovery of camera software abnormalities, improves the efficiency of abnormal recovery, avoids manual intervention, and ensures the stability of the camera state.
Smart Images

Figure CN118748751A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle technology, and more particularly to a camera control method, device, vehicle, storage medium, and program product. Background Art
[0002] Cameras are an indispensable part of vehicles. Cameras play a very important role in vehicles. Cameras can have many functions, such as improving driving safety, achieving autonomous driving, and providing better entertainment experience. Summary of the invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a camera control method, device, vehicle, storage medium and program product.
[0004] According to a first aspect of an embodiment of the present disclosure, a camera control method is provided, comprising: determining that a software anomaly occurs in a camera of a vehicle; synchronizing information about the software anomaly occurring in the camera to a finite state machine, wherein the finite state machine is used to configure the state of the camera, and to control power off or power on of the camera according to the state of the camera; and controlling the camera to recover from the software anomaly through the finite state machine.
[0005] Optionally, determining that a software anomaly occurs in the camera includes: acquiring frame rate data of the camera; and determining, based on the frame rate data, that a software anomaly occurs in the camera.
[0006] Optionally, controlling the camera to recover from software exceptions through a finite state machine includes: configuring the state of the camera to an unavailable state through the finite state machine; controlling the camera to be powered off when the camera is in the unavailable state through the finite state machine; configuring the camera to be ready to power on state through the finite state machine; and controlling the camera to be powered on when the camera is in the ready to power on state through the finite state machine.
[0007] Optionally, the camera control method also includes: configuring the state of the camera as a transition state from the unavailable state to the available state through the finite state machine; correspondingly, configuring the state of the camera as a ready-to-power-on state through the finite state machine includes: configuring the state of the camera as the ready-to-power-on state through the finite state machine when the state of the camera is the transition state.
[0008] Optionally, the camera control method further includes: detecting through the finite state machine that the camera is powered on successfully, configuring the state of the camera to a normal state; or, detecting through the finite state machine that the camera is powered on unsuccessfully, configuring the state of the camera to a ready-to-power-on state.
[0009] Optionally, controlling the camera to power off by the finite state machine when the camera is in the unavailable state includes: calling the driver module of the camera by the finite state machine when the camera is in the unavailable state, so that the driver module controls the camera to power off; and / or controlling the camera to power on by the finite state machine when the camera is in the ready-to-power-on state includes: calling the driver module by the finite state machine when the camera is in the ready-to-power-on state, so that the driver module controls the camera to power on.
[0010] Optionally, controlling the camera to recover from software exceptions through a finite state machine includes: if there are multiple cameras with software exceptions, controlling the multiple cameras to recover from software exceptions respectively through the finite state machine, wherein the finite state machine performs software exception recovery for one camera at a time.
[0011] According to a second aspect of an embodiment of the present disclosure, a camera control device is provided, comprising: a determination module, configured to determine whether a software anomaly occurs in a camera of a vehicle; a synchronization module, configured to synchronize information about the software anomaly of the camera to a finite state machine, wherein the finite state machine is used to configure the state of the camera, and to control power-off or power-on of the camera according to the state of the camera; and an anomaly recovery module, configured to control the camera to perform software anomaly recovery through the finite state machine.
[0012] According to a third aspect of an embodiment of the present disclosure, a vehicle is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the camera control method as described in the first aspect.
[0013] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the camera control method as described in the first aspect is implemented.
[0014] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the camera control method as described in the first aspect.
[0015] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: When a software anomaly occurs in the vehicle's camera, the information about the camera's software anomaly is synchronized to the finite state machine. Since the finite state machine can be used to configure the camera's state and can be used to control the camera's power off or power on according to the camera's state, the finite state machine can be used to control the camera to recover from software anomalies. During the entire abnormality recovery process, there is no need to rely on manual intervention. The finite state machine can automatically recover from camera software anomalies, and by powering off and on, the camera's software anomaly problem can be quickly resolved, improving the efficiency of camera anomaly recovery. Therefore, this technical solution can achieve efficient and automatic camera software anomaly recovery.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0018] Figure 1 The figure is a flowchart of a camera control method according to an exemplary embodiment.
[0019] Figure 2 The figure is a schematic diagram showing abnormal recovery of multiple cameras according to an exemplary embodiment.
[0020] Figure 3 The invention is a flowchart showing a camera abnormality recovery process according to an exemplary embodiment.
[0021] Figure 4 is a block diagram of a camera control device according to an exemplary embodiment.
[0022] Figure 5 is a block diagram of a vehicle according to an exemplary embodiment. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0024] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0025] Cameras are an indispensable part of vehicles. Cameras play a very important role in vehicles. Cameras can have many functions, such as improving driving safety, achieving autonomous driving, and providing better entertainment experience.
[0026] For example, cameras can be used in driver assistance systems such as reversing cameras, blind spot monitoring, and lane departure warnings.
[0027] For example, the camera is one of the core sensors in the autonomous driving system. The camera can capture images and videos around the vehicle and transmit them to the autonomous driving system for processing and analysis.
[0028] For example, cameras can be used in car safety systems such as forward collision warning and automatic emergency braking.
[0029] For example, the camera can be used in the entertainment system of the car, such as a rear seat entertainment system and a car camera.
[0030] When using the camera, you may encounter abnormal situations. This abnormal situation may be a hardware problem or a software problem. For the hardware problem of the camera, it may not be able to recover automatically and requires manual intervention or hardware replacement to solve it. For the software problem of the camera, abnormal recovery can be achieved through corresponding methods.
[0031] In the related art, the abnormal recovery method used for the software problem of the camera cannot achieve automatic recovery, and the abnormal recovery efficiency is poor.
[0032] Based on this, the embodiment of the present disclosure provides a technical solution, in which a finite state machine is used to control the camera to perform software abnormality recovery. During the entire abnormality recovery process, the finite state machine can realize automatic camera software abnormality recovery without relying on manual intervention. In addition, by powering off and on, the software abnormality problem of the camera can be quickly solved, and the efficiency of camera abnormality recovery can be improved.
[0033] From the various roles of the above-mentioned cameras in the vehicle, it can be seen that the hardware operating environment of the technical solution of the embodiment of the present disclosure can be a vehicle controller, an automatic driving system, an entertainment system, etc. That is, based on the different roles of the camera, the corresponding hardware operating environment can be different. Alternatively, it is also possible to implement abnormal recovery control on the same hardware operating environment for each camera of the vehicle, which is not limited in the embodiment of the present disclosure.
[0034] Figure 1 is a flowchart of a camera control method according to an exemplary embodiment. Figure 1As shown, the camera control method is applied to a vehicle and includes the following steps.
[0035] Step S11, determining that a software abnormality occurs in the vehicle's camera.
[0036] Step S12: Synchronize the information of the software abnormality of the camera to the finite state machine, wherein the finite state machine is used to configure the state of the camera and to control the power off or power on of the camera according to the state of the camera.
[0037] Step S13, controlling the camera to perform software abnormality recovery through a finite state machine.
[0038] There may be many reasons for the camera software anomaly, such as system anomaly, camera application anomaly, insufficient storage space, permission issue, and network issue. If the camera anomaly occurs, it may cause problems with the camera's use, which in turn affects the vehicle's stability.
[0039] In step S11, the vehicle's camera may be monitored in real time to determine whether the camera has a software anomaly.
[0040] As an optional implementation, step S11 includes: acquiring frame rate data of the camera; and determining, based on the frame rate data, that a software abnormality occurs in the camera.
[0041] The frame rate of a camera refers to the frequency (rate) at which bitmap images in units of frames appear continuously on the display.
[0042] In some embodiments, the camera frame rate monitoring can be an independent thread, which counts the camera frame rate every certain period of time (for example, one second). When an abnormal camera frame rate is detected, the finite state machine can be triggered to perform camera abnormality recovery. If the camera frame rate is normal, the finite state machine can be in a dormant state.
[0043] In some embodiments, the frame rate data of the camera is a real-time camera frame rate. Correspondingly, the real-time camera frame rate can be compared with a preset normal camera frame rate. If the real-time camera frame rate meets the preset normal camera frame rate, it is determined that the camera has no software abnormality. If the real-time camera frame rate does not meet the preset normal camera frame rate, it is determined that the camera has a software abnormality.
[0044] In some embodiments, the frame rate of the camera when no software anomalies occur can be pre-tested, and the frame rate can be determined as a preset normal frame rate of the camera and stored in the system. When abnormality monitoring is required, abnormality judgment can be made based on the normal frame rate of the camera.
[0045] In some embodiments, the vehicle includes multiple cameras, and frame rate monitoring is performed on each of the multiple cameras to determine whether a software abnormality occurs in the camera.
[0046] In some embodiments, if it is determined that the camera has no software anomaly, the frame rate of the camera continues to be monitored. If it is determined that the camera has a software anomaly, step S12 may be performed.
[0047] In step S12, the information that the camera has a software anomaly is synchronized to the finite state machine. It can be understood that when the camera has a software anomaly, an internal message can be generated and then synchronized to the finite state machine.
[0048] After the finite state machine receives the information that the camera has a software anomaly, the camera software anomaly recovery can be automatically performed. Furthermore, in step S13, the camera can be controlled by the finite state machine to perform software anomaly recovery.
[0049] The full name of the finite state machine is Finite State Machine, or FSM for short. A finite state machine is a mathematical model used to describe the behavior of a system. A finite state machine consists of a set of states, a set of inputs, and a set of outputs. It can transfer to the next state based on the input and the current state, and generate the corresponding output.
[0050] Therefore, the finite state machine can be used to configure the state of the camera, and to control the camera to power off or on according to the state of the camera.
[0051] It can be understood that the finite state machine can realize continuous and automatic state transfer, and can perform corresponding operations according to the state.
[0052] Finite state machines can be divided into two types: Deterministic Finite State Machine (DFSM) and Nondeterministic Finite State Machine (NFSM). In a deterministic finite state machine, each state has only one outgoing edge associated with each input, while in a nondeterministic finite state machine, each state can have multiple outgoing edges associated with each input.
[0053] In the embodiments of the present disclosure, a deterministic finite state machine or a non-deterministic finite state machine may be used.
[0054] In some embodiments, the finite state machine may be pre-configured for state transfer so that the finite state machine can implement state transfer and related operations.
[0055] In some embodiments, the finite state machine controls the time for the camera to automatically recover from an abnormality, which usually only takes 2 seconds.
[0056] For a vehicle, there may be multiple cameras, and there may be only one camera or multiple cameras that fail at the same time. In the case of multiple cameras, the finite state machine can adopt a serial processing method.
[0057] Therefore, as an optional implementation, in step S13, if there are multiple cameras with software anomalies, the multiple cameras are controlled separately by a finite state machine to perform software anomaly recovery, wherein the finite state machine performs software anomaly recovery for one camera at a time.
[0058] In this implementation, the finite state machine performs software abnormality recovery for multiple cameras respectively. Since the software abnormality recovery takes a short time, this serial processing method will not only not affect the abnormality recovery effect of multiple cameras, but also avoid the situation where the finite state machine fails, and ensure the stability of the camera's software abnormality recovery.
[0059] In some embodiments, the finite state machine can control the camera to recover from software anomalies by first controlling the camera to power off and then controlling the camera to power on. Since the finite state machine needs to implement corresponding operations based on states, corresponding states can be configured for the two operations of powering off the camera and powering on the camera.
[0060] Therefore, as an optional implementation, the camera is controlled to perform software exception recovery through a finite state machine, including: configuring the camera's state to an unavailable state through a finite state machine; controlling the camera to power off when the camera's state is an unavailable state through the finite state machine; configuring the camera's state to a ready-to-power-on state through the finite state machine; and controlling the camera to power on when the camera's state is a ready-to-power-on state through the finite state machine.
[0061] In this implementation, the occurrence of a software anomaly in the camera can be used as an input to the finite state machine. Under this input, the finite state machine can first configure the state of the camera to an unavailable state. Then, when the state of the camera is an unavailable state, the finite state machine can control the camera to power off. Further, the finite state machine configures the state of the camera to a ready-to-power-on state. When the state of the camera is ready-to-power-on, the finite state machine can control the camera to power on. Thus, the control of the camera from power off to power on is achieved. When the camera is powered off and then powered on, it is equivalent to completing the restart of the camera. The software anomaly problem of the camera can usually be solved, and software anomaly recovery is achieved.
[0062] In some embodiments, if the state of the camera is directly configured to be ready to power on after the camera is controlled to be powered off, problems may occur in the transition between states or the control of the camera due to the short interval.
[0063] Therefore, as an optional implementation, a transition state can also be defined in a finite state machine. Accordingly, the camera control method further includes: configuring the state of the camera as a transition state from an unavailable state to an available state through a finite state machine; correspondingly, configuring the state of the camera as a ready-to-power-on state through a finite state machine includes: configuring the state of the camera as a ready-to-power-on state through a finite state machine when the state of the camera is a transition state.
[0064] In this embodiment, after the camera is powered off, the camera state is configured as a transition state, which can be regarded as a state between an unavailable state and an available state. Furthermore, when the camera state is a transition state, the camera state is configured as a ready-to-power-on state.
[0065] In this way, the camera will not be powered on immediately after it is powered off, and the state transition of the finite state machine can be made more stable and smooth.
[0066] In some embodiments, after the finite state machine controls the camera to power on, it can also detect whether the camera is powered on successfully, and configure the next state according to the detection result.
[0067] Therefore, in the embodiment of the present disclosure, a no-abnormal state may also be defined in the finite state machine, and the no-abnormal state may be used as an output of the finite state machine.
[0068] As an optional implementation, the camera control method further includes: detecting through a finite state machine that the camera is powered on successfully, and configuring the camera state to a normal state; or, detecting through a finite state machine that the camera is powered on unsuccessfully, and configuring the camera state to a ready-to-power-on state.
[0069] In this embodiment, if it is detected that the camera is powered on successfully, the state of the camera can be configured as a normal state, indicating that the camera has returned to normal. If it is detected that the camera is powered on unsuccessfully, the state of the camera can be configured as a ready-to-power-on state again, and the power-on operation can be continued based on the ready-to-power-on state.
[0070] In some embodiments, whether the camera is powered on successfully can be detected by detecting whether there is an electrical signal from the camera and whether there is a corresponding output from the camera.
[0071] In some embodiments, the finite state machine may be connected to a driving module of the camera, and by receiving driving information from the driving module, it may also be possible to detect whether the camera is powered on successfully.
[0072] In some embodiments, controlling the camera to power off through a finite state machine when the camera is in an unusable state may include: calling the camera's driver module through the finite state machine when the camera is in an unusable state, so that the driver module controls the camera to power off.
[0073] In some embodiments, controlling the camera to power on by a finite state machine when the camera is in a ready-to-power-on state includes: calling a driver module by a finite state machine when the camera is in a ready-to-power-on state so that the driver module controls the camera to power on.
[0074] In the above implementation, the finite state machine can be connected to the camera's driver module through a corresponding interface. By calling the driver module, the camera power-off or camera power-on instruction can be issued to enable the driver module to perform corresponding operations.
[0075] Figure 2 is a schematic diagram showing a multi-camera abnormal recovery according to an exemplary embodiment. Figure 2 As shown, the frame rate of the two cameras of the autonomous driving system is monitored in real time.
[0076] If the real-time frame rate of camera A is detected to be a normal 30Hz, the corresponding camera recovery mechanism may not be activated. If the real-time frame rate of camera B is detected to be an abnormal 0Hz, the camera recovery mechanism is activated to automatically perform abnormal recovery processing on the abnormal camera B.
[0077] Figure 3 is a flowchart of a camera abnormal recovery process according to an exemplary embodiment. Figure 3 As shown, the camera recovery module may correspond to a finite state machine, the camera frame rate monitoring module is used to implement camera frame rate monitoring, and the camera module corresponds to one or more cameras.
[0078] In the finite state machine, the camera states defined include: Disable: unavailable state; Check: transition state from unavailable to available state, which makes the camera wait for a period of time during the power-on and power-off process; Enable: state ready to power on the camera; Null: no abnormal state.
[0079] The state transfer logic of the finite state machine is as follows: When a camera exception occurs, set the camera status to Disable.
[0080] When the camera status is found to be: Disable, power off the camera and set the camera status to: Check.
[0081] When the camera status is found to be: Check, set the camera status to: Enable.
[0082] When the camera status is found to be Enable, power on the camera to determine whether the power-on is successful. If successful, set the camera status to Null; if failed, set the camera status to Check.
[0083] This implementation method does not require manual intervention. When a camera software anomaly is detected, the automatic recovery mechanism can be triggered. Moreover, the speed is fast, and the recovery of the faulty camera can be completed within 2 seconds.
[0084] Therefore, by adopting the technical solution of the embodiment of the present disclosure, when a software anomaly occurs in the camera of the vehicle, the information of the software anomaly of the camera is synchronized to the finite state machine. Since the finite state machine can be used to configure the state of the camera and can be used to control the power off or power on of the camera according to the state of the camera, the finite state machine can be used to control the camera to recover from the software anomaly. During the entire abnormal recovery process, there is no need to rely on manual intervention, and the automatic camera software abnormality recovery can be achieved through the finite state machine. Moreover, by powering off and powering on, the software anomaly problem of the camera can be quickly resolved, thereby improving the efficiency of the camera abnormality recovery. Therefore, the technical solution can achieve efficient and automatic camera software abnormality recovery.
[0085] Figure 4 is a block diagram of a camera control device according to an exemplary embodiment. Figure 4 , the device comprises: The determination module 401 is configured to determine whether a software abnormality occurs in the camera of the vehicle.
[0086] The synchronization module 402 is configured to synchronize the information of the software anomaly of the camera to a finite state machine, wherein the finite state machine is used to configure the state of the camera and to control the power off or power on of the camera according to the state of the camera.
[0087] The abnormality recovery module 403 is configured to control the camera to perform software abnormality recovery through the finite state machine.
[0088] Optionally, the determination module 401 is further configured to obtain frame rate data of the camera; and determine, based on the frame rate data, whether a software abnormality occurs in the camera.
[0089] Optionally, the abnormal recovery module 403 is further configured to: configure the state of the camera to an unavailable state through the finite state machine; control the camera to be powered off when the state of the camera is the unavailable state through the finite state machine; configure the state of the camera to be ready to power on state through the finite state machine; and control the camera to be powered on when the state of the camera is the ready to power on state through the finite state machine.
[0090] Optionally, the abnormal recovery module 403 is further configured to: configure the state of the camera as a transition state from the unavailable state to the available state through the finite state machine; and configure the state of the camera as the ready-to-power-on state through the finite state machine when the state of the camera is the transition state.
[0091] Optionally, the abnormality recovery module 403 is further configured to: detect through the finite state machine that the camera is powered on successfully, and configure the state of the camera to a normal state; or detect through the finite state machine that the camera fails to power on, and configure the state of the camera to a ready-to-power-on state.
[0092] Optionally, the abnormal recovery module 403 is further configured to: call the driver module of the camera through the finite state machine when the state of the camera is the unavailable state, so that the driver module controls the camera to power off; and / or, call the driver module through the finite state machine when the state of the camera is the ready-to-power-on state, so that the driver module controls the camera to power on.
[0093] Optionally, the abnormality recovery module 403 is further configured to: if there are multiple cameras with software abnormalities, control the multiple cameras to perform software abnormality recovery respectively through the finite state machine, wherein the finite state machine performs software abnormality recovery for one camera at a time.
[0094] 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.
[0095] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and the program instructions, when executed by a processor, implement the steps of the camera control method provided by the present disclosure.
[0096] Figure 5 is a block diagram of a vehicle 500 according to an exemplary embodiment. For example, the vehicle 500 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. The vehicle 500 may be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.
[0097] Reference Figure 5, the vehicle 500 may include various subsystems, for example, an infotainment system 510, a perception system 520, a decision control system 530, a drive system 540, and a computing platform 550. The vehicle 500 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 500 may be interconnected by wire or wireless means.
[0098] In some embodiments, the infotainment system 510 may include a communication system, an entertainment system, and a navigation system, among others.
[0099] The perception system 520 may include several sensors for sensing information about the environment around the vehicle 500. For example, the perception system 520 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.
[0100] The decision control system 530 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.
[0101] The drive system 540 may include components that provide powered motion for the vehicle 500. In one embodiment, the drive system 540 may include an engine, an energy source, a transmission system, and wheels. The engine may be an internal combustion engine, an electric motor, an air compression engine, or a combination of one or more thereof. The engine is capable of converting energy provided by the energy source into mechanical energy.
[0102] Some or all functions of the vehicle 500 are controlled by a computing platform 550. The computing platform 550 may include at least one processor 551 and a memory 552, and the processor 551 may execute instructions 553 stored in the memory 552.
[0103] The processor 551 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.
[0104] The memory 552 may be implemented by any type of volatile or nonvolatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0105] In addition to instructions 553 , memory 552 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 552 may be used by computing platform 550 .
[0106] In the embodiment of the present disclosure, the processor 551 may execute instruction 553 to complete all or part of the steps of the above-mentioned camera control method.
[0107] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned camera control method when executed by the programmable device.
[0108] The word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described herein as "exemplary" is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0109] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".
[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
[0111] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A camera control method, characterized in that: include: Determine that the vehicle's camera has a software anomaly; Synchronizing information about a software anomaly of the camera to a finite state machine, wherein the finite state machine is used to configure a state of the camera and to control power off or power on of the camera according to the state of the camera; The camera is controlled by the finite state machine to perform software abnormality recovery.
2. The camera control method according to claim 1, characterized in that: The determining that a software abnormality occurs in the camera includes: Obtaining frame rate data of the camera; It is determined, based on the frame rate data, that a software abnormality occurs in the camera.
3. The camera control method according to claim 1, characterized in that: The method of controlling the camera to perform software abnormality recovery by using a finite state machine includes: Configuring the state of the camera to be an unavailable state through the finite state machine; When the state of the camera is the unavailable state, controlling the camera to be powered off by the finite state machine; Configuring the state of the camera to be ready to power on by the finite state machine; The camera is controlled to be powered on by the finite state machine when the state of the camera is the ready-to-power-on state.
4. The camera control method according to claim 3, characterized in that: The camera control method further includes: configuring the state of the camera to be a transition state from the unavailable state to the available state by the finite state machine; Correspondingly, configuring the state of the camera to be ready to power on by using the finite state machine includes: When the state of the camera is the transition state, the state of the camera is configured to be the ready-to-power-on state through the finite state machine.
5. The camera control method according to claim 3 or 4, characterized in that: The camera control method further includes: Detecting that the camera is powered on successfully by the finite state machine, and configuring the state of the camera to be a normal state; or, The finite state machine detects that the camera fails to power on, and configures the state of the camera to a ready-to-power-on state.
6. The camera control method according to claim 3 or 4, characterized in that: The controlling the camera to be powered off by the finite state machine when the state of the camera is the unavailable state includes: When the state of the camera is the unavailable state, calling the driving module of the camera through the finite state machine, so that the driving module controls the camera to be powered off; and / or, The controlling the camera to power on by the finite state machine when the state of the camera is the ready-to-power-on state includes: When the state of the camera is the ready-to-power-on state, the driver module is called by the finite state machine so that the driver module controls the camera to power on.
7. The camera control method according to claim 1, characterized in that: The method of controlling the camera to perform software abnormality recovery by using a finite state machine includes: If there are multiple cameras with software anomalies, the finite state machine controls the multiple cameras to recover from the software anomalies respectively, wherein the finite state machine recovers from the software anomaly for one camera at a time.
8. A camera control device, characterized in that: include: A determination module configured to determine that a software anomaly occurs in a camera of the vehicle; a synchronization module, configured to synchronize information about a software anomaly of the camera to a finite state machine, wherein the finite state machine is used to configure a state of the camera, and to control power off or power on of the camera according to the state of the camera; The abnormality recovery module is configured to control the camera to perform software abnormality recovery through the finite state machine.
9. A vehicle, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to execute the camera control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the camera control method as described in any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the camera control method as described in any one of claims 1 to 7.
