Image synchronization verification method, device, RGBD module and storage medium

By detecting the LED lighting status of the RGB camera and the IR camera in the RGBD module, the problem of being unable to verify image synchronization in the existing technology is solved, the synchronous adjustment of the image output of the RGBD module is realized, and the image synchronization and verification efficiency are ensured.

CN118400517BActive Publication Date: 2024-09-13LINGYANGE SEMICONDUCTOR, INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806086.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-13
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing technology cannot effectively verify whether the image output of the RGB camera and the IR camera in the RGBD module is synchronized, resulting in the inability to obtain reliable 3D images and distance information.

Method used

By controlling the RGB camera and IR camera to shoot each group of LEDs, obtain RGB images and IR images respectively, and detect the lighting status of visible LEDs and infrared LEDs at the same time to determine the image synchronization status. If the LEDs in the same group are both If it is lit, it is synchronous, otherwise it is asynchronous, and the output time is adjusted according to the synchronization judgment result to achieve synchronization.

Benefits of technology

It realizes the image synchronization verification of the RGBD module, saves manpower, makes the oscilloscope measurement signal more intuitive, avoids the complexity of time identification using the code table or pendulum method, and ensures the synchronous image output of the RGB camera and the IR camera.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400517B
    Figure CN118400517B
Patent Text Reader

Abstract

The present invention discloses an image synchronization verification method, device, RGBD module and storage medium. The method includes: controlling an RGB camera and an IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LEDs includes a visible light LED and an infrared LED; obtaining the RGB image and the IR image and detecting the lighting status of the visible light LED and the infrared LED of each group at the same time to obtain a synchronization determination result. If the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the image output by the RGB camera and the IR camera is in a synchronous state, otherwise it is in an asynchronous state. The present invention realizes the synchronization verification of the RGBD module by judging whether the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image synchronization verification method, device, RGBD module and storage medium. Background Art

[0002] Image synchronization is to put two or more image sensors into memory at the same time, and generate a corresponding number of images according to the image frame rate. In the process of image synchronization, the image information obtained by each image sensor at the same time is useful information. If there is a gap in the image output time between the two image sensors, reliable and accurate useful information cannot be obtained, which may affect the 3D image to be established, the inferred distance information, etc.

[0003] In order to improve the effectiveness of the image module in acquiring image data, it is usually necessary to verify the image synchronization of the image module. Traditional solutions usually use the method of shooting a stopwatch or a pendulum to verify whether the image output is synchronized. However, the RGBD (RGB+Depth Map) module integrated by an RGB camera and an IR camera is not suitable for the above verification method, because the image obtained by the IR (Infrared Radiatio) camera when shooting a stopwatch or a pendulum cannot effectively distinguish the time.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide an image synchronization verification method, device, RGBD module and storage medium to solve the problem that the existing method of verifying whether the image output is synchronized by shooting a code table and a pendulum is not applicable to the RGBD module.

[0006] The technical solution of the present invention is as follows:

[0007] In a first aspect, the present invention provides an image synchronization verification method, which includes:

[0008] Controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LED light groups includes a visible light LED and an infrared LED;

[0009] The RGB image and the IR image are acquired and the lighting status of the visible light LED and the infrared LED of each group at the same time is detected to obtain a synchronization determination result. When the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state; when the visible light LED and the infrared LED in the RGB image and the IR image of the same group are not lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in an asynchronous state.

[0010] In a further configuration of the present invention, the step of controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain the RGB image and the IR image respectively comprises:

[0011] Obtaining the image frame rate of the RGB camera and the image frame rate of the IR camera;

[0012] The time for lighting up the visible light LED and the infrared light LED is set according to the image frame rate of the RGB camera and the image frame rate of the IR camera.

[0013] According to a further configuration of the present invention, the step of acquiring the RGB image and the IR image and detecting the lighting status of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result includes:

[0014] Detect the lighting position of each group of visible light LEDs and infrared LEDs;

[0015] Track the direction of the lights of each group of visible light LEDs and infrared LEDs;

[0016] The lighting positions of the visible light LED and the infrared LED are compared according to the lighting positions and light signal directions of the visible light LED and the infrared LED to obtain a synchronization determination result.

[0017] In a further configuration of the present invention, the step of detecting the lighting positions of each group of visible light LEDs and infrared LEDs comprises:

[0018] The 0th RGB image is stored as the RGB background value, and the 0th IR image is stored as the IR background value;

[0019] The RGB background value is subtracted from the current RGB image to obtain the lighting position of the current visible light LED, and the IR background value is subtracted from the current IR image to obtain the lighting position of the current infrared LED.

[0020] In a further configuration of the present invention, the step of tracking the direction of the light signals of each group of visible light LEDs and infrared LEDs comprises:

[0021] The color of each pixel in the RGB image and the IR image is converted into a set of LED light signals;

[0022] Performing statistics on the converted colors and generating a color histogram; wherein the color histogram contains the frequency of each color appearing in the RGB image and the IR image;

[0023] The color histogram of the target object is used as the target model;

[0024] During tracking, the same color quantization and histogram generation are performed on the region of interest for each new frame to create candidate models;

[0025] Compare the color histograms of the target model and the candidate model to get the similarity;

[0026] The position of the target object in the current frame is updated according to the calculation result of the similarity.

[0027] According to a further configuration of the present invention, the image synchronization verification method further includes:

[0028] According to the synchronization determination result, the output time of the RGB image and the IR image is synchronously adjusted.

[0029] In a further configuration of the present invention, the step of synchronously adjusting the output time of the RGB image and the IR image according to the synchronization determination result comprises:

[0030] When the output rate of the RGB image is faster than the output rate of the IR image, delaying the output time of the RGB image so that the RGB image is sent out synchronously with the IR image;

[0031] When the output rate of the IR image is faster than the output rate of the RGB image, the output time of the IR image is delayed so that the RGB image is sent out synchronously with the IR image.

[0032] In a second aspect, the present invention provides an image synchronization verification device, which includes:

[0033] A first control unit, used to control the visible light LED and the infrared LED to generate a light source;

[0034] The second control unit is used to control the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively;

[0035] The synchronization determination unit is used to obtain the RGB image and the IR image and detect the lighting status of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result.

[0036] In a third aspect, the present invention provides an RGBD module, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it is used to implement the steps in the image synchronization verification method as described above.

[0037] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, is used to implement the steps in the image synchronization verification method as described above.

[0038] The present invention provides an image synchronization verification method, device, RGBD module and storage medium, the method comprising: controlling an RGB camera and an IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LED light groups includes a visible light LED and an infrared LED; acquiring the RGB image and the IR image and detecting the lighting status of the visible light LED and the infrared LED of each group at the same time to obtain a synchronization determination result, if the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state, and when the visible light LED and the infrared LED in the RGB image and the IR image of the same group are not lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in an asynchronous state. The present invention controls the RGB camera and the IR camera to shoot each group of LEDs and obtain the RGB image and the IR image, and determines whether the images output by the RGB camera and the IR camera are in a synchronous state by determining whether the visible light LED and the infrared LED in the RGB image and the IR image of the same group in the same time are all lit. If the visible light LED and the infrared LED in the RGB image and the IR image of the same group in the same time are all lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state. If the lighting states of the visible light LED and the infrared LED are not in the same group, it means that the images output by the RGB camera and the IR camera are in an asynchronous state. Compared with the method of shooting a code table and a pendulum to verify whether the image output is synchronous, the present invention does not need to distinguish the time, but only needs to detect the lighting states of the visible light LED and the infrared LED, thereby realizing the synchronous verification of the RGBD module. When verifying, only the input image needs to be obtained, which can effectively save manpower and is more intuitive than the oscilloscope measurement signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary personnel in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0040] Figure 1 It is a flowchart of the image synchronization verification method in the present invention.

[0041] Figure 2 It is a principle architecture diagram of the image synchronization verification device in the present invention.

[0042] Figure 3 It is a schematic diagram of the structure of an LED lamp group in one embodiment of the present invention.

[0043] Figure 4 It is a circuit schematic diagram of a single chip microcomputer controlling an LED light group in one embodiment of the present invention.

[0044] The marks in the accompanying drawings are: 100, first control unit; 200, second control unit; 300, synchronization determination unit; 400, RGB camera; 500, IR camera; 600, LED light group. DETAILED DESCRIPTION

[0045] The present invention provides an image synchronization verification method, device, RGBD module and storage medium. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] In the embodiments and the scope of the patent application, unless the text specifically defines the article, "a", "an", "the" and "the" may also include plural forms. If there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0047] It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when an element is said to be "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or there can also be intermediate elements. In addition, the "connection" or "coupling" used herein can include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0048] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0049] In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0050] In some embodiments, Figure 1 As shown, the present invention provides an image synchronization verification method to verify the image synchronization output of the RGBD module. The RGBD module has an RGB camera and an IR camera, which can capture RGB images and IR images. The image synchronization verification method includes the steps of:

[0051] S100, controlling the RGB camera and the IR camera to shoot each group of LEDs, and obtaining an RGB image and an IR image respectively; wherein each group of LED light groups includes a visible light LED and an infrared LED;

[0052] In this embodiment, please combine Figure 2, a first control unit 100 is used to control the visible light LED and the infrared LED to generate a light source. The RGBD module has a second control unit 200 and a synchronization determination unit 300. The second control unit 200 can control the RGB camera 400 and the IR camera 500 to respectively collect RGB images and IR images, and further use the synchronization determination unit 300 to determine whether the image output of the RGBD module is synchronized according to the lighting status of the LED, wherein the resolution of the RGB image and the IR image may be different, for example, the resolution of the RGB image may be 1920*1080, and the resolution of the IR image may be 1080*720. In some implementations, the first control unit may be a single-chip microcomputer (MCU), which controls the visible light LED and the infrared LED in each LED light group 600 to generate a light source.

[0053] S200, acquiring the RGB image and the IR image and detecting the lighting status of the visible light LED and the infrared LED of each group at the same time to obtain a synchronization determination result; if the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state; when the visible light LED and the infrared LED in the RGB image and the IR image of the same group are not lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in an asynchronous state.

[0054] In this embodiment, please combine Figure 3 , a group of LED light groups includes a visible light LED and an infrared LED, and the RGB camera and the IR camera will take pictures of each group of LEDs respectively. Then, by judging the images of the same group of LEDs taken at the same time, that is, judging whether the visible light LED and the infrared LED in the current two RGB images and the IR image are in a synchronous lighting state, if the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state, and if the lighting states of the visible light LED and the infrared LED are not in the same group, it means that the images output by the RGB camera and the IR camera are in an asynchronous state.

[0055] In this way, the present invention controls the RGB camera and the IR camera to shoot each group of LEDs and obtains the RGB image and the IR image, and determines whether the images output by the RGB camera and the IR camera are in a synchronized state by determining whether the visible light LED and the infrared LED in the same group of RGB images and IR images within the same time period are both lit. Compared with the method of shooting a stopwatch and a pendulum to verify whether the image output is synchronized, the present invention does not need to distinguish the time, but only needs to detect the lighting status of the visible light LED and the infrared LED, thereby realizing the synchronization verification of the RGBD module. When performing the verification, only the input image needs to be obtained, which can effectively save manpower and is more intuitive than measuring the signal with an oscilloscope.

[0056] In some embodiments, the step of controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain the RGB image and the IR image respectively includes:

[0057] S110, obtaining an image frame rate of the RGB camera and an image frame rate of the IR camera;

[0058] S120 , setting the time for lighting up the visible light LED and the infrared light LED according to the image frame rate of the RGB camera and the image frame rate of the IR camera.

[0059] In this embodiment, the time for the microcontroller (MCU) to light up the visible light LED and the infrared LED is set according to the image frame rate (number of frames per second) of the RGBD module, so as to determine whether the image and the LED are synchronized in relative time. For example, when the image frame rate of the RGBD module is 30fps, 20fps, and 10fps, the microcontroller sets the time of the visible light LED and the infrared LED to 33ms, 50ms, and 100ms, that is, the microcontroller can automatically convert the frame rate into time, so it can be applied to application scenarios with different frame rates, with high flexibility.

[0060] In some embodiments, the step of acquiring the RGB image and the IR image and detecting the lighting status of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result includes:

[0061] S210, detecting the lighting positions of each group of visible light LEDs and infrared LEDs;

[0062] S220, tracking the light signal directions of each group of visible light LEDs and infrared LEDs;

[0063] S230, comparing the lighting positions of the visible light LED and the infrared LED according to the lighting positions and light signal directions of the visible light LED and the infrared LED to obtain a synchronization determination result.

[0064] In this embodiment, the RGBD module detects the lighting position of each group of visible light LEDs and infrared LEDs, and tracks the light direction of each group of visible light LEDs and infrared LEDs. Generally speaking, the single chip controls each group of LEDs to light up in sequence from left to right, and then the lighting positions of the visible light LEDs and infrared LEDs can be compared through the lighting positions and light directions of the visible light LEDs and infrared LEDs to obtain a synchronization determination result. The synchronization determination result includes two types: synchronous and asynchronous. If the lighting positions of the RGB image and the IR image are consistent, the RGBD module outputs a synchronous image. If the lighting positions of the RGB image and the IR image are inconsistent, the RGBD module outputs an asynchronous image.

[0065] In some embodiments, the step of detecting the lighting positions of each group of visible light LEDs and infrared LEDs includes:

[0066] S211, storing the 0th RGB image as the RGB background value, and storing the 0th IR image as the IR background value;

[0067] S212, subtracting the RGB background value from the current RGB image to obtain the lighting position of the current visible light LED, and subtracting the IR background value from the current IR image to obtain the lighting position of the current infrared LED.

[0068] In this embodiment, an object detection algorithm is used to detect the lighting position of the LED, and an object tracking algorithm is used to track the direction of the light. First, the acquired 0th RGB image is stored as the RGB background value, and the acquired 0th IR image is stored as the IR background value. Then, the RGB background value is subtracted from the current RGB image to obtain the lighting position of the current visible light LED, and the IR background value is subtracted from the current IR image to obtain the lighting position of the current infrared LED, thereby completing the lighting position detection of the visible light LED and the infrared LED.

[0069] In some embodiments, the step of tracking the direction of the light signals of each group of visible light LEDs and infrared LEDs includes:

[0070] S221, converting the color of each pixel in the RGB image and the IR image into a set of LED light signals;

[0071] S222, performing statistics on the converted colors and generating a color histogram; wherein the color histogram contains the frequency of each color appearing in the RGB image and the IR image;

[0072] S223, using the color histogram of the target object as a target model;

[0073] S224, during the tracking process, performing the same color quantization and histogram generation on the region of interest of each new frame to create a candidate model;

[0074] S225, comparing the color histograms of the target model and the candidate model to obtain similarity;

[0075] S226: Update the position of the target object in the current frame according to the calculation result of the similarity.

[0076] In this embodiment, color feature target tracking can be used to track the direction of the light signal. First, color quantization is required to convert the color of each pixel in the RGB image and the IR image into a group of LED light signals. In this embodiment, the LED lamp beads are red. Then, a color histogram is created, specifically by counting the converted colors and generating a color histogram, wherein the color histogram has the frequency of each color appearing in the RGB image and the IR image. After the color histogram is established, the target model and the candidate model are established, specifically by taking the color histogram of the target object as the target model, and in the tracking process, the same color quantization and histogram generation are performed on the region of interest of each new frame to create a candidate model. Then, a similarity calculation is performed, specifically by using a certain similarity metric (such as the Bhattacharyya coefficient) to compare the color histograms of the target model and the candidate model to obtain the similarity, and finally, the position of the target object in the current frame is updated according to the similarity calculation result to achieve tracking of the light signal direction of each group of visible light LEDs and infrared LEDs.

[0077] It should be noted that, in addition to using color feature target tracking to track the direction of a light signal, the present invention can also use an optical flow method to track the direction of a light signal.

[0078] In some embodiments, Figure 1 As shown, the image synchronization verification method also includes the steps of:

[0079] S300 , according to the synchronization determination result, synchronously adjusting the output time of the RGB image and the IR image.

[0080] In this embodiment, when the synchronization determination result obtained by detection is that the RGBD module is in an asynchronous output state, that is, the RGBD module outputs an RGB image that is not synchronized with the IR image, it is necessary to synchronize the output RGB image with the IR image. In this embodiment, delayed output processing is adopted for images with a faster output rate. For example, when the output rate of the RGB image is faster than the output rate of the IR image, the output time of the RGB image is delayed so that the RGB image is synchronously sent out with the IR image. When the output rate of the IR image is faster than the output rate of the RGB image, the output time of the IR image is delayed so that the RGB image is synchronously sent out with the IR image, thereby realizing the synchronous output of the RGB image and the IR image by the RGBD module.

[0081] In some embodiments, Figure 2 As shown, the present invention provides an image synchronization verification device, which includes: a first control unit 100, a second control unit 200 and a synchronization determination unit 300. The first control unit 100 is used to control the visible light LED and the infrared LED to generate light sources; the second control unit 200 is used to control the RGB camera 400 and the IR camera 500 to shoot each group of LED light groups 600 to obtain an RGB image and an IR image respectively; the synchronization determination unit 300 is used to obtain the RGB image and the IR image and detect the lighting conditions of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result.

[0082] In this embodiment, the first control unit 100 may be a single chip microcomputer (MCU), which controls the visible light LED and the infrared LED to generate light sources. The time for the single chip microcomputer to light up the visible light LED and the infrared LED is set according to the image frame rate of the RGBD module. After the single chip microcomputer is powered on, it will first be initialized to initialize the clock, GPIO, and timer, and then judge the image frame rate of the RGBD module and control the lighting of the visible light LED and the infrared LED. The output voltage of the single chip microcomputer is 3.3V, which can control multiple groups of LEDs to work, for example, 5 groups, such as Figure 4 As shown. It should be noted that the present invention does not limit the number of visible light LEDs and infrared LEDs, and does not limit the color of the visible light LEDs and the spectrum of the infrared LEDs. In one implementation, the model of the single-chip microcomputer may be SPC582B60E1. The second control unit and the synchronization determination unit are integrated on the RGBD module, and RGB images and IR images can be obtained by shooting, and the lighting conditions of the visible light LEDs and infrared LEDs of each group at the same time are detected to obtain a synchronization determination result.

[0083] In some embodiments, the present invention provides an RGBD module, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, it is used to implement the following steps:

[0084] S100, controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LEDs includes a visible light LED and an infrared LED;

[0085] S200, acquiring the RGB image and the IR image and detecting the lighting status of the visible light LED and the infrared LED of each group at the same time to obtain a synchronization determination result; if the visible light LED and the infrared LED in the RGB image and the IR image of the same group at the same time are both lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state; when the visible light LED and the infrared LED in the RGB image and the IR image of the same group are not lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in an asynchronous state.

[0086] In some embodiments, the present invention provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, it is used to implement the following steps:

[0087] S100, controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LEDs includes a visible light LED and an infrared LED;

[0088] S200, acquiring the RGB image and the IR image and detecting the lighting status of the visible light LEDs and infrared LEDs of each group at the same time to obtain a synchronization determination result; if the visible light LEDs and infrared LEDs in the RGB image and the IR image of the same group at the same time are all lit, it means that the images output by the RGB camera and the IR camera are in a synchronous state; otherwise, the images output by the RGB camera and the IR camera are in an asynchronous state.

[0089] In summary, the image synchronization verification method, device, RGBD module and storage medium provided by the present invention have the following beneficial effects:

[0090] By controlling the RGB camera and the IR camera to shoot each group of LEDs, RGB images and IR images are obtained respectively. By judging whether the visible light LED and infrared LED in the RGB image and IR image of the same group at the same time are both lit, it is judged whether the images output by the RGB camera and the IR camera are in a synchronized state, thereby realizing the synchronization verification of the RGBD module.

[0091] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. An image synchronization verification method, characterized in that: include: Controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; wherein each group of LED light groups includes a visible light LED and an infrared LED; Acquire the RGB image and the IR image and detect the lighting status of the visible light LED and the infrared LED of each group at the same time to obtain a synchronization determination result; The step of acquiring the RGB image and the IR image and detecting the lighting status of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result includes: Detect the lighting position of each group of visible light LEDs and infrared LEDs; Track the direction of the lights of each group of visible light LEDs and infrared LEDs; The step of tracking the direction of the light signals of each group of visible light LEDs and infrared LEDs comprises: The color of each pixel in the RGB image and the IR image is converted into a set of LED light signals; Performing statistics on the converted colors and generating a color histogram; wherein the color histogram contains the frequency of each color appearing in the RGB image and the IR image; The color histogram of the target object is used as the target model; During tracking, the same color quantization and histogram generation are performed on the region of interest of each new frame to create candidate models; Compare the color histograms of the target model and the candidate model to get the similarity; Updating the position of the target object in the current frame according to the calculation result of the similarity; Compare the lighting positions of the visible light LED and the infrared LED according to their lighting positions and light signal directions to obtain a synchronization determination result; When the visible light LED and the infrared LED in the same group of the RGB image and the IR image are both lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in a synchronous state; when the visible light LED and the infrared LED in the same group of the RGB image and the IR image are not lit at the same time, it is determined that the images output by the RGB camera and the IR camera are in an asynchronous state.

2. The image synchronization verification method according to claim 1, characterized in that: The step of controlling the RGB camera and the IR camera to shoot each group of LEDs to obtain the RGB image and the IR image respectively comprises: Obtaining the image frame rate of the RGB camera and the image frame rate of the IR camera; The time for lighting up the visible light LED and the infrared light LED is set according to the image frame rate of the RGB camera and the image frame rate of the IR camera.

3. The image synchronization verification method according to claim 1, characterized in that: The step of detecting the lighting positions of each group of visible light LEDs and infrared LEDs comprises: The 0th RGB image is stored as the RGB background value, and the 0th IR image is stored as the IR background value; The RGB background value is subtracted from the current RGB image to obtain the lighting position of the current visible light LED, and the IR background value is subtracted from the current IR image to obtain the lighting position of the current infrared LED.

4. The image synchronization verification method according to claim 1, characterized in that: Also includes: According to the synchronization determination result, the output time of the RGB image and the IR image is synchronously adjusted.

5. The image synchronization verification method according to claim 4, characterized in that: The step of synchronously adjusting the output time of the RGB image and the IR image according to the synchronization determination result comprises: When the output rate of the RGB image is faster than the output rate of the IR image, delaying the output time of the RGB image so that the RGB image is sent out synchronously with the IR image; When the output rate of the IR image is faster than the output rate of the RGB image, the output time of the IR image is delayed so that the RGB image is sent out synchronously with the IR image.

6. An image synchronization verification device based on the image synchronization verification method according to any one of claims 1 to 5, characterized in that: include: A first control unit, used to control the visible light LED and the infrared LED to generate a light source; The second control unit is used to control the RGB camera and the IR camera to shoot each group of LEDs to obtain an RGB image and an IR image respectively; The synchronization determination unit is used to obtain the RGB image and the IR image and detect the lighting status of each group of visible light LEDs and infrared LEDs at the same time to obtain a synchronization determination result.

7. An RGBD module, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the computer program is executed by the processor, it is used to implement the steps in the image synchronization verification method described in any one of claims 1-5.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it is used to implement the steps in the image synchronization verification method described in any one of claims 1-5.