Image acquisition equipment, method and device in underground engineering scene and medium
By using a cylindrical main structure and multiple wide-angle direct-shooting lenses for image collection in tunnel engineering scenes, the problem of traditional fisheye lenses being difficult to capture panoramic images of large-diameter tunnels is solved, and high-quality and efficient image acquisition is achieved.
Patent Information
- Application Number
- CN202410922691.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-22
AI Technical Summary
Traditional fisheye lenses are difficult to achieve complete and clear capture of panoramic images when dealing with large-diameter tunnels, and will cause large image distortion.
It adopts a cylindrical main structure and multiple wide-angle direct-shooting lenses. The wide-angle direct-shooting lenses are evenly arranged on the side walls of the cylindrical main structure. The edge distortion of each lens is reduced by adding wide-angle direct-shooting lenses, and image splicing technology is used to combine them. Images from different angles are converted into the same coordinate space to achieve comprehensive photography of the wall of a large-diameter circular tunnel.
It improves the image quality, ensures the integrity and clarity of information, reduces image distortion, and achieves efficient acquisition of panoramic images of tunnel rocks.
Smart Images

Figure CN118828152A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geological survey technology, and in particular to an image acquisition device in an underground engineering scene, an image acquisition method in an underground engineering scene, an image acquisition apparatus in an underground engineering scene, an electronic device and a computer-readable medium. Background Art
[0002] In the fields of tunnel engineering and geological survey, obtaining panoramic images of tunnel rocks is of great value for engineering analysis and geological assessment. However, due to the uniqueness of the tunnel environment, the traditional fisheye lens photography method often has difficulty in capturing complete and clear panoramic images when dealing with large-diameter tunnels (diameter exceeding 1 meter). Moreover, the fisheye lens is usually installed in the center of the shooting equipment, while the target rock is located in the annular area around the lens. This layout will cause large image distortion during shooting. Summary of the invention
[0003] Embodiments of the present invention provide image acquisition equipment, methods, devices and media for underground engineering scenarios to solve the problem that traditional fisheye lens photography methods are often difficult to achieve complete and clear capture of panoramic images when dealing with large-diameter tunnels, and will cause large image distortion.
[0004] An embodiment of the present invention discloses an image acquisition device for an underground engineering scenario, comprising: a cylindrical main structure and at least one wide-angle straight-shot lens, wherein the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure.
[0005] Optionally, a glass cover, a heat dissipation and demisting air duct and a fill light are installed on the cylindrical main structure;
[0006] The glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens;
[0007] One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the heat dissipation and demisting air duct is used to remove the mist and / or dust on the glass cover by blowing air toward the glass cover;
[0008] The fill-in lights are evenly arranged on the side walls of the cylindrical main structure, and the fill-in lights are located on any plane parallel to the upper surface of the cylindrical main structure.
[0009] Optionally, a control device is arranged on the cylindrical main structure; the control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and adjust the blowing intensity of the heat dissipation and demisting air duct according to the fogging state and / or cleaning state of the glass cover.
[0010] The embodiment of the present invention further discloses an image acquisition method in an underground engineering scene, which is applied to an image acquisition device in an underground engineering scene, wherein the image acquisition device comprises a cylindrical main structure and at least one wide-angle straight-shot lens, wherein the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and the method comprises:
[0011] Acquire the image captured by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images captured by the wide-angle straight-shot lens;
[0012] Extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;
[0013] Based on the image information around the feature points, the feature points are paired to obtain at least one target feature point pair that matches each other;
[0014] Using the target feature point pairs, transforming the image into the same coordinate space;
[0015] The images located in the same coordinate space are spliced to obtain a target image.
[0016] Optionally, the step of extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point includes:
[0017] Extracting feature points in the overlapping area using a scale-invariant feature transformation algorithm;
[0018] Calculate the gradient direction and gradient magnitude of the pixel points around the feature point;
[0019] Based on the gradient direction and the gradient magnitude, a descriptor of the feature point is obtained.
[0020] Optionally, the step of converting the image into the same coordinate space by using the target feature point pair includes:
[0021] Utilizing the target feature point pairs, calculating the homography matrix between any two adjacent images captured by the wide-angle straight-shot lens;
[0022] Based on the homography matrix, the images are transformed into the same coordinate space.
[0023] Optionally, the step of converting the image into the same coordinate space based on the homography matrix includes:
[0024] For any group of two adjacent images taken by the wide-angle straight-shot lens, the two adjacent images taken by the wide-angle straight-shot lens are used as the first image and the second image respectively;
[0025] Taking the coordinate space where the first image is located as the first coordinate space, and taking the pixel point in the first image as the first pixel point;
[0026] Using the coordinate space where the second image is located as the second coordinate space;
[0027] Obtaining coordinate information of the first pixel point in the first coordinate space;
[0028] Based on the coordinate information of the first pixel point in the first coordinate space, using the homography matrix, determining the coordinate information of the first pixel point in the second coordinate space;
[0029] Based on the coordinate information of the first pixel point in the second coordinate space, the first image is converted from the first coordinate space to the second coordinate space.
[0030] Optionally, the step of stitching the images in the same coordinate space to obtain a target image includes:
[0031] Improving the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image;
[0032] For any first pixel point located in a non-overlapping area between the first image and the second image, the first pixel point is copied on a plane where the second image is located.
[0033] Optionally, the step of stitching the images in the same coordinate space to obtain a target image includes:
[0034] For any first pixel point located in the overlapping area of the first image and the second image, determining, based on the homography matrix, a target coordinate of the first pixel point on the plane where the second image is located;
[0035] Move the first pixel point to the target coordinates.
[0036] Optionally, there is a second pixel point of the second image at the target coordinates; and after the step of splicing the images located in the same coordinate space to obtain the target image, the step includes:
[0037] By fusing the first pixel point and the second pixel point, the clarity and consistency of the target image are improved.
[0038] Optionally, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shooting lens; the glass cover is used to protect the wide-angle straight-shooting lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the step of acquiring the image taken by the at least one wide-angle straight-shooting lens includes:
[0039] Using the heat dissipation and demisting air duct to blow air toward the glass cover to remove fog and / or dust on the glass cover;
[0040] The fill light is used to provide fill light for shooting with the wide-angle straight-shot lens.
[0041] Optionally, a control device is arranged on the cylindrical main structure; the step of using the heat dissipation and demisting air duct to blow air to the glass cover to remove the mist and / or dust on the glass cover includes:
[0042] According to the fogging state and / or cleaning state of the glass cover, the control device is used to adjust the blowing intensity of the heat dissipation and demisting air duct;
[0043] The step of using the fill light to fill in the light for shooting with the wide-angle straight-shot lens comprises:
[0044] The control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens.
[0045] The embodiment of the present invention further discloses an image acquisition device for underground engineering scenes, which is applied to image acquisition equipment for underground engineering scenes. The image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, wherein the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure. The device includes:
[0046] An image acquisition module, used to acquire the image taken by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens;
[0047] A feature point extraction module, used to extract at least one feature point in the overlapping area and obtain a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;
[0048] A pairing module, used to pair the feature points based on image information around the feature points to obtain at least one target feature point pair that matches each other;
[0049] A space conversion module, used to convert the image into the same coordinate space using the target feature point pair;
[0050] The stitching module is used to stitch the images in the same coordinate space to obtain a target image.
[0051] Optionally, the feature point extraction module includes:
[0052] A feature point extraction submodule, used for extracting feature points in the overlapping area by using a scale-invariant feature transformation algorithm;
[0053] A calculation submodule, used to calculate the gradient direction and gradient magnitude of the pixel points around the feature point;
[0054] The descriptor acquisition submodule is used to acquire the descriptor of the feature point based on the gradient direction and the gradient magnitude.
[0055] Optionally, the space conversion module includes:
[0056] A matrix calculation submodule, used to calculate the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens using the target feature point pairs;
[0057] The conversion submodule is used to convert the image into the same coordinate space based on the homography matrix.
[0058] Optionally, the conversion submodule includes:
[0059] A first unit is used for taking any group of two adjacent images taken by the wide-angle straight-shot lens as a first image and a second image respectively;
[0060] A second as unit, configured to use the coordinate space where the first image is located as a first coordinate space, and use a pixel point in the first image as a first pixel point;
[0061] A third unit is used to use the coordinate space where the second image is located as a second coordinate space;
[0062] A coordinate information acquisition unit, used to acquire the coordinate information of the first pixel point in the first coordinate space;
[0063] a coordinate information determining unit, configured to determine the coordinate information of the first pixel point in the second coordinate space by using the homography matrix based on the coordinate information of the first pixel point in the first coordinate space;
[0064] A conversion unit is used to convert the first image from the first coordinate space to the second coordinate space based on the coordinate information of the first pixel point in the second coordinate space.
[0065] Optionally, the splicing module includes:
[0066] an adjustment submodule, configured to improve the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image;
[0067] The copy submodule is used to copy the first pixel point on the plane where the second image is located for any first pixel point located in the non-overlapping area of the first image and the second image.
[0068] Optionally, the splicing module includes:
[0069] a target coordinate determination submodule, configured to determine, for any first pixel point located in an overlapping area of the first image and the second image, a target coordinate of the first pixel point on a plane where the second image is located based on the homography matrix;
[0070] The moving submodule is used to move the first pixel point to the target coordinate.
[0071] Optionally, there is a second pixel point of the second image at the target coordinates; and the device includes:
[0072] The fusion module is used to enhance the clarity and consistency of the target image by fusing the first pixel point with the second pixel point.
[0073] Optionally, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the image acquisition module includes:
[0074] A blowing sub-module, used for blowing air toward the glass cover by using the heat dissipation and demisting air duct to remove the mist and / or dust on the glass cover;
[0075] The fill light sub-module is used to use the fill light to provide fill light for the wide-angle straight-shot lens.
[0076] Optionally, a control device is arranged on the cylindrical main structure; the blowing sub-module comprises:
[0077] A first adjustment unit, configured to adjust the blowing intensity of the heat dissipation and demisting air duct by using the control device according to the fogging state and / or cleaning state of the glass cover;
[0078] The photon supplement submodule comprises:
[0079] The second adjustment unit is used to adjust the light intensity of the fill light using the control device according to the ambient brightness around the wide-angle straight-shot lens.
[0080] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0081] The memory is used to store computer programs;
[0082] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0083] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0084] The embodiments of the present invention include the following advantages:
[0085] In an embodiment of the present invention, the image acquisition device in the underground engineering scene includes a cylindrical main structure and at least one wide-angle straight-shot lens. The wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure, and the wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main structure. The image acquisition device includes multiple wide-angle straight-shot lenses. By adding wide-angle straight-shot lenses, the edge distortion of the image taken by each wide-angle straight-shot lens can be reduced. The wide angle of each lens is not less than 130 degrees, and they are evenly arranged circumferentially, so as to achieve a comprehensive shooting of the wall of a large-diameter circular tunnel. In addition, the wide-angle straight-shot lenses evenly arranged circumferentially face the wall of the tunnel, and all pixels of each wide-angle straight-shot lens are effective pixels, which greatly improves the image quality and ensures the integrity and clarity of the information. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 It is a schematic diagram of a fisheye lens provided by the prior art;
[0087] Figure 2 is a schematic diagram of an image acquisition device in an underground engineering scenario provided in an embodiment of the present invention;
[0088] Figure 3 is a flowchart of the steps of an image acquisition method in an underground engineering scenario provided in an embodiment of the present invention;
[0089] Figure 4 is a structural block diagram of an image acquisition device for an underground engineering scene provided in an embodiment of the present invention;
[0090] Figure 5 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0091] Figure 6 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0092] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0093] To facilitate understanding of the technical solutions and technical effects of the embodiments of the present invention, the prior art of the present invention is briefly described below.
[0094] In the fields of tunnel engineering and geological survey, obtaining panoramic images of tunnel rocks is of great value for engineering analysis and geological assessment. However, due to the uniqueness of the tunnel environment, traditional fisheye lens photography methods often have difficulty in capturing complete and clear panoramic images when dealing with large-diameter tunnels (diameter exceeding 1 meter).
[0095] Reference Figure 1 , shows a schematic diagram of a fisheye lens provided by the prior art. The fisheye lens is a special ultra-wide-angle lens that can provide a viewing angle of up to 180 degrees or even wider. However, due to its imaging characteristics, the fisheye lens cannot capture the image directly below the lens, so a blind spot of vision is formed below the lens. In addition, when using a fisheye lens to obtain a panoramic image of the tunnel rock, the resulting image often has significant distortion, especially at the edge of the image, where the object may be over-stretched and deformed. In order to obtain a complete image that is as close to the real scene as possible, the annular image captured by the fisheye lens can be intercepted, and these annular images can be spliced together using image processing technology to obtain an expanded panoramic image. This process usually involves anti-distortion algorithms such as image distortion correction, alignment and fusion.
[0096] In the process of using fisheye lenses to capture annular images for panoramic stitching, the camera's effective pixel utilization is low, resulting in less than 50% of the actual available image range. This pixel loss limits the details and clarity of the image. Moreover, the fisheye lens is usually installed in the center of the shooting device, while the target rock is located in the annular area around the lens. This layout will cause large image distortion during shooting. Even if the anti-distortion algorithm is used to try to restore the original appearance of the image, this process often cannot avoid information loss and image distortion. In addition, when the tunnel diameter is large, due to the fixed position and viewing angle limitations of the fisheye lens, it is easy to cause the captured image resolution to be too low and unable to clearly show details. Finally, since the shooting equipment adopts an integrated design of a transparent glass tube, external environmental factors such as fog, water droplets, and wear on the outer wall of the equipment may have a significant impact on the shooting effect, further reducing the quality of the image.
[0097] Reference Figure 2 , shows a schematic diagram of an image acquisition device for an underground engineering scenario provided in an embodiment of the present invention, including: a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure.
[0098] In an embodiment of the present invention, an image acquisition device for an underground engineering scene includes a cylindrical main structure, and at least one wide-angle straight-shot lens may be arranged on the cylindrical main structure. At least one wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure.
[0099] Figure 2 The reference numeral 1 in the figure represents a wide-angle straight-shot lens. It should be noted that, compared with a fisheye lens, a wide-angle straight-shot lens usually has less distortion and is closer to the natural perspective of the human eye.
[0100] In a specific example, an image acquisition device in an underground engineering scene can acquire images of tunnel walls. The image acquisition device includes a cylindrical main structure, on which three wide-angle straight-shot lenses are arranged, and the three wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure, and the three wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main structure to obtain images of different areas of the tunnel wall. The wide-angle angle of each wide-angle straight-shot lens is not less than 130 degrees, which can cover a larger range of tunnel walls.
[0101] In an embodiment of the present invention, the image acquisition device in the underground engineering scene includes a cylindrical main structure and at least one wide-angle straight-shot lens. The wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure, and the wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main structure. The image acquisition device includes multiple wide-angle straight-shot lenses. By adding wide-angle straight-shot lenses, the edge distortion of the image taken by each wide-angle straight-shot lens can be reduced. The wide angle of each lens is not less than 130 degrees, and they are evenly arranged circumferentially, so as to achieve a comprehensive shooting of the wall of a large-diameter circular tunnel. In addition, the wide-angle straight-shot lenses evenly arranged circumferentially face the wall of the tunnel, and all pixels of each wide-angle straight-shot lens are effective pixels, which greatly improves the image quality and ensures the integrity and clarity of the information.
[0102] Further, in any of the above embodiments, a glass cover, a heat dissipation and demisting air duct and a fill light are installed on the cylindrical main structure;
[0103] The glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens;
[0104] One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the heat dissipation and demisting air duct is used to remove the mist and / or dust on the glass cover by blowing air toward the glass cover;
[0105] The fill-in lights are evenly arranged on the side walls of the cylindrical main structure, and the fill-in lights are located on any plane parallel to the upper surface of the cylindrical main structure.
[0106] Figure 2 The image acquisition device for underground engineering scenes includes a cylindrical main structure and at least one wide-angle straight-shot lens. A glass cover 2, a heat dissipation and demisting air duct 3, and a fill light 4 can be installed on the cylindrical main structure. Among them, the glass cover is installed on the outside of the wide-angle straight-shot lens, and the glass cover can protect the wide-angle straight-shot lens, realize the waterproofness of the wide-angle straight-shot lens and prevent scratches. In a specific example, the glass cover can be a replaceable organic glass cover. After the glass cover is worn, it can be replaced.
[0107] The fill light is evenly arranged in a ring shape on the side wall of the cylindrical main structure, and the fill light is located on any plane parallel to the upper surface of the cylindrical main structure. The fill light can be used for lighting in a dark tunnel and for fill light in a low-light tunnel. The fill light can be an LED fill light. Since the fill light is arranged in a ring shape, the fill light can fully cover the 360-degree shooting object, thereby ensuring uniform brightness of the shooting object.
[0108] One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover. The heat dissipation and demisting air duct can blow air to the glass cover to remove the fog and / or dust on the glass cover. The fill light generates heat when filling light. If the heat dissipation and demisting air duct is working and the fill light is turned on, the heat dissipation and demisting air duct can also guide the hot air around the fill light and blow it to the glass cover.
[0109] In the embodiment of the present invention, the image acquisition device may further include an ultrasonic radar or a laser radar to detect the distance between the image acquisition device and the cave wall in all directions and the shape change of the cave wall.
[0110] In the embodiment of the present invention, the heat dissipation and defogging duct and the LED fill light are combined to solve the heat dissipation of the LED fill light and the defogging of the glass cover at one time. At the same time, the use of the replaceable organic glass cover solves the problem that the traditional integrated glass is easily scratched by the rock wall, resulting in poor image quality.
[0111] Furthermore, in any of the above embodiments, a control device is arranged on the cylindrical main structure; the control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and adjust the blowing intensity of the heat dissipation and defogger air duct according to the fogging state and / or cleaning state of the glass cover.
[0112] Figure 2 The image acquisition device for underground engineering scenes includes a cylindrical main structure and at least one wide-angle straight-shot lens. A control device 5 can be arranged on the upper surface of the cylindrical main structure. The control device can be a cylindrical structure, and a control system can be integrated in the cylindrical structure.
[0113] The image acquisition device may include a sensor, which may collect data on the ambient brightness around the wide-angle straight-shot lens and the fogging state and / or cleanliness state of the glass cover, and send the data on the ambient brightness around the wide-angle straight-shot lens and the fogging state and / or cleanliness state of the glass cover to the control device. The control device may adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and may also adjust the blowing intensity of the heat dissipation and defogging air duct according to the fogging state and / or cleanliness state of the glass cover.
[0114] In addition, the control device can also be connected to the communication device of the image acquisition device. The control device can receive a light intensity adjustment instruction or a wind intensity adjustment instruction sent by a staff member through another communication device through the communication device. The control device can adjust the light intensity of the fill light according to the light intensity adjustment instruction, and can also adjust the wind intensity of the heat dissipation and demisting air duct according to the wind intensity adjustment instruction.
[0115] In an embodiment of the present invention, the control device may further include a photosensor. The photosensor may obtain light intensity data of the environment surrounding the wide-angle straight-shot lens and send the light intensity data to the control device, and the control device may automatically adjust the light intensity of the fill light according to the light intensity data through a preset algorithm.
[0116] Reference Figure 3 , shows a flowchart of the steps of an image acquisition method in an underground engineering scene provided in an embodiment of the present invention, which is applied to an image acquisition device in an underground engineering scene, the image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and specifically may include the following steps:
[0117] Step 301, obtaining an image taken by at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens;
[0118] In an embodiment of the present invention, the image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, and the wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main structure in a circumferential direction. The image acquisition device may also include a control device, and the control device can obtain an image taken by at least one wide-angle straight-shot lens. Different wide-angle straight-shot lenses are located in different positions and have different shooting angles, so the coordinate spaces of the images taken by different wide-angle straight-shot lenses are different. There is an overlapping area between the images taken by any two adjacent wide-angle straight-shot lenses.
[0119] In a specific example, the image acquisition device includes three wide-angle straight-shot lenses, which are evenly arranged in a circumferential direction, and the wide angle of each lens is 130 degrees. The image acquisition device is used to photograph the wall of a circular tunnel to obtain three images of different areas. Each image contains a portion of the tunnel wall, and there is an overlapping area between the images taken by adjacent wide-angle straight-shot lenses. The image taken by each wide-angle straight-shot lens overlaps the image taken by the two adjacent wide-angle straight-shot lenses by 5 degrees.
[0120] Step 302, extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;
[0121] In an embodiment of the present invention, there is an overlapping area between images taken by adjacent wide-angle straight-shot lenses, and the control device can extract at least one feature point in the overlapping area and obtain a descriptor of the feature point. It should be noted that the feature points are pixels with visual features in the overlapping area, which can be identified and extracted in the image. The feature points of the overlapping area refer to specific points that exist in both images and can be aligned when stitched. These points are usually points with obvious visual features in the image, such as corner points, edge points, etc. The descriptor of the feature point includes image information around the feature point.
[0122] Step 303, pairing the feature points based on the image information around the feature points to obtain at least one target feature point pair that matches each other;
[0123] In an embodiment of the present invention, for feature points in any group of two adjacent images taken by wide-angle straight-shot lenses, the control device can determine whether a feature point located in the overlapping area of one of the images and a feature point located in the overlapping area of the other image are the same feature point based on the descriptor of the feature point, and pair the feature points that are the same feature point to obtain at least one target feature point pair. Specifically, if a feature point located in the overlapping area of one of the images and a feature point located in the overlapping area of the other image are the same feature point, the two feature points match each other, and the two feature points are paired to obtain a target feature point pair. It should be noted that the control device can use SIFT (Scale-Invariant Feature Transform) feature detector and BFMatcher (Brute-Force Matcher) to pair feature points.
[0124] Step 304, using the target feature point pair, transforming the image into the same coordinate space;
[0125] In an embodiment of the present invention, since the images taken by different wide-angle straight-shooting lenses are located in different coordinate spaces, in order to stitch the images taken by different wide-angle straight-shooting lenses, the control device needs to convert the images taken by different wide-angle straight-shooting lenses into the same coordinate space. Specifically, since there are overlapping areas between the images taken by adjacent wide-angle straight-shooting lenses, the target feature point pairs in the overlapping areas can be used to convert the images taken by different wide-angle straight-shooting lenses into the same coordinate space. Converting the images taken by different wide-angle straight-shooting lenses into the same coordinate space is to align the images taken by different wide-angle straight-shooting lenses.
[0126] Step 305: stitching the images in the same coordinate space to obtain a target image.
[0127] In an embodiment of the present invention, the control device can use image processing software or a programming library to stitch images located in the same coordinate space to obtain a target image. The target image refers to a panoramic image or annular image of the tunnel. Specifically, Python and OpenCV libraries can be used to align and stitch images. Both Python and OpenCV libraries can be used for image processing. Python, as a programming language, provides an environment for writing and executing image processing codes, while OpenCV, as an image processing library, provides tools for implementing various image processing algorithms.
[0128] In an embodiment of the present invention, an image acquisition device includes a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and at least one image taken by the wide-angle straight-shot lens is obtained, and the coordinate spaces of different images are different, and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens. At least one feature point in the overlapping area is extracted, and a descriptor of the feature point is obtained, the feature point is a pixel point with visual features in the overlapping area, and the descriptor of the feature point includes the image information around the feature point. Based on the image information around the feature point, the feature points are paired to obtain at least one target feature point pair that matches each other, and the target feature point pair is used to convert the image into the same coordinate space, and the images located in the same coordinate space are spliced to obtain the target image. The present invention realizes efficient and accurate acquisition of panoramic images of tunnel rocks by adopting a shooting method in which at least one wide-angle straight-shot lens is evenly arranged in an annular direction, combined with image splicing technology, thereby improving the work efficiency of tunnel engineering and geological survey. In addition, there is an overlapping area in the images taken by at least one wide-angle straight-shot lens, which ensures that the images are accurately positioned and have a small degree of distortion during the stitching process.
[0129] Further, in any of the above embodiments, step 302 includes:
[0130] Sub-step S11, extracting feature points in the overlapping area using a scale-invariant feature transformation algorithm;
[0131] Sub-step S12, calculating the gradient direction and gradient magnitude of the pixel points around the feature point;
[0132] Sub-step S13, obtaining a descriptor of the feature point based on the gradient direction and the gradient magnitude.
[0133] In an embodiment of the present invention, the control device can use image processing technologies such as SIFT (Scale-Invariant Feature Transform), SURF (Speeded Up Robust Features) or ORB (Oriented FAST and Rotated BRIEF) to extract feature points of the overlapping area of each image, obtain descriptors of the feature points, and pair the feature points using the descriptors of the feature points.
[0134] Regarding obtaining the descriptor of the feature point, the control device can first select a local area containing the feature point, which is usually a small square or rectangle and is large enough to contain the detailed information around the feature point. For each pixel around the feature point, calculate its gradient in the horizontal and vertical directions. The gradient is a vector containing two components: the gradient magnitude and the gradient direction. The gradient magnitude indicates the magnitude of the change around the pixel, while the gradient direction indicates the main direction of the change. The pixels around the feature point are classified according to their gradient directions, and the number of pixels in each direction is counted to construct a gradient direction histogram. This usually involves quantizing the gradient direction into a finite number of bins, each bin representing a direction. The statistical information in the gradient direction histogram is converted into a vector, which is the descriptor of the feature point. In order to improve the robustness of the descriptor, the descriptor can be normalized, that is, each dimension of the descriptor is divided by its length to eliminate the influence of image size and lighting conditions.
[0135] In the process of constructing the gradient direction histogram, the gradient magnitude is used to weight the influence of each pixel on the histogram. The gradient magnitude indicates the intensity of the change around the pixel. A larger gradient value means that the pixel should have a greater influence in the construction of the histogram.
[0136] Further, in any of the above embodiments, step 304 includes:
[0137] Sub-step S21, using the target feature point pair, calculating the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens;
[0138] Sub-step S22: transforming the image into the same coordinate space based on the homography matrix.
[0139] In an embodiment of the present invention, the control device can use the target feature point pairs to calculate the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens, and based on the homography matrix, convert the images taken by different wide-angle straight-shot lenses into the same coordinate space.
[0140] Regarding the calculation of the homography matrix, at least four target feature point pairs can be selected. For each target feature point pair, an equation can be established, which contains the pixel coordinates of the two feature points and their corresponding mapping relationship. These equations can be used to construct a linear equation system, which contains a 3x3 homography matrix. Solving this system of equations can obtain the homography matrix. The random sampling consensus algorithm (RANSAC) can also be used to improve the accuracy of the homography matrix and eliminate the influence of mismatched point pairs. During the calculation of the homography matrix, the number of target feature point pairs and the parameters of RANSAC can be adjusted according to actual conditions.
[0141] The homography matrix describes the mapping relationship between images in two different coordinate spaces. The homography matrix is a 3x3 matrix that can map a point (x, y) on one image to a point (x′, y′) on another image through transformation. The mathematical expression is:
[0142]
[0143] Where H is the homography matrix.
[0144] Further, in any of the above embodiments, sub-step S22 includes:
[0145] Sub-step S31, for any group of two adjacent images taken by the wide-angle straight-shot lens, taking the two adjacent images taken by the wide-angle straight-shot lens as the first image and the second image respectively;
[0146] Sub-step S32, taking the coordinate space where the first image is located as a first coordinate space, and taking a pixel point in the first image as a first pixel point;
[0147] Sub-step S33, taking the coordinate space where the second image is located as the second coordinate space;
[0148] Sub-step S34, obtaining coordinate information of the first pixel point in the first coordinate space;
[0149] Sub-step S35, based on the coordinate information of the first pixel point in the first coordinate space, using the homography matrix, determining the coordinate information of the first pixel point in the second coordinate space;
[0150] Sub-step S36: based on the coordinate information of the first pixel point in the second coordinate space, convert the first image from the first coordinate space to the second coordinate space.
[0151] In the embodiment of the present invention, for any set of two adjacent images taken by a wide-angle straight-shot lens, the two adjacent images taken by the wide-angle straight-shot lens can be used as the first image and the second image respectively. In the process of converting the first image and the second image into the same coordinate space, the first image and the second image can be both converted to the coordinate space of the first image, or the first image and the second image can be both converted to the coordinate space of the second image.
[0152] If both the first image and the second image are converted to the coordinate space of the second image, the coordinate space where the first image is located can be used as the first coordinate space, the pixel points in the first image can be used as the first pixel points, and the coordinate space where the second image is located can be used as the second coordinate space. Then, the coordinate information of the first pixel point in the first coordinate space is obtained; since the homography matrix describes the mapping relationship between images in two different coordinate spaces, based on the coordinate information of the first pixel point in the first coordinate space, the coordinate information of the first pixel point in the second coordinate space can be determined using the homography matrix. Based on the coordinate information of the first pixel point in the second coordinate space, the first image is converted from the first coordinate space to the second coordinate space.
[0153] Further, in any of the above embodiments, step 305 includes:
[0154] Sub-step S41, improving the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image;
[0155] Sub-step S42: for any first pixel point located in a non-overlapping area between the first image and the second image, copy the first pixel point onto the plane where the second image is located.
[0156] In the embodiment of the present invention, in the process of splicing the first image and the second image located in the same coordinate space to obtain the target image, the clarity of the first image and the second image can be improved by adjusting the brightness difference between any two adjacent pixels in the first image and the second image. For any first pixel located in the non-overlapping area of the first image and the second image, the control device copies the first pixel to the plane where the second image is located.
[0157] Further, in any of the above embodiments, step 305 includes:
[0158] Sub-step S51, for any first pixel point located in the overlapping area of the first image and the second image, determining the target coordinates of the first pixel point on the plane where the second image is located based on the homography matrix;
[0159] Sub-step S52: moving the first pixel point to the target coordinates.
[0160] In an embodiment of the present invention, in the process of splicing a first image and a second image located in the same coordinate space to obtain a target image, for any first pixel point located in the overlapping area of the first image and the second image, since the homography matrix describes the mapping relationship between the first image and the second image located in the same coordinate space, based on the homography matrix, the target coordinates of the first pixel point in the first image on the plane where the second image is located can be determined, and the first pixel point can be moved to the target coordinates. It should be noted that the overlapping area is usually a similar part of the two images, and they will overlap in the spliced target image.
[0161] Further, in any of the above embodiments, there is a second pixel point of the second image at the target coordinates; after step 305, the method includes:
[0162] Sub-step S61, improving the clarity and consistency of the target image by fusing the first pixel point and the second pixel point.
[0163] In an embodiment of the present invention, after moving a first pixel point in a first image to a target coordinate on a plane where a second image is located, the clarity and consistency of the target image are improved by fusing the first pixel point with a second pixel point of the second image at the target coordinate.
[0164] In the embodiment of the present invention, a multi-band blending method can be used to smoothly transition the overlapping area. The following is the code to implement multi-band blending:
[0165] import cv2#Import OpenCV library (cv2)
[0166] import numpy as np#Import NumPy library
[0167] #Assume that you already have aligned images aligned_img1 and img2
[0168] # Find the start and end points of the overlapping area
[0169] start_point = img1.shape[1] # Starting point of the overlapping area
[0170] end_point = start_point + img2.shape[1] / / 2#The end point of the overlapping area. Here, it is assumed that the overlapping area is half the width of img2.
[0171] #Create a mask to apply fusion on overlapping areas
[0172] mask=np.zeros_like(aligned_img1)
[0173] mask[0:img2.shape[0],start_point:end_point]=1
[0174] # Apply multi-band fusion
[0175] blended_image=cv2.detailEnhance(aligned_img1,sigma_s=10,sigma_r=0.15)
[0176] blended_image=cv2.detailEnhance(img2,sigma_s=10,sigma_r=0.15)
[0177] blended_image=cv2.seamlessClone(blended_image,aligned_img1,mask,(img1.shape[1],0),cv2.NORMAL_CLONE)
[0178] # Display the fused image
[0179] cv2.imshow('Blended Image',blended_image)
[0180] cv2.waitKey(0)
[0181] cv2.destroyAllWindows()
[0182] Among them, the cv2.detailEnhance function is used to enhance the details of the image, and the cv2.seamlessClone function is used to achieve seamless cloning and smooth transition in the overlapping area.
[0183] It should be noted that in the process of realizing multi-band fusion, it is necessary to adjust the fusion parameters according to the specific situation of the image, or try different fusion techniques. For example, more advanced fusion algorithms such as Gradient Domain Fusion or Laplacian Pyramid Blending can be used to obtain better fusion effects. Image fusion is a complex process and may require multiple iterations and adjustments to achieve satisfactory results. In actual operation, factors such as illumination consistency and color correction may also need to be considered to further improve the quality of the stitched image.
[0184] Further, in any of the above embodiments, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; step 301 includes:
[0185] Sub-step S71, using the heat dissipation and demisting air duct to blow air toward the glass cover to remove fog and / or dust on the glass cover;
[0186] Sub-step S72, using the fill light to provide fill light for the wide-angle straight-shot lens.
[0187] In an embodiment of the present invention, a glass cover, a heat dissipation and demisting air duct, and a fill light can be installed on the cylindrical main structure of the image acquisition device. The glass cover can be installed on the outside of the wide-angle straight-shot lens to protect the wide-angle straight-shot lens. One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover. The heat dissipation and demisting air duct can blow air to the glass cover to remove the fog and / or dust on the glass cover. The fill light is evenly arranged on the side wall of the cylindrical main structure, and the fill light is located on any plane parallel to the upper surface of the cylindrical main structure.
[0188] When the image acquisition device obtains an image taken by at least one wide-angle straight-shooting lens, the heat dissipation and demisting air duct can be used to blow air to the glass cover to remove fog and / or dust on the glass cover, and the fill light can be used to fill in the light for the wide-angle straight-shooting lens.
[0189] Further, in any of the above embodiments, a control device is arranged on the cylindrical main structure; sub-step S71 includes:
[0190] Sub-step S81, adjusting the blowing intensity of the heat dissipation and demisting air duct by using the control device according to the fogging state and / or cleaning state of the glass cover;
[0191] Sub-step S72 includes:
[0192] Sub-step S91, adjusting the light intensity of the fill light using the control device according to the ambient brightness around the wide-angle straight-shot lens.
[0193] In an embodiment of the present invention, a control device is arranged on the cylindrical main structure. When the image acquisition device acquires an image taken by at least one wide-angle straight-shot lens, the control device can be used to adjust the blowing intensity of the heat dissipation and defogging air duct according to the fogging state and / or cleaning state of the glass cover, and the control device can be used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens.
[0194] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0195] Reference Figure 4 , shows a structural block diagram of an image acquisition device for underground engineering scenes provided in an embodiment of the present invention, which is applied to an image acquisition device for underground engineering scenes, the image acquisition device comprises a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, and specifically may include the following modules:
[0196] An image acquisition module 401 is used to acquire images taken by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens;
[0197] A feature point extraction module 402 is used to extract at least one feature point in the overlapping area and obtain a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;
[0198] A pairing module 403 is used to pair the feature points based on the image information around the feature points to obtain at least one target feature point pair that matches each other;
[0199] A space conversion module 404 is used to convert the image into the same coordinate space using the target feature point pair;
[0200] The stitching module 405 is used to stitch the images in the same coordinate space to obtain a target image.
[0201] In an optional embodiment of the present invention, the feature point extraction module includes:
[0202] A feature point extraction submodule, used for extracting feature points in the overlapping area by using a scale-invariant feature transformation algorithm;
[0203] A calculation submodule, used to calculate the gradient direction and gradient magnitude of the pixel points around the feature point;
[0204] The descriptor acquisition submodule is used to acquire the descriptor of the feature point based on the gradient direction and the gradient magnitude.
[0205] In an optional embodiment of the present invention, the space conversion module includes:
[0206] A matrix calculation submodule, used to calculate the homography matrix between any two adjacent images taken by the wide-angle straight-shot lens using the target feature point pairs;
[0207] The conversion submodule is used to convert the image into the same coordinate space based on the homography matrix.
[0208] In an optional embodiment of the present invention, the conversion submodule includes:
[0209] A first unit is used for taking any group of two adjacent images taken by the wide-angle straight-shot lens as a first image and a second image respectively;
[0210] A second as unit, configured to use the coordinate space where the first image is located as a first coordinate space, and use a pixel point in the first image as a first pixel point;
[0211] A third unit is used to use the coordinate space where the second image is located as a second coordinate space;
[0212] A coordinate information acquisition unit, used to acquire the coordinate information of the first pixel point in the first coordinate space;
[0213] a coordinate information determining unit, configured to determine the coordinate information of the first pixel point in the second coordinate space by using the homography matrix based on the coordinate information of the first pixel point in the first coordinate space;
[0214] A conversion unit is used to convert the first image from the first coordinate space to the second coordinate space based on the coordinate information of the first pixel point in the second coordinate space.
[0215] In an optional embodiment of the present invention, the splicing module includes:
[0216] an adjustment submodule, configured to improve the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image;
[0217] The copy submodule is used to copy the first pixel point on the plane where the second image is located for any first pixel point located in the non-overlapping area of the first image and the second image.
[0218] In an optional embodiment of the present invention, the splicing module includes:
[0219] a target coordinate determination submodule, configured to determine, for any first pixel point located in an overlapping area of the first image and the second image, a target coordinate of the first pixel point on a plane where the second image is located based on the homography matrix;
[0220] The moving submodule is used to move the first pixel point to the target coordinate.
[0221] In an optional embodiment of the present invention, there is a second pixel point of the second image at the target coordinates; and the device includes:
[0222] The fusion module is used to enhance the clarity and consistency of the target image by fusing the first pixel point with the second pixel point.
[0223] In an optional embodiment of the present invention, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the image acquisition module includes:
[0224] A blowing sub-module, used for blowing air toward the glass cover by using the heat dissipation and demisting air duct to remove the mist and / or dust on the glass cover;
[0225] The fill light sub-module is used to use the fill light to provide fill light for the wide-angle straight-shot lens.
[0226] In an optional embodiment of the present invention, a control device is arranged on the cylindrical main structure; the blowing sub-module includes:
[0227] A first adjustment unit, configured to adjust the blowing intensity of the heat dissipation and demisting air duct by using the control device according to the fogging state and / or cleaning state of the glass cover;
[0228] The photon supplement submodule comprises:
[0229] The second adjustment unit is used to adjust the light intensity of the fill light using the control device according to the ambient brightness around the wide-angle straight-shot lens.
[0230] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0231] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 5 As shown, it includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504.
[0232] Memory 503, used for storing computer programs;
[0233] The processor 501 is used to execute the program stored in the memory 503, and implements the following steps:
[0234] Acquire the image captured by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images captured by the wide-angle straight-shot lens;
[0235] Extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point;
[0236] Based on the image information around the feature points, the feature points are paired to obtain at least one target feature point pair that matches each other;
[0237] Using the target feature point pairs, transforming the image into the same coordinate space;
[0238] The images located in the same coordinate space are spliced to obtain a target image.
[0239] In an optional embodiment of the present invention, the step of extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point includes:
[0240] Extracting feature points in the overlapping area using a scale-invariant feature transformation algorithm;
[0241] Calculate the gradient direction and gradient magnitude of the pixel points around the feature point;
[0242] Based on the gradient direction and the gradient magnitude, a descriptor of the feature point is obtained.
[0243] In an optional embodiment of the present invention, the step of converting the image into the same coordinate space by using the target feature point pair includes:
[0244] Utilizing the target feature point pairs, calculating the homography matrix between any two adjacent images captured by the wide-angle straight-shot lens;
[0245] Based on the homography matrix, the images are transformed into the same coordinate space.
[0246] In an optional embodiment of the present invention, the step of converting the image into the same coordinate space based on the homography matrix includes:
[0247] For any group of two adjacent images taken by the wide-angle straight-shot lens, the two adjacent images taken by the wide-angle straight-shot lens are used as the first image and the second image respectively;
[0248] Taking the coordinate space where the first image is located as the first coordinate space, and taking the pixel point in the first image as the first pixel point;
[0249] Using the coordinate space where the second image is located as the second coordinate space;
[0250] Obtaining coordinate information of the first pixel point in the first coordinate space;
[0251] Based on the coordinate information of the first pixel point in the first coordinate space, using the homography matrix, determining the coordinate information of the first pixel point in the second coordinate space;
[0252] Based on the coordinate information of the first pixel point in the second coordinate space, the first image is converted from the first coordinate space to the second coordinate space.
[0253] In an optional embodiment of the present invention, the step of stitching the images located in the same coordinate space to obtain a target image includes:
[0254] Improving the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image;
[0255] For any first pixel point located in a non-overlapping area between the first image and the second image, the first pixel point is copied on a plane where the second image is located.
[0256] In an optional embodiment of the present invention, the step of stitching the images located in the same coordinate space to obtain a target image includes:
[0257] For any first pixel point located in the overlapping area of the first image and the second image, determining, based on the homography matrix, a target coordinate of the first pixel point on the plane where the second image is located;
[0258] Move the first pixel point to the target coordinates.
[0259] In an optional embodiment of the present invention, there is a second pixel point of the second image at the target coordinates; after the step of splicing the images located in the same coordinate space to obtain the target image, the step includes:
[0260] By fusing the first pixel point and the second pixel point, the clarity and consistency of the target image are improved.
[0261] In an optional embodiment of the present invention, a glass cover, a heat dissipation and defogging air duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shooting lens; the glass cover is used to protect the wide-angle straight-shooting lens; one end of the heat dissipation and defogging air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the step of acquiring the image taken by the at least one wide-angle straight-shooting lens includes:
[0262] Using the heat dissipation and demisting air duct to blow air toward the glass cover to remove fog and / or dust on the glass cover;
[0263] The fill light is used to provide fill light for shooting with the wide-angle straight-shot lens.
[0264] In an optional embodiment of the present invention, a control device is arranged on the cylindrical main structure; the step of using the heat dissipation and demisting air duct to blow air to the glass cover to remove the fog and / or dust on the glass cover includes:
[0265] According to the fogging state and / or cleaning state of the glass cover, the control device is used to adjust the blowing intensity of the heat dissipation and demisting air duct;
[0266] The step of using the fill light to fill in the light for shooting with the wide-angle straight-shot lens comprises:
[0267] The control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens.
[0268] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0269] The communication interface is used for communication between the above terminal and other devices.
[0270] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0271] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0272] like Figure 6 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 601 is also provided, in which instructions are stored. When the computer-readable storage medium 601 is run on a computer, the computer executes the image acquisition method in an underground engineering scenario described in the above embodiment.
[0273] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the image acquisition method in an underground engineering scenario described in the above embodiment.
[0274] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0275] 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 any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0276] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0277] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An image acquisition device for underground engineering scenes, It is characterized in that include: A cylindrical main body structure and at least one wide-angle straight-shot lens, wherein the wide-angle straight-shot lenses are evenly arranged on the side walls of the cylindrical main body structure, and the wide-angle straight-shot lenses are located on any plane parallel to the upper surface of the cylindrical main body structure.
2. The image acquisition device according to claim 1, It is characterized in that A glass cover, a heat dissipation and demisting air duct and a fill light are installed on the cylindrical main structure; The glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover; the heat dissipation and demisting air duct is used to remove the mist and / or dust on the glass cover by blowing air toward the glass cover; The fill-in lights are evenly arranged on the side walls of the cylindrical main structure, and the fill-in lights are located on any plane parallel to the upper surface of the cylindrical main structure.
3. The image acquisition device according to claim 2, It is characterized in that A control device is arranged on the cylindrical main structure; the control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens, and adjust the blowing intensity of the heat dissipation and demisting air duct according to the fogging state and / or cleaning state of the glass cover.
4. An image acquisition method in underground engineering scenes, It is characterized in that An image acquisition device applied to an underground engineering scene, the image acquisition device comprising a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens being evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens being located on any plane parallel to the upper surface of the cylindrical main structure, the method comprising: Acquire the image captured by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images captured by the wide-angle straight-shot lens; Extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point; Based on the image information around the feature points, the feature points are paired to obtain at least one target feature point pair that matches each other; Using the target feature point pairs, transforming the image into the same coordinate space; The images located in the same coordinate space are spliced to obtain a target image.
5. The method according to claim 4, It is characterized in that The step of extracting at least one feature point in the overlapping area and obtaining a descriptor of the feature point comprises: Extracting feature points in the overlapping area using a scale-invariant feature transformation algorithm; Calculate the gradient direction and gradient magnitude of the pixel points around the feature point; Based on the gradient direction and the gradient magnitude, a descriptor of the feature point is obtained.
6. The method according to claim 4, It is characterized in that The step of converting the image into the same coordinate space by using the target feature point pair comprises: Utilizing the target feature point pairs, calculating the homography matrix between any two adjacent images captured by the wide-angle straight-shot lens; Based on the homography matrix, the images are transformed into the same coordinate space.
7. The method according to claim 6, It is characterized in that The step of converting the image into the same coordinate space based on the homography matrix comprises: For any group of two adjacent images taken by the wide-angle straight-shot lens, the two adjacent images taken by the wide-angle straight-shot lens are used as the first image and the second image respectively; Taking the coordinate space where the first image is located as the first coordinate space, and taking the pixel point in the first image as the first pixel point; Using the coordinate space where the second image is located as the second coordinate space; Obtaining coordinate information of the first pixel point in the first coordinate space; Based on the coordinate information of the first pixel point in the first coordinate space, using the homography matrix, determining the coordinate information of the first pixel point in the second coordinate space; Based on the coordinate information of the first pixel point in the second coordinate space, the first image is converted from the first coordinate space to the second coordinate space.
8. The method according to claim 7, It is characterized in that The step of splicing the images located in the same coordinate space to obtain a target image comprises: Improving the clarity of the first image and the second image by respectively adjusting the brightness difference between any two adjacent pixels in the first image and the second image; For any first pixel point located in a non-overlapping area between the first image and the second image, the first pixel point is copied on a plane where the second image is located.
9. The method according to claim 8, It is characterized in that The step of splicing the images located in the same coordinate space to obtain a target image comprises: For any first pixel point located in the overlapping area of the first image and the second image, determining, based on the homography matrix, a target coordinate of the first pixel point on the plane where the second image is located; Move the first pixel point to the target coordinates.
10. The method according to claim 9, It is characterized in that The second pixel point of the second image exists at the target coordinates; and the step of splicing the images located in the same coordinate space to obtain the target image includes: By fusing the first pixel point and the second pixel point, the clarity and consistency of the target image are improved.
11. The method according to claim 4, It is characterized in that A glass cover, a heat dissipation and defogging duct and a fill light are installed on the cylindrical main structure; the glass cover is installed on the outside of the wide-angle straight-shot lens; the glass cover is used to protect the wide-angle straight-shot lens; One end of the heat dissipation and demisting air duct is connected to the cylindrical main structure, and the other end faces the glass cover; The step of acquiring the image captured by the at least one wide-angle straight-shot lens comprises: Using the heat dissipation and demisting air duct to blow air toward the glass cover to remove fog and / or dust on the glass cover; The fill light is used to provide fill light for shooting with the wide-angle straight-shot lens.
12. The method according to claim 11, It is characterized in that A control device is arranged on the cylindrical main structure; the step of using the heat dissipation and demisting air duct to blow air to the glass cover to remove the fog and / or dust on the glass cover comprises: According to the fogging state and / or cleaning state of the glass cover, the control device is used to adjust the blowing intensity of the heat dissipation and demisting air duct; The step of using the fill light to fill in the light for shooting with the wide-angle straight-shot lens comprises: The control device is used to adjust the light intensity of the fill light according to the ambient brightness around the wide-angle straight-shot lens.
13. An image acquisition device for underground engineering scenes, It is characterized in that An image acquisition device applied to underground engineering scenes, the image acquisition device comprises a cylindrical main structure and at least one wide-angle straight-shot lens, the wide-angle straight-shot lens is evenly arranged on the side wall of the cylindrical main structure, and the wide-angle straight-shot lens is located on any plane parallel to the upper surface of the cylindrical main structure, the device comprises: An image acquisition module, used to acquire the image taken by the at least one wide-angle straight-shot lens; the images are located in different coordinate spaces; and there is an overlapping area between any two adjacent images taken by the wide-angle straight-shot lens; A feature point extraction module, used to extract at least one feature point in the overlapping area and obtain a descriptor of the feature point; the feature point is a pixel point with visual features in the overlapping area; the descriptor of the feature point includes image information around the feature point; A pairing module, used to pair the feature points based on image information around the feature points to obtain at least one target feature point pair that matches each other; A space conversion module, used to convert the image into the same coordinate space using the target feature point pair; The stitching module is used to stitch the images in the same coordinate space to obtain a target image.
14. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 4 to 12 when executing the program stored in the memory.
15. One or more computer readable media having instructions stored thereon, which when executed by one or more processors cause the processors to perform the method of any one of claims 4 to 12.
Citation Information
Patent Citations
Six-camera around looking-based cylindrical panoramic generation device and method
CN105488775A
720-degree panoramic picture taking method
CN107369128A
Optical splicing wide-angle camera system and method
CN115604560A
Image splicing method and apparatus, computer device, and storage medium
WO2021258579A1
Panoramic image determination method and apparatus, device, and storage medium
WO2024139491A1
