Dashcam camera switching methods and devices

By switching to another camera in normal condition when the dashcam detects an abnormality, the problem of interrupted driving data is solved, enabling continuous recording and improving driving safety.

CN119992681BActive Publication Date: 2025-10-31CHENGDU CELIS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

If the camera of a traditional dashcam malfunctions, it will cause the driving data to be interrupted, increasing the risk of driving safety hazards.

Method used

When an abnormal camera condition is detected, the target camera is identified from the other cameras in normal condition on the vehicle, and the dashcam's camera is switched to the target camera to continue recording driving data.

Benefits of technology

It avoids interruption of driving data, improves driving safety and intelligence, and simplifies the tedious operation of manual switching for users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992681B_ABST
    Figure CN119992681B_ABST
Patent Text Reader

Abstract

This application relates to a method and apparatus for switching cameras in a dashcam. When an abnormal state is detected in the dashcam's camera, a target camera is identified from other normally functioning cameras in the vehicle, and the dashcam's camera is switched to the target camera. Driving data is then recorded based on the target camera. This avoids interruptions in driving data due to dashcam camera malfunctions, enabling continuous recording and improving driving safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automatic control technology, and in particular to a camera switching method and device for a dashcam. Background Technology

[0002] A dashcam is a technological device that uses cameras to capture video images of the vehicle's surroundings while it is in motion and records them as video files. It not only records video images of the vehicle in motion but also provides various functions such as parking monitoring, traffic sign and lane line recognition, and driving safety alerts. Therefore, dashcams have become one of the standard features in cars.

[0003] Traditional dashcams use fixed cameras, such as front-facing cameras or 360-degree surround-view cameras. However, if the dashcam camera malfunctions, driving data will be interrupted, increasing driving safety hazards. Summary of the Invention

[0004] Therefore, it is necessary to provide a camera switching method, device, electronic device, computer-readable storage medium, and computer program product for a dashcam capable of continuously recording driving data, addressing the aforementioned technical problems.

[0005] In a first aspect, this application provides a method for switching cameras in a dashcam, the method comprising:

[0006] If the camera of the dashcam is detected to be in an abnormal state, the target camera is determined from the cameras in normal condition of the vehicle.

[0007] The dashcam's camera is switched to the target camera, and driving data is recorded based on the target camera.

[0008] In one embodiment, the method further includes: when the dashcam is detected to be activated, acquiring first camera information pre-configured by the dashcam, the first camera information including a first identifier of the pre-configured camera; acquiring second camera information in the vehicle under normal conditions, the second camera information including a second identifier of the camera in the vehicle under normal conditions; and determining that the dashcam camera is in an abnormal state if it is determined that there is no second identifier in the second camera information that matches the first identifier.

[0009] In one embodiment, the method further includes: if it is determined that there is a second identifier in the second camera information that matches the first identifier, sending an activation command to the camera corresponding to the first identifier; if it is determined that the camera corresponding to the first identifier fails to activate, determining that the camera of the dashcam is in an abnormal state.

[0010] In one embodiment, the method further includes: acquiring the status of the dashcam's camera recording driving data; and determining that the dashcam's camera is in an abnormal state if the recording status is detected to be interrupted.

[0011] In one embodiment, after determining that the dashcam's camera is in an abnormal state, the method further includes: if a collision signal is detected, determining a target camera from the cameras in normal vehicle operation; if no collision signal is detected, displaying a switching reminder message, the switching reminder message indicating whether to switch the dashcam's camera; and in response to a confirmation instruction for the switching reminder message, determining the target camera from the cameras in normal vehicle operation according to the confirmation instruction.

[0012] In one embodiment, 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 embodiment, determining the target camera from the cameras in the normal state of the vehicle includes: determining a first shooting area of ​​the cameras 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 embodiment, determining the target camera from cameras in normal vehicle operation includes: displaying a switching reminder message, the switching reminder message indicating whether to switch the dashcam's camera; returning a camera list in response to a confirmation command for the switching reminder message, the camera list including identification information of cameras in normal vehicle operation; and determining the camera corresponding to the target identification information as the target camera based on a selection command for target identification information in the camera list.

[0015] In one embodiment, determining the target camera from the cameras in normal vehicle operation includes: displaying a switching reminder message, the switching reminder message indicating whether to switch the camera of the dashcam; and, in response to a confirmation instruction for the switching reminder message, determining the target camera from the cameras in normal vehicle operation according to the confirmation instruction.

[0016] In one embodiment, when the camera of the dash cam is detected to be in an abnormal state, the method further includes: displaying an abnormality alert message, the abnormality alert message being used to indicate that the camera of the dash cam is abnormal.

[0017] Secondly, this application also provides a camera switching device for a dashcam, the device comprising:

[0018] The determination module is configured to determine the target camera from the cameras in normal operation of the vehicle when the camera of the dashcam is detected to be in an abnormal state.

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

[0020] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.

[0021] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.

[0022] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.

[0023] The aforementioned dashcam camera switching method, device, electronic equipment, computer-readable storage medium, and computer program product, when detecting an abnormal state of the dashcam camera, determine a target camera from other normally functioning cameras in the vehicle, switch the dashcam camera to the target camera, and record driving data based on the target camera. This avoids interruption of driving data due to dashcam camera malfunction, enabling continuous recording and improving driving safety. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 This is a flowchart illustrating a camera switching method for a dashcam in one embodiment;

[0026] Figure 2 This is a flowchart illustrating the steps for determining the target camera in one embodiment;

[0027] Figure 3 This is a flowchart illustrating the steps for determining camera malfunctions in one embodiment;

[0028] Figure 4 This is a flowchart illustrating the camera switching method of a dashcam in another embodiment;

[0029] Figure 5 This is a structural block diagram of a camera switching device for a dashcam in one embodiment;

[0030] Figure 6 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

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

[0033] Step 102: If the dashcam camera is detected to be in an abnormal state, the target camera is determined from the cameras in normal condition of the vehicle.

[0034] In this context, the dashcam camera refers to the camera used for recording driving data. This can refer to the camera that the dashcam is connected to by default, or the camera currently being used by the dashcam. An abnormal state refers to a state where the camera cannot be used normally, including but not limited to connection errors or recording errors.

[0035] Specifically, a vehicle may include at least two cameras, such as at least two of a front-facing camera, a rear-facing camera, a 360-degree panoramic camera, a front-row in-vehicle camera, and a rear-row in-vehicle camera. It is understood that each camera in the vehicle can be used by a dashcam to record driving data; however, due to limitations in dashcam display, dashcams typically use one or two cameras for recording. In this embodiment, the electronic device can monitor the status of each camera in the vehicle. If the dashcam detects that its current camera is in an abnormal state, it can determine the target camera from among the other cameras in normal condition in the vehicle. The target camera can be the camera that the dashcam is to switch to for driving data recording.

[0036] Step 104: Switch the dashcam's camera to the target camera and record driving data based on the target camera.

[0037] Specifically, after identifying the target camera through the above steps, the electronic device can switch the dashcam's camera to the target camera, that is, use the target camera to record driving data for the dashcam, thereby avoiding the interruption of driving data due to the dashcam's camera malfunction, and enabling continuous recording of driving data.

[0038] In the aforementioned camera switching method for dashcams, when the electronic device detects that the dashcam camera is in an abnormal state, it identifies the target camera from other normally functioning cameras in the vehicle and switches the dashcam camera to the target camera, recording driving data based on the target camera. This avoids interruption of driving data due to dashcam camera malfunction, allowing for continuous recording and improving driving safety.

[0039] In an exemplary embodiment, step 102, determining the target camera from the cameras in the vehicle's normal operating state, specifically includes: acquiring the priority of each camera in the vehicle's normal operating state; and determining the camera with the highest priority as the target camera. The camera priority can be a parameter pre-configured for the priority level of the dashcam for recording driving data. Cameras with higher priority levels are more likely to be used by the dashcam. For example, if the vehicle includes a front camera, a rear camera, a 360° panoramic camera, a front in-car camera, and a rear in-car camera, the priority of each camera for the dashcam can be pre-configured. If the pre-configured priority order of the cameras from highest to lowest is: front camera = 360° panoramic camera > rear camera > front in-car camera > rear in-car camera, this indicates that the front camera and the 360° panoramic camera have comparable priorities, and both have the highest priority. Therefore, when it is necessary to switch the dashcam camera, the electronic device can determine the camera with the highest priority from the cameras in the vehicle's normal operating state as the target camera for switching, based on the pre-configured priority order.

[0040] In this embodiment, when the electronic device detects that the dashcam's camera is in an abnormal state, it further acquires the priority of each camera among the vehicle's cameras in normal operation, identifies the camera with the highest priority as the target camera, and then switches the dashcam's camera to the target camera, recording driving data based on the target camera. This avoids interruption of driving data due to dashcam camera malfunction, enabling continuous recording. Furthermore, the automatic identification and switching of the target camera based on camera priority not only achieves automated control, avoiding the tedious manual switching operation by the user and improving the level of intelligence, but also contributes to improving driving reliability and safety.

[0041] In an exemplary embodiment, step 102, determining the target camera from the cameras in the vehicle's normal state, may further include: determining a first shooting area of ​​the cameras in an abnormal state, and a second shooting area of ​​each camera in the vehicle's normal state; and determining the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera. The first and second shooting areas can be specific ranges that the cameras can capture with reference to the vehicle, such as the area in front of the vehicle, the area behind the vehicle, the area to the left of the vehicle, the area to the right of the vehicle, etc. Specifically, the first shooting area is the area range that the camera currently used for the dashcam can capture, and the second shooting area is the area range that other cameras in the vehicle in its normal state can capture. The overlap can be a parameter measuring the size of the overlapping area between the second and first shooting areas. Since the first shooting area is the area that the camera currently used in the dashcam but in an abnormal state can capture, when it is necessary to switch the camera, the electronic device can also determine the normal state camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera for switching, based on the first shooting area of ​​the abnormal camera, so as to better meet the needs of the switching scenario.

[0042] In this embodiment, when the electronic device detects that the dashcam camera is in an abnormal state, it further determines the first shooting area of ​​the abnormal camera and the second shooting area of ​​each camera in the vehicle's normal state. The camera corresponding to the second shooting area with the highest overlap with the first shooting area is identified as the target camera. The dashcam camera is then switched to the target camera, and driving data is recorded based on the target camera. This avoids interruptions in driving data recording due to dashcam camera malfunction, allowing for continuous recording. Furthermore, the automatic identification and switching of the target camera based on the overlap of the camera's shooting areas not only achieves automated control, avoiding the tedious manual switching operation by the user and improving the level of intelligence, but also better meets the switching scenario requirements, thus improving driving reliability and safety.

[0043] In one exemplary embodiment, such as Figure 2 As shown, in step 102, determining the target camera from the cameras in the vehicle's normal operating state may further include:

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

[0045] The switching reminder message indicates whether to switch the dashcam camera. Specifically, the switching reminder message can be displayed on the electronic device in the form of a pop-up window or a bubble. Furthermore, the electronic device can also display the switching reminder message when it detects that the dashcam camera is in an abnormal state, thus interacting with the user.

[0046] Step 204: 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.

[0047] The confirmation command can be a user's confirmation instruction returned in response to the switching reminder message. Specifically, the electronic device interacts with the user by displaying the switching reminder message, allowing the user to choose whether to switch. Upon user confirmation, the device automatically selects the target camera from the vehicle's normally functioning cameras and switches accordingly.

[0048] In this embodiment, when the electronic device detects that the dashcam camera is in an abnormal state, it can display a switching reminder message to indicate whether to switch the dashcam camera. In response to the confirmation command of the switching reminder message, it determines the target camera from the cameras in normal vehicle operation and switches the dashcam camera to the target camera, recording driving data based on the target camera. This avoids interruption of driving data due to dashcam camera malfunction, allowing continuous recording. Furthermore, by displaying a switching reminder message and interacting with the user when the dashcam camera is in an abnormal state, the user can choose whether to switch, improving the user experience. Afterwards, when the user confirms the switch, the target camera can be automatically determined from the cameras in normal vehicle operation, further enhancing the intelligence of the switching process.

[0049] In an exemplary embodiment, in step 204, in response to a confirmation instruction for the switching reminder message, the target camera is determined from the cameras in the vehicle's normal state according to the confirmation instruction. Specifically, this may further include: in response to the confirmation instruction for the switching reminder message, displaying a camera list; and in response to a selection instruction for 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. The camera list includes identification information of cameras in the vehicle's normal state, and the identification information can be a mark or number used to uniquely identify a camera, such as a camera number. The selection instruction can be a user's selection operation for a specific target identification information in the camera list. Specifically, the electronic device interacts with the user by displaying a switching reminder message, allowing the user to choose whether to switch, and upon confirmation of the switch, displays a list of cameras in the vehicle's normal state, allowing the user to choose the desired camera to switch to.

[0050] In this embodiment, when the electronic device detects that the dashcam camera is in an abnormal state, it can display a switching reminder message to indicate whether to switch the dashcam camera. In response to the confirmation command of the switching reminder message, a camera list is displayed. In response to the selection command of the target identifier information in the camera list, the camera corresponding to the target identifier information is determined as the target camera, and the dashcam camera is switched to the target camera to record driving data. This avoids driving data interruption due to dashcam camera malfunction, allowing continuous recording. Furthermore, by displaying a message and interacting with the user when the dashcam camera is determined to be in an abnormal state, the user can independently choose whether to switch and select their preferred camera, which not only provides high flexibility but also improves the user experience.

[0051] In an exemplary embodiment, in step 102, when the camera of the dash cam is detected to be in an abnormal state, the above method may further include: displaying an abnormality alert message, wherein the abnormality alert message is used to indicate that the camera of the dash cam is abnormal.

[0052] Specifically, when the electronic device detects that the dashcam's camera is in an abnormal state, it can also display an abnormality alert message to indicate that the dashcam's camera is malfunctioning. This allows users to understand the dashcam's usage status in a timely manner and to troubleshoot problems based on the abnormality alert message, thereby improving the dashcam's reliability.

[0053] In one exemplary embodiment, such as Figure 3 As shown, the above method may further include:

[0054] Step 302: When the dashcam is detected to be running, obtain the information of the first camera pre-configured by the dashcam.

[0055] The first camera information includes a pre-configured first identifier for the camera. This first identifier refers to the identifier of the default camera pre-configured for the dashcam, which is the specific camera used by default for recording driving data. Dashcam startup refers to the process of the dashcam transitioning from a powered-off state to a usable state.

[0056] In this embodiment, when the electronic device detects that the dashcam has been activated, it can obtain the information of the first camera that has been pre-configured based on the dashcam's configuration information, thereby determining which camera can be used by the dashcam to record driving data.

[0057] Step 304: Obtain information from the second camera in the vehicle under normal conditions.

[0058] The second camera information includes the second identifier of the cameras in normal operation within the vehicle. Specifically, the electronic device can monitor the heartbeat status of each camera in the vehicle based on a heartbeat mechanism. Therefore, the electronic device can obtain real-time information about the cameras in normal operation within the vehicle, such as cameras with normal heartbeat status, and identify the second identifier of the cameras in normal operation to obtain the second camera information.

[0059] Step 306: If it is determined that there is no second identifier in the second camera information that matches the first identifier, the dashcam camera is determined to be in an abnormal state.

[0060] Specifically, the absence of a second identifier matching the first identifier in the second camera information means that the first identifier of the default camera used by the dashcam does not match the second identifier of any camera in the vehicle under normal conditions. In other words, the first identifier of the default camera is not found in the second camera information under normal vehicle conditions, indicating that the default camera is in an abnormal state. Specifically, if the default camera loses power or its wiring becomes loose, the connection between it and the electronic device will be lost, thus being determined to be in an abnormal state.

[0061] In this embodiment, when the electronic device detects that the dashcam has been activated, it acquires information from a first camera pre-configured in the dashcam and information from a second camera in the vehicle that is in normal working order. If it determines that there is no second identifier matching the first identifier in the second camera information, it determines that the dashcam's camera is in an abnormal state. By determining whether the default camera is available when the dashcam is activated, and if it is unavailable, it selects a target camera from the vehicle's normally available cameras and switches to it, thereby avoiding the inability to record driving data due to the unavailability of the dashcam's default camera, and thus improving the usability of the dashcam.

[0062] In an exemplary embodiment, the method may further include: if it is determined that there is a second identifier in the second camera information that matches the first identifier, sending an activation command to the camera corresponding to the first identifier; if it is determined that the camera corresponding to the first identifier fails to activate, determining that the dashcam's camera is in an abnormal state.

[0063] The activation command can be an instruction to turn on the camera corresponding to the first identifier for recording driving data by the dashcam. Activation failure means that the camera corresponding to the first identifier cannot be turned on normally; for example, a power outage or communication interruption will cause activation failure. 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 by the dashcam matches the second identifier of a camera in the vehicle under normal conditions. In other words, the first identifier of the default camera is in the second camera information under normal vehicle conditions, indicating that the default camera is currently in normal operation.

[0064] In this embodiment, when the electronic device detects that the dashcam has been activated, it acquires information from a first camera pre-configured in the dashcam and information from a second camera in the vehicle that is in normal working order. If it determines that a second identifier matching the first identifier exists in the second camera information, it sends an activation command to the camera corresponding to the first identifier to activate that camera for recording driving data. If it determines that the camera fails to activate, it determines that the dashcam's camera is in an abnormal state. By checking whether the default camera can be activated normally when the dashcam is activated, it determines whether the camera's state is abnormal. If an abnormality is determined, it selects a target camera from the vehicle's normally available cameras and switches to it, thereby avoiding the inability to record driving data due to a faulty default camera, thus improving the dashcam's usability.

[0065] In an exemplary embodiment, the method may further include: acquiring the recording status of the dashcam's camera recording driving data; and determining that the dashcam's camera is in an abnormal state when a recording interruption is detected. Here, a recording interruption refers to a sudden interruption of the dashcam's camera during normal operation. In this embodiment, during the dashcam's camera's operation, the electronic device can also monitor its operating status in real time, and determine that the dashcam's camera is in an abnormal state when a recording interruption is detected. By monitoring the operating status of the dashcam's camera and switching to a target camera from the vehicle's normally available cameras when an abnormal operating status is detected, the problem of driving data interruption due to a faulty default dashcam camera is avoided, allowing continuous recording of driving data and improving the dashcam's availability.

[0066] In one exemplary embodiment, such as Figure 4 As shown below, the camera switching method of the above-mentioned dashcam is further explained, which may include the following steps:

[0067] Step 402: If the dashcam is detected to be running, obtain the information of the first camera pre-configured by the dashcam.

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

[0069] Step 404: Obtain information from the second camera in the vehicle under normal conditions.

[0070] The second camera information includes a second identifier for a camera in the vehicle that is functioning normally. A camera in the vehicle that is functioning normally can be one capable of monitoring heartbeat status.

[0071] Step 406: Determine whether the first identifier exists in the information from the second camera.

[0072] If it exists, proceed to step 408; otherwise, proceed to step 414.

[0073] Step 408: Send an activation command to the camera corresponding to the first identifier.

[0074] If the first identifier is found in the information of the second camera, an activation command is sent to the camera corresponding to the first identifier.

[0075] Step 410: Receive the response to the start command.

[0076] The response can be either a success message or a failure message.

[0077] Step 412: Determine if the response indicates a failure to start.

[0078] If the response indicates failure to enable, proceed to step 414; if the response indicates success to enable, proceed to step 418.

[0079] Step 414: Determine that the dashcam camera is in an abnormal state.

[0080] Specifically, if the response indicates an opening failure, the dashcam's camera is determined to be in an abnormal state. Also, if the first identifier is not present in the second camera information, the dashcam's default camera is determined to be in an abnormal state.

[0081] Step 416: Identify the target camera from the cameras in normal vehicle operation and switch the dashcam's camera to the target camera.

[0082] This process includes a fully automatic switching sub-step 1, a semi-automatic switching sub-step 2 involving user interaction, and a manual switching sub-step 3 involving user interaction.

[0083] In sub-step 1, where the electronic device automatically switches between cameras, it can randomly select one camera from the cameras in the vehicle's normal operating state as the target camera and switch the dashcam's camera to that target camera. Alternatively, the electronic device can obtain the priority of each camera in the vehicle's normal operating state, select the camera with the highest priority as the target camera, and switch the dashcam's camera to that target camera. Or, the electronic device can also determine the first shooting area of ​​the camera in an abnormal operating state and the second shooting area of ​​each camera in the vehicle's normal operating state, select the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera, and switch the dashcam's camera to that target camera. This allows the electronic device to automatically switch the dashcam's camera, avoiding the tedious manual switching operation by the user and improving the level of intelligence.

[0084] In the semi-automatic switching sub-step 2 of the electronic device-user interaction, the electronic device can display a switching reminder message. This message indicates whether to switch the dashcam camera. In response to the user's confirmation of the switching reminder message, the electronic device identifies the target camera from the vehicle's normally functioning cameras and then switches the dashcam camera to the target camera. In this sub-step, the electronic device can determine the target camera and switch based on the user's confirmation, resulting in high flexibility in the switching process.

[0085] In the manual switching sub-step of the electronic device's interaction with the user, the electronic device can display a switching reminder message. This message indicates whether to switch the dashcam's camera. In response to the user's confirmation of the reminder message, the device returns to a camera list, which includes identification information for cameras normally operating in the vehicle. Then, in response to the user's selection of a target camera from the list, the device identifies the camera corresponding to that target camera and switches the dashcam's camera to that target camera. In this sub-step, the electronic device can switch based on the user-selected target camera to improve the user experience.

[0086] Step 418: Record driving data.

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

[0088] Step 420: Monitor the recording status of the recorded driving data.

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

[0090] Step 422: Determine whether the recording process has been interrupted.

[0091] If the recording is not interrupted, it indicates that the recording status is normal, so you can return to step 420 to continue monitoring. If it is interrupted, proceed to step 424.

[0092] Step 424: Detect collision signals.

[0093] Here, a collision signal refers to a signal indicating a vehicle collision. Specifically, if a collision signal is detected, the process can return to sub-step 1, where the electronic device automatically switches between steps in step 416 above. If no collision signal is detected, the process can return to any sub-step in step 416 above.

[0094] In the aforementioned camera switching method for dashcams, the electronic device can automatically switch cameras when it detects an abnormal state, thus avoiding the tedious manual switching operation by the user and improving its intelligence. The electronic device can also determine the target camera and switch based on the user's confirmation command, making the switching highly flexible. Furthermore, it can switch based on a user-selected target camera to enhance the user experience. When the recording of 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. This prevents driving data interruption due to camera malfunction, ensuring continuous recording and improving driving safety.

[0095] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0096] Based on the same inventive concept, this application also provides a switching device for implementing the camera switching method of the dashcam described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more dashcam camera switching device embodiments provided below can be found in the limitations of the dashcam camera switching method described above, and will not be repeated here.

[0097] In one exemplary embodiment, such as Figure 5 As shown, a camera switching device for a dashcam is provided, comprising: a determining module 502 and a switching module 504, wherein:

[0098] The determination module 502 is configured to determine the target camera from the cameras in normal condition of the vehicle when the camera of the dashcam is detected to be in an abnormal state.

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

[0100] In an exemplary embodiment, the device further includes a detection module configured to perform: upon detecting that the dashcam is activated, acquiring pre-configured first camera information of the dashcam, the first camera information including a first identifier of a pre-configured camera; acquiring second camera information in a normal state in the vehicle, the second camera information including a second identifier of a camera in a normal state in the vehicle; and determining that the dashcam's camera is in an abnormal state if it is determined that there is no second identifier in the second camera information that matches the first identifier.

[0101] In an exemplary embodiment, the detection module is further configured to: if it is determined that there is a second identifier in the second camera information that matches the first identifier, send an activation command to the camera corresponding to the first identifier; if it is determined that the camera corresponding to the first identifier fails to activate, determine that the camera of the dashcam is in an abnormal state.

[0102] In one exemplary embodiment, the detection module is further configured to: acquire the status of the dashcam's camera recording driving data; and determine that the dashcam's camera is in an abnormal state if the recording status is detected to be interrupted.

[0103] In an exemplary embodiment, the determining module is further configured to: after determining that the dashcam's camera is in an abnormal state, if a collision signal is detected, determine a target camera from the cameras in the vehicle's normal state; if no collision signal is detected, display a switching reminder message, the switching reminder message indicating whether to switch the dashcam's camera; and in response to a confirmation instruction for the switching reminder message, determine the target camera from the cameras in the vehicle's normal state according to the confirmation instruction.

[0104] In one exemplary embodiment, the determining module is further configured to perform: acquiring the priority of each of the cameras 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 determining module is further configured to perform: determining a first shooting area of ​​the camera in an abnormal state, and a second shooting area of ​​each of the cameras in a normal vehicle state; and determining the camera corresponding to the second shooting area with the highest overlap with the first shooting area as the target camera.

[0106] In an exemplary embodiment, the device further includes a display module configured to: display a switching reminder message, the switching reminder message indicating whether to switch the camera of the dashcam; and, in response to a confirmation instruction for the switching reminder message, return a camera list, the camera list including identification information of cameras in normal state in the vehicle; the determination module is further configured to: in response to a selection instruction for target identification information in the camera list, determine, according to the selection instruction, the camera corresponding to the target identification information as the target camera.

[0107] In an exemplary embodiment, the display module is further configured to perform: displaying a switching reminder message, the switching reminder message indicating whether to switch the camera of the dashcam; the determination module is further configured to perform: in response to a confirmation instruction for the switching reminder message, determining a target camera from the cameras in the normal state of the vehicle according to the confirmation instruction.

[0108] In one exemplary embodiment, the display module is further configured to perform: displaying an anomaly alert message, the anomaly alert message being used to indicate an anomaly in the dashcam's camera.

[0109] The various modules in the camera switching device of the aforementioned dashcam can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0110] In one exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, the electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a camera switching method for a dashcam. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0111] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which 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 different component arrangements.

[0112] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0113] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

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

[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, data stored, data displayed, 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 the relevant data must comply with relevant regulations.

[0116] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0117] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for switching cameras in a dashcam, characterized in that, The method includes: When the dashcam is detected to be activated, the dashcam acquires the first camera information pre-configured by the dashcam, the first camera information including the first identifier of the pre-configured camera; Information about a second camera in a normal state within a vehicle is obtained based on a heartbeat mechanism. This second camera information includes a second identifier of the camera in a normal state within the vehicle. The camera in a normal state within the vehicle is one that can detect the heartbeat state. If it is determined that there is no second identifier in the second camera information that matches the first identifier, the camera of the dashcam is determined to be in an abnormal state; If the camera of the dashcam is detected to be in an abnormal state, the target camera is determined from the cameras in normal condition of the vehicle. The dashcam's camera 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 includes: If it is determined that there is a second identifier in the second camera information that matches the first identifier, an activation command is sent to the camera corresponding to the first identifier. If it is determined that the camera corresponding to the first identifier has failed to turn on, the camera of the dashcam is determined to be in an abnormal state.

3. The method according to claim 1, characterized in that, The method further includes: Obtain the status of driving data recorded by the dashcam's camera; If the recording is interrupted, the camera of the dashcam is determined to be in an abnormal state.

4. The method according to claim 3, characterized in that, After determining that the dashcam's camera is in an abnormal state, the method further includes: In the event of a collision signal, the target camera is identified from the cameras in the vehicle's normal operating state. If no collision signal is detected, a switching reminder message is displayed, which indicates whether to switch the camera of the dashcam; in response to the confirmation command of the switching reminder message, the target camera is determined from the cameras in the normal state of the vehicle according to the confirmation command.

5. 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 vehicle's normal operating state includes: The priority of each camera in the camera system is obtained when the vehicle is in normal operating condition; The camera with the highest priority is identified as the target camera.

6. 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 vehicle's normal operating state includes: Determine the first shooting area of ​​the camera in an abnormal state, and the second shooting area of ​​each of the cameras in the normal state of the vehicle; The camera corresponding to the second shooting area that has the highest overlap with the first shooting area is identified as the target camera.

7. The method according to any one of claims 1 to 3, characterized in that, The step of determining the target camera from the cameras in the vehicle's normal operating state includes: Display a switching reminder message, which indicates whether to switch the camera of the dashcam; In response to the confirmation command of the switching reminder message, the camera list is returned, which includes the identification information of the cameras in the vehicle in normal condition; In response to a selection instruction for target identification information in the camera list, the camera corresponding to the target identification information is determined as the target camera according to the selection instruction.

8. The method according to any one of claims 1 to 3, characterized in that, The step of determining the target camera from the cameras in the vehicle's normal operating state includes: Display a switching reminder message, which indicates whether to switch the camera of the dashcam; In response to a confirmation instruction for the switching reminder message, the target camera is determined from the cameras in the vehicle's normal operating state according to the confirmation instruction.

9. A camera switching device for a dashcam, characterized in that, The device includes: The determination module is configured to determine the target camera from the cameras in normal operation of the vehicle when the camera of the dashcam is detected to be in an abnormal state. The switching module is configured to switch the camera of the dashcam to the target camera and record driving data based on the target camera; The determining module is further configured to perform: upon detecting that the dashcam is activated, acquiring the first camera information pre-configured by the dashcam, wherein the first camera information includes a first identifier of the pre-configured camera; Information about a second camera in a normal state within a vehicle is obtained based on a heartbeat mechanism. This second camera information includes a second identifier of the camera in a normal state within the vehicle. The camera in a normal state within the vehicle is one that can detect the heartbeat state. If it is determined that there is no second identifier in the second camera information that matches the first identifier, the camera of the dashcam is determined to be in an abnormal state.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • 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