Image processing device, image processing method, and recording medium

The image processing device combines a wide-angle monocular camera and stereo camera to detect and measure underwater object sizes by calculating distances and pixel numbers, addressing limitations in existing techniques for low transparency and crowded conditions, enabling more accurate size measurements in diverse underwater scenarios.

WO2024195022A1PCT designated stage expired Publication Date: 2024-09-26NEC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/011077
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Existing techniques for measuring the size of underwater objects, such as those using stereo cameras, are limited in situations with low transparency or crowded conditions, making it difficult to accurately estimate object sizes.

Method used

An image processing device and method that combines a wide-angle monocular camera and a stereo camera, with a terminal device capable of detecting object regions, calculating distances using information from different devices, and measuring object sizes based on pixel numbers and distances, allowing for more accurate size measurement in various underwater conditions.

Benefits of technology

Enables the measurement of underwater object sizes in more situations than conventional methods, including those with low transparency or crowded environments, by utilizing a wide-angle monocular camera and stereo camera system with advanced image processing techniques.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023011077_26092024_PF_FP
    Figure JP2023011077_26092024_PF_FP
Patent Text Reader

Abstract

An image processing device according to the present invention is configured as follows. On the basis of a captured image captured of an object in water by an image capture device, an object area detection means detects an object area that corresponds to an area that includes the object in the captured image. On the basis of information about the object from a device that is different from the image capture device, a distance calculation means calculates the distance to the object as included in the object area. On the basis of the distance and the number of pixels for the object in the captured image, a size measurement means measures the size of the object.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing device, image processing method, and recording medium

[0001] The present disclosure relates to techniques that can be used to measure the size of an object included in an image.

[0002] Techniques for measuring the size of an object included in an image have been proposed in the past.

[0003] Specifically, for example, Patent Document 1 discloses a technology for estimating the size of a fish based on images captured when a stereo camera is moved to a position where the side of the fish faces the imaging plane of the camera directly. Patent Document 1 also discloses a technology for determining the positional relationship between the stereo camera and the fish using the depth distance from the stereo camera to the fish, and for determining whether the side of the fish faces the imaging plane of the stereo camera directly based on the positional relationship.

[0004] International Publication No. 2021 / 130950

[0005] However, the technology disclosed in Patent Document 1 has the problem that it may not be possible to estimate the size of the fish in situations where there are problems with either stereo camera photography or distance measurement, such as when the water around the fish is not very transparent or when there are a lot of fish in the water.

[0006] One object of the present disclosure is to provide an image processing device that is capable of measuring the size of underwater objects in more situations than ever before.

[0007] In one aspect of the present disclosure, an image processing device includes an object area detection means that detects an object area corresponding to an area including an object in a captured image obtained by photographing an underwater object with a photographing device, based on the captured image; a distance calculation means that calculates the distance to the object included in the object area based on information about the object obtained from a device different from the photographing device; and a size measurement means that measures the size of the object based on the number of pixels of the object in the photographed image and the distance.

[0008] In another aspect of the present disclosure, an image processing method detects an object area corresponding to an area containing an underwater object in a captured image obtained by photographing the object with a photographing device, calculates a distance to the object contained in the object area based on information about the object obtained from a device different from the photographing device, and measures the size of the object based on the number of pixels of the object in the captured image and the distance.

[0009] In yet another aspect of the present disclosure, a recording medium records a program that causes a computer to execute a process of detecting an object area corresponding to an area containing an underwater object in a captured image obtained by photographing the object with a photographing device, calculating a distance to the object contained in the object area based on information about the object obtained from a device different from the photographing device, and measuring the size of the object based on the number of pixels of the object in the photographed image and the distance.

[0010] According to the present disclosure, it is possible to measure the size of underwater objects in more situations than ever before.

[0011] 1 is a diagram showing an overview of the configuration of a measurement system including a terminal device according to a first embodiment. FIG. 1 is a diagram schematically showing an example of a state in which a stereo camera is attached to a wide-angle monocular camera. FIG. 2 is a block diagram showing an example of the hardware configuration of a terminal device according to a first embodiment. FIG. 3 is a block diagram showing an example of the functional configuration of a terminal device according to a first embodiment. FIG. 4 is a diagram showing an example of a state in which an underwater object is being photographed by a wide-angle monocular camera and a stereo camera, as viewed from above. FIG. 5 is a diagram showing an example of an image obtained by the wide-angle monocular camera. FIG. 6 is a diagram for explaining a specific example of object detection. FIG. 7 is a diagram for explaining a specific example of processing related to measuring the size of an object. FIG. 8 is a diagram showing an example of table data used in processing related to measuring the size of an object. FIG. 9 is a flowchart showing an example of processing performed in a terminal device according to the first embodiment. FIG. 10 is a block diagram showing an example of the functional configuration of an image processing device according to a second embodiment. FIG. 11 is a flowchart showing an example of processing performed in an image processing device according to the second embodiment.

[0012] Hereinafter, preferred embodiments of the present disclosure will be described with reference to the drawings.

[0013] First Embodiment [System Configuration] Fig. 1 is a diagram showing an overview of the configuration of a measurement system including a terminal device according to the first embodiment. The measurement system 1 is configured as a system capable of measuring the size of an underwater object, such as a fish, based on an image obtained by photographing the object. As shown in Fig. 1, the measurement system 1 includes a wide-angle monocular camera 10, a stereo camera 20, and a terminal device 100. Note that the measurement system 1 of this embodiment may also be configured as a system including a device that integrates the wide-angle monocular camera 10, the stereo camera 20, and the terminal device 100, such as an underwater drone.

[0014] [Wide-angle monocular camera and stereo camera] The wide-angle monocular camera 10 is configured as a camera capable of underwater photography. The wide-angle monocular camera 10 is connected to the terminal device 100 using an underwater cable or the like. The wide-angle monocular camera 10 outputs images (hereinafter also referred to as captured images) obtained by photographing a subject such as an underwater object TB to the terminal device 100.

[0015] FIG. 2 is a schematic diagram illustrating an example of a state in which a stereo camera is attached to a wide-angle monocular camera. The stereo camera 20 is configured as a camera capable of underwater photography. The stereo camera 20 is connected to the terminal device 100 via an underwater cable or the like. The stereo camera 20 is configured to be detachable from the wide-angle monocular camera 10. Specifically, as shown in FIGS. 1 and 2 , the stereo camera 20 is configured to be attachable to the top of the wide-angle monocular camera 10. When attached to the wide-angle monocular camera 10, the stereo camera 20 simultaneously captures the same subject as the wide-angle monocular camera 10 from different fields of view on the left and right, and outputs a set of images (hereinafter also referred to as stereo images) to the terminal device 100. Note that the measurement system 1 of this embodiment may be configured as a system having, for example, an apparatus that integrates the wide-angle monocular camera 10 and the stereo camera 20.

[0016] [Terminal Device] (Hardware Configuration) Fig. 3 is a block diagram showing an example of the hardware configuration of the terminal device according to embodiment 1. As shown in Fig. 3, the terminal device 100 has an interface (IF) 111, a processor 112, a memory 113, a recording medium 114, and a database (DB) 115.

[0017] The IF 111 inputs and outputs data to and from an external device. For example, an image captured by the wide-angle monocular camera 10 and a stereo image captured by the stereo camera 20 are input to the terminal device 100 via the IF 111.

[0018] The processor 112 is a computer such as a CPU (Central Processing Unit), and executes a program prepared in advance to control the entire terminal device 100. Specifically, the processor 112 performs, for example, processing related to the detection of an object included in an image captured by the wide-angle monocular camera 10, processing related to measuring the size of the object, and the like.

[0019] The memory 113 is configured by a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The memory 113 is also used as a working memory while the processor 112 is executing various processes.

[0020] The recording medium 114 is a non-volatile, non-transitory recording medium such as a disk-shaped recording medium or a semiconductor memory, and is configured to be detachable from the terminal device 100. The recording medium 114 records various programs to be executed by the processor 112. When the terminal device 100 executes various processes, the programs recorded on the recording medium 114 are loaded into the memory 113 and executed by the processor 112.

[0021] The DB 115 stores, for example, images input via the IF 111 and processing results obtained by processing by the processor 112 .

[0022] (Functional Configuration) Fig. 4 is a block diagram showing an example of the functional configuration of the terminal device according to the first embodiment. The terminal device 100 has a function as an image processing device. As shown in Fig. 4, the terminal device 100 also has an information storage unit 101, a preprocessing unit 102, an object detection unit 103, a distance calculation unit 104, and a size measurement unit 105.

[0023] The information storage unit 101 stores distortion correction parameters used in the processing of the preprocessing unit 102, an object detection model used in the processing of the object detection unit 103, and table data used in the processing of the size measurement unit 105. The distortion correction parameters may include, for example, at least one parameter set based on the optical characteristics of the wide-angle monocular camera 10. Furthermore, the object detection model is preferably trained to, for example, detect an area containing an object in an input image as an object area, detect a predetermined element contained within the object area, and output information indicating the position of the object area in the input image and information regarding the predetermined element. The table data includes data indicating the relationship between the distance from the stereo camera 20 to the object TB and the actual length corresponding to one pixel of the captured image obtained by capturing an image of the object TB at that distance.

[0024] The pre-processing unit 102 functions as a distortion correction unit. The pre-processing unit 102 performs distortion correction processing on the captured image obtained by the wide-angle monocular camera 10, using distortion correction parameters read from the information storage unit 101. The pre-processing unit 102 outputs the captured image that has been subjected to the distortion correction processing to the object detection unit 103.

[0025] The object detection unit 103 functions as an object region detection unit. The object detection unit 103 inputs the captured image output from the preprocessing unit 102 into an object detection model read from the information storage unit 101, thereby detecting an object region in the captured image and predetermined elements included within the object region. The object detection unit 103 also acquires object detection information including the captured image obtained from the preprocessing unit 102, information indicating the position of the object region in the captured image, and information regarding predetermined elements included within the object region. The object detection unit 103 also outputs the object detection information to the distance calculation unit 104 and the size measurement unit 105.

[0026] The distance calculation unit 104 measures the distance from the stereo camera 20 to the object TB based on the stereo images output from the stereo camera 20 and the object detection information output from the object detection unit 103. The distance calculation unit 104 also outputs the distance to the size measurement unit 105.

[0027] The size measurement unit 105 functions as a size measurement unit. The size measurement unit 105 measures the size of an object included in the captured image of the object detection information based on the table data read from the information storage unit 101, the object detection information output from the object detection unit 103, and the distance output from the distance calculation unit 104. The size measurement unit 105 also outputs information indicating the size to the outside of the terminal device 100.

[0028] [Specific Example] Next, a specific example of this embodiment will be described. Note that, hereinafter, the description will be given taking an example in which the underwater object TB is a fish. Also, in the state shown in Figure 1, it is assumed that the wide-angle monocular camera 10 is placed in a position where it can capture an image of the side of the underwater object TB.

[0029] The user places the wide-angle monocular camera 10 equipped with the stereo camera 20 underwater, and then moves the wide-angle monocular camera 10 to a position where it can capture an image of the side of the object TB (see FIG. 1 ). This user operation allows the object TB to be captured with the entire side of the object TB within the angle of view θs of the wide-angle monocular camera 10, as shown in FIG. 5 . Furthermore, the user operation described above allows an image including a distance measurement point FP on the side of the object TB to be obtained, as shown in FIG. 5 . FIG. 5 is a diagram showing an example of an underwater object being captured by the wide-angle monocular camera and the stereo camera, viewed from above.

[0030] The wide-angle monocular camera 10 photographs the object TB in the state shown in Figures 1 and 5 to obtain a photographed image SGT as shown in Figure 6, for example, and outputs the photographed image SGT to the terminal device 100. Figure 6 is a diagram showing an example of an image obtained by the wide-angle monocular camera. The stereo camera 20 photographs the object TB in the state shown in Figures 1 and 5 to obtain a stereo image SGS, and outputs the obtained stereo image SGS to the terminal device 100.

[0031] The pre-processing unit 102 uses the distortion correction parameters PR read from the information storage unit 101 to perform distortion correction processing on the captured image SGT obtained by the wide-angle monocular camera 10. The pre-processing unit 102 also outputs the captured image SGT that has been subjected to the above-mentioned distortion correction processing to the object detection unit 103. It is desirable that the distortion correction parameters PR include, for example, a parameter that represents the distance to the object TB as a variable. The pre-processing unit 102 may also perform processing based on the distortion correction parameters PR and a distance DS, which will be described later, as the distortion correction processing on the captured image SGT.

[0032] 7 is a diagram illustrating a specific example of object detection. The object detection unit 103 inputs the captured image SGT output from the preprocessing unit 102 into the object detection model BDM read from the information storage unit 101, thereby detecting an area in the captured image SGT that includes an object TB as an object area BR (see FIG. 7). The object detection unit 103 also detects the pixel corresponding to the distance measurement point FP, the pixels corresponding to the two size measurement points SPH, and the pixels corresponding to the two size measurement points SPV as elements included within the object area BR (see FIG. 7).

[0033] The object detection model BDM is trained to, for example, detect a region containing a fish in an input image as an object region, detect distance measurement points and size measurement points contained within the object region, and output information indicating the position of the object region in the input image, information indicating the positions of the distance measurement points contained within the object region, and information indicating the positions of the size measurement points contained within the object region. The object region BR is detected, for example, as a rectangular region surrounding the side of the fish corresponding to the object TB, as shown in FIG. 7 . The object region BR may also be detected, for example, as a region along the contour of the side of the fish corresponding to the object TB. The distance measurement point FP is detected, for example, as a pixel corresponding to the fish's pectoral fin or a position close to the pectoral fin. The two size measurement points SPH are detected as pixels at two predetermined positions in the lateral direction of the side of the fish. One of the two size measurement points SPH is detected, for example, as a pixel corresponding to the tip of the fish's head (the tip of the snout). The other of the two size measurement points SPH is detected as a pixel corresponding to the end of the fish's tail fin. The two size measurement points SPV are detected as pixels at two predetermined positions in the vertical direction on the side of the fish's body. One of the two size measurement points SPV is detected as a pixel corresponding to, for example, the edge of the fish's dorsal fin. The other of the two size measurement points SPV is detected as a pixel corresponding to, for example, the base of the fish's pelvic fin.

[0034] The object detection unit 103 outputs object detection information BDJ including the captured image SGT, information indicating the position of the object region BR in the captured image SGT, information indicating the positions of two size measurement points SPH in the captured image SGT, and information indicating the positions of two size measurement points SPV in the captured image SGT to the distance calculation unit 104 and the size measurement unit 105.

[0035] According to the processing described above, the object detection unit 103 can detect an object region BR corresponding to the region containing the object TB in the captured image SGT based on the captured image SGT obtained by photographing the underwater object TB with a photographing device.

[0036] The distance calculation unit 104 calculates a distance DS from the stereo camera 20 to the object TB based on the stereo images SGS output from the stereo camera 20 and the object detection information BDJ output from the object detection unit 103. Specifically, the distance calculation unit 104 identifies a distance measurement point FP on the side of the object TB based on the object detection information BDJ, and calculates a distance DS (see FIG. 5 ) from the stereo camera 20 to the distance measurement point FP based on the magnitude of parallax acquired from the stereo images SGS. That is, the distance calculation unit 104 can calculate a distance DS to the object TB included in the object region BR of the object detection information BDJ based on the stereo images SGS corresponding to information about the object TB obtained from the stereo camera 20. The distance calculation unit 104 also outputs the distance DS to the size measurement unit 105.

[0037] The size measurement unit 105 measures the size of the object TB included in the captured image SGT of the object detection information based on the table data read from the information storage unit 101, the object detection information BDJ output from the object detection unit 103, and the distance DS output from the distance calculation unit 104. The size measurement unit 105 also outputs information indicating the size of the object TB to the outside of the terminal device 100.

[0038] Specific examples of processing related to measuring the size of an object performed by the size measurement unit 105 will now be described with reference to Figures 8 to 10. Figure 8 is a diagram for explaining a specific example of processing related to measuring the size of an object. Figures 9 and 10 are diagrams showing examples of table data used in processing related to measuring the size of an object.

[0039] The size measurement unit 105 reads, for example, the table data TCZ shown in FIG. 9 and the table data TMZ shown in FIG.

[0040] The table data TCZ includes data indicating the relationship between the distance DS, the horizontal actual length LX corresponding to one pixel of the pixel group, and the vertical actual length LY corresponding to one pixel of the pixel group, for a pixel group belonging to a central portion CZ (see FIG. 8) of the captured image SGT obtained by capturing an image of the object TB at the distance DS. The table data TMZ includes data indicating the relationship between the distance DS, the horizontal actual length LX corresponding to one pixel of the pixel group, and the vertical actual length LY corresponding to one pixel of the pixel group, for a pixel group belonging to a peripheral portion MZ (see FIG. 8) of the captured image SGT obtained by capturing an image of the object TB at the distance DS.

[0041] The central portion CZ and the peripheral portion MZ may be set based on, for example, the image size of the captured image SGT.

[0042] The actual lengths LX and LY may be set, for example, as values ​​in millimeters or centimeters. Furthermore, the actual lengths LX and LY may be set as values ​​that increase as the distance DS increases. Specifically, for example, in the table data TCZ, when the distance DS satisfies DS1 < DS2, the actual length LX may be set to satisfy LA1 < LA2, and the actual length LY may be set to satisfy LB1 < LB2. Furthermore, for example, in the table data TMZ, when the distance DS satisfies DS1 < DS2, the actual length LX may be set to satisfy LC1 < LC2, and the actual length LY may be set to satisfy LD1 < LD2.

[0043] The actual lengths LX and LY associated with a distance DS may be set so that the value at the peripheral portion MZ is greater than the value at the central portion CZ. Specifically, for example, the actual length LX associated with the distance DS1 in the table data TCZ and TMZ may be set to a value that satisfies LA1<LC1. Furthermore, for example, the actual length LY associated with the distance DS1 in the table data TCZ and TMZ may be set to a value that satisfies LB1<LD1.

[0044] The size measurement unit 105 obtains an actual length LX corresponding to the distance DS in the object detection information BDJ by referencing the table data TCZ and TMZ. Furthermore, the size measurement unit 105 identifies the positions of two size measurement points SPH in the captured image SGT based on the object detection information BDJ and counts the number of pixels GH between the two identified size measurement points SPH. Furthermore, the size measurement unit 105 divides the number of pixels GH according to the position of each pixel between the two size measurement points SPH to obtain the number of pixels GHC of the pixel group belonging to the center portion CZ of the captured image SGT and the number of pixels GHM of the pixel group belonging to the peripheral portion MZ of the captured image SGT. Furthermore, the size measurement unit 105 calculates the size RTH of the side surface of the object TB in the lateral direction based on the actual length LX corresponding to the distance DS, the number of pixels GHC, and the number of pixels GHM. Specifically, for example, when DS=DS1, the size measurement unit 105 calculates the size RTH by calculating (LA1×GHC)+(LC1×GHM).Furthermore, for example, when DS=DS2, the size measurement unit 105 calculates the size RTH by calculating (LA2×GHC)+(LC2×GHM).

[0045] The size measurement unit 105 obtains an actual length LY corresponding to the distance DS in the object detection information BDJ by referencing the table data TCZ and TMZ. Furthermore, the size measurement unit 105 identifies the positions of two size measurement points SPV in the captured image SGT based on the object detection information BDJ and counts the number of pixels GV between the two identified size measurement points SPV. The size measurement unit 105 also divides the number of pixels GV according to the position of each pixel between the two size measurement points SPV to obtain the number of pixels GVC of the pixel group belonging to the central portion CZ of the captured image SGT and the number of pixels GVM of the pixel group belonging to the peripheral portion MZ of the captured image SGT. Note that, according to the captured image SGT illustrated in FIG. 8, the number of pixels GVM obtained is 0. Furthermore, the size measurement unit 105 calculates the vertical size RTV of the side surface of the object TB based on the actual length LY corresponding to the distance DS, the number of pixels GVC, and the number of pixels GVM. Specifically, for example, when DS=DS1, the size measurement unit 105 calculates the size RTV by calculating (LB1×GVC)+(LD1×GVM).Furthermore, for example, when DS=DS2, the size measurement unit 105 calculates the size RTV by calculating (LB2×GVC)+(LD2×GVM).

[0046] The size measurement unit 105 outputs information indicating the sizes RTH and RTV of the object TB measured by the above-described processing to the outside of the terminal device 100 .

[0047] According to the above-described process, when the object TB is a fish, the size measurement unit 105 can measure the total length of the fish as the size RTH. Also, when the object TB is a fish, the size measurement unit 105 can measure the body height of the fish as the size RTV.

[0048] According to the above-described processing, the size measurement unit 105 can measure the sizes RTH and RTV of the object TB based on the number of pixels of the object TB in the captured image SGT and the distance DS. Furthermore, the size measurement unit 105 can acquire the number of pixels GH between two measurement points SPH corresponding to positions detected from the object TB within the object region BR as the number of pixels of the object TB in the captured image SGT. Furthermore, the size measurement unit 105 can acquire the number of pixels GV between two measurement points SPV corresponding to positions detected from the object TB within the object region BR as the number of pixels of the object TB in the captured image SGT. Furthermore, the size measurement unit 105 can measure the size RTH of the object TB based on the number of pixels GH, the distance DS, and the actual lengths LX and LY corresponding to one pixel of the captured image SGT. Furthermore, the size measurement unit 105 can measure the size RTV of the object TB based on the number of pixels GV, the distance DS, and the actual lengths LX and LY corresponding to one pixel of the captured image SGT.

[0049] [Processing Flow] Next, a description will be given of the flow of processing performed in the terminal device according to the first embodiment. Fig. 11 is a flowchart showing an example of processing performed in the terminal device according to the first embodiment.

[0050] First, the terminal device 100 acquires an image of an underwater object captured by the wide-angle monocular camera 10, and performs distortion correction processing on the acquired image (step S11).

[0051] Next, the terminal device 100 inputs the captured image that has been subjected to distortion correction processing in step S11 into an object detection model, thereby detecting an object region containing an object in the captured image, pixels corresponding to distance measurement points in the object region, and pixels corresponding to four size measurement points in the vertical and horizontal directions of the object.The terminal device 100 then acquires object detection information including the captured image that has been subjected to distortion correction processing in step S11, information indicating the position of the object region in the captured image, and information indicating the positions of the four measurement points in the captured image (step S12).It is desirable that the four measurement points include two measurement points in the horizontal direction of the object included in the object region and two measurement points in the vertical direction of the object included in the object region.

[0052] Next, the terminal device 100 calculates the distance from the stereo camera 20 to the object photographed by the wide-angle monocular camera 10 based on the stereo image obtained by photographing the same object with the stereo camera 20 and the object detection information obtained in step S12 (step S13).

[0053] Next, the terminal device 100 measures the size of the object included in the captured image of the object detection information based on the table data TCZ and TMZ read from the information storage unit 101, the object detection information obtained in step S12, and the distance obtained in step S13 (step S14).

[0054] As described above, according to this embodiment, the distance to an underwater object can be calculated based on stereo images obtained by photographing the object with a stereo camera, and the size of the object at that distance can be measured based on images obtained by photographing the object with a wide-angle monocular camera. Therefore, according to this embodiment, the size of the object can be measured even in situations where the transparency of the area around the underwater object is low or where there are many objects in the water. Therefore, according to this embodiment, the size of underwater objects can be measured in more situations than conventional methods.

[0055] [Modifications] Modifications of the present embodiment will be described below. Note that, for simplicity, specific descriptions of parts to which the above-described processes can be applied will be omitted as appropriate.

[0056] (Variation 1) According to this embodiment, if the object TB is a fish, the object detection model BDM may be trained so that, for example, a pixel corresponding to the end of the fish's head is detected as one measurement point SPH and a pixel corresponding to a depression in the center of the fish's tail fin is detected as the other measurement point SPH. In such a case, the size measurement unit 105 can measure the fish's fork length as the size RTH.

[0057] (Variation 2) According to this embodiment, the distance calculation unit 104 may calculate the distance DS to the object TB included in the object region BR based on information about the object TB obtained from a device other than the wide-angle monocular camera 10 and the stereo camera 20. Specifically, the distance calculation unit 104 may calculate the distance DS based on information about the object TB obtained from an underwater LiDAR (Light Detection and Ranging) or information about the object TB obtained from an underwater sonar, for example.

[0058] (Variation 3) According to this embodiment, the size measurement unit 105 may acquire the actual lengths LX and LY corresponding to the distance DS by performing calculations using one or more functions instead of referring to the table data TCZ and TMZ. Furthermore, according to this embodiment, the size measurement unit 105 may measure the size of the object TB using, for example, one piece of table data indicating the relationship between the distance DS, the actual horizontal length LX corresponding to one pixel of each pixel included in the captured image SGT, and the actual vertical length LY corresponding to one pixel of each pixel included in the captured image SGT. Furthermore, according to this embodiment, the size measurement unit 105 may perform processing related to measuring the size of the object TB using, for example, table data corresponding to each of three or more regions in the captured image SGT.

[0059] (Variation 4) According to the present embodiment, for example, a server device or a cloud server provided external to the terminal device 100 may perform processing similar to that performed by the terminal device 100. Furthermore, according to the present embodiment, for example, a smartphone or a tablet computer may perform processing similar to that performed by the terminal device 100. Furthermore, according to the present embodiment, for example, the terminal device 100 may be configured as at least one server device included in a cloud server. In such a case, for example, the terminal device 100 may perform processing using captured images obtained from a first device connected to the wide-angle monocular camera 10 and stereo images obtained from a second device connected to the stereo camera 20.

[0060] Second Embodiment FIG. 12 is a block diagram showing an example of the functional configuration of an image processing apparatus according to a second embodiment.

[0061] The image processing device 500 according to this embodiment has the same hardware configuration as the terminal device 100. The image processing device 500 also has an object region detection unit 511, a distance calculation unit 512, and a size measurement unit 513.

[0062] FIG. 13 is a flowchart illustrating an example of processing performed in the image processing apparatus according to the second embodiment.

[0063] The object region detection means 511 detects an object region corresponding to a region including an underwater object in a photographed image obtained by photographing the object with a photographing device (step S51).

[0064] The distance calculation means 512 calculates the distance to the object included in the object region based on information about the object obtained from a device different from the image capturing device (step S52).

[0065] The size measurement means 513 measures the size of the object based on the number of pixels of the object in the captured image and the distance to the object (step S53).

[0066] According to this embodiment, the size of an object in water can be measured in more situations than ever before.

[0067] A part or all of the above-described embodiments can be described as, but not limited to, the following supplementary notes.

[0068] (Supplementary Note 1) An image processing device having: an object area detection means for detecting an object area corresponding to an area including an object in a photographed image obtained by photographing the object in water with a photographing device, based on the photographed image; a distance calculation means for calculating a distance to the object included in the object area, based on information about the object obtained from a device different from the photographing device; and a size measurement means for measuring the size of the object, based on the number of pixels of the object in the photographed image and the distance.

[0069] (Supplementary Note 2) The image processing device of Supplementary Note 1, wherein the size measurement means acquires the number of pixels between two measurement positions corresponding to positions detected from the object within the object area as the number of pixels of the object in the captured image, and measures the size of the object based on the number of pixels between the two measurement positions, the distance, and the actual length corresponding to one pixel of the captured image.

[0070] (Appendix 3) The image processing device of Appendix 2, wherein when the object is a fish, the size measurement means acquires the number of pixels between the pixel corresponding to the end of the head of the fish and the pixel corresponding to the end of the tail fin of the fish as the number of pixels between the two measurement positions, and measures the total length of the fish as the size of the object.

[0071] (Appendix 4) The image processing device of Appendix 2, wherein when the object is a fish, the size measurement means acquires the number of pixels between a pixel corresponding to the edge of the back of the fish and a pixel corresponding to the base of the pelvic fin of the fish as the number of pixels between the two measurement positions, and measures the body height of the fish as the size of the object.

[0072] (Appendix 5) The image processing device of Appendix 2, wherein when the object is a fish, the size measurement means acquires the number of pixels between the pixel corresponding to the end of the head of the fish and the pixel corresponding to the depression in the center of the tail fin of the fish as the number of pixels between the two measurement positions, and measures the fork length of the fish as the size of the object.

[0073] (Supplementary Note 6) The image processing device of Supplementary Note 1, wherein the distance calculation means calculates the distance to the object included in the object region based on information obtained from a stereo camera, LiDAR, or sonar.

[0074] (Supplementary Note 7) An image processing method that detects an object area corresponding to an area including an underwater object in a photographed image obtained by photographing the object with a photographing device, calculates a distance to the object included in the object area based on information about the object obtained from a device different from the photographing device, and measures the size of the object based on the number of pixels of the object in the photographed image and the distance.

[0075] (Appendix 8) A recording medium having recorded thereon a program that causes a computer to execute the following processes: based on a captured image obtained by photographing an underwater object with a photographing device, detect an object area corresponding to an area in the captured image that includes the object; based on information about the object obtained from a device different from the photographing device, calculate a distance to the object included in the object area; and based on the number of pixels of the object in the captured image and the distance, measure the size of the object.

[0076] Although the present disclosure has been described above with reference to the embodiments, the present disclosure is not limited to the above-described embodiments and examples. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present disclosure within the scope of the present disclosure.

[0077] REFERENCE SIGNS LIST 10 Wide-angle monocular camera 20 Stereo camera 100 Terminal device 101 Information storage unit 102 Preprocessing unit 103 Object detection unit 104 Distance calculation unit 105 Size measurement unit

Claims

1. An image processing device having: an object area detection means for detecting an object area in an image obtained by photographing an underwater object with an imaging device, the object area corresponding to an area including the object in the photographed image; a distance calculation means for calculating a distance to the object included in the object area based on information about the object obtained from a device different from the imaging device; and a size measurement means for measuring the size of the object based on the number of pixels of the object in the photographed image and the distance.

2. The image processing device of claim 1, wherein the size measurement means obtains the number of pixels between two measurement positions corresponding to a position detected from the object within the object area as the number of pixels of the object in the captured image, and measures the size of the object based on the number of pixels between the two measurement positions, the distance, and the actual length corresponding to one pixel of the captured image.

3. The image processing device according to claim 2, wherein the size measurement means, when the object is a fish, obtains the number of pixels between the pixel corresponding to the end of the head of the fish and the pixel corresponding to the end of the tail fin of the fish as the number of pixels between the two measurement positions, and measures the total length of the fish as the size of the object.

4. An image processing device as described in claim 2, wherein the size measurement means, when the object is a fish, obtains the number of pixels between a pixel corresponding to the dorsal edge of the fish and a pixel corresponding to the base of the pelvic fin of the fish as the number of pixels between the two measurement positions, and measures the body height of the fish as the size of the object.

5. An image processing device as described in claim 2, wherein, when the object is a fish, the size measurement means obtains the number of pixels between the pixel corresponding to the end of the fish's head and the pixel corresponding to the depression in the center of the fish's tail fin as the number of pixels between the two measurement positions, and measures the fork length of the fish as the size of the object.

6. The image processing device according to claim 1, wherein the distance calculation means calculates the distance to the object included in the object region based on information obtained from a stereo camera, LiDAR or sonar.

7. An image processing method comprising the steps of: detecting an object area corresponding to an area in an underwater object in a captured image obtained by photographing the object with an imaging device; calculating a distance to the object contained in the object area based on information about the object obtained from a device different from the imaging device; and measuring a size of the object based on the number of pixels of the object in the captured image and the distance.

8. A recording medium having recorded thereon a program that causes a computer to execute the following processes: detect an object area corresponding to an area including an object in an underwater object based on an image obtained by photographing the object with a photographing device; calculate a distance to the object included in the object area based on information about the object obtained from a device different from the photographing device; and measure the size of the object based on the number of pixels of the object in the photographed image and the distance.

Citation Information

Patent Citations

  • Image processing device and image processing method, program, and storage medium

    JP2020194454A

  • Measuring device

    JP2022012504A

  • Object measuring device, object measuring method, and computer program

    JP2022127799A