Method suitable for capturing motion trails of larva fishes in short weir scouring area in indoor water tank

CN118887249APending Publication Date: 2024-11-01CHONGQING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410911424.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

[0025]该发明通过计算机视觉技术来检测与跟踪斑马鱼群,但是该发明技术是针对鱼群的整体运动,并没有对鱼个体进行识别、跟踪和行为记录,多适用于鱼群运动特性的观测,对仔鱼个体的多样化运动特性捕获的适用性较差

Benefits of technology

[0056]1.本发明具有设备简单,实施方便,造价成本较低的特点,使用受限条件少,非常适合在玻璃水槽实验中搭建和应用。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887249A_ABST
    Figure CN118887249A_ABST
Patent Text Reader

Abstract

The invention provides a method suitable for capturing the motion trail of larva fish in a short weir scour area in an indoor water tank. The method comprises the following steps: step 1, shooting the motion of the larva fish; and step 2, identifying the motion trail of the larva fish. A device used for shooting the movement of the larva fish in the short weir scour area in the water tank comprises a high-definition camera, a light supplementing light source and a background curtain, the high-definition camera directly faces the side wall of the short weir scour area in the glass water tank, the light source is arranged over an observation section, and the background curtain is attached to the side wall of the other side directly facing the camera. According to the invention, high-quality recording and high-efficiency capturing of the motion trail of the larva fish in the experiment are realized, the operability of the fish motion observation experiment in the indoor water tank is improved, and the labor cost of the experiment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of underwater visual perception computing technology, and in particular relates to a method for capturing the movement trajectory of fry in a low weir scouring area in an indoor water tank. Background Art

[0002] A low weir is a commonly used low-head river management structure. It is often built on the cross section of the river and arranged across the river width. It is constructed of materials such as steel-concrete or rockfill. In actual engineering applications, a low weir built in the river can change the local resistance of the river and regulate the movement of river water and sand; in addition, after the water flows through the low weir, it can scour the riverbed near the structure to form a habitat unit similar to a deep pool. These deep pool units provide shelter, rest and other living space for aquatic organisms such as fish. Therefore, the low weir built in the river also has good ecological benefits to a certain extent.

[0003] Understanding the movement characteristics of typical aquatic organisms such as fish in the scouring area near the low weir is very important for revealing the ecological benefits of the low weir and carrying out the ecological design of the low weir. At present, flume experiments are often used to explore such issues. In the flume experiment, a low weir model can be arranged on a riverbed paved with natural sand, and a scouring area near the low weir can be formed under certain water flow conditions. Subsequently, the fry are released into the scouring area, and their movement process is recorded using certain motion capture technology, and then their movement characteristics are analyzed in a targeted manner. Due to the diverse terrain and water flow conditions in the scouring area of ​​the low weir, the movement of the fry in it is not only complex but also often accompanied by acceleration, deceleration, and reciprocating swimming, which puts high demands on its motion capture technology. At present, there are some motion capture technologies for aquatic organisms such as larvae in flume experiments, but most of them are for static water conditions, and there is no sand bed in the flume. Therefore, these technologies are usually suitable for motion capture of larvae under relatively simple water flow / terrain boundaries. The capture of larvae motion driven by complex water flow / terrain boundaries in the low weir scour area is still often carried out through non-automatic methods such as manual frame-by-frame analysis of motion videos, or semi-automatic methods such as "manual + computer recognition". Although these methods have a certain degree of accuracy, the processing efficiency is low, which is very unfavorable for the processing of a large number of shooting records, and brings great inconvenience to the analysis of experimental records under multiple working conditions and long periods of time.

[0004] Technical solution of prior art 1:

[0005] Device and method for locating the movement trajectory of fish crossing a dam based on video signals, application number CN201510566348.1. The invention includes a video acquisition device and a video processing device. The video acquisition device consists of a truss and three underwater cameras installed on the truss, and the video processing device includes a computer and an image processing system. After processing the video taken by the underwater camera using the image processing system, the fish position coordinates and movement trajectory are obtained. The invention has a high degree of automation and can effectively locate the movement trajectory of fish crossing the dam in real time. Disadvantages of the first prior art:

[0006] 1. This technical method can only obtain the spatial position of fish, but cannot obtain the movement parameters of fish such as speed and acceleration.

[0007] 2. The video acquisition device of this technology includes a truss fixed in the water tank by bolts, and three underwater cameras fixedly installed on the truss. This video acquisition device will affect the flow state of water in the water tank and have uncertain interference to the flushing test.

[0008] 3. The relative spatial positions between the cameras of the video acquisition device of this technology must be fixed. If they change, the position and distance relationship between the three underwater cameras and the absolute reference coordinate system must be recalibrated.

[0009] Technical solution of the second prior art:

[0010] "Fish Trajectory Tracking Based on Embedded Image Processing System", Jiangsu Agricultural Sciences, 2018. The fish trajectory tracking test platform is disclosed: embedded development board, camera, glass tank, bracket and backlight. The glass tank is 80cm long, 38cm wide, 48cm high and 40cm deep; the embedded development board is model Tiny4412; two cameras are configured, which are placed above the tank 26cm from the water surface and in front of the tank 30cm from the front glass. To ensure that the background captured is clear and uniform; the back glass and the bottom of the glass tank are covered with white polyvinyl chloride wallpaper.

[0011] Method design: The basic process adopted by this design consists of six parts: image acquisition, image preprocessing, target segmentation, target marking, target tracking and output trajectory. ① Image acquisition: The test platform collects fish images in real time. ② Image preprocessing: The collected images are grayed. ③ Target segmentation: The image containing the current fish target is subtracted from the background image by the background difference method, and the difference image obtained is the foreground image. The fish target area is extracted by binarizing the foreground image. The difference image is segmented by the maximum between-class variance method (OTSU) threshold to obtain a binary image. At this time, the binary image is often noisy, such as leftover feed, fish feces, etc. Morphological processing is used to remove noise points. ④ Target marking: The fish target is marked by the TWO-Pass connected domain marking method. Connected domain marking means that all connected domains in the binary image are assigned a number and recorded. ⑤ Target tracking: The target edge is first extracted to calculate the centroid of the target edge point, and then the target features are matched to achieve the tracking of the fish target. ⑥ Output trajectory: Connect the centroids of the target tracking points in chronological order to form the motion trajectory of the fish target.

[0012] Disadvantages of the second prior art:

[0013] The movement behavior of fish is determined by both external environmental factors and internal subjective choices. Since the experimental platform only provides a still water environment and no other external environmental stimuli (such as water flow, etc.), the obtained fish movement behavior is single and has little value in studying the diverse movement characteristics of fish.

[0014] Technical solution of prior art three:

[0015] A zebrafish temperature-sensitive behavior trajectory monitor, i.e., a monitoring method, has an application number of CN202111363282.8, and is provided with a monitoring box, the inner bottom surface of which is provided with a heating box, and the interior of the monitoring box is provided with a warm zone, a normal temperature zone, and a low temperature zone from left to right, respectively, and a monitor is installed on the outside of the monitoring box; a box cover, a card box is provided on the top of the monitoring box, and a fan is installed on the upper end surface of the box cover; it includes: a fixed pipe, the bottom of the fan at its top is fixedly connected, and the sides of the fixed pipe are connected to each other through a connecting pipe and a support block; a partition plate, which is fixed inside the monitoring box and serves to separate the warm zone, the normal temperature zone, and the low temperature zone, and a fixed cavity is provided at both ends of the partition plate, and a connection channel is reserved inside the partition plate. The zebrafish temperature-sensitive behavior trajectory monitor can reduce the mixing between water flows in different areas by partitioning the inside of the monitoring box and realizing heat insulation of adjacent partitioned areas, thereby improving the accuracy of monitoring data.

[0016] Disadvantages of the prior art three:

[0017] This technical invention uses a recording device to obtain video data of zebrafish activities, and then manually views the video data and conducts behavioral analysis. It does not use image processing and other technologies to automatically quantify and output the fish behavior data. It has a low degree of automation, is time-consuming, and consumes a lot of labor costs.

[0018] Technical solution of prior art 4:

[0019] The device for automatically tracking the movement trajectory of fish, application number is 201921049681.5. The device includes a sign, which includes a main sign and an auxiliary sign of the same size and shape. The main sign includes an identification surface and a lock surface, and the auxiliary sign includes a lock hole surface and an auxiliary identification surface. A lock is provided on the lock surface of the main sign, and a fixed lock hole is provided on the lock hole surface of the auxiliary sign. The main sign and the auxiliary sign are arranged face to face, and are fixedly connected to the fish body through the lock and the fixed lock hole; and also includes a light source fish body tracking component, which is detachably fixed on the sign. The device realizes real-time tracking of the fish body, has good reliability, realizes long-distance transmission, and is not affected by the clarity of the water body.

[0020] Disadvantages of the prior art four:

[0021] This technology tracks fish by installing a detachable tag with a light source tracking component on the fish body. The tag will have an uncertain effect on the movement of the fish in the water flow, thus affecting its swimming trajectory. The tag may fall off, resulting in tracking failure. The installation of the tag has a more obvious impact on the movement of fry.

[0022] Technical solution of prior art five:

[0023] A zebrafish swarm detection and tracking method based on computer vision, application number 201410213890.4. The method first locates the fish head area and estimates related parameters through extreme value detection and local area ellipse fitting, then initially tracks the fish swarm in combination with Kalman prediction and feature matching, and finally uses trajectory connection to handle the occlusion problem in the movement of the fish swarm based on the information obtained from the detection and initial tracking. It includes two parts: target detection and target tracking, wherein target detection includes three steps of scale space DoH spot detection, ellipse fitting and ellipse constraint, and target tracking includes three steps of motion prediction, feature matching and trajectory connection. The present invention can better handle the tracking problem caused by the complex movement of the fish swarm, and has the advantage of accurate tracking.

[0024] Disadvantages of the prior art five:

[0025] This invention uses computer vision technology to detect and track schools of zebrafish, but the technology of this invention is aimed at the overall movement of the school of fish, and does not identify, track or record the behavior of individual fish. It is mostly suitable for observing the movement characteristics of fish schools, and has poor applicability to capturing the diverse movement characteristics of individual fry. Summary of the invention

[0026] The purpose of the present invention is to solve the defects of the above-mentioned prior art, provide a method for capturing the movement trajectory of fry in the scouring area of ​​a short weir in an indoor water tank, realize high-quality recording of the movement trajectory of fry and a high-efficiency capture method in the experiment, improve the operability of the fish movement observation experiment in the indoor water tank and reduce the labor cost of the experiment, for in-depth analysis of the diversified movement characteristics of fish in the scouring area of ​​the short weir and provide technical support for understanding the ecological benefits of the short weir.

[0027] The present invention adopts the following technical solution:

[0028] A method for capturing the movement trajectory of fry in a low weir scouring area in an indoor water tank. The method mainly comprises two steps: shooting the movement of fry and identifying the movement trajectory of fry.

[0029] The device used to shoot the movement of fry in the low weir scouring area in the water tank consists of three parts: a high-definition camera, a fill light source, and a background curtain. The high-definition camera is facing the side wall of the glass water tank, the light source is placed directly above the observation section, and the background curtain is attached to the other side wall of the water tank facing the camera. The specific shooting steps are as follows:

[0030] Step 1. Start the camera and observe the image quality of the shooting angle at the visible end. By setting up an LED light source just above the observation section to fill in the shooting area, the lighting of the captured image area is uniform and the image shadow is reduced; by applying a black curtain on the side wall on the other side of the shooting head, the background of the captured image area is normalized. The above debugging can ensure that the camera is clear and prominent when shooting the movement of fry, and can effectively improve the effect of its position positioning when the fish moves.

[0031] Step 2. Place a ruler in the sink so that the scale of the ruler coincides with the plane on which the camera is focused at this time, ensuring that the scale of the ruler is clearly displayed in the camera's shooting angle of view. Take a photo with the ruler to calibrate the pixel size of each frame in the video;

[0032] Step 3. Start the camera to shoot, and use the scoop net to scoop a fry from the fish pond, and place it and the scoop net at the end of the low weir scouring area. After the fry adapts for 1 to 2 minutes, remove the scoop net. Due to the flow tendency of fish, they will swim upstream into the scouring area of ​​the low weir. The whole process is recorded by the debugged camera.

[0033] Step 4. After the fry have moved for a while, they will choose to cross the low weir and move upstream or downstream to leave the scouring area. At this time, the shooting ends and the video record is saved.

[0034] The video recording taken in the above-mentioned method for capturing the movement trajectory of larvae in the low weir scouring area in the indoor water tank is imported into the computer, and the program written based on the MATLAB software is run to capture the movement trajectory of the larvae, which mainly includes the following steps:

[0035] Step 5. Import the video record of larval fish movement into MATLAB to obtain the video frame rate and duration;

[0036] Step 6. Read the video frame before the fry are released as the background image, and use the rgb2gray tool to grayscale the image; use imrect to create a stretchable rectangular structure element, select the spatial range to be analyzed, and use the getposition() tool in the ceil() function to obtain the coordinates of the stretched rectangular element, and use this to intercept the spatial range to be analyzed.

[0037] Step 7. Determine the time range in the video record where the movement of the fry needs to be captured, extract the number of frames in the video record within the time range, and capture the position of the fry in each frame in turn. The specific steps are as follows:

[0038] Step 7.1. Read the first frame of the video extracted in step 7, based on the coordinates of the stretched rectangular element obtained in step 6, intercept the image range contained in the rectangular element in the frame, and use the rgb2gray tool to grayscale it;

[0039] Step 7.2. Use the imsubtract tool to subtract the video frame image processed in step 7.1 from the background image processed in step 5 to obtain the image after removing the background;

[0040] Step 7.3. Set a threshold value Y for the pixel points of the image processed in step 7.2, and use the threshold determination method to perform binarization processing on the image: when the gray value of the pixel point in the image is less than the threshold value Y, the pixel point is set to black, otherwise it is set to white;

[0041] Step 7.4 sets an area threshold P, and uses the bwareaopen tool to delete objects whose area is smaller than the threshold P in the binary image obtained in step 7.3, that is, only retain the fry objects in the binary image;

[0042] Step 7.5. Use the regionprops tool to measure the regional properties of the binary image of the fry obtained in step 7.4, and use the size tool to obtain the size of the area item in the image properties;

[0043] Step 7.6. If the area item is 0, the fish larvae are not captured in the video frame, and the analysis of step 7.1 to step 7.5 is repeated for the next frame directly; if the area item is not 0, the fish larvae are captured in the video frame, and based on the Centroid item or BoundingBox item in the binary image area attribute of the fish larvae in step 7.5 based on the coordinates of the centroid of the fish larvae or the head / tail of the fish larvae, it is stored in the array of the fish larvae motion trajectory, and all the analysis of step 7 is repeated for the next frame until all video frames are analyzed;

[0044] Step 8. After all the video frames in step 7 are analyzed, the motion trajectory curve of the fry can be drawn according to the coordinate records in the fry motion trajectory array, and the time changes of the speed and acceleration of the fry during the motion process can also be calculated using the following formula:

[0045]

[0046] The symbols in the above formula have the following meanings:

[0047] U - fish movement speed;

[0048] a-the acceleration of the fish's movement;

[0049] ΔS-movement distance of fish between two adjacent frames;

[0050] X n (Y n )—horizontal (vertical) position coordinates of the fish in the previous frame;

[0051] X n+1 (Y n+1 )—horizontal (vertical) position coordinates of the fish in the next frame;

[0052] U n -The motion speed of the previous frame;

[0053] U n+1 -Motion speed of the next frame;

[0054] Δt - the time interval between two adjacent frames.

[0055] Beneficial effects of the present invention:

[0056] 1. The present invention has the characteristics of simple equipment, convenient implementation, low cost, few restrictions on use, and is very suitable for construction and application in glass water tank experiments.

[0057] 2. In the method of the present invention, when shooting and recording the movement of the fry in the water tank, the interference of its unclear position and the smaller difference from the background is eliminated, and the algorithm of the fry movement track in the automatic capture shooting record can effectively extract the outline of each frame of fry and fix to the positions such as the head, tail, and center of the fish body, even if the position of the fry in each frame is changing, it can also be accurately located. Based on the historical changes of the parameters such as the speed and acceleration of the fry movement in real time display of the movement track, compared to the existing water tank experimental technology, the moving object capture function in the present invention is richer and more convenient to use.

[0058] 3. Use the method described in the present invention, extract the fish larvae motion track efficiency in the shooting record, can effectively save the human cost of data processing.Such as: for a 20-second video record (camera is shot at 30fps speed), extract the fish larvae motion track time can be completed within 1 minute, much less than artificial fixed-point analysis or artificial auxiliary computer identification required time (usually by tens of minutes or hours). BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 Schematic diagram of the overall steps for filming larval fish movement in the low weir scour area of ​​the flume.

[0060] Figure 2 Schematic diagram of the process of capturing the movement trajectory of fry during filming and recording.

[0061] Figure 3 Schematic diagram of the process of capturing the movement trajectory of fry during filming and recording.

[0062] Figure 4 Composition of a filming system for the movement of larval fish in the low weir scour area.

[0063] Figure 5 It is an original single-frame image in the shooting record.

[0064] Figure 6 A single-frame image showing the movement trajectory of the larvae.

[0065] Figure 7 It is the time-varying process of the velocity of the larvae moving in the horizontal direction during the shooting and recording.

[0066] Figure 8 This is the time-varying process of the velocity of the larvae moving in the vertical direction during the recording. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention is described clearly and completely below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] The present invention is a method for capturing the movement trajectory of fry in a low weir scouring area in an indoor water tank, and is applicable to the following environments:

[0069] like Figure 4 As shown in the figure, dynamic water conditions are applied in the water tank with the low weir model to create a balanced scouring area. A high-definition camera is placed on one side of the water tank facing the side wall, an LED fill light source is placed above the scouring area, and a black background curtain is attached to the other side of the water tank facing the camera.

[0070] like Figure 1 As shown in the figure, after the camera is debugged, based on the capture method suitable for the movement trajectory of fry in the low weir scouring area in the indoor water tank, the specific shooting process includes:

[0071] Step 1. Start the camera and observe the image quality of the shooting angle at the visual end. By setting up an LED light source just above the observation section to fill in the shooting area, the lighting of the captured image area is uniform and the image shadow is reduced; by sticking a black curtain on the side wall on the other side of the camera, the background of the captured image area is normalized. The above debugging can ensure that the camera is clear and prominent when shooting the movement of fry, and can effectively improve the effect of its position positioning when the fish moves.

[0072] Step 2. Place the ruler on the focal plane of the camera's shooting angle in the water tank and take a photo with the ruler to calibrate the pixel size of each frame in the video.

[0073] Step 3. Start the camera to shoot, and use the scoop net to scoop a fry from the fish pond, and place it and the scoop net at the end of the low weir scouring area. After the fry adapts for 1 to 2 minutes, remove the scoop net. Due to the flow tendency of fish, they will swim upstream into the scouring area of ​​the low weir. The whole process is recorded by the debugged camera.

[0074] Step 4. After the fry have moved for a while, they will choose to cross the low weir and move upstream or downstream to leave the scouring area. At this time, the shooting ends and the video record is saved.

[0075] like Figure 2 As shown, the video records shot in the above steps are imported into a computer, and the movement of the fry in the shot video is captured by the following method, mainly including:

[0076] Step 5. Import the video record of larval fish movement into MATLAB to obtain the video frame rate and duration;

[0077] Step 6. Read the video frame before the fry are released as the background image, and use the rgb2gray tool to perform grayscale processing on the image; use imrect to create a stretchable rectangular structure element, select the spatial range to be analyzed, and use the getPosition() tool in the ceil() function to obtain the coordinates of the stretched rectangular element, and use this to intercept the spatial range to be analyzed in the background image.

[0078] Step 7. Determine the time range in the video record where the movement of the larvae needs to be captured, extract the number of frames in the video record within the time range, and capture the position of the larvae in each frame in turn, such as Figure 3 As shown, the specific steps are as follows:

[0079] Step 7.1. Read the first frame of the video extracted in step 7, based on the coordinates of the stretched rectangular element obtained in step 6, intercept the image range contained in the rectangular element in the frame, and use the rgb2gray tool to grayscale it;

[0080] Step 7.2. Use the imsubtract tool to subtract the video frame image processed in step 7.1 from the background image processed in step 5 to obtain the image after removing the background;

[0081] Step 7.3. Set a threshold value Y for the pixel points of the image processed in step 7.2, and use the threshold determination method to binarize the image; when the grayscale value of the pixel point in the image is less than the threshold value Y, the pixel point is set to black, otherwise it is set to white.

[0082] Step 7.4. Set an area threshold P and use the bwareaopen tool to delete objects whose area is smaller than the threshold P in the binary image obtained in step 7.3, that is, only retain the fry objects in the binary image.

[0083] Step 7.5. Use the regionprops tool to measure the regional properties of the binary image of the larvae obtained in step 7.4, and use the size tool to obtain the size of the area item in the image properties.

[0084] Step 7.6. If the area item is 0, the fish larvae are not captured in the video frame, and the analysis of steps 7.1 to 7.5 is repeated for the next frame directly; if the area item is not 0, the fish larvae are captured in the video frame, and the centroid or the coordinates of the fish larvae's head / tail are recorded based on the Centroid item or BoundingBox item in the area attribute of the fish larvae binary image in step 7.5, and stored in the array of the fish larvae's motion trajectory, and all the analyses of step 7 are repeated for the next frame until all video frames are analyzed;

[0085] Step 8. After all the video frames in step 7 are analyzed, the motion trajectory curve of the fry is drawn according to the coordinate records in the fry motion trajectory array. The time changes of the speed and acceleration of the fry during the motion process can also be calculated using the following formula:

[0086]

[0087] The symbols in the above formula have the following meanings:

[0088] U - fish movement speed;

[0089] a-the acceleration of the fish's movement;

[0090] ΔS-movement distance of the test fish between two adjacent frames;

[0091] X n (Y n )—lateral (vertical) position coordinates of the test fish in the previous frame;

[0092] X n+1 (Y n+1 )—lateral (vertical) position coordinates of the test fish in the next frame;

[0093] U n -The motion speed of the previous frame;

[0094] U n+1 -Motion speed of the next frame;

[0095] Δt - the time interval between two adjacent frames.

[0096] Example

[0097] The present embodiment is an experiment to capture the movement trajectory of fry in the low weir scouring area in an indoor water tank. The experiment was carried out in a laboratory of a domestic university in March 2022. The experimental water tank was a 50cm wide water circulation glass water tank. The purpose of the experiment was to explore the movement characteristics of silver carp fry among the four major carps in the low weir scouring area. The silver carp fry used in the experiment were taken from the Chongqing Aquatic Health Breeding Demonstration Farm, with a body length of about 10.5cm and a weight of about 15.7g. All fry that need to be tested for movement characteristics are raised in fish boxes in the laboratory, and feed is fed regularly every day according to 5% of the fish body weight. The fish box is continuously oxygenated with an air pump, and the water in the water tank is replaced daily to keep the water quality healthy.

[0098] Before the larval fish movement characteristic test experiment began, all larval fish to be tested were fasted for 24 hours, and healthy and active silver carp larvae were selected in the fish box as test subjects. Further, using the capture method of the larval fish movement trajectory in the low weir scouring area in the indoor water tank of the present invention, the shooting system was arranged, such as Figure 4 As shown, we then began to study and capture the movement characteristics of these larvae in the flushing area one by one, and the relevant results are shown in Figure 5-8 shown. Figure 5 The imaging pictures of the camera in this experiment are clear, and the low weir, scouring area and fry in the image can be clearly shown. Based on steps 1 to 7 in the implementation method of the present invention, the position coordinates of the fry on each frame of the image can be captured from the video record, and based on these position coordinates, the position scatter points can be drawn on a certain frame of the original image in the record to form the trajectory of the fry movement, such as Figure 6 Based on step 8 of the implementation method of the present invention, the time-varying process of the speed of the fish larvae during movement can be further calculated based on the position coordinates of the captured fish larvae, as shown in FIG. Figure 7 and Figure 8 shown. Figure 7 The display shows that the speed component range of the larvae in the horizontal direction is 0 to 400 pixels / s, and the speed component range of the vertical direction is -100 to 100 pixels / s. According to the pixel size calibrated in step 2 of the implementation method of the present invention, that is, 1 pixel is equal to 0.0008m, the unit of the above speed can be converted into common units such as m / s. Figure 6-Figure 8 The results show that the method described in the present invention is suitable for capturing the movement trajectory of fry in the low weir scouring area in an indoor water tank.

[0099] The present invention can automatically capture the trajectory of fish larvae movement and its dynamic parameters in a water tank experiment, solving the problems of limitations and low efficiency in capturing fish larvae movement driven by complex terrain / water flow boundaries using existing experimental technologies; the present invention embodies in detail the various steps and methods of fish larvae motion capture from shooting to analysis, and clarifies the steps, principles and effects of the recognition algorithm; the present invention is simple and easy to operate, and can effectively improve the operability of fish motion capture in similar water tank experiments.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for capturing the movement trajectory of fry in a low weir scouring area in an indoor water tank, characterized in that: include: Step 1. Film the fry's movements; The device used to shoot the movement of fry in the low weir scouring area in the water tank includes three parts: a high-definition camera, a fill light source, and a background curtain. The high-definition camera is facing the side wall of the low weir scouring area of ​​the glass water tank, the light source is placed directly above the observation section, and the background curtain is attached to the other side wall of the water tank facing the camera. The specific shooting steps are as follows: Step 101. Start the camera, observe the image quality of the shooting angle at the visual end, and set up an LED light source just above the observation section to fill in the shooting area so that the lighting of the captured image area is uniform and the image shadow is reduced; and a black curtain is attached to the side wall on the other side of the shooting head so that the background of the captured image area is normalized; Step 102. Place a ruler in the water tank so that the scale surface of the ruler coincides with the plane on which the camera is focused at this time, ensure that the scale of the ruler is clearly displayed in the camera's shooting angle of view, and take a photo with the ruler for calibrating the pixel size of each frame of the video; Step 103. Start the camera to shoot, and simultaneously use the scoop net to scoop a fry from the fish pond, and place it together with the scoop net at the tail end of the low weir scouring area. After the fry adapts for 1 to 2 minutes, remove the scoop net. Due to the flow tendency of fish, they will swim upstream into the scouring area of ​​the low weir. The whole process is recorded by the debugged camera; Step 104. After the fry has moved for a period of time, it will choose to cross the low weir and move upstream or downstream to leave the scouring area. At this time, the filming is terminated and the video record is saved; Step 2. Identification of the movement trajectory of fry.

2. The method according to claim 1, characterized in that The identification of the larval fish movement trajectory in step 2 includes the following steps: Step 201. Import the video record of larval fish movement into MATLAB to obtain the video frame rate and duration; Step 202. Read the video frame before the fry are put in as the background image, and use the rgb2gray tool to perform grayscale processing on the image; use imrect to create a stretched rectangular structure element, select the spatial range to be analyzed, use the getPosition() tool in the ceil() function to obtain the coordinates of the stretched rectangular element, and use this to intercept the spatial range to be analyzed; Step 203. Determine the time range in the video record where the movement of the fry needs to be captured, extract the number of frames in the video record within the time range, and capture the position of the fry in each frame in turn; Step 204. After all the video frames in step 203 are analyzed, the motion trajectory curve of the fry is drawn according to the coordinate records in the fry motion trajectory array, or the historical changes of the speed and acceleration of the fry during the motion are calculated using the following formula: The symbols in the above formula have the following meanings: U - fish movement speed; a-the acceleration of the fish's movement; ΔS-movement distance of the test fish between two adjacent frames; X n - Lateral position coordinates of the test fish in the previous frame; Y n -The longitudinal position coordinates of the test fish in the previous frame; X n+1 - Lateral position coordinates of the test fish in the next frame; Y n+1 -The longitudinal position coordinates of the test fish in the next frame; U n -The motion speed of the previous frame; U n+1 -Motion speed of the next frame; Δt - the time interval between two adjacent frames.

3. The method according to claim 2, characterized in that Step 203 includes: Step 2031. Read the first frame of the video extracted in step 203, based on the coordinates of the stretched rectangular element obtained in step 202, intercept the image range contained in the rectangular element in the frame, and use the rgb2gray tool to grayscale it; Step 2032. For the video frame image processed in step 2031, use the imsubtract tool to subtract it from the background image processed in step 201 to obtain an image after removing the background; Step 2033. Set a threshold value Y for the pixel points of the image processed in step 2032, and use a threshold determination method to perform binarization processing on the image: when the gray value of the pixel point in the image is less than the threshold value Y, the pixel point is set to black, otherwise it is set to white; Step 2034. Set an area threshold P, and use the bwareaopen tool to delete the objects whose area is smaller than the threshold P in the binary image obtained in step 2033, that is, only retain the fry objects in the binary image; Step 2035. Use the regionprops tool to measure the regional properties of the fry binary image obtained in step 2034, and use the size tool to obtain the size of the area item in the image properties; Step 2036. If the area item is 0, no fry is captured in the video frame, and the analysis of steps 2031-2035 is directly repeated for the next frame; if the area item is not 0, the fry is captured in the video frame, and based on the Centroid item or BoundingBox item in the binary image area attribute of the fry in step 2035 based on the coordinates of the fry's center of mass or the head / tail, it is stored in an array of the fry's motion trajectory, and all analyses of step 203 are repeated for the next frame until all video frames are analyzed.