Camera correction method, electronic equipment and computer readable storage medium

By converting the depth image into a color texture image and identifying the camera origin offset, the camera calibration is automated and efficient, solving the cumbersome and environment-dependent problems in the existing technology and improving the accuracy and efficiency of camera calibration.

CN118781201AActive Publication Date: 2024-10-15DIANYUN TECH (SHENZHEN) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410767287.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing camera calibration methods require setting reference objects and performing predictive measurements, making the process cumbersome and affected by environmental factors, making it difficult to achieve accurate camera calibration.

Method used

By converting the depth image into a color texture image, it can identify whether the origin of the target camera needs correction, thereby achieving camera calibration, reducing dependence on the external environment and human participation, and improving calibration efficiency.

Benefits of technology

It can determine whether the camera needs calibration without external environment settings and measurements, reducing the difficulty and environmental impact of calibration, improving the efficiency of camera origin correction and calibration, and achieving more accurate camera calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781201A_ABST
    Figure CN118781201A_ABST
Patent Text Reader

Abstract

The invention provides a camera correction method, electronic equipment and a computer readable storage medium, and the method comprises the steps: collecting a depth image and a first color image of a target region through a target camera, and enabling the target camera to be an RGBD camera; determining a color texture image based on the depth image and the first color image; and if there is a difference between the color texture image and the target area, correcting an original point of a coordinate system corresponding to the target camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of camera technology, and in particular to a camera calibration method, an electronic device, and a computer-readable storage medium. Background Art

[0002] In order to enable the depth camera to obtain the depth image of the object more accurately, it usually needs to be calibrated. The current calibration method requires setting a reference object and measuring the real distance between the camera and the reference object in advance as a reference, which leads to more constraints on camera calibration and is relatively troublesome to implement. Summary of the invention

[0003] The purpose of the present application is to provide a camera calibration method, an electronic device and a computer-readable storage medium, which can realize camera calibration in a simpler way.

[0004] In a first aspect, the present invention provides a camera calibration method, comprising: acquiring a depth image and a first color image of a target area through a target camera, wherein the target camera is an RGBD camera; determining a color texture image based on the depth image and the first color image; if there is a difference between the color texture image and the target area, correcting the origin of the coordinate system corresponding to the target camera.

[0005] In the above implementation, the depth image is converted into a color texture image to identify whether the origin of the target camera needs to be calibrated, and the camera calibration is further achieved by calibrating the origin. In this way, it is possible to determine whether the target camera needs to be calibrated without setting and measuring the external environment, which can reduce the difficulty of camera calibration and reduce the impact of environmental factors on camera calibration.

[0006] In an optional embodiment, the target camera includes a depth sensor and a color sensor; determining the color texture image based on the depth image and the first color image includes: converting the coordinates of the pixel points in the depth image from the depth sensor coordinate system to the color sensor coordinate system, and projecting it to the first color image to obtain the color texture image.

[0007] In the above implementation, a color texture image can be obtained by transforming the coordinates of each pixel in the depth image. The transformation of each pixel can better characterize the texture of each object in the target area, so that the difference between the color texture image and the target area can be more accurately determined.

[0008] In an optional embodiment, the coordinates of the pixel points in the depth image are converted from the depth sensor coordinate system to the color sensor coordinate system, and projected onto the first color image to obtain a color texture image, including: extracting a first point cloud in the depth sensor coordinate system from the depth image; converting the first point cloud into a second point cloud in the color sensor coordinate system; and projecting the second point cloud onto the first color image to obtain a color texture image.

[0009] In an optional embodiment, converting the first point cloud into a second point cloud in the coordinate system of the color sensor includes: using the transformation matrix in the external parameters of the target camera to perform transformation calculations on each point in the first point cloud to obtain a second point cloud in the coordinate system of the color sensor.

[0010] In the above implementation, the points in the image can be abstracted into a point cloud to facilitate the conversion of points between different coordinate systems, which can achieve more accurate and efficient image conversion and further improve the correction of the camera's origin and the efficiency of camera calibration.

[0011] In an optional implementation, the correcting the origin of the coordinate system corresponding to the target camera includes: correcting the origin of the coordinate system corresponding to the target camera according to an offset between the object in the color texture image and the object in the target area.

[0012] In an optional embodiment, the origin of the coordinate system corresponding to the target camera is corrected according to the offset between the object in the color texture image and the object in the target area, including: if the object in the color texture image and the object in the target area are offset in a first direction, the origin of the target camera is moved in a second direction, wherein the first direction and the second direction are opposite directions.

[0013] In the above implementation, the possible offset of the texture corresponding to the depth image can be corrected by translating the origin, and the camera can be corrected.

[0014] In an optional embodiment, the method further includes: acquiring a second color image of the target area through the target camera; and comparing the color texture image with the second color image to determine whether there is a difference between the color texture image and the target area.

[0015] In the above implementation, by comparing the converted color texture image with the second color image of the target area actually acquired, the need for human participation can be reduced, the efficiency of camera calibration can be improved, and the calibration result can be made more objective.

[0016] In a second aspect, the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of the method described in any one of the aforementioned implementations.

[0017] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in any one of the aforementioned embodiments are executed.

[0018] In a fourth aspect, the present invention provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the method described in any one of the aforementioned embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] 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. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;

[0021] Figure 2 A flowchart of a camera calibration method provided in an embodiment of the present application;

[0022] Figure 3 This is an optional flowchart of step 220 of the camera calibration method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application.

[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0025] RGBD camera refers to a camera that can output RGB images and depth images (Depth Image), where the depth image can be based on iToF (indirect Time of Flight) or dToF (direct Time of Flight) technology, or other technologies. ToF (Time of Flight) is a technology that uses the time of flight of light to measure distance, and measures the distance by the delay between the emitted light and the light emitted by the object.

[0026] In actual use, in order to make the depth image measured by the depth sensor in the RGBD camera more accurate, the camera needs to be calibrated. The current camera calibration method usually sets a reference object and measures the actual distance between the reference object and the camera as a reference. This implementation method not only has requirements on the environment, but also requires some manual measurements before calibration, which is relatively troublesome to implement.

[0027] Based on the above situation, the embodiments of the present application can provide a camera calibration method, an electronic device and a computer-readable storage medium, which can reduce the difficulty of camera calibration and improve the efficiency of camera calibration.

[0028] To facilitate understanding of this embodiment, an electronic device that executes the camera calibration method disclosed in the embodiment of the present application is first introduced in detail.

[0029] like Figure 1 , which is a block diagram of an electronic device. The electronic device 100 may include a memory 111 and a processor 113. A person skilled in the art may understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the electronic device 100. For example, the electronic device 100 may further include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0030] The memory 111, storage controller 112, processor 113, peripheral interface 114, input / output unit 115 and display unit 116 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute the executable module stored in the memory.

[0031] The memory 111 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 111 is used to store programs, and the processor 113 executes the program after receiving the execution instruction. The method executed by the electronic device 100 defined by the process disclosed in any embodiment of the present application can be applied to the processor 113, or implemented by the processor 113.

[0032] The processor 113 may be an integrated circuit chip with signal processing capability. The processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), a dedicated integrated circuit.

[0033] (Application Specific Integrated Circuit, referred to as ASIC), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0034] In this embodiment, the electronic device 100 may be an RGBD camera, and a memory and a processor are provided on the RGBD camera to process the depth image acquired by the RGBD camera, so as to implement camera calibration. The electronic device 100 may also be a computer device with an image processing function, and the computer device may obtain the color image and the depth image acquired by the RGBD camera, so as to implement camera calibration based on the processing of the color image and the depth image.

[0035] The electronic device 100 in this embodiment can be used to execute each step in each method provided in the embodiments of the present application. The implementation process of the camera calibration method is described in detail below through several embodiments.

[0036] See also Figure 2 , is a flowchart of the camera calibration method provided in the embodiment of the present application. The camera calibration method provided in the embodiment of the present application can be applied to an electronic device, and the steps in the camera calibration method are performed by the electronic device. Figure 2 The specific process shown is described in detail.

[0037] Step 210: Capture a depth image and a first color image of a target area through a target camera.

[0038] Exemplarily, the target camera may be an RGBD camera, which may include a color sensor and a depth sensor.

[0039] The color sensor can be used to collect a color image, and the color image can be an RGB (Red Green Blue) image.

[0040] The depth sensor can be used to collect depth images. Exemplarily, the depth sensor can use ToF technology to collect depth images.

[0041] Optionally, the depth image and the first color image may be images obtained by photographing the target area at the same position by a target camera.

[0042] For subsequent recognition of the scene in the target area, the target area may include at least some objects with bright colors. Exemplarily, the target area may include objects with colors different from the background color.

[0043] Step 220: Determine a color texture image based on the depth image and the first color image.

[0044] Exemplarily, the depth image may be an image in a depth sensor coordinate system, and the color texture image may be an image in a color sensor coordinate system.

[0045] Optionally, the color texture image can be obtained by transforming the coordinate system of the depth image. Exemplarily, the coordinate system of each pixel in the depth image can be transformed, and then the point obtained after the coordinate transformation is projected onto the first color image to obtain the color texture image.

[0046] If there is a difference between the color texture image and the target area, step 230 may be performed. If there is no difference between the color texture image and the target area, it may indicate that the origin of the depth sensor of the target camera is accurate, and the origin of the coordinate system of the depth sensor of the target camera may not be corrected.

[0047] Step 230: calibrate the origin of the coordinate system corresponding to the target camera.

[0048] Exemplarily, the difference between the color texture image and the target area may be that the color texture is offset from the actual object in the target area. The offset may be that the color texture is offset downwards compared to the object in the target area, the offset may be that the color texture is offset upwards compared to the object in the target area, the offset may be that the color texture is offset to the left compared to the object in the target area, or the offset may be that the color texture is offset to the right compared to the object in the target area. Of course, it may also be an offset in other directions.

[0049] The origin can be corrected in a direction opposite to the color texture offset direction in the color texture image to achieve correction of the origin of the target camera, thereby achieving calibration of the target camera.

[0050] In this embodiment, the camera calibration method may be to calibrate the depth shooting part of the camera. The calibration of the origin of the coordinate system corresponding to the target camera may be to calibrate the origin of the coordinate system of the depth sensor in the target camera.

[0051] Through the above implementation method, it is not necessary to specially set up a calibration scene and scene measurement. It is only necessary to process the depth image taken by the target camera to determine whether the camera needs to be calibrated, and then calibrate the camera based on the needs, so as to complete the camera calibration. This implementation method can reduce the requirements for camera calibration and improve the efficiency of camera calibration.

[0052] The conversion of different types of images is actually the difference in the coordinate system of the image acquisition device. Based on this, the above-mentioned step 220 may include converting the coordinates of the pixel points in the depth image from the depth sensor coordinate system to the color sensor coordinate system, and projecting it onto the first color image to obtain a color texture image.

[0053] Exemplarily, coordinate transformation may be performed for each pixel point, and the coordinates obtained after the coordinate transformation may be the coordinates of the pixel point in the color texture image.

[0054] In one implementation, the conversion relationship from the depth image to the color image may be calculated based on the parameters of the target camera.

[0055] Exemplarily, the camera parameters may include a camera model of the depth sensor, a camera model of the color sensor, and a conversion matrix between a three-dimensional coordinate system of the depth sensor and a three-dimensional coordinate system of the color sensor.

[0056] The camera model of the depth sensor can be used to convert pixel points in the depth image from pixel coordinates to coordinates of the three-dimensional coordinate system of the depth sensor; the conversion matrix between the three-dimensional coordinate system of the depth sensor and the three-dimensional coordinate system of the color sensor can be used to convert the coordinates of the three-dimensional coordinate system of the depth sensor to the coordinates of the three-dimensional coordinate system of the color sensor; the camera model of the color sensor can be used to convert the coordinates of the three-dimensional coordinate system of the color sensor to the pixel coordinates of the pixel points in the color image. Therefore, the conversion relationship from the depth image to the color image can be determined by the camera parameters, which can include the camera model of the depth sensor, the camera model of the color sensor, and the conversion matrix between the three-dimensional coordinate system of the depth sensor and the three-dimensional coordinate system of the color sensor.

[0057] For each pixel in the depth image, calculation is performed based on the depth value, coordinates and conversion relationship of the pixel to obtain the coordinates of each pixel in the color texture image.

[0058] In another embodiment, if Figure 3 As shown, the above step 220 may include steps 221 to 223.

[0059] Step 221 : extracting a first point cloud in the depth sensor coordinate system from the depth image.

[0060] Optionally, the conversion between the depth image and the first point cloud may be implemented using a camera model of a depth sensor of the target camera.

[0061] Exemplarily, the geometric relationship of the camera model of the depth sensor can be expressed as:

[0062] p D =(u D , v D , f)T;

[0063] P D =(X D , Y D , Z D )T;

[0064] Among them, p D represents the pixel coordinates of the pixel point in the depth image obtained by the depth sensor; (u D ,v D ) represents the two-dimensional pixel coordinates of the pixel point on the depth image, and f represents the focal length of the camera. D Represents three-dimensional coordinates; (XD , Y D , Z D ) represents the coordinates of the first target point in the world coordinate system corresponding to the depth sensor. According to the trigonometric relationship, we can get: Z D =(f / u D )X D ; Z D =(f / v D )X D .

[0065] Based on the above model, the pixels in the depth image can be converted to coordinates in the world coordinate system.

[0066] Taking the pixel point (u1, v1) in the depth image as an example, D(u1, v1) represents the depth value Z1 corresponding to the pixel point (u1, v1).

[0067] With the above camera model, the horizontal coordinates of the pixel point in the world coordinate system can be calculated as X1 = (u1 / f) Z1; Y1 = (v1 / f) Z1. (X1, Y1, Z1) can represent the three-dimensional coordinates of the pixel point (u1, v1) in three-dimensional space.

[0068] All pixel points in the depth image can obtain three-dimensional coordinates in the world coordinate system in the form of pixel points (u1, v1), so that the first point cloud of the depth image can be obtained.

[0069] Step 222: convert the first point cloud into a second point cloud in the coordinate system of the color sensor.

[0070] The coordinate systems used by the depth sensor and the color sensor of the target camera in the three-dimensional space are usually inconsistent, so the three-dimensional points detected by the depth sensor can be transferred from the coordinate system corresponding to the depth sensor to the coordinate system corresponding to the color sensor by means of coordinate conversion.

[0071] Optionally, a transformation matrix in the extrinsic parameters of the target camera may be used to perform transformation calculations on each point in the first point cloud to obtain a second point cloud in the coordinate system of the color sensor.

[0072] Exemplarily, the external parameters of the target camera may include a transformation matrix. For example, the coordinates of the first point in the coordinate system corresponding to the depth sensor are the first coordinates (X D1 , Y D1 , Z D1 ), the first coordinate (X D1 , Y D1 , Z D1 ) is multiplied by the transformation matrix to obtain the second coordinate (X R1 , Y R1, Z R1 ).

[0073] The coordinates of all points in the first point cloud can be multiplied by the transformation matrix to obtain a second point cloud. The points in the second point cloud are points in the coordinate system corresponding to the color sensor.

[0074] Step 223: Project the second point cloud onto the first color image to obtain a color texture image.

[0075] Exemplarily, the coordinates of the points in the second point cloud may be converted into pixel coordinates of the color sensor, and the pixel coordinates may be coordinates in a two-dimensional plane.

[0076] Optionally, the second point cloud may be projected onto the first color image using a camera model of the color sensor of the target camera to obtain a color texture image.

[0077] Exemplarily, the geometric relationship of the camera model of the color sensor can be expressed as:

[0078] p=(u R , v R , f)T;

[0079] P R =(X R , Y R , Z R )T;

[0080] Where p represents the pixel coordinate; (u R , v R ) represents the two-dimensional pixel coordinates of the pixel point on the color image, and f represents the focal length of the camera. R Represents three-dimensional coordinates; (X R ,Y R ,Z R ) represents the coordinates of the second target point in the world coordinate system corresponding to the color sensor. According to the trigonometric relationship, we can get: u = f (X R / Z R )+c x ; v = f(Y R / Z R )+c y .

[0081] Among them, (c x , c y ) represents the relative coordinates of the optical center of the color sensor on the color image.

[0082] The second point cloud is mapped to the pixel coordinate system of the color sensor through the camera model of the color sensor, and the points of the second point cloud under the pixel coordinates of the color sensor are projected onto the first color image to obtain a color texture image.

[0083] The above method can realize the conversion between image coordinates and three-dimensional world coordinates, thereby further realizing the conversion between depth image and color texture image.

[0084] In the embodiment of the present application, whether there is a difference between the color texture image and the target area can be determined based on the comparison between the color texture image and the real scene of the target area.

[0085] In one implementation, an interactive interface may be provided to determine whether there is a difference between the color texture image and the target area by receiving identification data input by the user.

[0086] Exemplarily, the identification data may include whether there is a difference between the color texture image and the target area. If there is a difference between the color texture image and the target area, the identification data may also include the type of difference. The type of difference may include that there is a deviation in the texture in the color texture image.

[0087] Optionally, the interactive interface may include multiple input boxes, each input box is used to receive different identification data.

[0088] In one embodiment, it can be determined by image comparison whether there is a difference between the color texture image and the target area. Based on this, the camera calibration method of the embodiment of the present application can also include: acquiring a second color image of the target area through the target camera; comparing the color texture image with the second color image to determine whether there is a difference between the color texture image and the target area.

[0089] Exemplarily, it is possible to determine whether there is a difference between the color texture image and the target area by comparing the textures of the key objects in the two images.

[0090] Optionally, the depth image and the second color image may be images obtained by photographing the target area at the same position by the target camera. It can be understood that the depth image corresponds to the objects in the second color image one by one and have the same relative position in the image.

[0091] Exemplarily, the object in the target area includes a target ornament, and the location of the target ornament can be determined by identifying the second color image, and further identifying whether the texture of the target ornament in the color texture image is located at the location of the target ornament, so as to determine whether there is a difference between the color texture image and the target area. For example, the texture of the target ornament coincides with the location of the target ornament, and it can be determined that there is no difference between the color texture image and the target area. For another example, the texture of the target ornament does not completely coincide with the location of the target ornament, and it can be determined that there is a difference between the color texture image and the target area. For another example, the texture of the target ornament does not completely coincide with the location of the target ornament, and the texture of the target ornament is relatively left compared to the location of the target ornament, and it can be determined that there is an offset between the color texture image and the target area.

[0092] Optionally, the location of the target ornament in the second color image can be determined by an image recognition model, which can be a pre-trained neural network model.

[0093] After determining that there is a difference between the color texture image and the target area, a correction of the origin of the target camera is performed.

[0094] Optionally, the above step 230 may include correcting the origin of the coordinate system corresponding to the target camera according to the offset between the object in the color texture image and the object in the target area.

[0095] Exemplarily, if the object in the color texture image and the object in the target area are offset in a first direction, the origin of the target camera is moved in a second direction.

[0096] The first direction and the second direction are opposite directions. For example, if the first direction is the negative direction of the x-axis, the second direction may be the positive direction of the x-axis. In actual scenarios, the first direction may be more directions, not just the directions of the three axes of the coordinate system.

[0097] In this embodiment, the camera calibration implemented based on the processing of the depth image may be calibration of the origin of the depth sensor of the target camera.

[0098] According to the method provided in the embodiment of the present application, there is no need to additionally measure the distance from a given reference object to the target camera, so that the camera calibration can be achieved more conveniently. Furthermore, the camera calibration achieved by the method provided in the embodiment of the present application is more intuitive for the user and can be achieved by the image processing software running in the target camera. It can also be achieved based on the image processing software running in the computer device connected to the target camera.

[0099] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the camera calibration method described in the above method embodiment are executed.

[0100] The computer program product of the camera calibration method provided in the embodiment of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the camera calibration method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0101] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0103] If the function is implemented in the form of a software function module 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, which is stored in a storage medium and includes several 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: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the process, method, article or apparatus that includes the elements.

[0104] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0105] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A camera calibration method, characterized in that: include: Acquire a depth image and a first color image of a target area through a target camera, wherein the target camera is an RGBD camera; Determine a color texture image based on the depth image and the first color image; If there is a difference between the color texture image and the target area, the origin of the coordinate system corresponding to the target camera is corrected.

2. The method according to claim 1, characterized in that The target camera includes a depth sensor and a color sensor; and determining a color texture image based on the depth image and the first color image includes: The coordinates of the pixels in the depth image are converted from the depth sensor coordinate system to the color sensor coordinate system, and are projected onto the first color image to obtain a color texture image.

3. The method according to claim 2, characterized in that The step of converting the coordinates of the pixel points in the depth image from the depth sensor coordinate system to the color sensor coordinate system and projecting the coordinates to the first color image to obtain a color texture image includes: Extracting a first point cloud in the depth sensor coordinate system from the depth image; Converting the first point cloud into a second point cloud in the coordinate system of the color sensor; The second point cloud is projected onto the first color image to obtain a color texture image.

4. The method according to claim 3, characterized in that The converting the first point cloud into a second point cloud in the coordinate system of the color sensor includes: Using the conversion matrix in the extrinsic parameters of the target camera, each point in the first point cloud is converted and calculated to obtain a second point cloud in the coordinate system of the color sensor.

5. The method according to claim 1, characterized in that The correcting the origin of the coordinate system corresponding to the target camera includes: The origin of the coordinate system corresponding to the target camera is corrected according to the offset between the object in the color texture image and the object in the target area.

6. The method according to claim 5, characterized in that The correcting the origin of the coordinate system corresponding to the target camera according to the offset between the object in the color texture image and the object in the target area includes: If the object in the color texture image and the object in the target area are offset in a first direction, the origin of the target camera is moved in a second direction, wherein the first direction and the second direction are opposite directions.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquiring a second color image of the target area by the target camera; The color texture image is compared with the second color image to determine whether there is a difference between the color texture image and the target area.

8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the processor to perform the steps of the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for registering color image and depth image based on collection of RGB-D device

    CN107507235A

  • Test method and test system based on depth estimation performance of depth camera

    CN112102387A

  • Mobile robot target positioning method and system

    CN115496898A

  • Camera calibration and registration method and device

    CN116228886A

  • Image processing method and device, electronic equipment and storage medium

    CN116805285A