Image splicing method, electronic equipment and storage medium

By using calibration plates and strip-shaped calibration objects to determine camera external parameters in coal mine underground scenes, the problem of inaccurate image splicing positions when the camera moves is solved, and a stable and robust image splicing effect is achieved, which is suitable for coal mines in large parallax scenes. Underground image stitching.

CN118780978APending Publication Date: 2024-10-15HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310337164.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing image stitching methods cannot accurately determine the splicing position when the camera moves, resulting in poor multi-channel image stitching effects. Especially in the imaging of fully mechanized mining surfaces in coal mines, there are large parallaxes and splicing position update problems caused by camera movement.

Method used

By deploying calibration plates and strip-shaped calibration objects in the target scene, and using the relative positional relationship between the calibration plates and strip-shaped calibration objects to determine the external parameters of the camera, accurate pose estimation and image stitching of multiple cameras are achieved, including the first category The fields of view of the camera and the second type of camera respectively contain calibration plates and strip-shaped calibration objects, and the similar area ratio is used to determine the amount of translation and rotation of the camera for image splicing.

Benefits of technology

It achieves the correct pose estimation of each camera after the camera moves, improves the stability, robustness and effect of image stitching. It is suitable for coal mine underground image stitching in large parallax scenes and avoids the misalignment phenomenon caused by inaccurate splicing positions. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780978A_ABST
    Figure CN118780978A_ABST
Patent Text Reader

Abstract

The invention discloses an image splicing method, electronic equipment and a storage medium, relates to the technical field of image processing, and is used for splicing images acquired by a plurality of cameras, and the plurality of cameras are deployed in a target scene with a calibration plate and a strip-shaped calibration object. For a first type of camera comprising a calibration plate in a field of view, the external parameters of the camera can be determined according to the position of the calibration plate in an image frame acquired by the calibration plate. For a second type of camera of which the view field does not include the calibration plate, since the view fields of the first type of camera and the second type of camera both include a part of the strip-shaped calibration object, the extrinsic parameter of the second type of camera can be determined according to the relative position relationship of the image of the strip-shaped calibration object in the image frames collected by the two types of cameras and the extrinsic parameter of the first type of camera. Therefore, no matter whether the image shot by the camera contains the calibration plate or not, the external parameters of the camera can be accurately determined, the correct splicing position can be determined in the image splicing process, stable and robust image splicing is achieved, and the image splicing effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of image processing, and in particular to an image stitching method, an electronic device and a storage medium. Background Art

[0002] Image stitching technology refers to the technology of stitching two or more images with overlapping parts into a wide-angle image containing the information of each image through image fusion technology.

[0003] In the process of intelligent development of coal mines, image stitching technology is used for imaging of fully mechanized mining faces in underground coal mines. Since the imaging range of a single camera is limited and the coal cutter is large in size, in order to image the coal cutter as a whole, multiple cameras can be deployed underground in the coal mine, and the images collected by different cameras can be stitched into multiple images.

[0004] Multiple cameras can be installed on the hydraulic support. During the coal mining process, the camera will move under the push of the hydraulic support, which will result in the need to update the stitching position in real time when stitching images. Due to the current image stitching method, the correct stitching position cannot be determined when the camera moves, resulting in poor stitching effect of multi-channel image stitching. Summary of the invention

[0005] The embodiments of the present application provide an image stitching method, an electronic device, and a storage medium, which can improve the stitching effect of multi-channel image stitching.

[0006] In a first aspect, an embodiment of the present application provides an image stitching method, which can be performed by an electronic device connected to a plurality of cameras. In which, the plurality of cameras are deployed in a target scene, a calibration plate and a strip calibration object are deployed in the target scene, the plurality of cameras include a first type of camera and a second type of camera, and the field of view of each of the plurality of cameras includes a portion of the strip calibration object; the field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate. The method may include: obtaining a plurality of image frames obtained by synchronously capturing the target scene by the plurality of cameras, determining the external parameters of the first camera that captures the first image frame according to the position of the calibration plate in the first image frame, wherein the first camera belongs to the first type of camera; according to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the external parameters of the first camera, the external parameters of the second camera that captures the second image frame can be determined, and the first reference area and the second reference area are respectively used to describe a portion of the strip calibration object; wherein the second camera belongs to the second type of camera; through the above method, the external parameters of the first type of camera and the second type of camera in the plurality of cameras can be determined respectively, and image stitching is performed based on the external parameters of the plurality of cameras.

[0007] In view of the problem that the camera's external parameters are determined based on the calibration plate in the related art, and the camera's external parameters cannot be determined when the camera moves to a position where the calibration plate cannot be captured, and therefore the correct stitching position cannot be determined, the image stitching method provided in the embodiment of the present application can determine the camera's external parameters according to the position of the calibration plate in the image frame captured by the first type of camera for the first type of camera including the calibration plate in the field of view. For the second type of camera that does not include the calibration plate in the field of view, since the fields of view of the first type of camera and the second type of camera both include a portion of the strip calibration object, the external parameters of the second type of camera can be determined according to the relative position relationship between the image of the strip calibration object in the image frame captured by the first type of camera and the image frame captured by the second type of camera, as well as the external parameters of the first type of camera. In this way, regardless of whether the image captured by the camera contains the calibration plate, the camera's external parameters can be accurately determined. After the camera moves, the correct posture estimation can be performed for each camera, which helps to determine the correct stitching position during the image stitching process, achieve stable and robust image stitching, and improve the image stitching effect.

[0008] In a possible implementation, the shape of the strip-shaped calibration object satisfies a periodic variation rule, so that images of portions of the strip-shaped calibration object captured by multiple cameras can match each other.

[0009] In a possible implementation, the target scene is an underground coal mine scene, and the strip-shaped calibration object is a coal mining machine track.

[0010] In a possible implementation manner, the first reference region is an image region in the first image frame that has the highest similarity to the second reference region.

[0011] In the above implementation, by searching the first image frame for the image region with the highest similarity to the second reference region, the position of the first reference region in the first image frame can be quickly determined.

[0012] In a possible implementation, when determining the extrinsic parameters of the second camera that captures the second image frame based on the relative position relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the extrinsic parameters of the first camera, the relative deviation between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera can be determined based on the relative position relationship between the first reference area in the first image frame and the second reference area in the second image frame; the extrinsic parameters of the second camera can be determined based on the extrinsic parameters of the first camera and the relative deviation between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera.

[0013] In a possible implementation, the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame may include a relative area ratio; and the relative deviation between the external parameters of the cameras may include a z-axis relative deviation. When determining the relative deviation between the external parameters of the first camera and the external parameters of the second camera based on the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, the z-axis relative deviation between the first camera and the second camera may be determined based on the relative area ratio between the first reference area in the first image frame and the second reference area in the second image frame, and the correspondence between the pre-stored area ratio and the relative deviation.

[0014] In a possible implementation, the extrinsic translation of the first camera and the second camera may include a z-axis translation. When determining the extrinsic parameter of the second camera, the z-axis translation of the second camera may be determined based on the z-axis translation of the first camera and the z-axis relative deviation between the first camera and the second camera.

[0015] In the above implementation, the relative area ratio between similar areas in the image is used to determine the relative deviation of the camera on the z-axis. The relative deviation on the z-axis can characterize the distance of the camera from the target scene during movement, so that the correct pose estimation can be performed on the camera that has not captured the calibration plate.

[0016] In a possible implementation, the external parameters of the third camera for capturing the third image frame may also be determined according to the relative positional relationship between the first reference area of ​​the first image frame and the third reference area in the third image frame, and the external parameters of the first camera; the third reference area is used to describe a portion of the strip-shaped calibration object;

[0017] The extrinsic parameters of the second camera are determined according to the relative positional relationship between the second reference area of ​​the second image frame and the third reference area in the third image frame, and the extrinsic parameters of the third camera.

[0018] In the above implementation, not only can the extrinsic parameters of the second type of camera be determined based on the extrinsic parameters of the first type of camera, but if a third camera adjacent to the second camera also belongs to the second type of camera and if the extrinsic parameters of the third camera have been determined, the extrinsic parameters of the second camera can also be determined based on the extrinsic parameters of the third camera, thereby increasing the flexibility and feasibility of the extrinsic parameter determination process.

[0019] In a possible implementation, the extrinsic parameter translation in the extrinsic parameters of the first camera that captures the first image frame can be determined based on the position of the calibration plate in the first image frame, and the extrinsic parameter translation in the extrinsic parameters of the second camera that captures the second image frame can be determined based on the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, as well as the extrinsic parameter translation of the first camera. When image stitching is performed based on the extrinsic parameters of multiple cameras, the extrinsic parameter rotations of the multiple cameras can be obtained, and image stitching is performed based on the extrinsic parameter translations and extrinsic parameter rotations of the multiple cameras.

[0020] In a second aspect, an embodiment of the present application provides an image stitching device, which may include:

[0021] An image acquisition unit is used to acquire multiple image frames acquired by multiple cameras; the multiple cameras are deployed in a target scene, the multiple image frames are obtained by the multiple cameras synchronously acquiring the target scene, a calibration plate and a strip-shaped calibration object are deployed in the target scene, the multiple cameras include a first type of camera and a second type of camera, and the field of view of each of the multiple cameras includes a part of the strip-shaped calibration object; the field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate;

[0022] an extrinsic parameter determination unit, configured to determine an extrinsic parameter of a first camera that acquires the first image frame according to the position of the calibration plate in the first image frame, and to determine an extrinsic parameter of a second camera that acquires the second image frame according to the relative positional relationship between a first reference area in the first image frame and a second reference area in the second image frame, and the extrinsic parameter of the first camera; the first camera belongs to a first type of camera; the first reference area and the second reference area are respectively used to describe a portion of a strip-shaped calibration object; and the second camera belongs to a second type of camera;

[0023] The image stitching unit is used to stitch images based on the external parameters of multiple cameras.

[0024] In a possible implementation, the shape of the strip-shaped calibration object satisfies a periodic variation rule.

[0025] In a possible implementation, the target scene is an underground coal mine scene, and the strip-shaped calibration object is a coal mining machine track.

[0026] In a possible implementation manner, the first reference region is an image region in the first image frame that has the highest similarity to the second reference region.

[0027] In a possible implementation, the extrinsic parameter of the first camera includes an extrinsic translation of the first camera; and the extrinsic parameter of the second camera includes an extrinsic translation of the second camera.

[0028] In a possible implementation, the image stitching unit is specifically used to:

[0029] Get the external parameter rotation of multiple cameras;

[0030] Image stitching is performed based on the extrinsic translation and rotation of multiple cameras.

[0031] In a possible implementation, the external parameter determination unit is specifically configured to:

[0032] Determine a relative deviation between an extrinsic parameter of the first camera and an extrinsic parameter of the second camera according to a relative positional relationship between a first reference area in the first image frame and a second reference area in the second image frame;

[0033] The extrinsic parameters of the second camera are determined according to the extrinsic parameters of the first camera and the relative deviation between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera.

[0034] In a possible implementation, the relative position relationship between the first reference area in the first image frame and the second reference area in the second image frame includes a relative area ratio; the relative deviation of the extrinsic parameter includes a z-axis relative deviation; and the extrinsic parameter determination unit is specifically configured to:

[0035] The z-axis relative deviation between the first camera and the second camera is determined according to the relative area ratio of the first reference area in the first image frame and the second reference area in the second image frame, and the pre-stored correspondence between the area ratio and the relative deviation.

[0036] In a possible implementation, the extrinsic parameter translations of the first camera and the second camera include z-axis translations; and the extrinsic parameter determination unit is specifically configured to:

[0037] The z-axis translation amount of the second camera is determined according to the z-axis translation amount of the first camera and the z-axis relative deviation between the first camera and the second camera.

[0038] In a possible implementation, the extrinsic parameter determination unit is specifically used to: determine the extrinsic parameter of a third camera that captures the third image frame according to the relative position relationship between the first reference area of ​​the first image frame and the third reference area in the third image frame, and the extrinsic parameter of the first camera; the third camera belongs to the second type of camera, and the third reference area is used to describe a part of the strip calibration object;

[0039] The extrinsic parameters of the second camera are determined according to the relative positional relationship between the second reference area of ​​the second image frame and the third reference area in the third image frame, and the extrinsic parameters of the third camera.

[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the processor implements any one of the methods provided in the first aspect.

[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any one of the methods provided in the first aspect above.

[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising computer executable instructions, which are used to enable a computer to execute any one of the methods provided in the first aspect above.

[0043] The technical effects that can be achieved in any of the second to fifth aspects mentioned above can refer to the description of the beneficial effects in the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a camera layout architecture according to an embodiment of the present application;

[0046] Figure 3 A schematic diagram of connecting a camera and an electronic device provided in an embodiment of the present application;

[0047] Figure 4 is a schematic diagram of camera parallax;

[0048] Figure 5 A schematic diagram of an image stitching effect;

[0049] Figure 6 A flowchart of an image stitching method provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of a flow chart of an image stitching method provided in an embodiment of the present application;

[0051] Figure 8 A schematic diagram of performing perspective transformation on an image provided in an embodiment of the present application;

[0052] Fig. 9 A schematic diagram of a reference area in an image frame provided in an embodiment of the present application;

[0053] Fig.10 A schematic diagram of searching for a similar reference area in an image frame provided by an embodiment of the present application;

[0054] Fig.11 This is a diagram showing the effect of image stitching using the image stitching method provided in an embodiment of the present application;

[0055] Fig.12A schematic diagram of the structure of an image stitching device provided in an embodiment of the present application;

[0056] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0058] Before introducing the specific solutions provided by the embodiments of the present application, some terms in the present application are explained to facilitate understanding by those skilled in the art, and the terms in the present application are not limited.

[0059] (1) Camera extrinsics: Camera extrinsics are a set of parameters that characterize the position, rotation direction, and other properties of the camera in the world coordinate system. For example, the camera extrinsics may include an extrinsic rotation R and an extrinsic displacement T. The extrinsic rotation R may include the roll angle, pitch angle, and yaw angle of the camera; the extrinsic displacement T may include the position information of the camera in three dimensions.

[0060] (2) Pose estimation: In computer vision, pose estimation refers to the relative direction and position of a camera with respect to an object, that is, the solution of the corresponding camera extrinsic parameters in the world coordinate system.

[0061] In the embodiments of the present application, "multiple" refers to two or more than two. In view of this, in the embodiments of the present application, "multiple" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no restriction on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A and B and C may be included. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. 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 " / ", unless otherwise specified, generally indicates that the previously associated objects are in an "or" relationship.

[0062] Unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects and are not used to limit the order, timing, priority or importance of the multiple objects.

[0063] The image stitching method provided in the embodiment of the present application can be applied to the scene of real-time image stitching when the camera is pushed or pulled and moved. For example, the image stitching method can be used for imaging of the fully mechanized mining face in a coal mine. Figure 1 As shown, the working system in the fully-mechanized mining face of a coal mine underground mainly includes two modules: the working face coal mining system and the working face support system. Among them, the working face coal mining system includes a coal cutter and a coal machine track 10; the working face support system may include a support equipment group consisting of multiple hydraulic supports 20. The various hydraulic supports 20 in the working face support system cooperate with each other and dynamically couple with the surrounding rock underground to complete the tasks of supporting the top, blocking the gangue, and protecting the side, so as to form a safe working space for the fully-mechanized mining face underground in the coal mine.

[0064] like Figure 2 As shown, multiple cameras 100 are arranged underground in the coal mine for collecting images of the underground environment of the coal mine and the coal cutter 30. Multiple cameras 100 can be installed on a hydraulic support. Since the field of view and imaging range of each camera are limited, in order to image the coal cutter as a whole, the image contents collected by different cameras can be stitched into multiple images. Figure 3 As shown, multiple cameras 100 can be connected to an electronic device 200, and the electronic device 200 can be a computer or a server. The electronic device 200 can be connected to multiple cameras 100 through a wired or wireless network to obtain images captured by multiple cameras 100 and perform multi-channel image stitching. For example, the electronic device 200 can send a synchronous acquisition signal to multiple cameras 100, and the synchronous acquisition signal can be used to instruct multiple cameras to synchronously acquire images. Multiple cameras 100 can perform image acquisition of the underground scene of the coal mine based on the synchronous acquisition signal sent by the electronic device 200, compress and encode the acquired images, add timestamps, generate video streams, and transmit the video streams to the electronic device 200. The electronic device 200 receives the video stream sent by any camera, decodes the video stream, and obtains each image taken by the camera, each image having a timestamp. The electronic device 200 can determine the multi-channel images synchronously acquired by multiple cameras according to the timestamps of each image, and perform image stitching on the multi-channel images acquired synchronously.

[0065] There are two main difficulties in image stitching in coal mine scenes:

[0066] First, the large parallax between different cameras. Since the camera shoots in the fully-mechanized mining face scene in an underground coal mine, it naturally has the environmental characteristics of short object distance and long baseline (camera spacing). The shorter the object distance and the longer the baseline, the greater the parallax. Therefore, in the fully-mechanized mining face scene in an underground coal mine, there is a large parallax between different cameras, which is manifested as two fixed viewpoints observing objects at different depths, and the relative position relationship of each object in the two images is quite different. When stitching images, a single homography transformation matrix cannot map multiple planes, and it is impossible to correspond the pixel coordinates of the overlapping areas of the images one by one. For example Figure 4 As shown, when performing image stitching, if the foreground parts of the circular dotted areas in images a and b captured by different cameras are aligned, the background parts of the square dotted areas will appear as ghost images in the stitched wide-angle image.

[0067] Second, the camera movement will cause the object distance to change continuously. During the coal mining process, the camera will move under the push of the hydraulic support, and the camera will move forward during the movement, such as Figure 2 As shown in the dotted part in , the camera will move forward, that is, the distance between the camera and the photographed object and the coal wall will become shorter, which will lead to a shorter object distance of the camera. Since the moving distance is not fixed, the stitching position needs to be updated in real time when stitching images, such as Figure 5 As shown in the figure, if the stitching position is inaccurate, it will cause the image to be misaligned at the stitching point, affecting the image stitching effect.

[0068] In the related technology, image stitching of multiple cameras can be performed based on the position estimation of the calibration (tag) card. The calibration card is printed with a QR code. This method mainly uses the QR code to assist in determining the external parameters of the camera, and then performs image stitching. In the underground coal mine scene, this solution needs to use the calibration card to calculate the external parameters of the camera; because the calibration card is usually pasted in the middle of the coal cutter, and there is no calibration card at both ends of the coal cutter, for the camera that does not capture the middle part of the coal cutter, the external parameter calibration cannot be completed, and the image can only be stitched using historical values ​​that have a large error with the current situation, which will also cause the image stitching effect at both ends of the coal cutter to decline.

[0069] In order to improve the stitching effect of multiple images, an embodiment of the present application provides an image stitching method for stitching images captured by multiple cameras. Among them, multiple cameras are deployed in a target scene, and multiple image frames are obtained by synchronously capturing the target scene by multiple cameras. A calibration plate and a strip calibration object are deployed in the target scene. Among them, the calibration plate can be the calibration card mentioned above, and the shape of the strip calibration object satisfies the periodic change law. Exemplarily, the target scene can be the underground coal mine scene mentioned above, and the strip calibration object can be a coal machine track. The multiple cameras can include a first type of camera and a second type of camera, and the field of view of each camera in the multiple cameras includes a part of the strip calibration object mentioned above; the field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate. The method may include: after the camera moves, respectively acquiring multiple image frames captured by the multiple cameras. According to the position of the calibration plate in the first image frame, the external parameters of the first camera that captures the first image frame are determined, wherein the first camera belongs to the first type of camera. According to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the external parameters of the first camera, the external parameters of the second camera that captures the second image frame are determined; wherein the first reference area and the second reference area are respectively used to describe a part of the strip calibration object; and the second camera belongs to the second type of camera. Through the above method, the external parameters of the first type of camera and the second type of camera in multiple cameras can be determined respectively, and based on the external parameters of the multiple cameras, the images captured by the multiple cameras can be stitched.

[0070] Through the above method, after the camera moves, regardless of whether the image taken by the camera contains a calibration plate, the camera extrinsic parameters can be accurately determined, and the correct pose estimation of each camera can be performed in a large parallax scene, which helps to determine the correct stitching position during the image stitching process, achieve stable and robust image stitching, and improve the image stitching effect.

[0071] The following describes in detail the image stitching method provided by the embodiment of the present application in combination with specific application scenarios. The image stitching method can be Figure 3 The electronic device 200 shown in the figure is applied to a scene where real-time image stitching is performed when the camera is moving. The following is an example of a scene in a coal mine. Figure 6 and Figure 7 As shown, the image stitching method may include the following steps:

[0072] S601, after the camera moves, a plurality of image frames captured by a plurality of cameras are respectively acquired.

[0073] Among them, multiple cameras are deployed in the target scene. For example, the target scene can be a coal mine underground scene. Every time the camera moves with the hydraulic support, it is necessary to re-estimate the pose of each camera, determine the camera extrinsic parameters of each camera, and perform image stitching based on the latest camera extrinsic parameters of each camera. For another example, the target scene can be a sports track and other scenes.

[0074] After the camera moves, multiple image frames captured by multiple cameras are obtained respectively. The multiple image frames are obtained by the multiple cameras synchronously capturing the target scene. The calibration plate and the strip calibration object are deployed in the target scene. According to whether the camera can capture the calibration plate, the multiple cameras can be divided into the first type of camera and the second type of camera. The field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate. The field of view of each camera in the multiple cameras includes a part of the strip calibration object. Among them, the shape of the strip calibration object satisfies the periodic change law. In the coal mine underground scene, the strip calibration object can be Figure 1 The coal mining machine track 10 is shown.

[0075] According to whether the image frame contains the calibration plate, the multiple image frames can be divided into: a first type of image frame containing the calibration plate and a second type of image frame not containing the calibration plate. The first type of image frame is the image frame captured by the first type of camera, and the second type of image frame is the image frame captured by the second type of camera. Figure 7 As shown, most of the multiple image frames are first-category image frames that include the calibration plate, and only a few image frames are second-category image frames that do not include the calibration plate.

[0076] In some embodiments, the calibration plate may be a calibration card, which is a two-dimensional code that can be detected and identified by a program and can be used to estimate the position and posture of the camera. For example, the calibration card can be attached to the middle part of the coal cutter. When the coal cutter is working, the middle part of the coal cutter will not rotate, but the end of the coal cutter and the rocker arm installed at the end will rotate. The camera corresponding to the first type of image frame can capture the middle part of the coal cutter, so the first type of image frame contains the calibration card. The camera corresponding to the first type of image frame does not capture the middle part of the coal cutter, but only the end of the coal cutter. Therefore, the second type of image frame does not contain the calibration card.

[0077] S602: Determine an external parameter of a first camera that captures the first image frame according to the position of the calibration plate in the first image frame.

[0078] The first camera belongs to a first category of cameras, and the first image frame belongs to a first category of image frames.

[0079] In some embodiments, feature extraction may be performed on each captured image frame, and the extracted image features may be compared with the features of the pre-stored calibration plate to determine whether the image frame contains the calibration plate. Image frames containing the calibration plate are regarded as first-category image frames, and image frames not containing the calibration plate are regarded as second-category image frames.

[0080] For the first image frame in the first category of image frames, the feature points corresponding to the calibration plate can be extracted by the feature point extraction module, and the position of the feature points corresponding to the calibration plate in the first image frame can be determined, that is, the position of the calibration plate in the first image frame can be obtained. According to the position of the calibration plate in the first image frame, the camera extrinsic parameters corresponding to the first image frame can be determined. Among them, the first image frame can be any image frame in the first category of image frames. For example, assuming that the image frame Y contains a calibration plate, the feature point extraction module can be used to extract the feature points of the image frame Y to determine the position of the feature points corresponding to the calibration plate in the image frame Y. Exemplarily, if the calibration plate is a two-dimensional code, the two-dimensional code is a square, and the four vertices of the square can be used as four feature points. After determining the positions of the four feature points in the image frame Y, the two-dimensional position information of the four feature points is obtained. The three-dimensional position information of the four feature points stored in advance is obtained, and the three-dimensional position information of each feature point is used to characterize the pasting position of the feature point on the coal cutter, or the position of the feature point relative to the coal cutter. According to the two-dimensional position information and the three-dimensional position information of each feature point, the camera extrinsic parameters corresponding to the image frame Y, that is, the extrinsic parameters of the camera that took the image frame Y, can be determined through coordinate matching.

[0081] The camera extrinsic parameters may include an extrinsic rotation R and an extrinsic translation T. In some embodiments, the extrinsic rotation R and the extrinsic translation T of the camera that shoots the first image frame are determined according to the position of the calibration plate in the first image frame. In other embodiments, since the camera hardly rolls or rotates during the shooting process, the extrinsic rotation R and the extrinsic translation T of the camera that shoots the first image frame may be determined according to the position of the calibration plate in the first image frame when the camera shoots the image for the first time. After the extrinsic rotation R of each camera is determined for the first time, when the camera moves again, only the extrinsic translation T of the camera may be determined, and the extrinsic rotation R of the camera may no longer be adjusted.

[0082] S603 : Determine extrinsic parameters of a second camera for acquiring a second image frame according to a relative positional relationship between a first reference area in the first image frame and a second reference area in the second image frame, and extrinsic parameters of the first camera.

[0083] The first image frame may belong to the first category of image frames, and the second image frame may belong to the second category of image frames. The second camera belongs to the second category of cameras, and the second camera may be any camera in the second category of cameras. The first reference area is the image area in the first image frame that has the highest similarity to the second reference area.

[0084] In an optional embodiment, any of the above-mentioned multiple image frames can be obtained by correcting the image captured by any camera in the multiple cameras according to the extrinsic parameter rotation amount R of the camera before the camera moves; or in other words, the above-mentioned multiple image frames are obtained by correcting the image captured by each camera after the camera moves according to the extrinsic parameter rotation amount R in the camera extrinsic parameters of each camera in the multiple cameras before the camera moves. For example, Figure 8 As shown, for the image A0 captured by camera A and not containing the calibration plate, the image A0 can be perspectively transformed according to the extrinsic rotation vector R of camera A before the camera moves, and the coordinate values ​​of each pixel in image A0 are multiplied by the perspective transformation matrix to obtain a front view image, that is, image frame A. Image frame A belongs to the second type of image frame. Among them, the extrinsic rotation vector R can be understood as a matrix, and the perspective transformation matrix is ​​a matrix obtained by multiplying the intrinsic parameter matrix of the camera, the inverse matrix of the extrinsic rotation vector R of the camera, and the inverse matrix of the intrinsic parameter matrix of the camera. For another example, for the image B0 captured by camera B and containing the calibration plate, the image B0 can be perspectively transformed according to the extrinsic rotation vector R of camera B before the camera moves to obtain a front view image, that is, image frame B. Image frame B belongs to the first type of image frame.

[0085] In some embodiments, the first camera and the second camera may be two adjacent cameras. For the second image frame, an image of a second reference area in the second image frame may be obtained. The second reference area may be determined according to a coordinate position pre-specified by a user, or may be determined according to the position of the same image content contained in the historical image frames captured by multiple cameras in each historical image frame. For example, in some embodiments, the electronic device may display an image frame to the user, and the user may specify the approximate position of the strip-shaped calibration object in the shooting environment in the image frame in the image frame by dragging the mouse based on experience. The electronic device may use the position area specified by the user as the coordinate position of the reference area. Exemplarily, in a coal mine underground scene, each image frame captured by a camera includes a coal machine track, so the user may specify the coordinate position of the second reference area according to the position of the coal machine track in the historical image frame captured by the camera. In other embodiments, the electronic device may obtain historical image frames captured by multiple cameras, determine the images of the strip-shaped calibration objects contained in the multiple historical image frames, and use the overlapping parts of the areas covered by the images of the strip-shaped calibration objects in each historical image frame as the reference area. The strip-shaped calibration object may be a coal machine track. In the underground coal mine scene, the coal machine tracks in the mine are the common image content in the images captured by the camera. Moreover, during the movement of the coal cutter, the coal machine tracks will maintain continuity in connection and will not be separated in space. The coal machine tracks in corresponding positions in two adjacent images maintain a high degree of similarity, which can reflect the continuity of the coal machine tracks in the actual physical space. Therefore, there is no limitation in using the image area of ​​the coal machine tracks as a reference area.

[0086] After acquiring the image of the reference area, the image area with the highest image similarity to the second reference area can be searched in the first image frame, and the searched image area is used as the first reference area. The first reference area can be understood as a similar area corresponding to the second reference area. According to the relative positional relationship between the first reference area and the second reference area, the relative deviation of the extrinsic parameters of the second camera and the extrinsic parameters of the first camera is determined, and the extrinsic parameters of the second camera are determined according to the extrinsic parameters of the first camera and the relative deviation of the extrinsic parameters of the second camera and the extrinsic parameters of the first camera.

[0087] For example, assume that the first image frame is image frame B and the second image frame is image frame A. Image frame B and image frame A are two image frames captured by adjacent cameras. An image of reference area A1 in image frame A is acquired, such as Fig. 9 As shown, the reference area A1 may be an area located in the lower 1 / 8 of the image frame A, and the image of the area is an image of the coal mining machine track. A similar area corresponding to the reference area A1 may be searched in the image frame B. For example, Fig.10As shown, the image region with the highest image similarity to the reference area A1 can be found in the image frame B by means of a sliding window. The size of the window can be adjusted continuously from small to large so that the window slides in the image frame B in a set step size from top to bottom. In other embodiments, the window can also slide in a left-to-right order. After each slide, the image of the area circled by the window is compared with the image of the reference area A1 to determine the image similarity between each area of ​​the image frame B and the reference area A1. The image frame B to be matched is traversed from left to right and from top to bottom, and the pixel matching degree between the window area and the reference area A1 is used to determine the similarity between the window area and the reference area A1. The greater the matching degree, the higher the similarity. The area with the highest image similarity is used as the similar area B1 corresponding to the reference area A1.

[0088] The position of the reference region A1 in the image frame A and the position of the similar region B1 in the image frame B are respectively determined. According to the position of the reference region A1 in the image frame A and the position of the similar region B1 in the image frame B, the relative position relationship between the reference region A1 and the similar region B1 is determined.

[0089] In some embodiments, after determining the relative positional relationship between the first reference area and the second reference area, the relative relationship between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera can be determined based on the relative positional relationship between the first reference area of ​​the first image frame and the second reference area in the second image frame, and the extrinsic parameters of the second camera can be determined based on the extrinsic parameters of the first camera and the relative relationship between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera. The relative relationship of the extrinsic parameters can also be understood as the relative deviation of the extrinsic parameters.

[0090] Since the camera's extrinsic rotation amount R does not need to be updated in real time, only the extrinsic translation amount T in the camera extrinsic parameters can be determined. In one embodiment, the relative deviation between the extrinsic parameters of the first camera and the extrinsic parameters of the second camera may include the y-axis relative deviation and the z-axis relative deviation in the extrinsic parameter translation amount T. The relative position relationship between the first reference area of ​​the first image frame and the second reference area in the second image frame may include the y-axis relative position relationship and the relative area ratio. When determining the relative deviation between the extrinsic parameters of the first camera and the second camera according to the relative position relationship between the first reference area of ​​the first image frame and the second reference area in the second image frame, the y-axis relative deviation of the second camera and the first camera can be determined according to the y-axis relative position relationship between the first reference area and the second reference area; the z-axis relative deviation of the second camera and the first camera is determined according to the relative area ratio of the first reference area to the second reference area, and the correspondence between the pre-stored area ratio and the relative deviation.

[0091] According to the external parameters of the first camera, and the relative deviation between the external parameters of the first camera and the external parameters of the second camera, the external parameters of the second camera can be determined. Among them, the external parameters of the first camera can include the external parameter translation of the first camera, and the external parameters of the second camera can include the external parameter translation of the second camera. For example, assuming that the external parameter translation of the first camera includes the coordinate value y0 of the y-axis, the coordinate value z0 of the z-axis, the relative deviation of the y-axis between the second camera and the first camera is y1, and the relative deviation of the z-axis between the second camera and the first camera is z1, it can be determined that the external parameter translation of the second camera includes the coordinate value y2=y0+y1 of the y-axis, and the coordinate value z2=z0+z1 of the z-axis. The change of the translation of the x-axis in the external parameter translation of the second camera will not cause the staggered problem of image stitching. Therefore, when adjusting the external parameters, the change of the coordinate value of the x-axis can be ignored, that is, after the camera moves, the external parameters of the second camera include the coordinate value x2=x' of the x-axis, the coordinate value y2=y0+y1 of the y-axis, and the coordinate value z2=z0+z1 of the z-axis. Wherein, is the x-axis coordinate value of the second camera before the x' camera moves.

[0092] In some other embodiments, the first camera and the second camera may also be two non-adjacent cameras. When the first camera and the second camera are not adjacent, assuming that a third camera is installed between the first camera and the second camera, and the third camera belongs to the second type of camera, the external parameters of the third camera that captures the third image frame can be determined based on the relative position relationship between the first reference area of ​​the first image frame and the third reference area in the third image frame, as well as the external parameters of the first camera, and then the external parameters of the second camera can be determined based on the relative position relationship between the second reference area of ​​the second image frame and the third reference area in the third image frame, as well as the external parameters of the third camera. The third reference area is used to describe a portion of the strip calibration object.

[0093] Among them, the specific process of determining the external parameters of the third camera for acquiring the third image frame according to the relative position relationship between the first reference area of ​​the first image frame and the third reference area in the third image frame, and the external parameters of the first camera, and the specific process of determining the external parameters of the second camera according to the relative position relationship between the second reference area of ​​the second image frame and the third reference area in the third image frame, and the external parameters of the third camera, can be performed with reference to the process of determining the external parameters of the second camera according to the relative position relationship between the first reference area of ​​the first image frame and the second reference area in the second image frame, and the external parameters of the first camera introduced above, and will not be repeated here.

[0094] Through the above process, the real-time correction and update of the camera extrinsic parameters corresponding to the image frames without the calibration plate can be achieved.

[0095] The execution order of the above steps S602 and S603 may not be specific, such as Figure 7As shown, multiple image frames can be processed in parallel, or the camera extrinsic parameters corresponding to each image frame can be determined one by one according to the arrangement order of the cameras.

[0096] S604, based on the external parameters of the multiple cameras, image stitching is performed on the images captured by the multiple cameras.

[0097] After the extrinsic parameters of each camera are determined through step S602 and step S603, images captured by multiple cameras may be stitched based on the extrinsic parameters of the multiple cameras to obtain a stitched wide-viewing angle image.

[0098] In some embodiments, the extrinsic rotation amounts of multiple cameras may be acquired, and based on the extrinsic translation amounts and extrinsic rotation amounts of the multiple cameras, image stitching may be performed on images captured by the multiple cameras.

[0099] Exemplarily, the images captured by each camera can be projected to the world coordinate system corresponding to the coal cutter, and then the scale-invariant feature conversion features can be used to match and splice each projected image according to the external parameters of each camera to obtain a panoramic image. For example, the scale-invariant feature conversion features of each projected image can be detected separately to obtain a feature point set of each projected image, and the nearest neighbor algorithm can be used to match each pair of adjacent images according to the camera external parameters of each camera to obtain matching point pairs, and the nonlinear least squares method can be used to operate on the obtained matching point pairs to obtain pairwise aligned images; the histogram equalization method can be used to splice the pairwise aligned images to obtain a panoramic image.

[0100] For example, taking adjacent image frames A and B as examples, after image stitching based on the external parameters of camera A that captures image frame A and the external parameters of camera B that captures image frame B, we can obtain Fig.11 The image shown has no layering phenomenon.

[0101] The embodiment of the present application uses the same image content in the images captured by multiple cameras as the reference area for template matching, which can be applied to the scene where the camera and the photographed object move relative to each other. In the embodiment of the present application, for the image frame containing the calibration plate, the camera's posture can be estimated based on the two-dimensional position information of the calibration plate in the image frame and the pre-saved three-dimensional position information of the calibration plate; for the image frame not containing the calibration plate, the reference area between two adjacent images can be used for template matching, and the external parameters of the camera corresponding to the image frame containing the calibration plate can be combined to estimate the posture of the camera corresponding to the image frame not containing the calibration plate.

[0102] Through the above method, no matter whether the camera captures the calibration plate or not, the camera pose estimation can be performed after the camera moves, and the camera extrinsic parameters of each camera can be updated in real time. Compared with the traditional image stitching method which is mainly used for camera calibration of static scenes and is not suitable for mine scenes where targets and cameras frequently move, the embodiment of the present application can realize the robust stitching of images without calibration plates, avoiding the situation that when there is no calibration plate in the image, the camera extrinsic calibration cannot be completed, and only the historical value of the camera extrinsic parameter with a large error with the current situation can be used, resulting in the phenomenon of misalignment when the image is stitched, which helps to determine the correct stitching position in real time during the image stitching process and improve the image stitching effect; and it can adapt to the image stitching needs of coal mines. In the coal mine scenes, the large parallax problem determines that it is not possible to stitch only at the two-dimensional image level, and the camera pose estimation must be calculated. The embodiment of the present application updates the camera extrinsic parameters in three-dimensional space, thereby performing image stitching in large parallax scenes and realizing stable and robust image stitching.

[0103] Based on the same technical concept as the above embodiment, the present application also provides an image stitching device, which can be applied to Figure 3 In the electronic device 200 shown in FIG. 1 , the image stitching device can be used to implement Figure 6 The functions of the method embodiment shown can therefore achieve the beneficial effects of the above method embodiment.

[0104] In some embodiments, the structure of the image stitching device 1200 can be as follows: Fig.12 As shown, the image acquisition unit 1201, the external parameter determination unit 1202 and the image stitching unit 1203 may be included. When the image stitching device 1200 is used to implement Figure 6The functions of the method embodiment shown are: the image acquisition unit 1201 can be used to execute S601, the external parameter determination unit 1202 can be used to execute S602 and S603, and the image stitching unit 1203 can be used to execute S604. For example: the image acquisition unit 1201 is used to acquire multiple image frames captured by multiple cameras; the multiple cameras are deployed in the target scene, the multiple image frames are obtained by the multiple cameras synchronously capturing the target scene, the calibration plate and the strip calibration object are deployed in the target scene, the multiple cameras include the first type of camera and the second type of camera, and the field of view of each of the multiple cameras includes a part of the strip calibration object; the field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate. The external parameter determination unit 1202 is used to determine the external parameters of the first camera that captures the first image frame according to the position of the calibration plate in the first image frame, and determine the external parameters of the second camera that captures the second image frame according to the relative position relationship between the first reference area in the first image frame and the second reference area in the second image frame, as well as the external parameters of the first camera; the first camera belongs to the first category of cameras; the first reference area and the second reference area are respectively used to describe a part of the strip-shaped calibration object; the second camera belongs to the second category of cameras. The image stitching unit 1203 is used to stitch images based on the external parameters of multiple cameras. Among them, the image acquisition unit 1201, the external parameter determination unit 1202 and the image stitching unit 1203 can all be implemented by software, or can be implemented by hardware.

[0105] Based on the same technical concept as the above embodiment, an electronic device is also provided in the embodiment of the present application. The electronic device can be Figure 3 The electronic device 200 shown in FIG. The electronic device 200 can be used to implement Figure 6 The functions of the method embodiment shown can therefore achieve the beneficial effects of the above method embodiment.

[0106] In some embodiments, the structure of the electronic device 200 can be as follows: Fig.13 As shown, it includes a processor 201 and a memory 202 connected to the processor 201. The processor 201 and the memory 202 can be interconnected via a bus, and the processor 201 can serve as the main processor of the electronic device 200, that is, the control core of the electronic device 200. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The specific connection medium between the processor 201 and the memory 202 is not limited in the embodiments of the present application.

[0107] The memory 202 may include the above-mentioned memory, and the memory 202 may be a volatile memory, such as a random access memory; the memory may also be a non-volatile memory, such as a read-only memory ROM, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 202 is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 202 may be a combination of the above-mentioned memories. The memory 202 may be used to store software programs and modules.

[0108] The processor 201 may include one or more processors. The processor 201 executes various functional applications and data processing of the electronic device 200 by running software programs and modules stored in the memory 202, such as the image stitching method provided in the embodiment of the present application.

[0109] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0110] The method steps in the embodiments of the present application can be implemented by hardware, or by a processor executing a computer program or instruction. The computer program or instruction can constitute a computer program product. The embodiments of the present application also provide a computer program product, which includes computer executable instructions. In one embodiment, the computer executable instructions are used to enable a computer to execute Figure 6 or Figure 7 Functionality in the method embodiment shown.

[0111] The computer executable instructions may be stored in a computer readable storage medium. The present application also provides a computer readable storage medium, wherein the computer readable storage medium stores the executable instructions. In one embodiment, the computer executable instructions are used to enable the computer to execute Figure 6 or Figure 7 Functionality in the method embodiment shown.

[0112] The computer-readable storage medium provided in the embodiments of the present application may be a random access memory (RAM), a flash memory, a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of computer-readable storage medium known in the art.

[0113] Computer executable instructions may be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium. For example, the computer program or instructions may be transferred from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disc (DVD); it may also be a semiconductor medium, such as a solid state drive.

[0114] In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. In addition, the terms "including" and "having" and any variation thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. Methods, systems, products or devices are not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0115] Although the present application has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, the present specification and the accompanying drawings are merely exemplary illustrations of the schemes defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application.

[0116] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An image stitching method, characterized in that: The method comprises: Acquire multiple image frames captured by multiple cameras; the multiple cameras are deployed in a target scene, the multiple image frames are obtained by the multiple cameras synchronously capturing the target scene, a calibration plate and a strip-shaped calibration object are deployed in the target scene, the multiple cameras include a first type of camera and a second type of camera, and the field of view of each of the multiple cameras includes a portion of the strip-shaped calibration object; the field of view of the first type of camera includes the calibration plate, and the field of view of the second type of camera does not include the calibration plate; Determining, according to the position of the calibration plate in the first image frame, an external parameter of a first camera that acquires the first image frame, wherein the first camera belongs to the first category of cameras; Determine the external parameters of the second camera that acquires the second image frame according to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the external parameters of the first camera; the first reference area and the second reference area are respectively used to describe a part of the strip-shaped calibration object; the second camera belongs to the second type of camera; Image stitching is performed based on the external parameters of the multiple cameras.

2. The method according to claim 1, characterized in that The shape of the strip-shaped calibration object satisfies the periodic variation rule.

3. The method according to claim 1 or 2, characterized in that: The target scene is an underground coal mine scene, and the strip-shaped calibration object is a coal mining machine track.

4. The method according to any one of claims 1 to 3, characterized in that: The first reference region is an image region in the first image frame having the highest similarity to the second reference region.

5. The method according to any one of claims 1 to 4, characterized in that: The step of determining the external parameters of a second camera for acquiring the second image frame according to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the external parameters of the first camera, comprises: Determine a relative deviation between an extrinsic parameter of the first camera and an extrinsic parameter of the second camera according to a relative positional relationship between a first reference area in the first image frame and a second reference area in the second image frame; The extrinsic parameter of the second camera is determined according to the extrinsic parameter of the first camera and a relative deviation between the extrinsic parameter of the first camera and the extrinsic parameter of the second camera.

6. The method according to claim 5, characterized in that The relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame includes a relative area ratio; the relative deviation of the extrinsic parameter includes a z-axis relative deviation; and determining the relative deviation between the extrinsic parameter of the first camera and the extrinsic parameter of the second camera according to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame includes: The z-axis relative deviation between the first camera and the second camera is determined according to a relative area ratio between a first reference area in the first image frame and a second reference area in the second image frame, and a pre-stored correspondence between the area ratio and the relative deviation.

7. The method according to claim 6, characterized in that The determining the extrinsic parameter of the second camera according to the extrinsic parameter of the first camera and the relative deviation between the extrinsic parameter of the first camera and the extrinsic parameter of the second camera includes: The z-axis translation amount in the extrinsic parameters of the second camera is determined according to the z-axis translation amount in the extrinsic parameters of the first camera and the z-axis relative deviation between the first camera and the second camera.

8. The method according to any one of claims 1 to 4, characterized in that: The step of determining the external parameters of a second camera for acquiring the second image frame according to the relative positional relationship between the first reference area in the first image frame and the second reference area in the second image frame, and the external parameters of the first camera, comprises: Determine the external parameters of a third camera that captures the third image frame according to the relative positional relationship between the first reference area of ​​the first image frame and the third reference area in the third image frame, and the external parameters of the first camera; the third camera belongs to the second type of camera, and the third reference area is used to describe a portion of the strip-shaped calibration object; The extrinsic parameters of the second camera are determined according to the relative positional relationship between the second reference area of ​​the second image frame and the third reference area in the third image frame, and the extrinsic parameters of the third camera.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory; the processor is used to read and execute the computer program stored in the memory, so that the method according to any one of claims 1 to 8 is executed.

10. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to make a computer execute the method according to any one of claims 1 to 8.

11. A computer program product, characterized in that The method comprises computer executable instructions, wherein the computer executable instructions are used to make a computer execute the method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Calibration method, calibration device, computer program product, equipment and storage medium

    CN119338924A