WO2024119619A1 - Correction method and apparatus for picture captured underwater, and storage medium - Google Patents
Correction method and apparatus for picture captured underwater, and storage medium Download PDFInfo
- Publication number
- WO2024119619A1 WO2024119619A1 PCT/CN2023/076736 CN2023076736W WO2024119619A1 WO 2024119619 A1 WO2024119619 A1 WO 2024119619A1 CN 2023076736 W CN2023076736 W CN 2023076736W WO 2024119619 A1 WO2024119619 A1 WO 2024119619A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pictures
- pixel
- picture
- stitched
- coefficient
- Prior art date
Links
- 238000012937 correction Methods 0.000 title claims abstract description 55
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003702 image correction Methods 0.000 claims description 3
- 238000004590 computer program Methods 0.000 description 11
- 230000003287 optical effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000003384 imaging method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000009189 diving Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
Definitions
- the present application relates to the field of image processing technology, and in particular to a correction method, device and storage medium for underwater photography.
- the present application provides a correction method, device and storage medium for underwater pictures, aiming to eliminate the black edge area of underwater pictures to improve the stitching quality of panoramic pictures taken underwater.
- the present application provides a correction method for underwater pictures, the correction method for underwater pictures comprising the following steps:
- the image to be corrected is divided into regions to obtain a first distribution region
- the field angle of each pixel in the image to be corrected is adjusted to obtain a corrected image.
- the present application further provides a correction device for underwater photographing, the correction device for underwater photographing comprising:
- An image acquisition module is used to acquire the image to be corrected taken underwater by the panoramic camera
- a picture area division module used for dividing the picture to be corrected into areas based on a preset division angle to obtain a first distribution area
- a picture expansion module used for expanding the picture to be corrected to obtain an expanded picture, and dividing the expanded picture into regions based on the distribution positions of black edges in the expanded picture to obtain a second distribution region;
- a viewing angle coefficient setting module used to detect the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area, and set the viewing angle coefficient corresponding to each pixel;
- the image correction module is used to adjust the field angle of each pixel in the image to be corrected based on the field angle coefficient corresponding to each pixel to obtain a corrected image.
- the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the correction method for underwater photography are implemented as described above.
- the present application provides a correction method, device and storage medium for underwater pictures, the method comprising obtaining a picture to be corrected taken by a panoramic camera underwater; dividing the picture to be corrected into regions based on a preset division angle to obtain a first distribution region; unfolding the picture to be corrected to obtain an unfolded picture, and dividing the unfolded picture into regions based on the distribution position of the black edges in the unfolded picture to obtain a second distribution region; detecting the distribution position of each pixel in the picture to be corrected in the first distribution region and the second distribution region, setting the field of view angle coefficient corresponding to each pixel; adjusting the field of view angle of each pixel in the picture to be corrected based on the field of view angle coefficient corresponding to each pixel to obtain a corrected picture.
- FIG1 is a correction system for underwater photography provided in an embodiment of the present application.
- FIG2 is a schematic flow chart of a first embodiment of a correction method for underwater pictures provided in the present application.
- FIG3 is a schematic diagram of area division for underwater spherical image shooting provided in an embodiment of the present application.
- FIG. 4 is a schematic diagram of the area division of a rectangular expansion diagram of an underwater picture provided in an embodiment of the present application.
- FIG5 is a flow chart of a second embodiment of a correction method for underwater pictures provided in the present application.
- FIG6 is a schematic block diagram of a correction device for underwater photography provided in an embodiment of the present application.
- FIG. 7 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.
- the embodiments of the present application provide a correction method for underwater pictures, a correction device for underwater pictures, and a storage medium for underwater pictures, which are used to eliminate black edge areas of underwater pictures to improve the stitching quality of panoramic pictures taken underwater.
- FIG. 1 is a correction system for underwater photography provided by an embodiment of the present application, the system comprising a terminal and a server, the terminal and the server are communicatively connected, and the server is communicatively connected to an underwater photography application terminal.
- the terminals include electronic devices such as mobile phones, tablet computers, laptop computers, desktop computers, personal digital assistants and wearable devices.
- the server includes an independent server or a server cluster.
- the underwater shooting application end includes panoramic camera equipment, diving shells and communication equipment.
- Figure 2 is a flow chart of a first embodiment of a method for correcting underwater pictures provided by the present application.
- the method for correcting underwater pictures can be used in a terminal of a correction system for underwater pictures.
- the correction method for underwater photographs includes steps S101 to S105 .
- Step S101 obtaining a picture to be calibrated taken underwater by a panoramic camera
- the pictures taken by the panoramic camera underwater can be sent to the server through remote communication; or after the underwater shooting is completed, the pictures can be downloaded from the memory of the panoramic camera, which can be wired transmission, such as USB, or wireless transmission, such as WIFI.
- the panoramic camera includes at least two cameras; the pictures taken by the multiple cameras need to be stitched, but each picture to be corrected is generally calibrated separately, that is, stitched after correction.
- Step S102 dividing the image to be corrected into regions based on a preset division angle to obtain a first distribution region
- the imaging of the fisheye lens usually requires spherical perspective projection first, that is, projecting a point in three-dimensional space along a straight line passing through the optical center of the lens onto the inner surface of a unit radius sphere with the optical center as the origin, thus forming a circular image.
- the circular image to be corrected can be divided into regions.
- a picture taken by a panoramic camera in a diving shell may have part of the bottom of the picture cut off.
- a certain angle range of the center position of the circular picture to be corrected can be used as the first distribution area.
- the area within 90° directly below the center of the circular image to be corrected may be used as the first distribution area, and the first distribution area may completely include the cropped image.
- Step S103 unfolding the image to be corrected to obtain an expanded image, and dividing the expanded image into regions based on the distribution positions of black edges in the expanded image to obtain a second distribution region;
- the circular fisheye image can be expanded into a rectangular plane image according to longitude and latitude.
- the part of the picture that is cut out in the circular figure is displayed as the black-border area on the rectangular plane image.
- the image to be corrected is divided into regions to obtain a second distribution area.
- the second distribution area includes a black edge connection area, a buffer area and a normal area.
- the center of the expanded rectangular image to be corrected can be used as the vertex, and the image area can be divided according to the angle.
- the image screen in the 100° angle range (-40° - -140°) directly below the vertex is used as the black border connection area 10, which includes most of the black border area; 15° angle ranges are divided on both sides of the black border connection area, that is, -25° - -40° and -140° - -155° angle ranges are used as buffer areas 20, and other image areas are used as normal areas 30.
- each picture pixel point on the spherical surface can be represented by the corresponding longitude and latitude.
- the points projected onto the spherical surface they can be further projected onto the imaging plane according to a certain fisheye projection model to obtain the corresponding fisheye image. Therefore, the correction process of the fisheye image is actually to find out the fisheye image coordinates corresponding to each longitude and latitude on the spherical surface, so that the pixel information of the longitude and latitude can be obtained by interpolation, and then the spherical surface is expanded into the required plane image.
- the spherical surface is usually unfolded based on an equirectangular model, also called an equidistant cylindrical projection model, that is, the sphere is unfolded into a rectangular grid, wherein the size of the grid is proportional to the size of the corresponding longitude and latitude interval.
- an equirectangular model also called an equidistant cylindrical projection model, that is, the sphere is unfolded into a rectangular grid, wherein the size of the grid is proportional to the size of the corresponding longitude and latitude interval.
- the process of projecting a point on the spherical surface onto the camera imaging plane through a fisheye lens to obtain a fisheye image is usually based on the principle of light refraction, that is, light will be refracted after entering the fisheye lens, and the distance r between the landing point on the imaging plane and the optical axis is related to the angle between the incident light and the optical axis, that is, the incident angle ⁇ , and the landing point is on the plane formed by the incident light and the optical axis.
- the distance from the landing point to the optical axis in an equidistant projection or an equiangular projection is linearly proportional to the incident angle, so that the same angle difference corresponds to the same distance difference.
- Step S104 detecting the distribution position of each pixel in the to-be-corrected image in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel;
- the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area is detected, and different field angle coefficients are set for each pixel according to the different positions of each pixel.
- the field angle coefficient corresponding to each pixel when the distribution position of each pixel is located in the first distribution area and in the black-border connection area, the field angle coefficient corresponding to each pixel is set to the first coefficient; when the distribution position of each pixel is located in the first distribution area and in the buffer area, the field angle coefficient corresponding to each pixel is set to the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient; when the distribution position of each pixel is located in the normal area, the field angle coefficient corresponding to each pixel is set to 1.
- the first coefficient is greater than 1 and less than the second coefficient.
- the actual FOV of the fisheye lens when shooting underwater is smaller than the FOV in the air, so the actual FOV value of underwater shooting needs to be expanded when unfolding.
- the field angle coefficient of the picture shot by the fisheye lens in the air can be set to 1, and the second coefficient is the field angle coefficient of the fisheye lens when shooting underwater.
- the position of each pixel is judged when the panoramic expansion is performed. If the pixel falls within the first distribution area and is located in the black edge connection area, the focal length is multiplied by the first coefficient Y (X>Y>1) to ensure that no black edge is exposed; if the pixel is within the first distribution area and within the buffer area, the coefficient is smoothly transitioned between the second coefficient X and the first coefficient Y to ensure the continuity of the stitching.
- Step S105 Based on the field angle coefficient corresponding to each pixel, adjust the field angle of each pixel in the image to be corrected to obtain a corrected image.
- the field of view of each pixel is adjusted according to the field of view angle parameter corresponding to each pixel, so as to obtain a rectangular corrected image without black edges.
- This embodiment provides a correction method for underwater pictures, which divides the picture area of the picture to be corrected to distinguish the areas that are affected by the black edge distribution position, so as to facilitate targeted field of view adjustment for each distribution area.
- a correction method for underwater pictures which divides the picture area of the picture to be corrected to distinguish the areas that are affected by the black edge distribution position, so as to facilitate targeted field of view adjustment for each distribution area.
- FIG. 5 is a flow chart of a second embodiment of a correction method for underwater pictures provided by the present application.
- step S101 the following steps are specifically included:
- Step S201 obtaining the pictures to be stitched taken by the two underwater cameras of the panoramic camera;
- Step S202 determining stitching field angle parameters corresponding to each of the images to be stitched based on the shooting distance between the main shooting object in the normal area of each of the images to be stitched and the corresponding shooting lens;
- each FOV field of view
- each FOV field of view
- the pixel deformation amount in the normal area is the smallest, which means that the shooting distance corresponding to the main shooting object in the normal area is more accurate. Therefore, for the pictures to be stitched taken by the underwater camera, the normal area in the picture is used as the basis for alignment, and the stitching effect and stitching quality will be better.
- the target field of view angle parameters corresponding to each image to be stitched before setting the target field of view angle parameters corresponding to each image to be stitched, it is necessary to detect the shooting distance between the main shooting object in the normal area of each image to be stitched and the corresponding shooting lens, and find the optimal field of view angle parameter corresponding to the shooting distance according to the preset field of view angle parameter table.
- the field of view is also called the field of view in optical engineering, which refers to the angle range of the image that the camera can receive in a general environment.
- the size of the field of view determines the field of view of the optical instrument. The larger the field of view, the larger the field of view and the smaller the optical magnification.
- step S202 specifically includes:
- the field of view angle parameter corresponding to the priority shooting distance is determined as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
- the main photographed objects there will be multiple feature objects in the field of view captured by the camera, namely, the main photographed objects, which are distributed in different positions in the image to be stitched.
- the main photographed objects at different positions will have greatly different deformation amounts, and their influence on the calculation of the field of view angle parameters will also be different. Therefore, it is necessary to determine the priority of each main photographed object according to the degree of influence of each main photographed object on the stitching effect.
- the priority of the main photographed object gradually increases from the center position of each of the to-be-joined pictures to the seam position of each of the to-be-joined pictures, wherein the main photographed object located at the seam position has the highest priority.
- the pixel deformation amount at the edge position of the fisheye lens is greater than the pixel deformation amount at the center position of the image, that is, the main photographed object at the center position is located, and its distance from the photographing lens is calculated most accurately; and the pixel deformation amount is larger the closer to the edge position, among which the pixel deformation amount at the seam position is the largest, that is, the shooting distance corresponding to the main photographed object at the seam position is less accurate, so it is necessary to focus on optimizing the main photographed object at the seam position.
- the main photographed object at the seam position is also the main reference object when stitching two adjacent pictures to be stitched. In order to improve the stitching effect, the main photographed object at the seam position needs to be corrected first, so the main photographed object at the seam position has the highest priority.
- the shooting distance between the main photographed object in each picture to be stitched and the corresponding shooting lens is comprehensively considered, so as to calculate a shooting distance that can adjust all pictures to be stitched to the closest deformation amount, and use it as the only priority shooting distance for all pictures to be stitched.
- Step S203 Based on the preset field angle parameter table and the stitching field angle parameter, adjust the field angle parameter of the to-be-stitched pictures corresponding to the respective shooting lenses to obtain the to-be-corrected pictures corresponding to the respective shooting lenses.
- the preset field angle parameter table is compared to find the field angle parameter corresponding to the priority shooting distance, and the field angle parameter is the target field angle parameter corresponding to each of the pictures to be stitched.
- each of the images to be spliced may be adjusted using the target field angle parameter, so that the seams of each of the images to be spliced can be aligned after the field angle parameter adjustment.
- each field angle parameter table corresponds to an optimal shooting distance and depth of field range, forming a shooting distance range, and the shooting distances within the shooting distance range all correspond to the field angle parameter.
- the field angle parameter is 193°
- the corresponding optimal shooting distance is 2.25m
- the depth of field is 0.1m
- the corresponding shooting distance range is 2.2m-2.3m
- the shooting distances within the shooting distance range (such as 2.23m) all correspond to the field angle parameter 193°.
- the step of determining the stitching field angle parameters corresponding to each picture to be stitched may also include:
- the shooting distance difference between the adjacent pictures to be stitched is obtained; when the shooting distance difference between the adjacent pictures to be stitched is less than the preset distance difference (or preset FOV value difference), the target field of view angle parameters corresponding to the normal area of the adjacent pictures to be stitched can be determined based on the shooting distance corresponding to each of the adjacent pictures to be stitched and the preset field of view angle parameter table.
- the FOV values of the two adjacent pictures to be stitched are different, which can better guarantee the image display quality of each picture to be stitched; at the same time, the shooting distance difference or FOV value difference of the two adjacent pictures to be stitched is small, which can better guarantee the stitching quality between the two adjacent pictures to be stitched.
- the pictures to be stitched are stitched together by an image stitching module to obtain a target picture, that is, a panoramic picture.
- the image stitching module may include an image stitching algorithm, or may be an existing visual module, such as an image stitching module.
- the steps of image stitching basically include: feature point extraction and matching, image registration, projection transformation, stitching calculation, image fusion, etc.
- robust feature points are extracted from the input image, and feature point matching is completed according to feature descriptors.
- the positional relationship of adjacent images is obtained according to the matched feature point pairs to perform image registration. Since direct image registration will destroy the consistency of the field of view, the image is first projected on a spherical or cylindrical surface, and finally the stitching of adjacent images is calculated and the fusion of the overlapping area is completed to obtain the final panoramic image.
- FIG6 is a schematic block diagram of a correction device for underwater photographing provided in an embodiment of the present application.
- the correction device for underwater photographing is used to execute the aforementioned correction method for underwater photographing.
- the correction device for underwater photographing can be configured in a server and a terminal.
- the correction device 300 for underwater picture shooting includes: a picture acquisition module 301 , a picture area division module 302 , a picture expansion module, a field angle coefficient setting module 304 , and a picture correction module 305 .
- the picture acquisition module 301 is used to acquire the picture to be corrected taken underwater by the panoramic camera;
- the image region division module 302 is used to divide the image to be corrected into regions based on a preset division angle to obtain a first distribution region;
- the picture expansion module 303 is used to expand the picture to be corrected to obtain an expanded picture, and divide the expanded picture into regions based on the distribution positions of black edges in the expanded picture to obtain a second distribution region;
- a viewing angle coefficient setting module 304 is used to detect the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area, and set the viewing angle coefficient corresponding to each pixel;
- the image correction module 305 is used to adjust the field angle of each pixel in the image to be corrected based on the field angle coefficient corresponding to each pixel to obtain a corrected image.
- the second distribution area includes a black edge connection area, a buffer area and a normal area.
- the field angle coefficient setting module 304 is further used to set the field angle coefficient corresponding to each pixel to the first coefficient when the distribution position of each pixel is located in the first distribution area and in the black border connection area; set the field angle coefficient corresponding to each pixel to the buffer coefficient when the distribution position of each pixel is located in the first distribution area and in the buffer area, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient; and set the field angle coefficient corresponding to each pixel to 1 when the distribution position of each pixel is located in the normal area.
- the first coefficient is greater than 1 and less than the second coefficient.
- the underwater picture correction device 300 also includes an image stitching correction module, which is used to obtain the pictures to be stitched taken by the two underwater cameras of the panoramic camera; based on the shooting distance between the main shooting object in the normal area of each picture to be stitched and the corresponding shooting lens, determine the stitching field angle parameters corresponding to each picture to be stitched; based on the preset field angle parameter table and the stitching field angle parameters, adjust the field angle parameters of the pictures to be stitched corresponding to each shooting lens to obtain the pictures to be corrected corresponding to each shooting lens.
- an image stitching correction module which is used to obtain the pictures to be stitched taken by the two underwater cameras of the panoramic camera; based on the shooting distance between the main shooting object in the normal area of each picture to be stitched and the corresponding shooting lens, determine the stitching field angle parameters corresponding to each picture to be stitched; based on the preset field angle parameter table and the stitching field angle parameters, adjust the field angle parameters of the pictures to be stitched corresponding to each shooting lens to
- the image stitching correction module is further used to determine the priority of each main photographic object based on the position of each main photographic object in each of the pictures to be stitched when there are multiple main photographic objects in the normal area of each of the pictures to be stitched; determine the priority shooting distance corresponding to each of the pictures to be stitched based on the priority of each main photographic object and the shooting distance between each main photographic object and the corresponding shooting lens; and determine the field of view angle parameter corresponding to the priority shooting distance based on the priority shooting distance and the preset field of view angle parameter table as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
- the image stitching correction module is further used to gradually increase the priority of the main photographed object from the central position of each to-be-stitched image to the seam position of each to-be-stitched image, wherein the main photographed object located at the seam position has the highest priority.
- the apparatus provided in the above embodiment may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG. 7 .
- Fig. 7 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.
- the computer device may be a terminal.
- the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
- the non-volatile storage medium can store an operating system and a computer program.
- the computer program includes program instructions, and when the program instructions are executed, the processor can execute any correction method for underwater photography.
- the processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
- the internal memory provides an environment for the operation of the computer program in the non-volatile storage medium.
- the processor can execute any correction method for underwater photography.
- the network interface is used for network communication, such as sending assigned tasks, etc.
- the network interface is used for network communication, such as sending assigned tasks, etc.
- FIG. 7 is only a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
- the specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
- the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
- the processor is used to run a computer program stored in the memory to implement the following steps:
- the image to be corrected is divided into regions to obtain a first distribution region
- the field angle of each pixel in the image to be corrected is adjusted to obtain a corrected image.
- the second distribution area includes a black edge connection area, a buffer area and a normal area.
- the processor when the processor detects the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area and sets the field angle coefficient corresponding to each pixel, it further implements:
- each pixel When the distribution position of each pixel is located in the first distribution area and in the buffer area, setting the field angle coefficient corresponding to each pixel as the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient;
- the field angle coefficient corresponding to each pixel is set to 1.
- the first coefficient is greater than 1 and less than the second coefficient.
- the processor before acquiring the picture to be corrected taken underwater by the panoramic camera, the processor further implements:
- the field angle parameters of the to-be-stitched pictures corresponding to the respective shooting lenses are adjusted to obtain the to-be-corrected pictures corresponding to the respective shooting lenses.
- the processor determines the stitching field angle parameters corresponding to each corrected image based on the shooting distance between the main shooting object in the normal area of each image to be stitched and the corresponding shooting lens, it further implements:
- the field of view angle parameter corresponding to the priority shooting distance is determined as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
- the processor when the processor determines the priority of each main photographed object based on the position of each main photographed object in each of the to-be-stitched pictures, the processor further implements:
- a computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the correction methods for underwater photography provided in the embodiments of the present application.
- the computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device.
- the computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
- a plug-in hard disk such as a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Provided in the present application are a correction method and apparatus for a picture captured underwater, and a storage medium. The method comprises: acquiring a picture to be corrected that is captured underwater by a panoramic camera; on the basis of a preset division angle, performing region division on the picture to be corrected, so as to obtain a first distribution region; unfolding the picture to be corrected to obtain an unfolded picture, and performing region division on the unfolded picture on the basis of a black-edge distribution location in the unfolded picture, so as to obtain a second distribution region; detecting distribution locations of pixels in the picture to be corrected in the first distribution region and the second distribution region, and setting angle-of-view coefficients corresponding to the pixels; and on the basis of the angle-of-view coefficients corresponding to the pixels, adjusting the angles of view of the pixels in the picture to be corrected, so as to obtain a corrected picture.
Description
本申请涉及图像处理技术领域,尤其涉及一种用于水下拍摄图片的校正方法、装置及存储介质。The present application relates to the field of image processing technology, and in particular to a correction method, device and storage medium for underwater photography.
在水下拍摄场景中,由于水的折射率大于空气,进入镜头的光线发生折射而导致镜头FOV降低。且为保证全景相机能够在水下正常使用,需要通过潜水壳对全景相机进行保护。In underwater shooting scenes, since the refractive index of water is greater than that of air, the light entering the lens is refracted, resulting in a reduction in the lens FOV. In order to ensure that the panoramic camera can be used normally underwater, it is necessary to protect the panoramic camera with a diving shell.
然而使用潜水壳模式,就不能使用光流拼接,只能使用原厂标定出的相机参数进行拼接,且潜水壳模式下拍摄的图片在拼接缝处会丢失部分场景,即出现黑边区域,导致画面不完整。However, when using the underwater shell mode, optical flow stitching cannot be used. Only the camera parameters calibrated by the original factory can be used for stitching. In addition, the pictures taken in the underwater shell mode will lose part of the scene at the stitching seams, that is, black border areas will appear, resulting in an incomplete picture.
本申请提供了一种用于水下拍摄图片的校正方法、装置及存储介质,旨在消除水下拍摄图片的黑边区域,以提高水下拍摄的全景图片的拼接质量。The present application provides a correction method, device and storage medium for underwater pictures, aiming to eliminate the black edge area of underwater pictures to improve the stitching quality of panoramic pictures taken underwater.
第一方面,本申请提供一种用于水下拍摄图片的校正方法,所述用于水下拍摄图片的校正方法包括以下步骤:In a first aspect, the present application provides a correction method for underwater pictures, the correction method for underwater pictures comprising the following steps:
获取全景相机在水下拍摄的待校正图片;Obtaining the picture to be corrected taken by the panoramic camera underwater;
基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;Based on a preset division angle, the image to be corrected is divided into regions to obtain a first distribution region;
展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;Expanding the image to be corrected to obtain an expanded image, and dividing the expanded image into regions based on the distribution positions of black edges in the expanded image to obtain a second distribution region;
检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;Detecting the distribution position of each pixel in the to-be-corrected image in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel;
基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。Based on the field angle coefficient corresponding to each pixel, the field angle of each pixel in the image to be corrected is adjusted to obtain a corrected image.
第二方面,本申请还提供一种用于水下拍摄图片的校正装置,所述用于水下拍摄图片的校正装置包括:In a second aspect, the present application further provides a correction device for underwater photographing, the correction device for underwater photographing comprising:
图片获取模块,用于获取全景相机在水下拍摄的待校正图片;An image acquisition module is used to acquire the image to be corrected taken underwater by the panoramic camera;
图片区域划分模块,用于基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;A picture area division module, used for dividing the picture to be corrected into areas based on a preset division angle to obtain a first distribution area;
图片展开模块,用于展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;A picture expansion module, used for expanding the picture to be corrected to obtain an expanded picture, and dividing the expanded picture into regions based on the distribution positions of black edges in the expanded picture to obtain a second distribution region;
视场角系数设置模块,用于检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;A viewing angle coefficient setting module, used to detect the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area, and set the viewing angle coefficient corresponding to each pixel;
图片校正模块,用于基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。The image correction module is used to adjust the field angle of each pixel in the image to be corrected based on the field angle coefficient corresponding to each pixel to obtain a corrected image.
第三方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,其中所述计算机程序被处理器执行时,实现如上述的用于水下拍摄图片的校正方法的步骤。In a third aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the correction method for underwater photography are implemented as described above.
本申请提供一种用于水下拍摄图片的校正方法、装置及存储介质,所述方法包括获取全景相机在水下拍摄的待校正图片;基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。通过上述方式,通过对待校正图片的图片区域划分,将对黑边分布位置影响不同的区域的进行区分,从而便于对各分布区域进行针对性的视场角调整。通过检测待校正图片中各像素在第一分布区域和第二分布区域的位置,对处于不同分布位置的像素执行不同的视场角系数调整,使得靠近黑边分布位置的各像素膨胀,从而避免出现黑边区域,并实现对膨胀后的像素区域到正常区域的缓冲渐变,避免校正后的图片出现明显的视觉差异,以提高全景图像的拼接质量。The present application provides a correction method, device and storage medium for underwater pictures, the method comprising obtaining a picture to be corrected taken by a panoramic camera underwater; dividing the picture to be corrected into regions based on a preset division angle to obtain a first distribution region; unfolding the picture to be corrected to obtain an unfolded picture, and dividing the unfolded picture into regions based on the distribution position of the black edges in the unfolded picture to obtain a second distribution region; detecting the distribution position of each pixel in the picture to be corrected in the first distribution region and the second distribution region, setting the field of view angle coefficient corresponding to each pixel; adjusting the field of view angle of each pixel in the picture to be corrected based on the field of view angle coefficient corresponding to each pixel to obtain a corrected picture. In the above manner, by dividing the picture area of the picture to be corrected, the areas that are affected by the distribution position of the black edges differently are distinguished, thereby facilitating targeted field of view angle adjustment for each distribution region. By detecting the position of each pixel in the image to be corrected in the first distribution area and the second distribution area, different field angle coefficient adjustments are performed on pixels in different distribution positions, so that each pixel close to the black edge distribution position is expanded, thereby avoiding the appearance of a black edge area, and realizing a buffered gradient from the expanded pixel area to the normal area, avoiding obvious visual differences in the corrected image, thereby improving the stitching quality of the panoramic image.
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1为本申请的实施例提供的一种用于水下拍摄图片的校正系统。FIG1 is a correction system for underwater photography provided in an embodiment of the present application.
图2为本申请提供的一种用于水下拍摄图片的校正方法的第一实施例的流程示意图。FIG2 is a schematic flow chart of a first embodiment of a correction method for underwater pictures provided in the present application.
图3为本申请实施例提供的一种水下拍摄球形图片的区域划分示意图。FIG3 is a schematic diagram of area division for underwater spherical image shooting provided in an embodiment of the present application.
图4为本申请实施例提供的一种水下拍摄图片矩形展开图的区域划分示意图。FIG. 4 is a schematic diagram of the area division of a rectangular expansion diagram of an underwater picture provided in an embodiment of the present application.
图5为本申请提供的一种用于水下拍摄图片的校正方法的第二实施例的流程示意图。FIG5 is a flow chart of a second embodiment of a correction method for underwater pictures provided in the present application.
图6是本申请实施例提供的一种用于水下拍摄图片的校正装置的示意性框图。FIG6 is a schematic block diagram of a correction device for underwater photography provided in an embodiment of the present application.
图7是本申请实施例提供的一种计算机设备的结构示意性框图。FIG. 7 is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations/steps, nor must they be executed in the order described. For example, some operations/steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
本申请的实施例提供了一种用于水下拍摄图片的校正方法、用于水下拍摄图片的校正装置及存储介质,用于消除水下拍摄图片的黑边区域,以提高水下拍摄的全景图片的拼接质量。The embodiments of the present application provide a correction method for underwater pictures, a correction device for underwater pictures, and a storage medium for underwater pictures, which are used to eliminate black edge areas of underwater pictures to improve the stitching quality of panoramic pictures taken underwater.
如图1所示,图1为本申请的实施例提供的一种用于水下拍摄图片的校正系统,该系统包括终端和服务器,所述终端和服务器通信连接,所述服务器与水下拍摄应用端通信连接。As shown in FIG. 1 , FIG. 1 is a correction system for underwater photography provided by an embodiment of the present application, the system comprising a terminal and a server, the terminal and the server are communicatively connected, and the server is communicatively connected to an underwater photography application terminal.
其中,所述终端包括手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等电子设备。The terminals include electronic devices such as mobile phones, tablet computers, laptop computers, desktop computers, personal digital assistants and wearable devices.
其中,所述服务器包括独立一台服务器,或者服务器集群。The server includes an independent server or a server cluster.
其中,水下拍摄应用端包括全景相机设备、潜水壳以及通信设备等。Among them, the underwater shooting application end includes panoramic camera equipment, diving shells and communication equipment.
以下,将基于该用于水下拍摄图片的校正系统对本申请的实施例提供的用于水下拍摄图片的校正方法进行详细介绍。Hereinafter, the correction method for underwater photographing provided by the embodiment of the present application will be described in detail based on the correction system for underwater photographing.
请参照图2,图2为本申请提供的一种用于水下拍摄图片的校正方法的第一实施例的流程示意图。该用于水下拍摄图片的校正方法可以用于水下拍摄图片的校正系统的终端中。Please refer to Figure 2, which is a flow chart of a first embodiment of a method for correcting underwater pictures provided by the present application. The method for correcting underwater pictures can be used in a terminal of a correction system for underwater pictures.
如图2所示,该用于水下拍摄图片的校正方法包括步骤S101至步骤S105。As shown in FIG. 2 , the correction method for underwater photographs includes steps S101 to S105 .
步骤S101、获取全景相机在水下拍摄的待校正图片;Step S101, obtaining a picture to be calibrated taken underwater by a panoramic camera;
本实施例中,可以通过远程通信的方式,将全景相机在水下拍摄的图片发送到服务器端;也可以是在完成水下拍摄之后,从全景相机的存储器中下载拍摄图片,可以是有线传输,如USB等,也可以是无线传输,如WIFI等。In this embodiment, the pictures taken by the panoramic camera underwater can be sent to the server through remote communication; or after the underwater shooting is completed, the pictures can be downloaded from the memory of the panoramic camera, which can be wired transmission, such as USB, or wireless transmission, such as WIFI.
在一实施例中,全景相机包括至少两个摄像头;多摄像头拍摄的图片需要进行拼接,但是对于各待校正图片一般是单独校正,即校正后再拼接。In one embodiment, the panoramic camera includes at least two cameras; the pictures taken by the multiple cameras need to be stitched, but each picture to be corrected is generally calibrated separately, that is, stitched after correction.
步骤S102、基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;Step S102: dividing the image to be corrected into regions based on a preset division angle to obtain a first distribution region;
本实施例中,如图3所示,鱼眼镜头的成像通常要先进行球面透视投影,即将三维空间中的点沿着经过镜头光学中心的直线投影到以光心为原点的单位半径球体内表面上,也即可形成一个圆形的图片。而根据黑边区域所在的位置,可以对圆形的待校正图片进行区域划分。In this embodiment, as shown in FIG3 , the imaging of the fisheye lens usually requires spherical perspective projection first, that is, projecting a point in three-dimensional space along a straight line passing through the optical center of the lens onto the inner surface of a unit radius sphere with the optical center as the origin, thus forming a circular image. According to the location of the black edge area, the circular image to be corrected can be divided into regions.
在一实施例中,一般在潜水壳中的全景相机拍摄的图片,画面的底部会存在部分画面被裁切掉,此时,可以以圆形待校正图片的中心位置一定角度范围以及作为第一分布区域。In one embodiment, generally, a picture taken by a panoramic camera in a diving shell may have part of the bottom of the picture cut off. In this case, a certain angle range of the center position of the circular picture to be corrected can be used as the first distribution area.
在一实施例中,可以将圆形的待校正图片中心位置正下方90°范围内作为第一分布区域,第一分布区域可以将裁切掉的画面完全包含在内。In one embodiment, the area within 90° directly below the center of the circular image to be corrected may be used as the first distribution area, and the first distribution area may completely include the cropped image.
步骤S103、展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;Step S103, unfolding the image to be corrected to obtain an expanded image, and dividing the expanded image into regions based on the distribution positions of black edges in the expanded image to obtain a second distribution region;
本实施例中,可以按照经纬度将圆形的鱼眼图像展开为矩形的平面图像,此时,在圆形图形中被裁切的部分画面在矩形的平面图像上显示的即为黑边区域,根据黑边区域的分布位置,对待校正图片进行区域划分,获得第二分布区域。In this embodiment, the circular fisheye image can be expanded into a rectangular plane image according to longitude and latitude. At this time, the part of the picture that is cut out in the circular figure is displayed as the black-border area on the rectangular plane image. According to the distribution position of the black-border area, the image to be corrected is divided into regions to obtain a second distribution area.
在一实施例中,所述第二分布区域包括黑边连接区域、缓冲区域和正常区域。In one embodiment, the second distribution area includes a black edge connection area, a buffer area and a normal area.
在一实施例中,如图4所示,可以以展开后的矩形待校正图片的图片中心为顶点,按照角度对图片区域进行划分,比如将顶点正下方100°角度(-40°— -140°)范围区域的图片画面作为黑边连接区域10,包含大部分黑边区域;在黑边连接区域两侧各划分15°角度范围,即-25°— -40°以及-140°— -155°角度范围作为缓冲区域20,其他图片区域作为正常区域30。In one embodiment, as shown in FIG. 4 , the center of the expanded rectangular image to be corrected can be used as the vertex, and the image area can be divided according to the angle. For example, the image screen in the 100° angle range (-40° - -140°) directly below the vertex is used as the black border connection area 10, which includes most of the black border area; 15° angle ranges are divided on both sides of the black border connection area, that is, -25° - -40° and -140° - -155° angle ranges are used as buffer areas 20, and other image areas are used as normal areas 30.
在一实施例中,因为鱼眼镜头成像是通过球面透视投影成像的,所以可以通过相应的经纬度对球面上的每一个画面像素点进行表示。对于投影到球面上的点,可根据一定的鱼眼投影模型进一步投影到成像平面得到相应的鱼眼图像。因此,鱼眼图像的校正过程实际上就是找出球面上每个经纬度对应的鱼眼图像坐标,从而可以通过插值获得该经纬度的像素信息,然后将球面展开为所需要的平面图像。In one embodiment, because the fisheye lens imaging is performed through spherical perspective projection, each picture pixel point on the spherical surface can be represented by the corresponding longitude and latitude. For the points projected onto the spherical surface, they can be further projected onto the imaging plane according to a certain fisheye projection model to obtain the corresponding fisheye image. Therefore, the correction process of the fisheye image is actually to find out the fisheye image coordinates corresponding to each longitude and latitude on the spherical surface, so that the pixel information of the longitude and latitude can be obtained by interpolation, and then the spherical surface is expanded into the required plane image.
在一实施例中,球面展开通常是是基于等矩形模型,也叫等距圆柱投影模型,即将球面展开为矩形网格,其中,网格的大小与相应的经度与纬度区间大小成正比。In one embodiment, the spherical surface is usually unfolded based on an equirectangular model, also called an equidistant cylindrical projection model, that is, the sphere is unfolded into a rectangular grid, wherein the size of the grid is proportional to the size of the corresponding longitude and latitude interval.
在一实施例中,球面上的点通过鱼眼镜头投影到相机成像平面得到鱼眼图像的过程通常基于光线折射的原理,即光线进入鱼眼镜头后会发生折射,且在成像平面上的落点和光轴之间的距离 r 与入射光线和光轴的夹角即入射角 θ 相关,落点处在入射光线与光轴所组成的平面上。不同的函数关系 r = f (θ) 对应了不同的鱼眼投影模型。In one embodiment, the process of projecting a point on the spherical surface onto the camera imaging plane through a fisheye lens to obtain a fisheye image is usually based on the principle of light refraction, that is, light will be refracted after entering the fisheye lens, and the distance r between the landing point on the imaging plane and the optical axis is related to the angle between the incident light and the optical axis, that is, the incident angle θ, and the landing point is on the plane formed by the incident light and the optical axis. Different functional relationships r = f (θ) correspond to different fisheye projection models.
在一实施例中,等距投影(Equidistant)或者说等角投影(Equiangular)中落点到光轴的距离与入射角成线性正比例关系,从而相同的角差对应相同的距差。In one embodiment, the distance from the landing point to the optical axis in an equidistant projection or an equiangular projection is linearly proportional to the incident angle, so that the same angle difference corresponds to the same distance difference.
可以理解地是,本实施例中只是例举等距投影等方法进行具体说明,便于本领域人员理解,并不表示本实施例所述的图片展开方法只能是这两种方法,也可以是其他可用于鱼眼镜头拍摄图片的展开的方法。It can be understood that in this embodiment, only the equidistant projection method is cited for specific explanation to facilitate understanding by those skilled in the art. It does not mean that the image expansion method described in this embodiment can only be these two methods, and other methods that can be used for expanding images taken with a fisheye lens can also be used.
步骤S104、检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;Step S104, detecting the distribution position of each pixel in the to-be-corrected image in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel;
本实施例中,检测待校正图片中各像素在第一分布区域和第二分布区域的分布位置,根据各像素所在的不同位置,对各像素设置不同的视场角系数。In this embodiment, the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area is detected, and different field angle coefficients are set for each pixel according to the different positions of each pixel.
在一实施例中,在所述各像素的分布位置位于所述第一分布区域且位于所述黑边连接区域时,设置所述各像素对应的视场角系数为第一系数;在所述各像素的分布位置位于所述第一分布区域且位于所述缓冲区域时,设置所述各像素对应的视场角系数为缓冲系数,其中,所述缓冲系数为第一系数到第二系数范围之间的视场角系数;在所述各像素的分布位置位于所述正常区域时,设置所述各像素对应的视场角系数为1。In one embodiment, when the distribution position of each pixel is located in the first distribution area and in the black-border connection area, the field angle coefficient corresponding to each pixel is set to the first coefficient; when the distribution position of each pixel is located in the first distribution area and in the buffer area, the field angle coefficient corresponding to each pixel is set to the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient; when the distribution position of each pixel is located in the normal area, the field angle coefficient corresponding to each pixel is set to 1.
在一实施例中,所述第一系数大于1且小于所述第二系数。In one embodiment, the first coefficient is greater than 1 and less than the second coefficient.
在一实施例中,鱼眼镜头在水下拍摄时的实际FOV小于在空气中的FOV,所以在展开时需要对水下拍摄的实际FOV值进行膨胀扩大。可以将鱼眼镜头在空气中拍摄的图片视场角系数设为1,而第二系数则是鱼眼镜头在水下拍摄的视场角系数。In one embodiment, the actual FOV of the fisheye lens when shooting underwater is smaller than the FOV in the air, so the actual FOV value of underwater shooting needs to be expanded when unfolding. The field angle coefficient of the picture shot by the fisheye lens in the air can be set to 1, and the second coefficient is the field angle coefficient of the fisheye lens when shooting underwater.
在一实施例中,在做全景展开时对每个像素的位置作判断,若该像素落在第一分布区域内且位于黑边连接区域内,则将焦距乘以第一系数Y(X>Y>1),保证不露出黑边;若在第一分布区域内且在缓冲区域内,则系数在第二系数X和第一系数Y之间平滑过渡,以保证拼接的连续性。In one embodiment, the position of each pixel is judged when the panoramic expansion is performed. If the pixel falls within the first distribution area and is located in the black edge connection area, the focal length is multiplied by the first coefficient Y (X>Y>1) to ensure that no black edge is exposed; if the pixel is within the first distribution area and within the buffer area, the coefficient is smoothly transitioned between the second coefficient X and the first coefficient Y to ensure the continuity of the stitching.
步骤S105、基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。Step S105: Based on the field angle coefficient corresponding to each pixel, adjust the field angle of each pixel in the image to be corrected to obtain a corrected image.
本实施例中,根据各像素对应的视场角参数,调整各像素的视场角,从而获得无黑边的矩形校正图片。In this embodiment, the field of view of each pixel is adjusted according to the field of view angle parameter corresponding to each pixel, so as to obtain a rectangular corrected image without black edges.
本实施例提供了一种用于水下拍摄图片的校正方法,所述方法通过对待校正图片的图片区域划分,将对黑边分布位置影响不同的区域的进行区分,从而便于对各分布区域进行针对性的视场角调整。通过检测待校正图片中各像素在第一分布区域和第二分布区域的位置,对处于不同分布位置的像素执行不同的视场角系数调整,使得靠近黑边分布位置的各像素膨胀,从而避免出现黑边区域,并实现对膨胀后的像素区域到正常区域的缓冲渐变,避免校正后的图片出现明显的视觉差异,以提高全景图像的拼接质量。This embodiment provides a correction method for underwater pictures, which divides the picture area of the picture to be corrected to distinguish the areas that are affected by the black edge distribution position, so as to facilitate targeted field of view adjustment for each distribution area. By detecting the position of each pixel in the picture to be corrected in the first distribution area and the second distribution area, different field of view angle coefficient adjustments are performed on pixels in different distribution positions, so that each pixel close to the black edge distribution position is expanded, thereby avoiding the appearance of a black edge area, and realizing a buffered gradient from the expanded pixel area to the normal area, avoiding obvious visual differences in the corrected picture, so as to improve the stitching quality of the panoramic image.
请参照图5,图5为本申请提供的一种用于水下拍摄图片的校正方法的第二实施例的流程示意图。Please refer to FIG. 5 , which is a flow chart of a second embodiment of a correction method for underwater pictures provided by the present application.
基于上述图2所示实施例,本实施例中,所述步骤S101之前,具体还包括:Based on the embodiment shown in FIG. 2 , in this embodiment, before step S101, the following steps are specifically included:
步骤S201、获得所述全景相机的两个水下摄像头拍摄的待拼接图片;Step S201, obtaining the pictures to be stitched taken by the two underwater cameras of the panoramic camera;
步骤S202、基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数;Step S202: determining stitching field angle parameters corresponding to each of the images to be stitched based on the shooting distance between the main shooting object in the normal area of each of the images to be stitched and the corresponding shooting lens;
本实施例中,每个FOV(视场角)都会匹配一个最佳的拍摄距离,在该拍摄距离画面中的图像变形量会小于设定值,而该变形量是由图像在镜头中间拍摄和在边缘拍摄的差异量确定。In this embodiment, each FOV (field of view) will match an optimal shooting distance, at which the image deformation in the picture will be less than a set value, and the deformation is determined by the difference between the image shot in the middle of the lens and shot at the edge.
在一实施例中,在水下摄像头拍摄的待拼接图片中,正常区域的像素形变量最小,也即表示正常区域内的主要拍摄物体对应的拍摄距离更加精确,所以对于水下摄像头拍摄的待拼接图片,以图片中的正常区域作为对齐依据,其拼接效果以及拼接质量会更好。In one embodiment, in the pictures to be stitched taken by an underwater camera, the pixel deformation amount in the normal area is the smallest, which means that the shooting distance corresponding to the main shooting object in the normal area is more accurate. Therefore, for the pictures to be stitched taken by the underwater camera, the normal area in the picture is used as the basis for alignment, and the stitching effect and stitching quality will be better.
在一实施例中,在设置各待拼接图片对应的目标视场角参数之前,需要检测各待拼接图片中正常区域内的主要拍摄物体与对应的拍摄镜头之间的拍摄距离,并根据预设视场角参数表,查找该拍摄距离对应的最佳视场角参数。In one embodiment, before setting the target field of view angle parameters corresponding to each image to be stitched, it is necessary to detect the shooting distance between the main shooting object in the normal area of each image to be stitched and the corresponding shooting lens, and find the optimal field of view angle parameter corresponding to the shooting distance according to the preset field of view angle parameter table.
其中,视场角在光学工程中又称视场,是指在一般环境中,相机可以接收影像的角度范围。视场角的大小决定了光学仪器的视野范围,视场角越大,视野就越大,光学倍率就越小。视场角又可用FOV表示,其与焦距的关系如下:像高 = EFL*tan (0.5FOV);EFL为焦距;FOV为视场角。The field of view is also called the field of view in optical engineering, which refers to the angle range of the image that the camera can receive in a general environment. The size of the field of view determines the field of view of the optical instrument. The larger the field of view, the larger the field of view and the smaller the optical magnification. The field of view can also be expressed by FOV, and its relationship with the focal length is as follows: image height = EFL*tan (0.5FOV); EFL is the focal length; FOV is the field of view.
进一步地,基于上述图3所述实施例,所述步骤S202具体包括:Further, based on the embodiment described in FIG. 3 , step S202 specifically includes:
在所述各待拼接图片中所述正常区域内存在多个所述主要拍摄物体时,基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级;When there are a plurality of the main photographing objects in the normal area of each of the pictures to be stitched, determining the priority of each of the main photographing objects based on the position of each of the main photographing objects in each of the pictures to be stitched;
基于所述各主要拍摄物体的优先级以及所述各主要拍摄物体与对应的拍摄镜头之间的拍摄距离,确定所述各待拼接图片对应的优先拍摄距离;Determining the priority shooting distances corresponding to the pictures to be stitched based on the priorities of the main shooting objects and the shooting distances between the main shooting objects and the corresponding shooting lenses;
基于所述优先拍摄距离以及所述预设视场角参数表,确定所述优先拍摄距离对应的视场角参数,作为所述各待拼接图片对应的所述拼接视场角参数。Based on the priority shooting distance and the preset field of view angle parameter table, the field of view angle parameter corresponding to the priority shooting distance is determined as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
本实施例中,摄像头拍摄的视场中会存在多个特征物体,即主要拍摄物体,分布在待拼接图片中的不同位置,对于鱼眼镜头,不同位置的主要拍摄物体,其形变量会存在较大差异,对于视场角参数计算的影响也各不相同,所以需要根据各主要拍摄物体对于拼接效果的影响程度确定各主要拍摄物体的优先级。In this embodiment, there will be multiple feature objects in the field of view captured by the camera, namely, the main photographed objects, which are distributed in different positions in the image to be stitched. For the fisheye lens, the main photographed objects at different positions will have greatly different deformation amounts, and their influence on the calculation of the field of view angle parameters will also be different. Therefore, it is necessary to determine the priority of each main photographed object according to the degree of influence of each main photographed object on the stitching effect.
在一实施例中,由所述各待拼接图片的中央位置到各待拼接图片的接缝位置,所述主要拍摄物体的优先级逐渐递增,其中,位于所述接缝位置的所述主要拍摄物体的优先级最高。In one embodiment, the priority of the main photographed object gradually increases from the center position of each of the to-be-joined pictures to the seam position of each of the to-be-joined pictures, wherein the main photographed object located at the seam position has the highest priority.
在一实施例中,鱼眼镜头的边缘位置像素形变量大于图片中央位置的像素形变量,也即位于中央位置的主要拍摄物体,计算其距离拍摄镜头的距离最准确;而越是靠近边缘位置的像素形变量越大,其中,接缝位置的像素形变量最大,也即接缝位置的主要拍摄物体对应的拍摄距离越不准确,所以需要对接缝位置的主要拍摄物体进行重点优化,同时,接缝位置的主要拍摄物体也是相邻两张待拼接图片在拼接时的主要参照物,为了提高拼接效果,需要对接缝位置的主要拍摄物优先校正,所以接缝位置的主要拍摄物体优先级最高。In one embodiment, the pixel deformation amount at the edge position of the fisheye lens is greater than the pixel deformation amount at the center position of the image, that is, the main photographed object at the center position is located, and its distance from the photographing lens is calculated most accurately; and the pixel deformation amount is larger the closer to the edge position, among which the pixel deformation amount at the seam position is the largest, that is, the shooting distance corresponding to the main photographed object at the seam position is less accurate, so it is necessary to focus on optimizing the main photographed object at the seam position. At the same time, the main photographed object at the seam position is also the main reference object when stitching two adjacent pictures to be stitched. In order to improve the stitching effect, the main photographed object at the seam position needs to be corrected first, so the main photographed object at the seam position has the highest priority.
在一实施例中,当确定各待拼接图片中的主要拍摄物体时,综合考虑各待拼接图片中的主要拍摄物体与各自对应的拍摄镜头之间的拍摄距离,从而计算得到一个可以将所有待拼接图片调节到形变量最接近的拍摄距离,作为所有待拼接图片唯一的优先拍摄距离。In one embodiment, when determining the main photographed object in each picture to be stitched, the shooting distance between the main photographed object in each picture to be stitched and the corresponding shooting lens is comprehensively considered, so as to calculate a shooting distance that can adjust all pictures to be stitched to the closest deformation amount, and use it as the only priority shooting distance for all pictures to be stitched.
步骤S203、基于预设视场角参数表和所述拼接视场角参数,对所述各拍摄镜头对应的所述待拼接图片进行视场角参数调整,获得各拍摄镜头对应的所述待校正图片。Step S203: Based on the preset field angle parameter table and the stitching field angle parameter, adjust the field angle parameter of the to-be-stitched pictures corresponding to the respective shooting lenses to obtain the to-be-corrected pictures corresponding to the respective shooting lenses.
在一实施例中,对比预设视场角参数表,查找优先拍摄距离对应的视场角参数,该视场角参数即为各待拼接图片对应的目标视场角参数。In one embodiment, the preset field angle parameter table is compared to find the field angle parameter corresponding to the priority shooting distance, and the field angle parameter is the target field angle parameter corresponding to each of the pictures to be stitched.
在一实施例中,各待拼接图片均可以采用该目标视场角参数进行参数调节,以使得各待拼接图片在进行视场角参数调节之后能够实现接缝对齐。In one embodiment, each of the images to be spliced may be adjusted using the target field angle parameter, so that the seams of each of the images to be spliced can be aligned after the field angle parameter adjustment.
在一实施例中,在预设视场角参数表中,各视场角参数表均对应一个最佳拍摄距离和景深范围,形成一个拍摄距离范围,在该拍摄距离范围内的拍摄距离,均对应该视场角参数。比如视场角参数为193°,其对应的最佳拍摄距离为2.25m,景深为0.1m,则其对应的拍摄距离范围为2.2m-2.3m,在拍摄距离范围内的拍摄距离(如2.23m)均对应视场角参数193°。In one embodiment, in the preset field angle parameter table, each field angle parameter table corresponds to an optimal shooting distance and depth of field range, forming a shooting distance range, and the shooting distances within the shooting distance range all correspond to the field angle parameter. For example, if the field angle parameter is 193°, the corresponding optimal shooting distance is 2.25m, and the depth of field is 0.1m, then the corresponding shooting distance range is 2.2m-2.3m, and the shooting distances within the shooting distance range (such as 2.23m) all correspond to the field angle parameter 193°.
为了进一步对拼接画面进行优化,基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数的步骤还可包括:In order to further optimize the stitched picture, based on the shooting distance between the main shooting object in the normal area of each picture to be stitched and the corresponding shooting lens, the step of determining the stitching field angle parameters corresponding to each picture to be stitched may also include:
基于相邻待拼接图片中正常区域内的主要拍摄物体与对应的拍摄镜头之间的拍摄距离,获取相邻待拼接图片之间的拍摄距离差;在相邻待拼接图片之间的拍摄距离差小于预设距离差(或预设FOV值差)时,可基于相邻待拼接图片各自对应的拍摄距离和预设视场角参数表,确定相邻待拼接图片的正常区域各自对应的目标视场角参数。即相邻的两个待拼接图片的FOV值不同,可以较好的保证每个待拼接图片各自的画面显示质量;同时相邻的两个待拼接图片的拍摄距离差较小或FOV值差较小,又可较好的保证相邻两个待拼接图片之间的拼接质量。Based on the shooting distance between the main shooting object in the normal area of the adjacent pictures to be stitched and the corresponding shooting lens, the shooting distance difference between the adjacent pictures to be stitched is obtained; when the shooting distance difference between the adjacent pictures to be stitched is less than the preset distance difference (or preset FOV value difference), the target field of view angle parameters corresponding to the normal area of the adjacent pictures to be stitched can be determined based on the shooting distance corresponding to each of the adjacent pictures to be stitched and the preset field of view angle parameter table. That is, the FOV values of the two adjacent pictures to be stitched are different, which can better guarantee the image display quality of each picture to be stitched; at the same time, the shooting distance difference or FOV value difference of the two adjacent pictures to be stitched is small, which can better guarantee the stitching quality between the two adjacent pictures to be stitched.
在一实施例中,在通过对待拼接图片的FOV进行调优之后,通过图像拼接模块,将各待拼接图片进行拼接,获得目标图片,即全景图片。In one embodiment, after the FOV of the pictures to be stitched is optimized, the pictures to be stitched are stitched together by an image stitching module to obtain a target picture, that is, a panoramic picture.
在一实施例中,图像拼接模块可以包括图像拼接算法,也可以是现有视觉模块,如图像拼接Stitching模块。In one embodiment, the image stitching module may include an image stitching algorithm, or may be an existing visual module, such as an image stitching module.
在一实施例中,图像拼接的步骤基本包括:特征点提取与匹配、图像配准、投影变换、拼缝计算、图像融合等。首先对输入图像提取鲁棒的特征点,并根据特征描述子完成特征点的匹配,然后根据已经匹配的特征点对得到相邻图像的位置关系从而进行图像配准,由于直接进行图像配准会破坏视场的一致性,因而先将图像投影在球面或者柱面上,最后计算相邻图像的拼缝并完成重叠区域的融合,得到最终的全景图像。In one embodiment, the steps of image stitching basically include: feature point extraction and matching, image registration, projection transformation, stitching calculation, image fusion, etc. First, robust feature points are extracted from the input image, and feature point matching is completed according to feature descriptors. Then, the positional relationship of adjacent images is obtained according to the matched feature point pairs to perform image registration. Since direct image registration will destroy the consistency of the field of view, the image is first projected on a spherical or cylindrical surface, and finally the stitching of adjacent images is calculated and the fusion of the overlapping area is completed to obtain the final panoramic image.
请参阅图6,图6是本申请实施例提供的一种用于水下拍摄图片的校正装置的示意性框图。该用于水下拍摄图片的校正装置用于执行前述的用于水下拍摄图片的校正方法。其中,该用于水下拍摄图片的校正装置可以配置于服务器和终端中。Please refer to FIG6 , which is a schematic block diagram of a correction device for underwater photographing provided in an embodiment of the present application. The correction device for underwater photographing is used to execute the aforementioned correction method for underwater photographing. The correction device for underwater photographing can be configured in a server and a terminal.
如图6所示,该用于水下拍摄图片的校正装置300,包括:图片获取模块301、图片区域划分模块302、图片展开模块、视场角系数设置模块304、图片校正模块305。As shown in FIG. 6 , the correction device 300 for underwater picture shooting includes: a picture acquisition module 301 , a picture area division module 302 , a picture expansion module, a field angle coefficient setting module 304 , and a picture correction module 305 .
图片获取模块301,用于获取全景相机在水下拍摄的待校正图片;The picture acquisition module 301 is used to acquire the picture to be corrected taken underwater by the panoramic camera;
图片区域划分模块302,用于基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;The image region division module 302 is used to divide the image to be corrected into regions based on a preset division angle to obtain a first distribution region;
图片展开模块303,用于展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;The picture expansion module 303 is used to expand the picture to be corrected to obtain an expanded picture, and divide the expanded picture into regions based on the distribution positions of black edges in the expanded picture to obtain a second distribution region;
视场角系数设置模块304,用于检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;A viewing angle coefficient setting module 304 is used to detect the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area, and set the viewing angle coefficient corresponding to each pixel;
图片校正模块305,用于基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。The image correction module 305 is used to adjust the field angle of each pixel in the image to be corrected based on the field angle coefficient corresponding to each pixel to obtain a corrected image.
在一实施例中,所述第二分布区域包括黑边连接区域、缓冲区域和正常区域。In one embodiment, the second distribution area includes a black edge connection area, a buffer area and a normal area.
在一实施例中,视场角系数设置模块304,还用于在所述各像素的分布位置位于所述第一分布区域且位于所述黑边连接区域时,设置所述各像素对应的视场角系数为第一系数;在所述各像素的分布位置位于所述第一分布区域且位于所述缓冲区域时,设置所述各像素对应的视场角系数为缓冲系数,其中,所述缓冲系数为第一系数到第二系数范围之间的视场角系数;在所述各像素的分布位置位于所述正常区域时,设置所述各像素对应的视场角系数为1。In one embodiment, the field angle coefficient setting module 304 is further used to set the field angle coefficient corresponding to each pixel to the first coefficient when the distribution position of each pixel is located in the first distribution area and in the black border connection area; set the field angle coefficient corresponding to each pixel to the buffer coefficient when the distribution position of each pixel is located in the first distribution area and in the buffer area, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient; and set the field angle coefficient corresponding to each pixel to 1 when the distribution position of each pixel is located in the normal area.
在一实施例中,所述第一系数大于1且小于所述第二系数。In one embodiment, the first coefficient is greater than 1 and less than the second coefficient.
在一实施例中,所述水下拍摄图片的校正装置300还包括图像拼接校正模块,用于获得所述全景相机的两个水下摄像头拍摄的待拼接图片;基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数;基于预设视场角参数表和所述拼接视场角参数,对所述各拍摄镜头对应的所述待拼接图片进行视场角参数调整,获得各拍摄镜头对应的所述待校正图片。In one embodiment, the underwater picture correction device 300 also includes an image stitching correction module, which is used to obtain the pictures to be stitched taken by the two underwater cameras of the panoramic camera; based on the shooting distance between the main shooting object in the normal area of each picture to be stitched and the corresponding shooting lens, determine the stitching field angle parameters corresponding to each picture to be stitched; based on the preset field angle parameter table and the stitching field angle parameters, adjust the field angle parameters of the pictures to be stitched corresponding to each shooting lens to obtain the pictures to be corrected corresponding to each shooting lens.
在一实施例中,所述图像拼接校正模块,还用于在所述各待拼接图片中所述正常区域内存在多个所述主要拍摄物体时,基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级;基于所述各主要拍摄物体的优先级以及所述各主要拍摄物体与对应的拍摄镜头之间的拍摄距离,确定所述各待拼接图片对应的优先拍摄距离;基于所述优先拍摄距离以及所述预设视场角参数表,确定所述优先拍摄距离对应的视场角参数,作为所述各待拼接图片对应的所述拼接视场角参数。In one embodiment, the image stitching correction module is further used to determine the priority of each main photographic object based on the position of each main photographic object in each of the pictures to be stitched when there are multiple main photographic objects in the normal area of each of the pictures to be stitched; determine the priority shooting distance corresponding to each of the pictures to be stitched based on the priority of each main photographic object and the shooting distance between each main photographic object and the corresponding shooting lens; and determine the field of view angle parameter corresponding to the priority shooting distance based on the priority shooting distance and the preset field of view angle parameter table as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
在一实施例中,所述图像拼接校正模块,还用于由所述各待拼接图片的中央位置到各待拼接图片的接缝位置,所述主要拍摄物体的优先级逐渐递增,其中,位于所述接缝位置的所述主要拍摄物体的优先级最高。In one embodiment, the image stitching correction module is further used to gradually increase the priority of the main photographed object from the central position of each to-be-stitched image to the seam position of each to-be-stitched image, wherein the main photographed object located at the seam position has the highest priority.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置和各模块的具体工作过程,可以参考前述用于水下拍摄图片的校正方法实施例中的对应过程,在此不再赘述。It should be noted that technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned correction method embodiment for underwater picture taking, and will not be repeated here.
上述实施例提供的装置可以实现为一种计算机程序的形式,该计算机程序可以在如图7所示的计算机设备上运行。The apparatus provided in the above embodiment may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in FIG. 7 .
请参阅图7,图7是本申请实施例提供的一种计算机设备的结构示意性框图。该计算机设备可以是终端。Please refer to Fig. 7, which is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a terminal.
参阅图7,该计算机设备包括通过系统总线连接的处理器、存储器和网络接口,其中,存储器可以包括非易失性存储介质和内存储器。Referring to FIG. 7 , the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
非易失性存储介质可存储操作系统和计算机程序。该计算机程序包括程序指令,该程序指令被执行时,可使得处理器执行任意一种用于水下拍摄图片的校正方法。The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any correction method for underwater photography.
处理器用于提供计算和控制能力,支撑整个计算机设备的运行。The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
内存储器为非易失性存储介质中的计算机程序的运行提供环境,该计算机程序被处理器执行时,可使得处理器执行任意一种用于水下拍摄图片的校正方法。The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any correction method for underwater photography.
该网络接口用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that the structure shown in FIG. 7 is only a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
应当理解的是,处理器可以是中央处理单元 (Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
其中,在一个实施例中,所述处理器用于运行存储在存储器中的计算机程序,以实现如下步骤:In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
获取全景相机在水下拍摄的待校正图片;Obtaining the picture to be corrected taken by the panoramic camera underwater;
基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;Based on a preset division angle, the image to be corrected is divided into regions to obtain a first distribution region;
展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;Expanding the image to be corrected to obtain an expanded image, and dividing the expanded image into regions based on the distribution positions of black edges in the expanded image to obtain a second distribution region;
检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;Detecting the distribution position of each pixel in the to-be-corrected image in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel;
基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。Based on the field angle coefficient corresponding to each pixel, the field angle of each pixel in the image to be corrected is adjusted to obtain a corrected image.
在一个实施例中,所述第二分布区域包括黑边连接区域、缓冲区域和正常区域。In one embodiment, the second distribution area includes a black edge connection area, a buffer area and a normal area.
在一个实施例中,所述处理器在实现所述检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数时,还实现:In one embodiment, when the processor detects the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area and sets the field angle coefficient corresponding to each pixel, it further implements:
在所述各像素的分布位置位于所述第一分布区域且位于所述黑边连接区域时,设置所述各像素对应的视场角系数为第一系数;When the distribution position of each pixel is located in the first distribution area and in the black border connection area, setting the field angle coefficient corresponding to each pixel to the first coefficient;
在所述各像素的分布位置位于所述第一分布区域且位于所述缓冲区域时,设置所述各像素对应的视场角系数为缓冲系数,其中,所述缓冲系数为第一系数到第二系数范围之间的视场角系数;When the distribution position of each pixel is located in the first distribution area and in the buffer area, setting the field angle coefficient corresponding to each pixel as the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient;
在所述各像素的分布位置位于所述正常区域时,设置所述各像素对应的视场角系数为1。When the distribution position of each pixel is located in the normal area, the field angle coefficient corresponding to each pixel is set to 1.
在一个实施例中,所述第一系数大于1且小于所述第二系数。In one embodiment, the first coefficient is greater than 1 and less than the second coefficient.
在一个实施例中,所述处理器在实现所述获取全景相机在水下拍摄的待校正图片之前,还实现:In one embodiment, before acquiring the picture to be corrected taken underwater by the panoramic camera, the processor further implements:
获得所述全景相机的两个水下摄像头拍摄的待拼接图片;Obtaining pictures to be stitched taken by two underwater cameras of the panoramic camera;
基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数;Determine the stitching field angle parameters corresponding to each of the images to be stitched based on the shooting distance between the main shooting object in the normal area of each of the images to be stitched and the corresponding shooting lens;
基于预设视场角参数表和所述拼接视场角参数,对所述各拍摄镜头对应的所述待拼接图片进行视场角参数调整,获得各拍摄镜头对应的所述待校正图片。Based on the preset field angle parameter table and the stitching field angle parameters, the field angle parameters of the to-be-stitched pictures corresponding to the respective shooting lenses are adjusted to obtain the to-be-corrected pictures corresponding to the respective shooting lenses.
在一个实施例中,所述处理器在实现所述基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各校正图片对应的拼接视场角参数时,还实现:In one embodiment, when the processor determines the stitching field angle parameters corresponding to each corrected image based on the shooting distance between the main shooting object in the normal area of each image to be stitched and the corresponding shooting lens, it further implements:
在所述各待拼接图片中所述正常区域内存在多个所述主要拍摄物体时,基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级;When there are a plurality of the main photographing objects in the normal area of each of the pictures to be stitched, determining the priority of each of the main photographing objects based on the position of each of the main photographing objects in each of the pictures to be stitched;
基于所述各主要拍摄物体的优先级以及所述各主要拍摄物体与对应的拍摄镜头之间的拍摄距离,确定所述各待拼接图片对应的优先拍摄距离;Determining the priority shooting distances corresponding to the pictures to be stitched based on the priorities of the main shooting objects and the shooting distances between the main shooting objects and the corresponding shooting lenses;
基于所述优先拍摄距离以及所述预设视场角参数表,确定所述优先拍摄距离对应的视场角参数,作为所述各待拼接图片对应的所述拼接视场角参数。Based on the priority shooting distance and the preset field of view angle parameter table, the field of view angle parameter corresponding to the priority shooting distance is determined as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
在一个实施例中,所述处理器在实现所述基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级时,还实现:In one embodiment, when the processor determines the priority of each main photographed object based on the position of each main photographed object in each of the to-be-stitched pictures, the processor further implements:
由所述各待拼接图片的中央位置到各待拼接图片的接缝位置,所述主要拍摄物体的优先级逐渐递增,其中,位于所述接缝位置的所述主要拍摄物体的优先级最高。From the center position of each of the to-be-joined pictures to the seam position of each of the to-be-joined pictures, the priority of the main photographed object gradually increases, wherein the main photographed object located at the seam position has the highest priority.
本申请的实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现本申请实施例提供的任一种用于水下拍摄图片的校正方法。A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the correction methods for underwater photography provided in the embodiments of the present application.
其中,所述计算机可读存储介质可以是前述实施例所述的计算机设备的内部存储单元,例如所述计算机设备的硬盘或内存。所述计算机可读存储介质也可以是所述计算机设备的外部存储设备,例如所述计算机设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims (15)
- 一种用于水下拍摄图片的校正方法,其包括:A correction method for underwater photography, comprising:获取全景相机在水下拍摄的待校正图片;Obtaining the picture to be corrected taken by the panoramic camera underwater;基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;Based on a preset division angle, the image to be corrected is divided into regions to obtain a first distribution region;展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;Expanding the image to be corrected to obtain an expanded image, and dividing the expanded image into regions based on the distribution positions of black edges in the expanded image to obtain a second distribution region;检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;Detecting the distribution position of each pixel in the to-be-corrected image in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel;基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。Based on the field angle coefficient corresponding to each pixel, the field angle of each pixel in the image to be corrected is adjusted to obtain a corrected image.
- 根据权利要求1所述的用于水下拍摄图片的校正方法,其中所述第二分布区域包括黑边连接区域、缓冲区域和正常区域。The correction method for underwater pictures according to claim 1, wherein the second distribution area includes a black edge connection area, a buffer area and a normal area.
- 根据权利要求2所述的用于水下拍摄图片的校正方法,其中所述检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数,包括:The correction method for underwater pictures according to claim 2, wherein the detecting the distribution position of each pixel in the picture to be corrected in the first distribution area and the second distribution area, and setting the field angle coefficient corresponding to each pixel, comprises:在所述各像素的分布位置位于所述第一分布区域且位于所述黑边连接区域时,设置所述各像素对应的视场角系数为第一系数;When the distribution position of each pixel is located in the first distribution area and in the black border connection area, setting the field angle coefficient corresponding to each pixel to the first coefficient;在所述各像素的分布位置位于所述第一分布区域且位于所述缓冲区域时,设置所述各像素对应的视场角系数为缓冲系数,其中,所述缓冲系数为第一系数到第二系数范围之间的视场角系数;When the distribution position of each pixel is located in the first distribution area and in the buffer area, setting the field angle coefficient corresponding to each pixel as the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient;在所述各像素的分布位置位于所述正常区域时,设置所述各像素对应的视场角系数为1。When the distribution position of each pixel is located in the normal area, the field angle coefficient corresponding to each pixel is set to 1.
- 根据权利要求3所述的用于水下拍摄图片的校正方法,其中所述第一系数大于1且小于所述第二系数。The correction method for underwater photography according to claim 3, wherein the first coefficient is greater than 1 and less than the second coefficient.
- 根据权利要求2所述的用于水下拍摄图片的校正方法,其中所述获取全景相机在水下拍摄的待校正图片之前,还包括:The method for correcting underwater pictures according to claim 2, wherein before obtaining the picture to be corrected taken by the panoramic camera underwater, the method further comprises:获得所述全景相机的两个水下摄像头拍摄的待拼接图片;Obtaining pictures to be stitched taken by two underwater cameras of the panoramic camera;基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数;Determine the stitching field angle parameters corresponding to each of the images to be stitched based on the shooting distance between the main shooting object in the normal area of each of the images to be stitched and the corresponding shooting lens;基于预设视场角参数表和所述拼接视场角参数,对所述各拍摄镜头对应的所述待拼接图片进行视场角参数调整,获得各拍摄镜头对应的所述待校正图片。Based on the preset field angle parameter table and the stitching field angle parameters, the field angle parameters of the to-be-stitched pictures corresponding to the respective shooting lenses are adjusted to obtain the to-be-corrected pictures corresponding to the respective shooting lenses.
- 根据权利要求5所述的用于水下拍摄图片的校正方法,其中所述基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各校正图片对应的拼接视场角参数,包括:According to the correction method for underwater pictures according to claim 5, the determining of the stitching field angle parameters corresponding to each of the corrected pictures based on the shooting distance between the main shooting object in the normal area of each of the pictures to be stitched and the corresponding shooting lens comprises:在所述各待拼接图片中所述正常区域内存在多个所述主要拍摄物体时,基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级;When there are a plurality of the main photographing objects in the normal area of each of the pictures to be stitched, determining the priority of each of the main photographing objects based on the position of each of the main photographing objects in each of the pictures to be stitched;基于所述各主要拍摄物体的优先级以及所述各主要拍摄物体与对应的拍摄镜头之间的拍摄距离,确定所述各待拼接图片对应的优先拍摄距离;Determining the priority shooting distances corresponding to the pictures to be stitched based on the priorities of the main shooting objects and the shooting distances between the main shooting objects and the corresponding shooting lenses;基于所述优先拍摄距离以及所述预设视场角参数表,确定所述优先拍摄距离对应的视场角参数,作为所述各待拼接图片对应的所述拼接视场角参数。Based on the priority shooting distance and the preset field of view angle parameter table, the field of view angle parameter corresponding to the priority shooting distance is determined as the stitching field of view angle parameter corresponding to each of the pictures to be stitched.
- 根据权利要求6所述的用于水下拍摄图片的校正方法,其中所述基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级,包括:The method for correcting underwater pictures according to claim 6, wherein the step of determining the priority of each main photographed object based on the position of each main photographed object in each of the pictures to be stitched comprises:由所述各待拼接图片的中央位置到各待拼接图片的接缝位置,所述主要拍摄物体的优先级逐渐递增,其中,位于所述接缝位置的所述主要拍摄物体的优先级最高。From the center position of each of the to-be-joined pictures to the seam position of each of the to-be-joined pictures, the priority of the main photographed object gradually increases, wherein the main photographed object located at the seam position has the highest priority.
- 一种用于水下拍摄图片的校正装置,其包括:A correction device for underwater photography, comprising:图片获取模块,用于获取全景相机在水下拍摄的待校正图片;An image acquisition module is used to acquire the image to be corrected taken underwater by the panoramic camera;图片区域划分模块,用于基于预设划分角度,对所述待校正图片进行区域划分,获得第一分布区域;A picture area division module, used for dividing the picture to be corrected into areas based on a preset division angle to obtain a first distribution area;图片展开模块,用于展开所述待校正图片,获得展开图片,并基于所述展开图片中的黑边分布位置,对所述展开图片进行区域划分,获得第二分布区域;A picture expansion module, used for expanding the picture to be corrected to obtain an expanded picture, and dividing the expanded picture into regions based on the distribution positions of black edges in the expanded picture to obtain a second distribution region;视场角系数设置模块,用于检测所述待校正图片中各像素在所述第一分布区域和所述第二分布区域的分布位置,设置各像素对应的视场角系数;A viewing angle coefficient setting module, used to detect the distribution position of each pixel in the image to be corrected in the first distribution area and the second distribution area, and set the viewing angle coefficient corresponding to each pixel;图片校正模块,用于基于所述各像素对应的视场角系数,对所述待校正图片中各像素的视场角进行调整,获得校正图片。The image correction module is used to adjust the field angle of each pixel in the image to be corrected based on the field angle coefficient corresponding to each pixel to obtain a corrected image.
- 根据权利要求8所述的用于水下拍摄图片的校正装置,其中所述第二分布区域包括黑边连接区域、缓冲区域和正常区域。The correction device for underwater photography according to claim 8, wherein the second distribution area includes a black edge connection area, a buffer area and a normal area.
- 根据权利要求9所述的用于水下拍摄图片的校正装置,其中视场角系数设置模块,还用于在所述各像素的分布位置位于所述第一分布区域且位于所述黑边连接区域时,设置所述各像素对应的视场角系数为第一系数;在所述各像素的分布位置位于所述第一分布区域且位于所述缓冲区域时,设置所述各像素对应的视场角系数为缓冲系数,其中,所述缓冲系数为第一系数到第二系数范围之间的视场角系数;在所述各像素的分布位置位于所述正常区域时,设置所述各像素对应的视场角系数为1。According to the correction device for underwater photography according to claim 9, the field angle coefficient setting module is further used to set the field angle coefficient corresponding to each pixel to the first coefficient when the distribution position of each pixel is located in the first distribution area and in the black edge connection area; when the distribution position of each pixel is located in the first distribution area and in the buffer area, the field angle coefficient corresponding to each pixel is set to the buffer coefficient, wherein the buffer coefficient is a field angle coefficient between the first coefficient and the second coefficient; when the distribution position of each pixel is located in the normal area, the field angle coefficient corresponding to each pixel is set to 1.
- 根据权利要求10所述的用于水下拍摄图片的校正装置,其中所述第一系数大于1且小于所述第二系数。The correction device for underwater photography according to claim 10, wherein the first coefficient is greater than 1 and less than the second coefficient.
- 根据权利要求9所述的用于水下拍摄图片的校正装置,其中所述水下拍摄图片的校正装置还包括图像拼接校正模块,用于获得所述全景相机的两个水下摄像头拍摄的待拼接图片;基于各待拼接图片中所述正常区域内的主要拍摄物体与对应的拍摄镜头的拍摄距离,确定所述各待拼接图片对应的拼接视场角参数;基于预设视场角参数表和所述拼接视场角参数,对所述各拍摄镜头对应的所述待拼接图片进行视场角参数调整,获得各拍摄镜头对应的所述待校正图片。According to claim 9, the correction device for underwater pictures further comprises an image stitching correction module for obtaining pictures to be stitched taken by the two underwater cameras of the panoramic camera; determining stitching field angle parameters corresponding to each picture to be stitched based on the shooting distance between the main shooting object in the normal area of each picture to be stitched and the corresponding shooting lens; and adjusting the field angle parameters of the pictures to be stitched corresponding to each shooting lens based on a preset field angle parameter table and the stitching field angle parameters to obtain the pictures to be stitched corresponding to each shooting lens.
- 根据权利要求12所述的用于水下拍摄图片的校正装置,其中所述图像拼接校正模块,还用于在所述各待拼接图片中所述正常区域内存在多个所述主要拍摄物体时,基于各主要拍摄物体在所述各待拼接图片中的位置,确定各主要拍摄物体的优先级;基于所述各主要拍摄物体的优先级以及所述各主要拍摄物体与对应的拍摄镜头之间的拍摄距离,确定所述各待拼接图片对应的优先拍摄距离;基于所述优先拍摄距离以及所述预设视场角参数表,确定所述优先拍摄距离对应的视场角参数,作为所述各待拼接图片对应的所述拼接视场角参数。According to the correction device for underwater photography according to claim 12, the image stitching correction module is further used to determine the priority of each main shooting object based on the position of each main shooting object in each picture to be stitched when there are multiple main shooting objects in the normal area of each picture to be stitched; determine the priority shooting distance corresponding to each picture to be stitched based on the priority of each main shooting object and the shooting distance between each main shooting object and the corresponding shooting lens; based on the priority shooting distance and the preset field of view angle parameter table, determine the field of view angle parameter corresponding to the priority shooting distance as the stitching field of view angle parameter corresponding to each picture to be stitched.
- 根据权利要求13所述的用于水下拍摄图片的校正装置,其中所述图像拼接校正模块,还用于由所述各待拼接图片的中央位置到各待拼接图片的接缝位置,所述主要拍摄物体的优先级逐渐递增,其中,位于所述接缝位置的所述主要拍摄物体的优先级最高。According to the correction device for underwater photography according to claim 13, the image stitching correction module is also used to gradually increase the priority of the main photographed object from the central position of each image to be stitched to the seam position of each image to be stitched, wherein the main photographed object located at the seam position has the highest priority.
- 一种计算机可读存储介质,其存储有用于水下拍摄图片的校正程序,其中所述用于水下拍摄图片的校正程序被处理器执行时,实现如权利要求1所述的用于水下拍摄图片的校正方法的步骤。A computer-readable storage medium stores a correction program for underwater pictures, wherein when the correction program for underwater pictures is executed by a processor, the steps of the correction method for underwater pictures as claimed in claim 1 are implemented.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211548285.3 | 2022-12-05 | ||
CN202211548285.3A CN115797210A (en) | 2022-12-05 | 2022-12-05 | Correction method and device for underwater shot picture and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024119619A1 true WO2024119619A1 (en) | 2024-06-13 |
Family
ID=85445563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/076736 WO2024119619A1 (en) | 2022-12-05 | 2023-02-17 | Correction method and apparatus for picture captured underwater, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115797210A (en) |
WO (1) | WO2024119619A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116612168B (en) * | 2023-04-20 | 2024-06-28 | 北京百度网讯科技有限公司 | Image processing method, device, electronic equipment, image processing system and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190335099A1 (en) * | 2016-06-14 | 2019-10-31 | Hangzhou Hikvision Digital Technology Co., Ltd. | Panoramic camera and photographing method thereof |
CN112862685A (en) * | 2021-02-09 | 2021-05-28 | 北京迈格威科技有限公司 | Image stitching processing method and device and electronic system |
CN113793382A (en) * | 2021-08-04 | 2021-12-14 | 北京旷视科技有限公司 | Video image splicing seam searching method and video image splicing method and device |
CN114066731A (en) * | 2021-11-11 | 2022-02-18 | 百度在线网络技术(北京)有限公司 | Method and device for generating panorama, electronic equipment and storage medium |
CN114332246A (en) * | 2021-12-30 | 2022-04-12 | 北京五一视界数字孪生科技股份有限公司 | Virtual simulation method and device for camera distortion |
-
2022
- 2022-12-05 CN CN202211548285.3A patent/CN115797210A/en active Pending
-
2023
- 2023-02-17 WO PCT/CN2023/076736 patent/WO2024119619A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190335099A1 (en) * | 2016-06-14 | 2019-10-31 | Hangzhou Hikvision Digital Technology Co., Ltd. | Panoramic camera and photographing method thereof |
CN112862685A (en) * | 2021-02-09 | 2021-05-28 | 北京迈格威科技有限公司 | Image stitching processing method and device and electronic system |
CN113793382A (en) * | 2021-08-04 | 2021-12-14 | 北京旷视科技有限公司 | Video image splicing seam searching method and video image splicing method and device |
CN114066731A (en) * | 2021-11-11 | 2022-02-18 | 百度在线网络技术(北京)有限公司 | Method and device for generating panorama, electronic equipment and storage medium |
CN114332246A (en) * | 2021-12-30 | 2022-04-12 | 北京五一视界数字孪生科技股份有限公司 | Virtual simulation method and device for camera distortion |
Also Published As
Publication number | Publication date |
---|---|
CN115797210A (en) | 2023-03-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6115606B2 (en) | Imaging apparatus and imaging system | |
US7899270B2 (en) | Method and apparatus for providing panoramic view with geometric correction | |
US10210622B2 (en) | Image processing device, image processing method, and recording medium storing program | |
WO2018214365A1 (en) | Image correction method, apparatus, device, and system, camera device, and display device | |
US9436973B2 (en) | Coordinate computation device and method, and an image processing device and method | |
WO2019232793A1 (en) | Two-camera calibration method, electronic device and computer-readable storage medium | |
JP5846172B2 (en) | Image processing apparatus, image processing method, program, and imaging system | |
TWI698127B (en) | Projection system and projection method | |
CN114125411B (en) | Projection device correction method, projection device correction device, storage medium and projection device | |
US11514608B2 (en) | Fisheye camera calibration system, method and electronic device | |
CN109685721B (en) | Panoramic picture splicing method, device, terminal and corresponding storage medium | |
WO2024119619A1 (en) | Correction method and apparatus for picture captured underwater, and storage medium | |
CN109785225B (en) | Method and device for correcting image | |
TW201931303A (en) | Method of providing image and electronic device for supporting the method | |
CN110784693A (en) | Projector correction method and projection system using same | |
JP6222205B2 (en) | Image processing device | |
WO2017221266A1 (en) | System and method for capturing horizontal disparity stereo panorama | |
US10785470B2 (en) | Image processing apparatus, image processing method, and image processing system | |
CN111353945A (en) | Fisheye image correction method, fisheye image correction device and storage medium | |
JP6439845B2 (en) | Image processing device | |
WO2024119620A1 (en) | Multi-head camera picture splicing method and device and storage medium | |
JP7575805B2 (en) | Method and apparatus for calculating actual distances between coordinates in an image | |
CN114157848B (en) | Projection device correction method, projection device correction device, storage medium and projection device | |
WO2023135842A1 (en) | Distance measurement device and method | |
CN111480335B (en) | Image processing device, image processing method, program, and projection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23899220 Country of ref document: EP Kind code of ref document: A1 |