Camera connection method and device, electronic equipment and storage medium

By configuring and judging the success of the camera register and sending a shutter trigger signal to the camera, the 360 ​​image black screen problem caused by multiple camera configuration errors or synchronization signal loss is solved, and the normality of video output and user experience are improved.

CN119996627APending Publication Date: 2025-05-13SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510136714.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the prior art, when any one camera in a multiplex camera is configured incorrectly or the synchronization signal of any one camera is lost, it will cause abnormal communication between the vehicle and the camera, and the entire 360 ​​image has a black screen.

Method used

After configuring the camera register and determining that the configuration is successful, a shutter trigger signal is sent to the successfully configured camera, and according to the synchronization signal reception of each camera, it is determined whether the video corresponding to each camera is normally output.

Benefits of technology

It effectively avoids the problem of black screen of the entire 360 ​​image, improves the user experience, and facilitates determining the location of the locked faulty camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996627A_ABST
    Figure CN119996627A_ABST
Patent Text Reader

Abstract

The invention provides a camera connection method and device, electronic equipment and a storage medium. The method comprises the following steps: configuring a camera register; if the register configuration of any one camera is successful, a shutter trigger signal is sent to any one camera; and according to the receiving condition of the synchronization signal sent by each path of camera, determining whether a video corresponding to each path of camera is normally output. According to the method, whether configuration succeeds or not can be judged after the camera register is configured, camera configuration errors can be avoided, whether the video corresponding to each camera is output normally or not is determined for each camera, the problem of black screen of the whole 360-degree image can be effectively avoided, user experience is improved, and user experience is improved. And when a fault occurs, the position of the fault camera can be conveniently determined and locked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of camera configuration, and specifically to a camera connection method, device, electronic device and storage medium. Background Art

[0002] At present, the 360-degree panoramic image of the car is an important auxiliary driving technology that displays 360-degree panoramic fusion, ultra-wide viewing angle, and seamless real-time image information around the car through the on-board display screen, helping the driver to view the blind spots around the vehicle and improve driving safety. Because the 360-degree image around the vehicle cannot be collected by a single camera, it is necessary to fuse the videos collected by multiple cameras, and when the car computer turns on the 360-degree imaging function, the car computer needs to interact with the camera to obtain the video signal collected by the camera.

[0003] In the related art, when the vehicle computer is powered on and the 360-degree imaging function is turned on, the vehicle computer configures the camera registers, exchanges information with each camera, and outputs a 360-degree panoramic image after receiving the synchronization signal sent by the camera.

[0004] However, if any of the multiple cameras is configured incorrectly or the synchronization signal of any of the cameras is lost, it will cause abnormal communication between the vehicle computer and the camera, resulting in the problem of the entire 360 ​​image being a black screen.

[0005] It should be pointed out that the information disclosed in the background technology section of this application is only intended to deepen the understanding of the general background technology of this application, and should not be regarded as an admission or suggestion in any form that the information constitutes prior art already known to those skilled in the art. Summary of the invention

[0006] In view of this, the present application provides a camera connection method, device, electronic device and storage medium, so as to solve the problem in the prior art that when any camera among multiple cameras is configured incorrectly or the synchronization signal of any camera is lost, it will cause abnormal communication between the vehicle computer and the camera, resulting in a black screen for the entire 360 ​​image.

[0007] In a first aspect, an embodiment of the present application provides a camera connection method, which is applied to a vehicle computer equipped with a camera, and the method includes: Configure camera registers; If the register of any camera is configured successfully, a shutter trigger signal is sent to any camera, and the camera is used to send a synchronization signal to the vehicle computer and start acquiring video after receiving the shutter trigger signal; According to the reception status of the synchronization signal sent by each camera, it is determined whether the video corresponding to each camera is output normally.

[0008] In the embodiment of the present application, after configuring the camera register, according to the configuration of each camera register, a shutter trigger signal is sent to the successfully configured camera, and according to the synchronization signal reception of each camera, it is determined whether the video corresponding to each camera is output normally. It can be understood that after configuring the camera register, judging whether the configuration is successful can avoid camera configuration errors, and in the present application, for each camera, determining whether the video corresponding to each camera is output normally can effectively avoid the problem of the entire 360 ​​image black screen, improve the user experience, and facilitate the determination of the location of the locked faulty camera when a fault occurs.

[0009] In a possible implementation, determining whether to normally output the video corresponding to each camera according to the reception status of the synchronization signal sent by each camera includes: If a synchronization signal sent by any camera is received, the video sent by any camera is output normally; If the synchronization signal sent by any camera is not received, the video corresponding to any camera is controlled to be black screen.

[0010] In the embodiment of the present application, only when the synchronization signal sent by a certain camera is confirmed to be received, the video sent by the camera will be output. If the synchronization signal sent by a certain camera is not received, the entire 360-degree image will not be black, but only the video corresponding to the camera will be black. It can be understood that only blacking out a certain channel instead of the entire 360-degree image can improve the user experience and facilitate the determination of the location of the faulty camera when a fault occurs.

[0011] In a possible implementation, if the register configuration of any camera is successful, before sending a shutter trigger signal to any camera, the method further includes: Determine whether each camera register is configured successfully; If the configuration of any camera register is unsuccessful, reconfigure any camera register n times, where n is an integer greater than or equal to 1.

[0012] In an embodiment of the present application, when the configuration of a camera register is unsuccessful, the camera register is reconfigured multiple times. It can be understood that reconfiguring the camera register multiple times can increase the robustness of the register.

[0013] In a possible implementation manner, after reconfiguring any camera register n times, the method further includes: Determine whether any camera register is configured successfully; If any of the camera registers is configured successfully, the number of loop configurations corresponding to any of the camera registers is cleared, and a shutter trigger signal is sent to the corresponding camera, where the number of loop configurations is the number of times the camera registers are reconfigured; If the register configuration of any camera is unsuccessful, the video corresponding to any camera will be controlled to be black screen.

[0014] In the embodiment of the present application, after the camera register is configured multiple times and the configuration is successful, the number of loop configurations is cleared and a shutter trigger signal is sent to the camera. When the configuration of a camera register fails, the video corresponding to the camera is controlled to be black. It can be understood that when the configuration of a camera register fails, it will not cause the entire image to be black, but only control the video of this channel to be black, so that it will not affect the video of other cameras.

[0015] In a possible implementation, if the configuration of the register of any camera is unsuccessful, controlling the video corresponding to any camera to be black screen includes: If the configuration of the register of any camera is unsuccessful, the video corresponding to any camera is controlled to be black, and a preset flag bit in the vehicle computer register is marked, and the preset flag bit is used to indicate whether the link between the camera and the vehicle computer is normal.

[0016] In the embodiment of the present application, when a camera configuration fails, in addition to controlling the video screen corresponding to the camera to be black, a preset flag bit in the vehicle computer register is also marked, and the preset flag bit is used to indicate whether the link between the camera and the vehicle computer is normal. It can be understood that by using a preset flag bit to indicate whether the link between the camera and the vehicle computer is normal, it is possible to directly determine whether the connection between the camera and the vehicle computer is normal by monitoring the vehicle computer register, thereby improving work efficiency.

[0017] In a possible implementation, the method further includes: If there is an abnormal mark in the preset flag, the video corresponding to the preset flag is controlled to be black screen.

[0018] In the embodiment of the present application, if there is an abnormal mark in the preset flag, the camera corresponding to the preset flag is controlled to be black. It can be understood that only setting one camera to be black can effectively avoid the problem of the entire 360 ​​image being black, improve the user experience, and facilitate the determination of the location of the faulty camera when a fault occurs.

[0019] In a possible implementation, the method further includes: If the preset flag has a normal mark, determining whether there is a video signal; If there is a video signal, a video start instruction is sent to the vehicle controller, wherein the video start instruction is used to instruct the vehicle controller to turn on the video and send a shutter trigger signal to the camera; If there is no video signal, the camera is restarted.

[0020] In an embodiment of the present application, when a normal mark exists in the preset flag position, it is determined whether there is a video signal. If there is a video signal, it means that there is no problem with the camera and the video can be turned on normally. If there is no video signal, it means that while there is no problem with the link between the camera and the vehicle computer, there is a problem in the process of the camera collecting video. At this time, restarting the camera can most likely solve the problem of no video, and restarting the camera can increase the recovery mechanism and optimize the power-on configuration logic of the camera.

[0021] In a possible implementation, if there is a video signal, sending a video start instruction to the vehicle controller includes: If there is a video signal, determining whether there is an error in the error counter of the vehicle computer register; If the error counter has an error, restart the camera; If there is no error in the error counter, a video start instruction is sent to the vehicle controller.

[0022] In an embodiment of the present application, when there is a video signal, it is determined whether there is an error in the error counter of the vehicle computer register. If there is an error, it means that there is a problem with the vehicle computer register, which can be solved by restarting the camera. If there is no error, it means that there is no problem with the link between the camera and the vehicle computer and the vehicle computer register, and the video can be turned on directly.

[0023] In a possible implementation, if the error counter does not have an error, sending a video start instruction to the vehicle controller includes: If the error counter does not contain any error, determining whether each camera is configured successfully; If any of the cameras is configured successfully, a video start command is sent to the vehicle controller; If the configuration of any of the cameras fails, restart any of the cameras.

[0024] In the embodiment of the present application, when there is no error in the error counter, it is determined again whether the camera and the vehicle computer are configured successfully, which can ensure that when the user opens the 360 ​​image, the complete video image can be presented to the user, which is conducive to improving the user experience.

[0025] In a second aspect, an embodiment of the present application provides a camera connection device, including: Register configuration module, used to configure camera registers; A shutter trigger signal sending module, used for sending a shutter trigger signal to the camera if the camera register is configured successfully, and the camera is used for sending a synchronization signal to the vehicle computer and starting to acquire video after receiving the shutter trigger signal; The video signal output module is used to determine whether the video corresponding to each camera is output normally according to the reception status of the synchronization signal sent by each camera.

[0026] In a third aspect, an embodiment of the present application provides an electronic device, including: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes any one of the methods described in the first aspect.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described in the first aspect.

[0028] It is understandable that the camera connection device provided in the second aspect, the electronic device provided in the third aspect, and the computer-readable storage medium provided in the fourth aspect are used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments 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 drawings can be obtained based on these drawings without paying creative labor.

[0030] Figure 1 A schematic diagram of information interaction between a camera, a vehicle terminal and a display screen provided in an embodiment of the present application; Figure 2 A schematic diagram of a camera connection method provided in an embodiment of the present application; Figure 3 A schematic diagram of a flow chart of another camera connection method provided in an embodiment of the present application; Figure 4 A schematic diagram of a flow chart of another camera connection method provided in an embodiment of the present application; Figure 5A schematic diagram of the structure of a camera connection device provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0032] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0033] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0034] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0035] At present, the 360-degree panoramic image of the car is an important auxiliary driving technology that displays 360-degree panoramic fusion, ultra-wide viewing angle, and seamless real-time image information around the car through the on-board display screen, helping the driver to view the blind spots around the vehicle and improve driving safety. Because the 360-degree image around the vehicle cannot be collected by a single camera, it is necessary to fuse the videos collected by multiple cameras, and when the car computer turns on the 360-degree imaging function, the car computer needs to interact with the camera to obtain the video signal collected by the camera.

[0036] In the related art, when the vehicle computer is powered on and the 360-degree imaging function is turned on, the vehicle computer configures the camera registers, exchanges information with each camera, and outputs a 360-degree panoramic image after receiving the synchronization signal sent by the camera.

[0037] However, if any of the multiple cameras is configured incorrectly or the synchronization signal of any of the cameras is lost, it will cause abnormal communication between the vehicle computer and the camera, resulting in the problem of the entire 360 ​​image being a black screen.

[0038] In response to the above problems, an embodiment of the present application provides a camera connection method. In the embodiment of the present application, after configuring the camera register, according to the configuration of each camera register, a shutter trigger signal is sent to the successfully configured camera, and according to the synchronization signal reception of each camera, it is determined whether the video corresponding to each camera is output normally. It can be understood that judging whether the configuration is successful after configuring the camera register can avoid camera configuration errors, and in this application, for each camera, determining whether the video corresponding to each camera is output normally can effectively avoid the problem of the entire 360 ​​image being black, improve the user experience, and facilitate the determination of the location of the locked faulty camera when a fault occurs. Detailed description is given below in conjunction with the accompanying drawings and specific embodiments.

[0039] First, for ease of understanding, an embodiment of the present application provides a schematic diagram of information interaction between a camera, a vehicle terminal and a display screen.

[0040] See also Figure 1 , is a schematic diagram of information interaction between a camera, a vehicle terminal and a display screen provided in an embodiment of the present application. Figure 1 As shown in the figure, taking the left camera of the vehicle as an example, the serial chip of the camera and the deserialization chip on the vehicle end exchange information. When the camera is powered on, the deserialization chip on the vehicle end configures the camera register, and the vehicle end sends a trigger signal to the camera. After receiving the trigger signal, the camera sends a synchronization signal and a video stream to the vehicle end. After receiving the video stream, the vehicle end sends the video stream to the display screen, and displays the video on the display screen so that the user can view the video on the display screen.

[0041] It should be pointed out that Figure 1 The vehicle terminal shown in the figure is only an exemplary description. In actual application, the vehicle terminal may be a camera controller in the vehicle or other devices. Figure 1 Although only the information interaction between the left camera and the vehicle computer is shown, the information interaction between the front camera, right camera and rear camera and the vehicle computer is the same as the left camera, and the deserialization chip on the vehicle computer in the embodiment of the present application is a four-in-one chip, but in actual applications the deserialization chip is not necessarily a four-in-one chip.

[0042] In addition, to facilitate understanding, an embodiment of the present application provides a flow chart of a connection method.

[0043] See also Figure 2 , is a flow chart of a camera connection method provided in an embodiment of the present application. Figure 2 As shown, it mainly includes the following steps.

[0044] Step S201: configure camera registers.

[0045] Specifically, the camera connection device on the vehicle side configures each camera register through the deserialization chip on the vehicle side, and in the embodiment of the present application, the communication protocol between the deserialization chip on the vehicle side and the camera register is the I2C communication protocol. Of course, this is only an exemplary description, and the embodiment of the present application does not impose specific restrictions on this.

[0046] In actual applications, when the vehicle computer is powered on, the camera is automatically powered on. If the user turns on 360-degree imaging, the vehicle computer configures the camera registers of the four cameras. Of course, in actual applications, the number of cameras configured on the vehicle computer is not necessarily 4, but may be 5 cameras or even more, and this embodiment of the application does not impose specific restrictions on this.

[0047] Step S202: If the register of any camera is configured successfully, a shutter trigger signal is sent to any camera.

[0048] Specifically, the camera connection device on the vehicle computer determines whether each camera register is configured successfully. If any camera register is configured successfully, a shutter trigger signal is sent to the camera, and the camera is used to send a synchronization signal to the vehicle computer and start acquiring video after receiving the shutter trigger signal; if any camera register is not configured successfully, the camera register is reconfigured n times, where n is an integer greater than or equal to 1. In the embodiment of the present application, n is 3. Of course, this is only an exemplary description and should not be used as a limitation on the protection scope of the present application.

[0049] It can be understood that when a certain register configuration fails, reconfiguring the camera register multiple times can increase the robustness of the register.

[0050] Of course, in order to determine whether the camera register is configured successfully after multiple configurations, after configuring the camera multiple times, it is necessary to determine again whether the camera register is configured successfully. If the camera register is configured successfully, the number of loop configurations corresponding to the camera register is cleared, and a shutter trigger signal is sent to the corresponding camera, where the number of loop configurations is the number of times the camera register is reconfigured; if the camera register is not configured successfully, the video corresponding to the camera is controlled to be black.

[0051] It is understandable that when the register configuration of a camera fails, it will not cause the entire image to be black, but only control this video to be black, which will not affect the video of other cameras.

[0052] In one possible implementation, when the configuration of any camera register fails, in addition to controlling the video screen corresponding to the camera to be black, a preset flag bit in the vehicle computer register is also marked. The preset flag bit is used to indicate whether the link between the camera and the vehicle computer is normal.

[0053] In the embodiment of the present application, the preset flag bit is the 0×69 bit of the register in the deserialization chip on the vehicle side. When the communication link between the vehicle and the camera is normal, the 0×69 bit of the register is set to 0, and when the communication link between the vehicle and the camera is abnormal, the 0×69 bit of the register is set to 1. Of course, this is only an exemplary description and should not be used as a limitation on the scope of protection of this application.

[0054] It can be understood that by using a preset flag bit to indicate whether the link between the camera and the vehicle computer is normal, it is possible to directly determine whether the connection between the camera and the vehicle computer is normal by monitoring the vehicle computer register, thereby improving work efficiency.

[0055] In a possible implementation, when an abnormal mark exists in the above-mentioned preset flag position, a camera corresponding to the preset flag position is controlled to have a black screen.

[0056] In the embodiment of the present application, the abnormal flag is 1. If the 0×69 bit of the register of the deserialization chip in the vehicle is 1, the video corresponding to the flag bit is controlled to be black. Because the deserialization chip on the vehicle side in the embodiment itself is a four-in-one chip, when the 0×69 bit is 1, it is necessary to determine which camera the register corresponds to, so as to black out the video. It can be understood that controlling the video to be black means drawing this video black and displaying a black screen on the display screen.

[0057] Through the above method, it can be ensured that the link between the vehicle computer and the camera is normal, but it cannot be determined whether the vehicle computer can normally receive the video stream signal sent by the camera. Therefore, in an embodiment of the present application, if there is a normal mark in the preset flag position, it is determined whether there is a video signal. If there is a video signal, a video start instruction is sent to the vehicle controller. The video start instruction is used to instruct the vehicle controller to turn on the video and send a shutter trigger signal to the camera; if there is no video signal, the camera is restarted.

[0058] In the embodiment of the present application, the preset flag bit has a normal mark, that is, the 0×69 bit of the register of the deserialization chip in the vehicle computer is 0, and the method for determining whether there is a video signal is: determining whether the 0×49 bit of the register in the deserialization chip in the vehicle computer receives the video stream signal sent by the camera. Restarting the camera specifically means controlling the camera to power on again.

[0059] Through the above method, it can be ensured that there is no problem with the link between the vehicle computer and the camera, and the deserialization chip in the vehicle computer receives the video stream signal sent by the camera. However, it is impossible to confirm whether the register of the deserialization chip in the vehicle computer (referred to as the vehicle computer register) is normal. Therefore, the embodiment of the present application determines whether the vehicle computer register is normal through the error counter in the vehicle computer register. If there is an error in the error counter of the vehicle computer register, it means that there is a problem with the deserialization chip of the vehicle computer. If there is no error in the error counter of the vehicle computer register, it means that the vehicle computer register is normal.

[0060] Specifically, when there is an error in the error counter of the vehicle computer register, the camera is restarted. If there is no error in the error counter, a video start instruction is sent to the vehicle controller, and the vehicle controller starts the video channel so that the display screen displays the video captured by the camera.

[0061] In the embodiment of the present application, the error counter of the vehicle register is 0×28~2B of the register. If these status bits have true values, it means that there is an error in the error counter. If none of these status bits have true values, it means that there is no error in the error counter. Among them, the true value is 1, and if there is no true value, the status bit is 0. Of course, the status bits and true values ​​in the embodiment of the present application are only an exemplary description and should not be used as a limitation on the scope of protection of the present application.

[0062] Through the above method, it can be ensured that there is no problem with the link between the vehicle computer and the camera, the deserialization chip in the vehicle computer receives the video stream signal sent by the camera, and the vehicle computer register is normal. However, in order to ensure that the camera configuration is successful, in the embodiment of the present application, when there is no error in the error counter, it is determined again whether each camera is configured successfully. If any camera is configured successfully, a video start instruction is sent to the vehicle controller; if any camera is not configured successfully, the camera is restarted. It can be understood that judging whether the camera is configured successfully again can avoid blindly starting the video and avoid garbled characters or other pictures that affect the user experience.

[0063] Step S203: Determine whether the video corresponding to each camera is output normally according to the reception status of the synchronization signal sent by each camera.

[0064] Specifically, if a synchronization signal is received from a camera, the video sent by the camera is output normally; if a synchronization signal is not received from a camera, the video corresponding to the camera is controlled to be black.

[0065] It is understandable that blacking out only one channel instead of the entire 360-degree image can improve the user experience and make it easier to locate and lock the faulty camera when a fault occurs.

[0066] Corresponding to the above embodiment, the present application also provides another camera connection method.

[0067] See also Figure 3 , is a flow chart of another camera connection method provided in an embodiment of the present application. Figure 3 As shown, it mainly includes the following steps.

[0068] Step S301: configure the camera.

[0069] Step S302: Determine whether the camera is configured successfully.

[0070] Specifically, if yes, execute step S303; if no, execute step S304.

[0071] Step S303: Send a trigger signal to the camera.

[0072] Step S304: Determine whether the number of configuration times is less than or equal to n.

[0073] Specifically, if yes, execute step S301; if no, execute step S306.

[0074] Step S305: Determine whether a synchronization signal sent by the camera is received.

[0075] Specifically, if yes, execute step S306; if no, execute step S307.

[0076] Step S306: Output the video.

[0077] Step S307: Image stuck.

[0078] Specifically, the image is controlled to freeze for 2 seconds. Of course, the embodiment of the present application does not impose any specific limitation on the duration of the image freeze.

[0079] Step S308: The screen of this route is black.

[0080] It should be pointed out that Figure 3 The embodiment shown is only a method for connecting one camera. The connection methods for other cameras are similar to Figure 3 The embodiments shown are the same and will not be described here for the sake of brevity. Figure 3 For details of the embodiments shown in the examples, please refer to the above Figure 2 For the sake of brevity, the description in the illustrated embodiment is not repeated here.

[0081] In addition, corresponding to the above embodiment, the embodiment of the present application also provides another camera connection method.

[0082] join Figure 4, is a flow chart of another camera connection method provided in an embodiment of the present application. Figure 4 As shown, it mainly includes the following steps.

[0083] Step S401: configure the vehicle computer register.

[0084] Step S402: Power on the camera.

[0085] Step S403: configure the camera register.

[0086] Step S404: Determine whether the 0×07 register on the camera end is configured successfully.

[0087] Specifically, if yes, execute step S405; if no, execute step S409.

[0088] Step S405: Determine whether other registers of the camera are configured successfully.

[0089] Specifically, if yes, execute step S406; if no, execute step S409. In addition, if the camera does not have other registers, skip this step.

[0090] Step S406: triggering the camera shutter.

[0091] Specifically, the camera shutter is triggered by sending a shutter trigger signal to the vehicle controller.

[0092] Step S407: The camera end adds the serial chip code and sends it to the deserialization chip on the vehicle end.

[0093] Specifically, the encoding includes a video stream captured by a camera.

[0094] Step S408: The vehicle-side deserialization chip outputs the decoded video signal to the vehicle-side SOC for processing and outputting an image.

[0095] Specifically, the vehicle-side SOC is a chip in the vehicle controller. Of course, the chip can be a chip in other devices in the vehicle, and the embodiment of the present application does not impose specific restrictions on this.

[0096] Step S409: Rewrite the configuration 3 times.

[0097] Step S410: Determine whether the camera register is configured successfully.

[0098] Specifically, if yes, execute step S411; if no, execute step S412.

[0099] Step S411: The number of loop configurations is reset to zero.

[0100] Step S412: Determine whether it has been configured three times.

[0101] Specifically, if yes, execute step S413; if no, execute step S414.

[0102] Step S413: Check whether 0x69 has a mark.

[0103] Specifically, if yes, execute step S418; if no, execute step S414.

[0104] Step S414: Check whether there is a video stream at 0×49.

[0105] Specifically, if yes, execute step S415; if no, execute step S402 again.

[0106] Step S415: Check whether the error counters of 0×28~2B have errors.

[0107] Specifically, if yes, then re-execute step S402; if no, then execute step S416.

[0108] Step S416: Determine whether the camera register is configured successfully.

[0109] Specifically, if yes, execute step S417; if no, re-execute step S402.

[0110] Step S417: Send a video start instruction to the SOC.

[0111] Specifically, the vehicle computer sends a video start instruction to the SOC, and the SOC controls the display screen to turn on, thereby displaying the video.

[0112] Step S418: Black out the screen of the camera.

[0113] It should be pointed out that Figure 3 The embodiment shown is the same, Figure 4 The embodiment shown is only a method for connecting one camera. The connection methods for other cameras are similar to Figure 4 The embodiments shown are the same and will not be described here for the sake of brevity. Figure 4 For details of the embodiments shown in the examples, please refer to the above Figure 2 For the sake of brevity, the description in the illustrated embodiment is not repeated here.

[0114] Corresponding to the above embodiments, the present application also provides a camera connection device.

[0115] See also Figure 5 , is a schematic diagram of the structure of a camera connection device provided in an embodiment of the present application. Figure 5As shown, the camera connection device may include: a register configuration module 501, a shutter trigger signal sending module 502, and a video signal output module 503. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiments of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0116] Wherein, the register configuration module 501 is used to configure the camera register; The shutter trigger signal sending module 502 is used to send a shutter trigger signal to the camera if the camera register configuration is successful, and the camera is used to send a synchronization signal to the vehicle computer and start acquiring video after receiving the shutter trigger signal; The video signal output module 503 is used to determine whether the video corresponding to each camera is output normally according to the reception status of the synchronization signal sent by each camera.

[0117] Corresponding to the above embodiments, the present application also provides an electronic device.

[0118] See also Figure 6 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 600 may include: a processor 601, a memory 602 and a communication unit 603. These components communicate via one or more buses. Those skilled in the art will appreciate that the structure of the electronic device shown in the figure does not limit the embodiments of the present application. It may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0119] The communication unit 603 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.

[0120] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 602, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 601 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.

[0121] The memory 602 is used to store the execution instructions of the processor 601. The memory 602 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0122] When the execution instructions in the memory 602 are executed by the processor 601, the electronic device 600 can execute Figure 2 Some or all of the steps in the illustrated embodiments.

[0123] In a specific implementation, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the simulation scene generation method provided in the embodiment of the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0124] In a specific implementation, an embodiment of the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the simulation scene generation method provided in the embodiment of the present application.

[0125] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0126] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0128] In several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0129] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A camera connection method, characterized in that: Applied to a vehicle computer equipped with a camera, the method includes: Configure camera registers; If the register of any camera is configured successfully, a shutter trigger signal is sent to any camera, and the camera is used to send a synchronization signal to the vehicle computer and start acquiring video after receiving the shutter trigger signal; According to the reception status of the synchronization signal sent by each camera, it is determined whether the video corresponding to each camera is output normally.

2. The method according to claim 1, characterized in that The step of determining whether to normally output the video corresponding to each camera according to the reception status of the synchronization signal sent by each camera includes: If a synchronization signal sent by any camera is received, the video sent by any camera is output normally; If the synchronization signal sent by any camera is not received, the video corresponding to any camera is controlled to be black screen.

3. The method according to claim 1, characterized in that If the configuration of the register of any camera is successful, before sending a shutter trigger signal to any camera, the method further includes: Determine whether each camera register is configured successfully; If the configuration of any camera register is unsuccessful, reconfigure any camera register n times, where n is an integer greater than or equal to 1.

4. The method according to claim 3, characterized in that After reconfiguring any camera register n times, the method further includes: Determine whether any camera register is configured successfully; If any of the camera registers is configured successfully, the number of loop configurations corresponding to any of the camera registers is cleared, and a shutter trigger signal is sent to the corresponding camera, where the number of loop configurations is the number of times the camera registers are reconfigured; If the register configuration of any camera is unsuccessful, the video corresponding to any camera will be controlled to be black screen.

5. The method according to claim 4, characterized in that If the configuration of the register of any camera is unsuccessful, the video corresponding to any camera is controlled to be black screen, including: If the configuration of the register of any camera is unsuccessful, the video corresponding to any camera is controlled to be black, and a preset flag bit in the vehicle computer register is marked, and the preset flag bit is used to indicate whether the link between the camera and the vehicle computer is normal.

6. The method according to claim 5, characterized in that The method further comprises: If there is an abnormal mark in the preset flag, the video corresponding to the preset flag is controlled to be black screen.

7. The method according to claim 6, characterized in that The method further comprises: If the preset flag has a normal mark, determining whether there is a video signal; If there is a video signal, a video start instruction is sent to the vehicle controller, wherein the video start instruction is used to instruct the vehicle controller to turn on the video and send a shutter trigger signal to the camera; If there is no video signal, the camera is restarted.

8. The method according to claim 7, characterized in that If there is a video signal, a video start instruction is sent to the vehicle controller, including: If there is a video signal, determining whether there is an error in the error counter of the vehicle computer register; If the error counter has an error, restart the camera; If there is no error in the error counter, a video start instruction is sent to the vehicle controller.

9. The method according to claim 8, characterized in that If the error counter does not have an error, sending a video start instruction to the vehicle controller includes: If the error counter does not contain any error, determining whether each camera is configured successfully; If any of the cameras is configured successfully, a video start command is sent to the vehicle controller; If the configuration of any of the cameras fails, restart any of the cameras.

10. A camera connection device, characterized in that: include: Register configuration module, used to configure camera registers; A shutter trigger signal sending module, used for sending a shutter trigger signal to the camera if the camera register is configured successfully, and the camera is used for sending a synchronization signal to the vehicle computer and starting to acquire video after receiving the shutter trigger signal; The video signal output module is used to determine whether the video corresponding to each camera is output normally according to the reception status of the synchronization signal sent by each camera.

11. An electronic device, characterized in that: include: processor; Memory; And a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 9.