Camera switching method and device of automobile data recorder

By automatically switching other cameras in normal state in the vehicle, the problem of driving data interruption caused by the failure of traditional driving recorder cameras is solved, and continuous recording of driving data and driving safety is achieved.

CN119992681AActive Publication Date: 2025-05-13CHENGDU CELIS TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411393810.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-05-13
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

A camera failure of a traditional driving recorder will cause driving data to be interrupted and increase driving safety risks.

Method used

By detecting the abnormal state of the dash recorder camera, it automatically switches to other cameras in normal state in the vehicle to ensure continuous recording of driving data.

Benefits of technology

It avoids driving data interruption caused by abnormal cameras, ensures continuous recording of driving data, and improves driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992681A_ABST
    Figure CN119992681A_ABST
Patent Text Reader

Abstract

The invention relates to a camera switching method and device of an automobile data recorder. When it is detected that a camera of an automobile data recorder is in an abnormal state, a target camera is determined from other cameras, in a normal state, of a vehicle, the camera of the automobile data recorder is switched to the target camera, and driving data are recorded based on the target camera. Therefore, driving data interruption caused by abnormity of the camera of the automobile data recorder is avoided, the driving data can be continuously recorded, and the driving safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control technology, and in particular to a camera switching method and device for a driving recorder. Background Art

[0002] A driving recorder is a technical device that uses a camera to collect video images from the front and rear of a vehicle while it is driving and records them as video files. It can not only record the video images of the vehicle while it is driving, but also provide parking monitoring, identification of traffic signs, lane lines, and driving safety reminders. Therefore, driving recorders have become one of the standard configurations of cars.

[0003] In traditional technology, driving recorders use fixed cameras, such as front cameras or 360-degree panoramic cameras. Once the camera of the driving recorder fails, the driving data will be interrupted, thereby increasing the potential safety risks of driving. Summary of the invention

[0004] Based on this, it is necessary to provide a camera switching method, device, electronic device, computer-readable storage medium and computer program product for a driving recorder that can continuously record driving data in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a camera switching method of a driving recorder, the method comprising:

[0006] When it is detected that the camera of the driving recorder is in an abnormal state, determining a target camera from the cameras of the vehicle in a normal state;

[0007] The camera of the driving recorder is switched to the target camera, and driving data is recorded based on the target camera.

[0008] In one of the embodiments, the method further includes: when it is detected that the driving recorder is started, obtaining first camera information pre-configured for the driving recorder, the first camera information including a first identifier of the pre-configured camera; obtaining second camera information in a normal state in the vehicle, the second camera information including a second identifier of the camera in a normal state in the vehicle; when it is determined that there is no second identifier matching the first identifier in the second camera information, determining that the camera of the driving recorder is in an abnormal state.

[0009] In one of the embodiments, the method further includes: when it is determined that there is a second identifier matching the first identifier in the second camera information, sending a start instruction to the camera corresponding to the first identifier; when it is determined that the camera corresponding to the first identifier fails to start, determining that the camera of the driving recorder is in an abnormal state.

[0010] In one of the embodiments, the method further includes: obtaining a state of the camera of the driving recorder recording driving data; and determining that the camera of the driving recorder is in an abnormal state when an interruption in the recording state is detected.

[0011] In one of the embodiments, after determining that the camera of the driving recorder is in an abnormal state, the method further includes: when a collision signal is detected, determining a target camera from cameras in a normal state of the vehicle; when no collision signal is detected, displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; and in response to a confirmation instruction of the switching reminder message, determining a target camera from cameras in a normal state of the vehicle according to the confirmation instruction.

[0012] In one of the embodiments, determining the target camera from the cameras in the normal state of the vehicle includes: obtaining the priority of each camera in the normal state of the vehicle; and determining the camera with the highest priority as the target camera.

[0013] In one of the embodiments, determining the target camera from the cameras in the normal state of the vehicle includes: determining a first shooting area of ​​the camera in the abnormal state, and a second shooting area of ​​each of the cameras in the normal state of the vehicle; and determining the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera.

[0014] In one of the embodiments, determining the target camera from the cameras in the normal state of the vehicle includes: displaying a switch reminder message, the switch reminder message is used to indicate whether to switch the camera of the driving recorder; in response to a confirmation instruction of the switch reminder message, returning a camera list, the camera list including identification information of cameras in the normal state of the vehicle; in response to a selection instruction of the target identification information in the camera list, determining the camera corresponding to the target identification information as the target camera according to the selection instruction.

[0015] In one of the embodiments, determining the target camera from the cameras in the normal state of the vehicle includes: displaying a switch reminder message, wherein the switch reminder message is used to indicate whether to switch the camera of the driving recorder; and responding to a confirmation instruction of the switch reminder message, determining the target camera from the cameras in the normal state of the vehicle according to the confirmation instruction.

[0016] In one of the embodiments, when it is detected that the camera of the driving recorder is in an abnormal state, the method further includes: displaying an abnormal reminder message, wherein the abnormal reminder message is used to indicate that the camera of the driving recorder is abnormal.

[0017] In a second aspect, the present application further provides a camera switching device for a driving recorder, the device comprising:

[0018] A determination module is configured to determine a target camera from cameras in a normal state of the vehicle when it is detected that the camera of the driving recorder is in an abnormal state;

[0019] The switching module is configured to switch the camera of the driving recorder to the target camera and record driving data based on the target camera.

[0020] In a third aspect, the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0022] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0023] The camera switching method, device, electronic device, computer-readable storage medium and computer program product of the driving recorder, when the camera of the driving recorder is detected to be in an abnormal state, determine the target camera from other normal cameras of the vehicle, and switch the camera of the driving recorder to the target camera, and record driving data based on the target camera. This avoids interruption of driving data due to abnormal camera of the driving recorder, enables continuous recording of driving data, and improves driving safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A schematic diagram of a flow chart of a camera switching method of a driving recorder in one embodiment;

[0026] Figure 2 A schematic diagram of a flow chart of a step of determining a target camera in an embodiment;

[0027] Figure 3 A schematic diagram of a flow chart of steps for determining camera abnormality in an embodiment;

[0028] Figure 4 A schematic flow chart of a camera switching method of a driving recorder in another embodiment;

[0029] Figure 5 It is a structural block diagram of a camera switching device of a driving recorder in one embodiment;

[0030] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] In one embodiment, the present application provides a method for switching cameras of a driving recorder. This embodiment uses the method applied to an electronic device of a vehicle as an example. Specifically, the electronic device may be, but is not limited to, an in-vehicle infotainment device, a central control unit (ECU) of the vehicle, a data recorder module, or an independent driving recorder device. It is responsible for managing the camera in the vehicle and processing the image and video data of the camera, including recording, storage, possible real-time monitoring, and data transmission. In this embodiment, if Figure 1 As shown, the method comprises the following steps:

[0033] Step 102, when it is detected that the camera of the driving recorder is in an abnormal state, a target camera is determined from the cameras of the vehicle in a normal state.

[0034] The camera of the driving recorder refers to the camera used for recording driving data, which may refer to the camera connected by default to the driving recorder, or the camera currently used by the driving recorder. The abnormal state refers to the state in which the camera cannot be used normally, including but not limited to abnormal connection and abnormal recording.

[0035] Specifically, the vehicle may include at least two cameras, such as at least two of a front camera, a rear camera, a 360-degree panoramic camera, an in-vehicle front-row camera, and an in-vehicle rear-row camera. It is understandable that each camera in the vehicle can be used for the driving recorder to record driving data, but due to the limitations of the driving recorder screen display, the driving recorder generally uses one camera or two cameras to record driving data. In this embodiment, the electronic device can monitor the status of each camera in the vehicle, and when it is detected that the current camera of the driving recorder is in an abnormal state, the target camera can be determined from other cameras in normal state of the vehicle. Among them, the target camera can be the camera to be switched by the driving recorder for driving data recording.

[0036] Step 104, switching the camera of the driving recorder to the target camera, and recording driving data based on the target camera.

[0037] Specifically, after determining the target camera through the above steps, the electronic device can switch the camera of the driving recorder to the target camera, that is, use the target camera for the driving recorder to record driving data, thereby avoiding the interruption of driving data due to abnormality of the camera of the driving recorder, so that driving data can be recorded continuously.

[0038] In the above-mentioned camera switching method of the driving recorder, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it determines the target camera from other normal cameras of the vehicle, switches the camera of the driving recorder to the target camera, and records driving data based on the target camera. In this way, the driving data interruption caused by the abnormality of the camera of the driving recorder is avoided, and the driving data can be recorded continuously, thereby improving driving safety.

[0039] In an exemplary embodiment, in step 102, determining the target camera from the cameras in the normal state of the vehicle may specifically include: obtaining the priority of each camera in the cameras in the normal state of the vehicle; determining the camera with the highest priority as the target camera. Among them, the priority of the camera may be a parameter of the priority level for the driving recorder to record driving data pre-configured for the camera. The camera with a higher priority level is more likely to be used for the driving recorder. For example, if the vehicle includes a front camera, a rear camera, a 360-degree panoramic image camera, an in-vehicle front-row camera, and an in-vehicle rear-row camera, the priority of each camera for the driving recorder may be pre-configured. If the priority order of each pre-configured camera is from high to low: front camera = 360-degree panoramic image camera> rear camera> in-vehicle front-row camera> in-vehicle rear-row camera. It means that the priority of the front camera is equivalent to that of the 360-degree panoramic image camera, and both have the highest priority. Therefore, when it is necessary to switch the camera of the driving recorder, the electronic device may determine the camera with the highest priority from the cameras in the normal state of the vehicle as the target camera for switching based on the above-mentioned pre-configured priority order.

[0040] In this embodiment, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it further obtains the priority of each camera in the normal state of the vehicle, and determines the camera with the highest priority as the target camera, and then switches the camera of the driving recorder to the target camera, and records the driving data based on the target camera. In this way, the driving data interruption caused by the abnormality of the camera of the driving recorder is avoided, so that the driving data can be recorded continuously, and the target camera to be switched is automatically determined based on the priority of the camera and switched, which not only realizes automatic control, avoids the tedious operation of manual switching by the user, improves the degree of intelligence, and is conducive to improving the reliability and safety of driving.

[0041] In an exemplary embodiment, in step 102, determining the target camera from the cameras in the normal state of the vehicle may specifically include: determining the first shooting area of ​​the camera in the abnormal state, and the second shooting area of ​​each camera in the normal state of the vehicle; determining the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera. The first shooting area and the second shooting area may be specific ranges that can be shot by the camera with the vehicle as a reference, such as the front area range of the vehicle, the rear area range of the vehicle, the left area range of the vehicle, the right area range of the vehicle, etc. Specifically, the first shooting area is the area range that can be shot by the camera currently used for the driving recorder, and the second shooting area is the area range that can be shot by other cameras in the normal state of the current vehicle. The overlap degree may be a parameter that measures the size of the overlapping area between the second shooting area and the first shooting area. Since the first shooting area is the area that can be photographed by the camera that is currently used for the driving recorder but is in an abnormal state, when the camera needs to be switched, the electronic device can also determine the camera in normal state corresponding to the second shooting area with the highest overlap with the first shooting area based on the first shooting area of ​​the abnormal camera, and switch it as the target camera, so as to better meet the switching scene requirements.

[0042] In this embodiment, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it further determines the first shooting area of ​​the camera in the abnormal state and the second shooting area of ​​each camera in the normal state of the vehicle, and determines the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera, and then switches the camera of the driving recorder to the target camera, and records the driving data based on the target camera. In this way, the driving data interruption caused by the abnormal camera of the driving recorder is avoided, and the driving data can be recorded continuously. The target camera to be switched is automatically determined and switched based on the overlap of the shooting areas of the cameras, which not only realizes automatic control, avoids the tedious operation of manual switching by the user, improves the degree of intelligence, and can better meet the switching scene requirements, which is conducive to improving the reliability and safety of driving.

[0043] In an exemplary embodiment, Figure 2 As shown, in step 102, determining a target camera from cameras in a normal state of the vehicle may further include:

[0044] Step 202: Display a switching reminder message.

[0045] The switching reminder message is used to indicate whether to switch the camera of the driving recorder. Specifically, the switching reminder message can be displayed in the electronic device in the form of a pop-up window or bubble. Specifically, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it can also display the switching reminder message to interact with the user.

[0046] Step 204 , in response to a confirmation instruction for the switching reminder message, determining a target camera from cameras in a normal state of the vehicle according to the confirmation instruction.

[0047] The confirmation instruction may be an operation instruction returned by the user to confirm the switch in response to the switch reminder message. Specifically, the electronic device interacts with the user by displaying the switch reminder message, so that the user can independently choose whether to switch, and when the user confirms the switch, the target camera is automatically determined from the cameras in the normal state of the vehicle for switching.

[0048] In this embodiment, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it can display a switching reminder message to indicate whether to switch the camera of the driving recorder, and in response to the confirmation instruction of the switching reminder message, determine the target camera from the cameras in the normal state of the vehicle according to the confirmation instruction, and then switch the camera of the driving recorder to the target camera, and record the driving data based on the target camera. In this way, the driving data interruption caused by the abnormality of the camera of the driving recorder is avoided, so that the driving data can be recorded continuously, and when it is determined that the camera of the driving recorder is in an abnormal state, the switching reminder message is displayed to interact with the user, and the user can choose whether to switch independently, thereby improving the user experience. After that, when the user confirms the switch, the target camera can be automatically determined from the cameras in the normal state of the vehicle for switching, and the intelligent degree of the switch is also improved.

[0049] In an exemplary embodiment, in step 204, in response to a confirmation instruction for a switching reminder message, a target camera is determined from the cameras in the normal state of the vehicle according to the confirmation instruction, which may specifically include: in response to a confirmation instruction for the switching reminder message, a camera list is displayed, and in response to a selection instruction for the target identification information in the camera list, a camera corresponding to the target identification information is determined as the target camera according to the selection instruction. The camera list includes identification information of cameras in the normal state of the vehicle, and the identification information may be a mark or number used to uniquely refer to a certain camera, such as a camera number. The selection instruction may be a selection operation of a user for a certain target identification information in the camera list. Specifically, the electronic device interacts with the user by displaying a switching reminder message, so that the user can independently choose whether to switch, and when the user confirms the switch, a list of cameras in the normal state of the vehicle is displayed, so that the user can independently choose the intended camera to switch.

[0050] In this embodiment, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it can display a switching reminder message to indicate whether to switch the camera of the driving recorder, and in response to the confirmation instruction of the switching reminder message, display a camera list, and in response to the selection instruction of the target identification information in the camera list, determine the camera corresponding to the target identification information as the target camera according to the selection instruction, and then switch the camera of the driving recorder to the target camera, and record driving data based on the target camera. In this way, the driving data interruption caused by the abnormality of the camera of the driving recorder is avoided, so that the driving data can be recorded continuously, and when it is determined that the camera of the driving recorder is in an abnormal state, the user can choose whether to switch and the intended camera to switch by displaying a message to interact with the user, which is not only highly flexible but also improves the user experience.

[0051] In an exemplary embodiment, in step 102, when it is detected that the camera of the driving recorder is in an abnormal state, the method may further include: displaying an abnormality reminder message, wherein the abnormality reminder message is used to indicate that the camera of the driving recorder is abnormal.

[0052] Specifically, when the electronic device detects that the camera of the driving recorder is in an abnormal state, it can also display an abnormal reminder message to indicate that the camera of the driving recorder is abnormal, so that the user can promptly understand the usage of the driving recorder, and can also perform problem troubleshooting based on the abnormal reminder message to improve the reliability of the driving recorder.

[0053] In an exemplary embodiment, Figure 3 As shown, the above method may also include:

[0054] Step 302: when it is detected that the driving recorder is started, obtain the first camera information pre-configured for the driving recorder.

[0055] The first camera information includes a first identifier of a pre-configured camera, the first identifier refers to an identifier of a default camera pre-configured for the dash cam, and the default camera refers to a specific camera used by the dash cam to record driving data by default. The dash cam startup refers to the process of the dash cam entering a usable state from a shutdown state.

[0056] In this embodiment, when the electronic device detects that the driving recorder is started, it can obtain the pre-configured first camera information based on the configuration information of the driving recorder, so as to determine which camera can be used for the driving recorder to record driving data.

[0057] Step 304, obtaining the second camera information in the normal state in the vehicle.

[0058] The second camera information includes the second identifier of the camera in the normal state in the vehicle. Specifically, the electronic device can monitor the heartbeat state of each camera in the vehicle based on the heartbeat mechanism. Therefore, the electronic device can know the camera in the normal state in the vehicle in real time, such as the camera that can normally monitor the heartbeat state, and identify the second identifier of the camera in the normal state to obtain the second camera information.

[0059] Step 306: When it is determined that there is no second identifier matching the first identifier in the second camera information, it is determined that the camera of the driving recorder is in an abnormal state.

[0060] Among them, the second camera information does not contain the second identifier that matches the first identifier, which means that the first identifier of the default camera used for the driving recorder does not match the second identifier of the camera in the normal state of the vehicle, that is, the first identifier of the default camera is not in the second camera information of the vehicle in the normal state, that is, the default camera is in an abnormal state. Specifically, if the default camera loses power or the wiring harness is loose, it will cause the heartbeat between it and the electronic device to be disconnected, and thus it will be judged as an abnormal state.

[0061] In this embodiment, when the electronic device detects that the dash cam is started, it obtains the first camera information pre-configured in the dash cam, and obtains the second camera information in the normal state in the vehicle. When it is determined that there is no second identifier matching the first identifier in the second camera information, it is determined that the camera of the dash cam is in an abnormal state. It determines whether the default camera is available when the dash cam is started. If it is not available, it determines the target camera from the normally available cameras of the vehicle to switch, thereby avoiding the inability to record driving data due to the unavailability of the default camera of the dash cam, so as to improve the availability of the dash cam.

[0062] In an exemplary embodiment, the above method may also include: when it is determined that there is a second identifier matching the first identifier in the second camera information, sending a start instruction to the camera corresponding to the first identifier; when it is determined that the camera corresponding to the first identifier fails to start, determining that the camera of the driving recorder is in an abnormal state.

[0063] Among them, the start instruction can be an instruction to turn on the camera corresponding to the first identifier for the driving recorder to record driving data. The start failure means that the camera corresponding to the first identifier cannot be turned on normally. For example, the start failure will occur when the camera loses power or the communication is interrupted. The presence of a second identifier matching the first identifier in the second camera information means that the first identifier of the default camera used for the driving recorder matches the second identifier of a camera in the normal state in the vehicle, that is, the first identifier of the default camera is in the second camera information of the vehicle in the normal state, that is, the default camera is currently in the normal state.

[0064] In this embodiment, when the electronic device detects that the driving recorder is started, it obtains the information of the first camera pre-configured in the driving recorder, and obtains the information of the second camera in the normal state in the vehicle. When it is determined that there is a second identifier matching the first identifier in the second camera information, it sends an opening instruction to the camera corresponding to the first identifier to open the camera for the driving recorder to record driving data, and when it is determined that the camera fails to be opened, it determines that the camera of the driving recorder is in an abnormal state. When the driving recorder is started, it determines whether the state of the camera is abnormal by determining whether the default camera can be turned on normally, and when it is determined to be abnormal, it determines the target camera from the normally available cameras of the vehicle to switch, thereby avoiding the inability to record driving data due to the abnormality of the default camera of the driving recorder, so as to improve the availability of the driving recorder.

[0065] In an exemplary embodiment, the above method may also include: obtaining the state of the camera of the driving recorder recording driving data; when the recording state is interrupted, determining that the camera of the driving recorder is in an abnormal state. The recording state interruption refers to the situation that the camera of the driving recorder is suddenly interrupted during normal operation. In this embodiment, during the operation of the camera of the driving recorder, the electronic device can also monitor its working state in real time, and when it is detected that its recording state is interrupted, it can be determined that the camera of the driving recorder is in an abnormal state. It monitors the working state of the camera of the driving recorder, and when it is detected that its working state is abnormal, it determines the target camera from the normally available cameras of the vehicle to switch, thereby avoiding the problem of driving data interruption caused by the abnormality of the default camera of the driving recorder, so that the driving data can be recorded continuously, and the availability of the driving recorder is improved.

[0066] In an exemplary embodiment, Figure 4 As shown, the camera switching method of the above-mentioned driving recorder is further described below, which may specifically include the following steps:

[0067] Step 402: when it is detected that the driving recorder is started, obtain the first camera information pre-configured for the driving recorder.

[0068] The first camera information includes a first identifier of a default camera pre-configured for the driving recorder.

[0069] Step 404, obtaining the second camera information in the normal state in the vehicle.

[0070] The second camera information includes a second identifier of a camera in a normal state in the vehicle. The camera in a normal state in the vehicle may be a camera that can normally monitor the heartbeat state.

[0071] Step 406, determining whether the first identifier exists in the second camera information.

[0072] If it exists, execute step 408; if it does not exist, execute step 414.

[0073] Step 408: Send an opening instruction to the camera corresponding to the first identifier.

[0074] When it is determined that the first identifier exists in the second camera information, a start instruction is sent to the camera corresponding to the first identifier.

[0075] Step 410, receiving a response to the start instruction.

[0076] The response may be a successful start response or a failed start response.

[0077] Step 412, determine whether the response is an opening failure.

[0078] If the response is that the opening fails, step 414 is executed, and if the response is that the opening succeeds, step 418 is executed.

[0079] Step 414, determining that the camera of the driving recorder is in an abnormal state.

[0080] Specifically, when it is determined that the response is a start failure, it is determined that the camera of the driving recorder is in an abnormal state. And when it is determined that there is no first identifier in the second camera information, it is determined that the default camera of the driving recorder is in an abnormal state.

[0081] Step 416, determine the target camera from the cameras in the normal state of the vehicle, and switch the camera of the driving recorder to the target camera.

[0082] This step includes sub-step 1 of fully automatic switching of the electronic device, sub-step 2 of semi-automatic switching with user interaction, and sub-step 3 of manual switching with user interaction.

[0083] Among them, in sub-step 1 of fully automatic switching of the electronic device, the electronic device can randomly determine one of the cameras in the normal state of the vehicle as the target camera, and switch the camera of the driving recorder to the target camera; or, the electronic device can obtain the priority of each camera in the normal state of the vehicle, determine the camera with the highest priority as the target camera, and switch the camera of the driving recorder to the target camera; or, the electronic device can also determine the first shooting area of ​​the camera in the abnormal state, and the second shooting area of ​​each camera in the normal state of the vehicle, determine the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera, and switch the camera of the driving recorder to the target camera. In this way, the electronic device can automatically switch the camera of the driving recorder, avoiding the tedious operation of manual switching by the user, so as to improve the degree of intelligence.

[0084] In the semi-automatic switching sub-step 2 of the electronic device interacting with the user, the electronic device may display a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder, and in response to the user's confirmation instruction for the switching reminder message, determine the target camera from the cameras in the normal state of the vehicle according to the confirmation instruction, and then switch the camera of the driving recorder to the target camera. In this sub-step, the electronic device can determine the target camera and switch it based on the user's confirmation instruction for the switch, so that the switching flexibility is high.

[0085] In the manual switching sub-step 3 of the electronic device interacting with the user, the electronic device can display a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder, and in response to the user's confirmation instruction for the switching reminder message, return a camera list, wherein the camera list includes the identification information of the cameras in the normal state of the vehicle, and then respond to the user's selection instruction for the target identification information in the camera list, determine the camera corresponding to the target identification information as the target camera according to the selection instruction, and then switch the camera of the driving recorder to the target camera. In this sub-step, the electronic device can switch based on the target camera selected by the user to improve the user experience.

[0086] Step 418, recording driving data.

[0087] If the response is that the activation is successful, the driving data is recorded based on the camera corresponding to the first identifier. Alternatively, the driving data is recorded based on the target camera determined in the above steps.

[0088] Step 420, monitoring the recording status of the driving data.

[0089] The recording status includes a normal recording status and an interrupted recording status.

[0090] Step 422, determining whether the recording state is interrupted.

[0091] If it is not interrupted, it means that the recording state is normal, so it can return to step 420 to continue monitoring. If it is interrupted, step 424 is executed.

[0092] Step 424, detecting a collision signal.

[0093] The collision signal refers to a signal indicating that the vehicle has collided. Specifically, if a collision signal is detected, the process may return to execute sub-step 1 in step 416 in which the electronic device switches completely automatically. If no collision signal is detected, the process may return to execute any sub-step in step 416.

[0094] In the camera switching method of the above-mentioned dash cam, when the electronic device detects that the camera of the dash cam is in an abnormal state, it can automatically switch the camera of the dash cam, thereby avoiding the tedious operation of manual switching by the user, so as to improve the degree of intelligence. The electronic device can also determine the target camera and switch it based on the user's confirmation instruction for switching, so that the switching flexibility is high. The electronic device can also switch based on the target camera selected by the user to improve the user experience. When it is detected that the recording state of the camera recording driving data is interrupted, the electronic device can also automatically switch, semi-automatically switch with user interaction, or manually switch with user interaction based on whether a collision signal is detected, thereby avoiding the interruption of driving data due to the abnormality of the dash cam camera, so that driving data can be recorded continuously to improve driving safety.

[0095] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0096] Based on the same inventive concept, the embodiment of the present application also provides a switching device for implementing the camera switching method of the driving recorder involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the camera switching device of one or more driving recorders provided below can refer to the limitations of the camera switching method of the driving recorder above, and will not be repeated here.

[0097] In an exemplary embodiment, Figure 5 As shown, a camera switching device of a driving recorder is provided, comprising: a determination module 502 and a switching module 504, wherein:

[0098] The determination module 502 is configured to determine a target camera from cameras in a normal state of the vehicle when it is detected that the camera of the driving recorder is in an abnormal state;

[0099] The switching module 504 is configured to switch the camera of the driving recorder to the target camera, and record driving data based on the target camera.

[0100] In an exemplary embodiment, the device also includes a detection module configured to perform: when it is detected that the driving recorder is started, obtaining first camera information pre-configured for the driving recorder, the first camera information including a first identifier of the pre-configured camera; obtaining second camera information in a normal state in the vehicle, the second camera information including a second identifier of the camera in a normal state in the vehicle; and when it is determined that there is no second identifier matching the first identifier in the second camera information, determining that the camera of the driving recorder is in an abnormal state.

[0101] In an exemplary embodiment, the detection module is also configured to execute: when it is determined that there is a second identifier matching the first identifier in the second camera information, sending a start instruction to the camera corresponding to the first identifier; when it is determined that the camera corresponding to the first identifier fails to start, determining that the camera of the driving recorder is in an abnormal state.

[0102] In an exemplary embodiment, the detection module is further configured to execute: obtaining the state of the camera of the driving recorder recording driving data; and determining that the camera of the driving recorder is in an abnormal state when an interruption in the recording state is detected.

[0103] In an exemplary embodiment, the determination module is further configured to execute: after determining that the camera of the driving recorder is in an abnormal state, when a collision signal is detected, determining a target camera from the cameras in the normal state of the vehicle; when no collision signal is detected, displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; and in response to a confirmation instruction of the switching reminder message, determining a target camera from the cameras in the normal state of the vehicle according to the confirmation instruction.

[0104] In an exemplary embodiment, the determination module is further configured to execute: obtaining the priority of each camera in the normal state of the vehicle; and determining the camera with the highest priority as the target camera.

[0105] In an exemplary embodiment, the determination module is further configured to execute: determining a first shooting area of ​​a camera in an abnormal state, and a second shooting area of ​​each of the cameras in a normal state of the vehicle; and determining a camera corresponding to a second shooting area having the highest degree of overlap with the first shooting area as the target camera.

[0106] In an exemplary embodiment, the device also includes a display module, configured to execute: displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; in response to a confirmation instruction of the switching reminder message, returning a camera list, wherein the camera list includes identification information of cameras in a normal state in the vehicle; the determination module is also configured to execute: in response to a selection instruction of target identification information in the camera list, determining that the camera corresponding to the target identification information is the target camera according to the selection instruction.

[0107] In an exemplary embodiment, the display module is also configured to execute: displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; the determination module is also configured to execute: in response to a confirmation instruction of the switching reminder message, determining a target camera from the cameras in a normal state of the vehicle according to the confirmation instruction.

[0108] In an exemplary embodiment, the display module is further configured to execute: displaying an abnormality reminder message, wherein the abnormality reminder message is used to indicate that the camera of the driving recorder is abnormal.

[0109] Each module in the camera switching device of the above-mentioned driving recorder can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0110] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a camera switching method of a driving recorder is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0111] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In an exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0113] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0114] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0115] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0116] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0118] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A camera switching method for a driving recorder, characterized in that: The method comprises: When it is detected that the camera of the driving recorder is in an abnormal state, determining a target camera from the cameras of the vehicle in a normal state; The camera of the driving recorder is switched to the target camera, and driving data is recorded based on the target camera.

2. The method according to claim 1, characterized in that The method further comprises: When detecting that the driving recorder is started, obtaining first camera information pre-configured for the driving recorder, wherein the first camera information includes a first identifier of the pre-configured camera; Acquire information of a second camera in a normal state in the vehicle, where the second camera information includes a second identifier of the camera in the normal state in the vehicle; When it is determined that there is no second identifier matching the first identifier in the second camera information, it is determined that the camera of the driving recorder is in an abnormal state.

3. The method according to claim 2, characterized in that The method further comprises: When it is determined that there is a second identifier matching the first identifier in the second camera information, sending an opening instruction to the camera corresponding to the first identifier; When it is determined that the camera corresponding to the first identifier fails to be turned on, it is determined that the camera of the driving recorder is in an abnormal state.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining the state of the camera of the driving recorder recording driving data; When the recording state is detected to be interrupted, it is determined that the camera of the driving recorder is in an abnormal state.

5. The method according to claim 4, characterized in that After determining that the camera of the driving recorder is in an abnormal state, the method further includes: In case a collision signal is detected, a target camera is determined from cameras in a normal state of the vehicle; In the case where no collision signal is detected, a switching reminder message is displayed, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; in response to a confirmation instruction of the switching reminder message, a target camera is determined from the cameras in the normal state of the vehicle according to the confirmation instruction.

6. The method according to any one of claims 1 to 5, characterized in that: The step of determining the target camera from the cameras in the normal state of the vehicle includes: Obtaining the priority of each camera in the normal state of the vehicle; The camera with the highest priority is determined as the target camera.

7. The method according to any one of claims 1 to 5, characterized in that: The step of determining the target camera from the cameras in the normal state of the vehicle includes: Determine a first shooting area of ​​a camera in an abnormal state, and a second shooting area of ​​each of the cameras in a normal state of the vehicle; The camera corresponding to the second shooting area having the highest overlap with the first shooting area is determined as the target camera.

8. The method according to any one of claims 1 to 4, characterized in that: The step of determining the target camera from the cameras in the normal state of the vehicle includes: Displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; In response to a confirmation instruction of the switching reminder message, returning a camera list, wherein the camera list includes identification information of cameras in a normal state in the vehicle; In response to a selection instruction for the target identification information in the camera list, a camera corresponding to the target identification information is determined as the target camera according to the selection instruction.

9. The method according to any one of claims 1 to 4, characterized in that: The step of determining the target camera from the cameras in the normal state of the vehicle includes: Displaying a switching reminder message, wherein the switching reminder message is used to indicate whether to switch the camera of the driving recorder; In response to a confirmation instruction for the switching reminder message, a target camera is determined from cameras in a normal state of the vehicle according to the confirmation instruction.

10. A camera switching device for a driving recorder, characterized in that: The device comprises: A determination module is configured to determine a target camera from cameras in a normal state of the vehicle when it is detected that the camera of the driving recorder is in an abnormal state; The switching module is configured to switch the camera of the driving recorder to the target camera and record driving data based on the target camera.

Citation Information

Patent Citations

  • Vehicle evaluation method, device and system based on automobile data recorder

    CN105100218A

  • Method and apparatus for switching working mode of driving recorder, and mobile terminal

    CN107045390A

  • Tunnel traffic abnormal recognition alarming device

    CN107464428A

  • Method and device for displaying environment image, vehicle and storage medium

    CN116691514A

  • Blue screen and blurred screen fault display processing method based on vehicle-mounted display screen

    CN117068048A