Image processing device, image processing method, and recording medium
The image processing device uses a camera and laser beam emitting device to measure underwater object sizes by detecting object regions and calculating size based on laser beam intervals and distances, overcoming the challenge of marker installation in environments like fish tanks.
Patent Information
- Application Number
- PCT/JP2023/011076
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-26
AI Technical Summary
Existing techniques for measuring the size of objects in images, such as those underwater, face challenges when it is difficult to install markers, as seen in environments like fish tanks, where the size of the fish cannot be accurately measured.
An image processing device and method that uses a camera and a laser beam emitting device to emit multiple laser beams at predetermined intervals, allowing for object area detection and size measurement based on the distance between irradiation positions and measurement points within the image.
Enables easy and accurate measurement of the size of objects moving underwater by detecting object regions and calculating size using the predetermined emission interval and distances between laser beams and measurement points, effectively addressing the challenge of marker installation difficulties.
Smart Images

Figure JP2023011076_26092024_PF_FP
Abstract
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 in which, in a photographed image showing a marker and a fish whose actual dimensions are known, the size of the marker image and the size of the fish image are detected, and the actual dimensions of the fish are calculated based on the actual dimensions of the marker, the size of the marker image, and the size of the fish image.
[0004] International Publication No. 2013 / 099271
[0005] However, the technology disclosed in Patent Document 1 has the problem that it is not possible to measure the size of a fish in places where it is difficult to place a marker in the water, such as a fish tank where fish are swimming.
[0006] One object of the present disclosure is to provide an image processing device that can easily measure the size of an object moving underwater.
[0007] In one aspect of the present disclosure, an image processing device includes: an object area detection means that detects, based on an image including an object moving underwater and a plurality of laser beams that are emitted toward the object at a predetermined emission interval, an object area that is an area in the image that includes the object; an irradiation position detection means that detects, based on the image, a plurality of irradiation positions that correspond to positions within the object area where the plurality of laser beams are irradiated onto the object; and a size measurement means that measures the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object area.
[0008] In another aspect of the present disclosure, an image processing method detects an object region in an image that includes an object moving underwater and a plurality of laser beams that are emitted toward the object at a predetermined emission interval, detects a plurality of irradiation positions within the object region based on the image, which correspond to positions where the plurality of laser beams are irradiated onto the object, and measures the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object region.
[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 region in an image that includes an object moving underwater and a plurality of laser beams that are emitted toward the object at a predetermined emission interval, detecting a plurality of irradiation positions within the object region based on the image that correspond to positions where the plurality of laser beams are irradiated onto the object, and measuring the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object region.
[0010] According to the present disclosure, the size of an object moving underwater can be easily measured.
[0011] 1 is a diagram showing an overview of the configuration of a measurement system including a terminal device according to the first embodiment. FIG. 2 is a diagram showing an example of the configuration of a laser light emitting device. A block diagram showing an example of the hardware configuration of a terminal device according to the first embodiment. A block diagram showing an example of the functional configuration of a terminal device according to the first embodiment. A diagram showing an example of a state in which laser light is being emitted to the side of an object in water, as viewed from above. A diagram showing an example of an image obtained by a camera. A diagram for explaining a specific example of object detection. A diagram for explaining a specific example of processing related to measuring the size of an object. A flowchart showing an example of processing performed in the terminal device according to the first embodiment. A diagram showing an example of an image obtained by a camera. A block diagram showing an example of the functional configuration of an image processing device according to a second embodiment. A flowchart for explaining an example of processing performed in the 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 outline 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 object, such as a fish, moving in water based on an image obtained by photographing the object. As shown in Fig. 1, the measurement system 1 includes a camera 10, a laser beam emitting device 20, and a terminal device 100.
[0014] [Camera and Laser Light Emitting Device] The camera 10 is configured as a monocular camera capable of underwater photography. The camera 10 is connected to the terminal device 100 using an underwater cable or the like. The camera 10, while placed underwater, photographs a subject such as an object TB moving underwater, and outputs the image obtained by the photograph to the terminal device 100.
[0015] 2 is a diagram showing an example of the configuration of a laser beam emitting device. The laser beam emitting device 20 is configured to be detachable from the camera 10. Specifically, the laser beam emitting device 20 is configured to be detachable from the top of the camera 10. Note that the laser beam emitting device 20 may be configured to be detachable from a part of the camera 10 other than the top. Furthermore, the laser beam emitting device 20 may be disposed underwater without being attached to the camera 10. Furthermore, hereinafter, unless otherwise specified, a case will be described in which the laser beam emitting device 20 is attached to the top of the camera 10 and the camera 10 has an angle of view that can capture each of the multiple laser beams emitted from the laser beam emitting device 20.
[0016] The laser beam emitting device 20 has a configuration in which laser beam emission can be switched on and off by operating a switch (not shown) or by remote control. As shown in Figures 1 and 2, the laser beam emitting device 20 has a plurality of beam emitting units 20A and a main body unit 20B. In the laser beam emitting device 20, the plurality of beam emitting units 20A are arranged at a predetermined emission interval RLN.
[0017] The predetermined emission interval RLN corresponds to the installation interval between two adjacent light emitting units 20A. Therefore, the predetermined emission interval RLN can be treated as the interval between each of the plurality of laser beams emitted from the laser beam emitting device 20. The predetermined emission interval RLN is a known interval that is set during the manufacture of the laser beam emitting device 20. The predetermined emission interval RLN is preferably 10 cm, for example.
[0018] The light emitting unit 20A has optical elements and the like for irradiating laser light in front of the camera 10. Furthermore, the plurality of light emitting units 20A are arranged so as to be parallel to the horizontal direction of the camera 10 when the laser light emitting device 20 is attached to the camera 10. Furthermore, the main body unit 20B has a light source and optical elements and the like for supplying laser light to the light emitting units 20A. Note that in this embodiment, it is only necessary that the main body unit 20B has a configuration for supplying laser light having a wavelength in the visible range to the light emitting units 20A.
[0019] According to the configuration described above, the laser light emitting device 20 can simultaneously emit a plurality of laser beams having a predetermined emission interval RLN toward the front of the camera 10 in a direction parallel to the horizontal direction of the camera 10. Furthermore, according to the configuration described above, the camera 10 can obtain an image including a subject such as an object TB moving in water and the laser light emitted from the laser light emitting device 20.
[0020] [Terminal Device] (Hardware Configuration) Fig. 3 is a block diagram showing an example of the hardware configuration of a terminal device according to the first embodiment. The terminal device 100 has a hardware configuration similar to that of a personal computer, for example. Specifically, 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.
[0021] The IF 111 inputs and outputs data to and from an external device. For example, an image captured by the camera 10 is input to the terminal device 100 via the IF 111.
[0022] 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 obtained by the camera 10, processing related to measuring the size of the object, and the like.
[0023] 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.
[0024] 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.
[0025] The DB 115 stores, for example, images input via the IF 111 and processing results obtained by processing by the processor 112 .
[0026] (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 size measurement unit 104, a tracking unit 105, and a statistical processing unit 106.
[0027] The information storage unit 101 stores distortion correction parameters used in the processing by the preprocessing unit 102, an object detection model used in the processing by the object detection unit 103, and a predetermined emission interval RLN used in the processing by the size measurement unit 104. The distortion correction parameters may include, for example, at least one parameter set based on the optical characteristics of the camera 10. Furthermore, it is desirable that the object detection model be trained to, for example, detect an area including an object in the input image as an object area, detect predetermined elements included within the object area, and output information indicating the position of the object area in the input image and information related to the predetermined elements.
[0028] The pre-processing unit 102 functions as a distortion correction unit. The pre-processing unit 102 performs distortion correction processing on the image obtained by the camera 10 using distortion correction parameters read from the information storage unit 101. The pre-processing unit 102 outputs the image that has been subjected to the distortion correction processing to the object detection unit 103.
[0029] The object detection unit 103 functions as an object region detection means and an irradiation position detection means. The object detection unit 103 inputs the 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 image and predetermined elements contained within the object region. The object detection unit 103 also acquires object detection information including the image obtained from the preprocessing unit 102, information indicating the position of the object region in the image, and information regarding predetermined elements contained within the object region. The object detection unit 103 also outputs the object detection information to the size measurement unit 104.
[0030] The size measurement unit 104 functions as a size measurement means. Furthermore, the size measurement unit 104 measures the size of an object included in the image of the object detection information based on a predetermined emission interval RLN read from the information storage unit 101 and the object detection information output from the object detection unit 103. Furthermore, the size measurement unit 104 outputs the object detection information obtained from the object detection unit 103 and the size of the object included in the image of the object detection information to the tracking unit 105.
[0031] Based on the plurality of pieces of object detection information sequentially output from the size measurement unit 104, the tracking unit 105 detects the same object included in the plurality of images in the plurality of pieces of object detection information as the object to be tracked. Furthermore, the tracking unit 105 detects the same object as the object to be tracked during a tracking period corresponding to the period from when the object enters an image to when it exits the image. Furthermore, the tracking unit 105 acquires size measurement information that associates the object to be tracked with the size of the object included in each piece of object detection information obtained during the tracking period. Furthermore, the tracking unit 105 outputs the size measurement information to the statistical processing unit 106.
[0032] The statistical processing unit 106 functions as a statistical means. The statistical processing unit 106 acquires statistics relating to a plurality of sizes by applying a predetermined statistical process to the plurality of sizes associated with the tracked object in the size measurement information output from the tracking unit 105. The statistical processing unit 106 also outputs information indicating the statistics to the outside of the terminal device 100.
[0033] [Specific Example] Next, a specific example of this embodiment will be described. Note that, hereinafter, the description will be given taking as an example a case where the object TB moving in the water is a fish. Also, in the state shown in FIG. 1, the camera 10 is placed in a position where it can capture an image of the side of the object TB moving in the water.
[0034] A user places a camera 10 equipped with a laser beam emitting device 20 underwater, and then moves the camera 10 to a position where it can capture an image of the side of an object TB (see FIG. 1 ). After moving the camera 10 to a position where it can capture an image of the side of the object TB, the user switches the emission of laser beams from the laser beam emitting device 20 from off to on. In response to such a user operation, the laser beam emitting device 20 emits three laser beams LZ toward the side of the object TB, as shown in FIG. 5 . FIG. 5 is a diagram showing an example of a state where laser beams are being emitted toward the side of an object underwater, as viewed from above.
[0035] According to FIG. 5, three laser beams LZ emitted from the laser beam emitting device 20 are irradiated onto the side surface of the object TB, thereby forming three irradiation points LP.
[0036] The camera 10 photographs the object TB in the state shown in Figures 1 and 5 to obtain an image SG as shown in Figure 6, for example, and outputs the obtained image SG to the terminal device 100. Figure 6 is a diagram showing an example of an image obtained by the camera. The image SG includes a side of the object TB moving underwater, three laser beams LZ having a predetermined emission interval RLN that are emitted toward the side of the object TB, and three irradiation points LP formed on the side of the object TB.
[0037] The pre-processing unit 102 performs distortion correction processing on the image SG obtained by the camera 10, using the distortion correction parameters PR read from the information storage unit 101. The pre-processing unit 102 also outputs the image SG that has been subjected to the distortion correction processing to the object detection unit 103.
[0038] 7 is a diagram illustrating a specific example of object detection. The object detection unit 103 inputs the image SG 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 image SG that includes an object TB as an object area BR (see FIG. 7). The object detection unit 103 also detects pixels corresponding to the three illumination points LP and pixels corresponding to the two measurement points SP as elements included within the object area BR (see FIG. 7).
[0039] 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 laser light and measurement points contained within the object region, and output information indicating the position of the object region in the input image and information related to the laser light and measurement points. The object region BR is detected 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 as a region following the contour of the side of the fish corresponding to the object TB. One of the two measurement points SP is detected as a pixel corresponding to the end of the fish's head (the tip of the snout), for example. The other of the two measurement points SP is detected as a pixel corresponding to the end of the fish's tail fin.
[0040] The object detection unit 103 outputs object detection information BDJ to the size measurement unit 104, which includes an image SG, information indicating the position of the object region BR in the image SG, information indicating the positions of three irradiation points LP in the image SG, and information indicating the positions of two measurement points SP in the image SG.
[0041] According to the processing described above, the object detection unit 103 can detect an object region BR, which is a region in the image SG that includes an object TB moving underwater and a plurality of laser beams LZ that are emitted toward the object TB at a predetermined emission interval RLN, based on the image SG. Furthermore, the object detection unit 103 can detect, based on the image SG, a plurality of irradiation points LP within the object region BR that correspond to positions where the object TB is irradiated with the plurality of laser beams LZ.
[0042] The size measurement unit 104 measures the size RTN of the object TB contained in the image SG of the object detection information BJD based on the predetermined emission interval RLN read from the information storage unit 101 and the object detection information BDJ output from the object detection unit 103.
[0043] A specific example of processing related to measuring the size of an object performed by the size measurement unit 104 will now be described with reference to Fig. 8. Fig. 8 is a diagram for explaining a specific example of processing related to measuring the size of an object.
[0044] The size measurement unit 104 measures the distance GSN between two measurement points SP in the image SG based on the object detection information BDJ (see FIG. 8 ). Specifically, the size measurement unit 104 acquires, as the distance GSN, the number of pixels from the pixel of one measurement point SP in the image SG to the pixel of the other measurement point SP in the image SG, for example.
[0045] The size measurement unit 104 extracts two adjacent illumination points LP from the three illumination points LP based on the object detection information BDJ, and measures the distance GLN between the two illumination points LP in the image SG (see FIG. 8 ). Specifically, the size measurement unit 104 acquires, for example, the number of pixels from a pixel at one illumination point LP in the image SG to a pixel at the other illumination point LP in the image SG as the distance GLN.
[0046] The size measurement unit 104 calculates the size RTN of the object TB by applying the predetermined emission interval RLN, the distance GSN, and the distance GLN to the following equation (1).
[0047] RTN=RLN×(GSN / GLN)…(1)
[0048] According to the above-described processing, the size measurement unit 104 can measure the size RTN of the object TB included in the image SG based on the predetermined emission interval RLN, the distance between two adjacent irradiation positions LP among the multiple irradiation points LP, and the distance between two measurement points SP corresponding to positions detected on the object TB within the object region BR. Furthermore, for example, if the object TB is a fish, the size measurement unit 104 can measure the distance GSN between the pixel corresponding to the end of the fish's head and the pixel corresponding to the end of the fish's tail fin. Furthermore, for example, if the object TB is a fish, the size measurement unit 104 can measure the total length of the fish as the size RTN. Furthermore, the size measurement unit 104 can perform the above-described processing when at least two irradiation points LP are detected by the object detection unit 103.
[0049] The size measurement unit 104 outputs the object detection information BDJ and the size RTN of the object TB to the tracking unit 105 .
[0050] The tracking unit 105 detects the same object TB included in the multiple images SG in the multiple pieces of object detection information BDJ sequentially output from the size measurement unit 104 as the object to be tracked, based on the multiple pieces of object detection information BDJ. Furthermore, the tracking unit 105 detects the object TB moving underwater as the object to be tracked during a tracking period TP from when the object TB enters the image SG until it exits the image SG. The inside of the image SG may be interpreted as the inside of the angle of view of the camera 10. The outside of the image SG may be interpreted as the outside of the angle of view of the camera 10.
[0051] The tracking unit 105 acquires size measurement information SMJ, which is information associating a tracked object TB with the size RTN of the object TB included in each piece of object detection information BDJ obtained during the tracking period TP. The tracking unit 105 also outputs the size measurement information SMJ to the statistical processing unit 106. According to this processing, for example, when the tracked object TB is included in N temporally consecutive images SG, the tracking unit 105 can output size measurement information SMJ associating the object TB with N size RTNs corresponding to each of the N images SG to the statistical processing unit 106.
[0052] The statistical processing unit 106 applies a predetermined statistical process to multiple size RTNs associated with the tracked object TB in the size measurement information SMJ output from the tracking unit 105, thereby obtaining statistics ST related to the multiple size RTNs. Specifically, the statistical processing unit 106 obtains, for example, the average or maximum value of the multiple size RTNs as the statistics ST. Note that, for example, when one size RTN is associated with the tracked object TB in the size measurement information SMJ, the statistical processing unit 106 may obtain the size RTN as the statistics ST. Furthermore, the statistical processing unit 106 outputs information indicating the statistics ST to the outside of the terminal device 100.
[0053] According to the processing described above, the statistical processing unit 106 can acquire statistics ST regarding multiple sizes RTN of the object TB measured during the period from when the object TB enters the image SG to when it exits the image SG.
[0054] [Processing Flow] Next, a description will be given of the flow of processing performed in the terminal device according to the first embodiment. Fig. 9 is a flowchart showing an example of processing performed in the terminal device according to the first embodiment.
[0055] First, the terminal device 100 acquires an image captured by a camera positioned to capture an object moving underwater, the image being captured with a plurality of laser beams irradiated at a predetermined emission interval onto the surface of the object. Then, the terminal device 100 performs distortion correction processing on the image captured by the camera using distortion correction parameters (step S11).
[0056] Next, the terminal device 100 inputs the image that has been subjected to the distortion correction process in step S11 into an object detection model, thereby detecting an object region in the image that includes an object, pixels corresponding to the multiple irradiation points of the laser light, and pixels corresponding to the two measurement points.The terminal device 100 then acquires object detection information that includes the image that has been subjected to the distortion correction process in step S11, information indicating the position of the object region in the image, information indicating the positions of the multiple irradiation points in the image, and information indicating the positions of the two measurement points in the image (step S12).
[0057] Next, the terminal device 100 measures the size of the object included in the image of the object detection information based on a predetermined emission interval corresponding to the interval between the multiple laser beams emitted toward the object moving underwater and the object detection information obtained in step S12 (step S13).
[0058] Next, based on the plurality of pieces of object detection information obtained in step S12, the terminal device 100 detects the same object included in the plurality of images in the plurality of pieces of object detection information as the object to be tracked (step S14).
[0059] Next, the terminal device 100 acquires size measurement information, which is information that associates the object to be tracked detected in step S14 with the size of the object contained in each object detection information obtained during the period in which the object was tracked (step S15).
[0060] Next, the terminal device 100 applies a predetermined statistical process to the multiple sizes associated with the object to be tracked in the size measurement information obtained in step S15, thereby obtaining statistics regarding the multiple sizes (step S16).
[0061] As described above, according to this embodiment, the size of an object can be measured using an image captured while the surface of the object is irradiated with a plurality of laser beams having known emission intervals. Therefore, according to this embodiment, the size of an object moving underwater can be easily measured.
[0062] As described above, according to this embodiment, it is possible to obtain statistics on the size of an object moving through water, measured over a period from when the object enters an image until when the object exits the image. Therefore, according to this embodiment, it is possible to obtain information that can be used to estimate the size of an object, such as a fish, that moves in a complex manner while moving through water.
[0063] [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.
[0064] (Variant 1) According to this embodiment, the laser light emitting device 20 is not limited to being configured to irradiate the laser light LZ in a point-like manner onto the surface of the object TB, but may also be configured, for example, to irradiate the laser light LZ in a line-like manner onto the surface of the object TB.
[0065] FIG. 10 is a diagram showing an example of an image obtained by a camera. According to the configuration of the laser light emitting device 20 described above, when the camera 10 is placed in water so as to have the positional relationship shown in FIG. 1 , the image SGX shown in FIG. 10 can be obtained. Furthermore, by inputting the image SGX into the object detection model BDM, the object detection unit 103 can detect an object region BR including an object TB in the image SGX, three line segments SL indicating the portions of the surface of the object TB where the three laser beams LZ are linearly irradiated, and pixels corresponding to two measurement points SP (see FIG. 10 ). Furthermore, the size measurement unit 104 can extract two adjacent line segments SL from the three line segments SL and measure the distance between the two line segments SL as the distance GLN (see FIG. 10 ).
[0066] (Variation 2) According to this embodiment, when the object TB is a fish, the object detection model BDM may be trained so that, for example, a pixel corresponding to the edge of the fish's head is detected as one measurement point SP, and a pixel corresponding to a depression in the center of the fish's tail fin is detected as the other measurement point SP. In such a case, the size measurement unit 104 can measure the distance between the pixel corresponding to the edge of the fish's head and the pixel corresponding to the depression in the center of the fish's tail fin as the distance GSN. In addition, in the above-mentioned case, the size measurement unit 104 can measure the fish's fork length as the size RTN.
[0067] (Variation 3) According to this embodiment, when the object TB is a fish, for example, multiple light emitters 20A may be arranged perpendicular to the horizontal direction of the camera 10. Furthermore, according to this embodiment, when the object TB is a fish, for example, the object detection model BDM may be trained so that a pixel corresponding to the dorsal edge of the fish is detected as one measurement point SP, and a pixel corresponding to the base of the pelvic fin of the fish is detected as the other measurement point SP. In such a case, the size measurement unit 104 can measure the distance between the pixel corresponding to the dorsal edge of the fish and the pixel corresponding to the base of the pelvic fin of the fish as the distance GSN. Furthermore, in the above-mentioned case, the size measurement unit 104 can measure the body height of the fish as the size RTN.
[0068] (Variant 4) According to this embodiment, the size measurement unit 104 may calculate the body height of the fish by multiplying the size RTN measured as the total length of the fish by a correction coefficient set according to the optical characteristics of the camera 10 and the type of fish, for example.
[0069] (Modification 5) This embodiment is not limited to an object that moves in water, but can also be applied to, for example, an object that moves on land, or an object that moves while placed on a predetermined device.
[0070] Specifically, for example, for a fish moving on a conveyor belt, the size of the fish can be measured by emitting multiple laser beams having a predetermined emission interval RLN from a laser beam emitting device 20 onto the surface of the fish, and placing a camera 10 in a position where the fish and the multiple laser beams can be photographed.
[0071] (Variation 6) According to this embodiment, for example, a server device or a cloud server provided outside the terminal device 100 may perform processing similar to that performed by the terminal device 100. Furthermore, according to this embodiment, for example, a smartphone or a tablet computer may perform processing similar to that performed by the terminal device 100.
[0072] Second Embodiment FIG. 11 is a block diagram showing an example of the functional configuration of an image processing apparatus according to a second embodiment.
[0073] 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, an irradiation position detection unit 512, and a size measurement unit 513.
[0074] FIG. 12 is a flowchart illustrating an example of processing performed in the image processing apparatus according to the second embodiment.
[0075] The object area detection means 511 detects an object area, which is an area in an image that includes an object moving underwater and a plurality of laser lights emitted at a predetermined emission interval toward the object, based on the image (step S51).
[0076] The irradiation position detection means 512 detects, based on the image, a plurality of irradiation positions corresponding to positions on the object within the object region where a plurality of laser beams have been irradiated (step S52).
[0077] The size measurement means 513 measures the size of the object contained in the image based on a predetermined emission interval, the distance between two adjacent irradiation positions among the multiple irradiation positions, and the distance between two measurement positions corresponding to positions detected from the object within the object area (step S53).
[0078] According to this embodiment, the size of an object moving underwater can be easily measured.
[0079] A part or all of the above-described embodiments can be described as, but not limited to, the following supplementary notes.
[0080] (Supplementary Note 1) An image processing device comprising: an object region detection means for detecting, based on an image including an object moving underwater and a plurality of laser beams emitted at the object with a predetermined emission interval, an object region in the image that includes the object; an irradiation position detection means for detecting, based on the image, a plurality of irradiation positions corresponding to positions within the object region where the plurality of laser beams are irradiated on the object; and a size measurement means for measuring the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions corresponding to positions detected from the object within the object region.
[0081] (Supplementary Note 2) The image processing device of Supplementary Note 1, further comprising a statistical means for acquiring statistics relating to a plurality of sizes of the object measured during a period from when the object enters the image to when the object exits the image.
[0082] (Supplementary Note 3) The image processing device according to Supplementary Note 1, further comprising a distortion correction unit that performs a distortion correction process on the image, wherein the object region detection unit detects the object region in the image that has been subjected to the distortion correction process.
[0083] (Appendix 4) The image processing device of Appendix 1, wherein, when the object is a fish, the size measurement means measures the distance 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 distance between the two measurement positions, and measures the total length of the fish as the size of the object.
[0084] (Appendix 5) The image processing device of Appendix 1, wherein when the object is a fish, the size measurement means measures the distance between the pixel corresponding to the edge 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 distance between the two measurement positions, and measures the fork length of the fish as the size of the object.
[0085] (Appendix 6) The image processing device of Appendix 1, wherein, when the object is a fish, the size measurement means measures the distance 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 distance between the two measurement positions, and measures the body height of the fish as the size of the object.
[0086] (Supplementary Note 7) An image processing method that, based on an image including an object moving underwater and a plurality of laser beams emitted at the object with a predetermined emission interval, detects an object region in the image that is a region including the object; detects, based on the image, a plurality of irradiation positions within the object region that correspond to positions at which the plurality of laser beams are irradiated on the object; and measures the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object region.
[0087] (Supplementary Note 8) A recording medium having recorded thereon a program that causes a computer to execute the following processes: based on an image including an object moving underwater and a plurality of laser beams emitted at the object with a predetermined emission interval, detect an object region in the image that is a region including the object; based on the image, detect a plurality of irradiation positions within the object region that correspond to positions where the plurality of laser beams are irradiated on the object; and measure the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object region.
[0088] 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.
[0089] REFERENCE SIGNS LIST 10 Camera 20 Laser light emission device 100 Terminal device 101 Information storage unit 102 Preprocessing unit 103 Object detection unit 104 Size measurement unit 105 Tracking unit 106 Statistical processing unit
Claims
1. An image processing device having: an object area detection means for detecting an object area in an image including an object moving underwater and a plurality of laser beams having a predetermined emission interval that are emitted toward the object; an irradiation position detection means for detecting a plurality of irradiation positions based on the image that correspond to positions within the object area where the object is irradiated with the plurality of laser beams; and a size measurement means for measuring the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object area.
2. An image processing apparatus according to claim 1, further comprising a statistical means for acquiring statistics relating to a plurality of sizes of said object measured during a period from when said object enters the inside of said image to when said object exits the outside of said image.
3. An image processing device according to claim 1, further comprising a distortion correction means for performing a distortion correction process on the image, wherein the object region detection means detects the object region in the image after the distortion correction process has been performed.
4. The image processing device of claim 1, wherein the size measurement means, when the object is a fish, measures the distance 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 distance between the two measurement positions, and measures the total length of the fish as the size of the object.
5. An image processing device as described in claim 1, wherein, when the object is a fish, the size measurement means measures the distance 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 distance between the two measurement positions, and measures the fish's fork length as the size of the object.
6. An image processing device as described in claim 1, wherein, when the object is a fish, the size measurement means measures the distance 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 distance between the two measurement positions, and measures the body height of the fish as the size of the object.
7. An image processing method which detects an object region in an image including an object moving underwater and a plurality of laser beams having a predetermined emission interval that are emitted toward the object, detects a plurality of irradiation positions within the object region based on the image, which correspond to positions at which the object is irradiated with the plurality of laser beams, and measures the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions that correspond to positions detected from the object within the object region.
8. A recording medium having a program recorded thereon that causes a computer to execute a process of detecting an object region in an image including an object moving underwater and a plurality of laser beams having a predetermined emission interval that are emitted toward the object, detecting a plurality of irradiation positions corresponding to positions within the object region where the object is irradiated with the plurality of laser beams based on the image, and measuring the size of the object included in the image based on the predetermined emission interval, the distance between two adjacent irradiation positions among the plurality of irradiation positions, and the distance between two measurement positions corresponding to positions detected from the object within the object region.
Citation Information
Patent Citations
Measuring instrument and measurement method
JP2017003399A
Measuring device
JP2022012504A
Object measuring device, object measuring method, and computer program
JP2022127799A
