A fishbone phenotypic information automatic detection system and method for non-destructive fishbone
By automatically extracting fishbone phenotypic information using a non-destructive testing system and a deep learning model, the problems of large human error and low automation in traditional methods are solved, achieving efficient and accurate detection of fishbone phenotypic information.
Patent Information
- Application Number
- CN202010585963.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-06-24
AI Technical Summary
Traditional methods for measuring fish bone phenotypic information suffer from large human error, low automation, and low operational efficiency, failing to meet the needs of modern fish growth monitoring.
A non-destructive testing system is used, combined with a data acquisition device, a signal transmission system and a terminal computer. Through image processing and deep learning models (such as MASK RCNN), fish bone phenotypic information is automatically extracted, including fish side-view image processing and X-ray image analysis, to achieve automatic identification and measurement of various parts of the fish bone.
It achieves automated detection of fish bone phenotypic information, reduces manual intervention, lowers errors, and improves detection efficiency and accuracy. It is applicable to the detection of phenotypic information of various fish species.
Smart Images

Figure CN111784649B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing contour extraction technology and deep learning instance segmentation and target contour recognition technology, and in particular to a fishbone phenotype information automatic detection system and method for lossless fishbone. Background Art
[0002] On the one hand, with the rapid development of artificial aquaculture, the use of automation to identify the growth and development of fish has become an urgent problem to be solved; on the other hand, in order to promote the sustainable development of the fishery economy, the protection research of precious fish resources is gradually being carried out, revealing the internal and external structural data characteristics of precious fish, which is conducive to the study of its classification, germplasm identification, proliferation and protection. Provide a reference basis. In the traditional research method, a vernier caliper is used to measure the length information of each part of the fish, and the square ratio, standard deviation, variance, linear regression analysis and principal component analysis are performed on the ratio relationship data of different parts to extract the phenotypic information of fish bones. With the further deepening of the research, the disadvantages of the traditional method are also revealed:
[0003] 1. The traditional method requires manual measurement of the length of each part of the fish using a vernier caliper, which is prone to human error and random errors;
[0004] 2. The traditional method of detecting fish bone phenotypes requires anatomical measurement, which has a low degree of automation, low efficiency and slow speed of manual operation, and requires more than two hours of operation time for one fish. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a non-destructive fish bone automatic detection system and method for detecting fish bone phenotypic information in view of the deficiencies of the above-mentioned prior art, so as to realize the extraction of fish phenotypic information.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] On the one hand, the present invention provides a fish bone phenotypic information automatic detection system for non-destructive fish bones, comprising a data acquisition device, a signal transmission system, a terminal computer and a terminal display; the data acquisition device comprises a transparent fish tank with an inlet, a camera placed on the upper side of the fish tank and an X-ray camera connected to the terminal computer in front of the fish tank; an adjustable transparent partition with holes is also arranged in the fish tank; a mechanical arm controlled by the terminal computer is arranged on the adjustable transparent partition, and the distance between the partition and the fish tank is adjusted by the mechanical arm;
[0008] The data acquisition device collects a fish side image and an X-ray image of the front of the fish to be detected, and the fish side image and the X-ray image of the front of the fish are transmitted to a terminal computer through a signal transmission system for storage and calculation; the terminal computer extracts the fish side profile and calculates the thickness information of the fish through an image processing technology according to the received fish side image, and then controls the data acquisition device to collect the fish front X-ray image, and identifies each contour of the fish through an instance segmentation technology according to the received fish front X-ray image, identifies each contour of the fish through a mask image obtained through the contour, calculates the fish bone phenotype information, and displays the detection result through a terminal display module;
[0009] Preferably, the fish bone phenotypic information includes the circumference, area and major axis length, minor axis length, number of cervical vertebrae, number of partitioned vertebrae, number of fin rays, number of fish vertebrae, number of fin rays, number of main fish bones, tail bones and number of middle and rear bones of the fish body, fish head and fish follicles.
[0010] Preferably, the adjustable transparent partition is also provided with a regulating valve, and when the mechanical arm pushing the partition fails to achieve the expected effect, the regulating valve is manually adjusted to achieve the purpose of fixing the fish.
[0011] On the other hand, the present invention also provides a method for automatically detecting fishbone phenotypic information without damaging fishbone, comprising the following steps:
[0012] Step 1, collecting the side image of the fish to be detected by the camera of the data acquisition device and transmitting the collected image to the terminal computer through the signal transmission system for storage and calculation;
[0013] The fish to be tested is slid into the fish tank through the entry slot. When the fish swims in the fish tank, the camera is started to take continuous photos of the fish sideways, and the taken images are transmitted to the terminal computer through the signal transmission system for storage and calculation;
[0014] Step 2, the terminal computer extracts the fish side profile through image processing technology according to the received fish side image, and then calculates the thickness information of the fish, and transmits the fish thickness information to the data acquisition device;
[0015] Step 2.1, graying the received fish side image into a grayscale image;
[0016] Step 2.2, converting the obtained grayscale image into a binary image by adaptively taking a threshold value of the image grayscale value, changing the fish back outline in the fish side image to white, and changing the image background to black;
[0017] Step 2.3, extracting the fish back contour using the contour discovery algorithm based on the binary image;
[0018] Step 2.4, draw the minimum circumscribed rectangle of the fish back contour through the internal function of the contour discovery algorithm;
[0019] Step 2.5, extract the height and width of the minimum circumscribed rectangle of the fish back contour, compare the two sizes, take the smaller value as the thickness of the fish, and the larger value as the length of the fish, so as to get the thickness of the fish;
[0020] Step 3, the mechanical arm of the data acquisition device receives the fish thickness information, and starts the X-ray camera after adjusting the distance between the partition and the fish tank to take a front X-ray image of the fish;
[0021] The terminal computer transmits the calculated fish thickness information to the robot arm through the signal transmission system. After receiving the fish thickness information, the robot arm starts and pushes the transparent partition with holes to the side where the fish is, so that the distance between the transparent partition with holes and the fish tank on this side is equal to the fish thickness, and then the robot arm keeps the position unchanged; at this time, the robot arm feeds back the action end information to the terminal computer, and the terminal computer sends a shooting instruction to the X-ray camera, and the X-ray camera takes a single X-ray image of the front of the fish through its own system and sends it back to the terminal computer;
[0022] Step 4, the terminal computer obtains the segmentation mask map of each part of the fish bone through the MASK RCNN network model according to the received X-ray image of the front of the fish;
[0023] Step 4.1: Determine whether a trained MASK RCNN model already exists. If so, proceed to the test phase in step 4.3; if not, proceed to the training phase in step 4.2.
[0024] Step 4.2: Training phase;
[0025] Step 4.2.1, use the annotation software to annotate the contours of the fish head, fish bladder, fish body, dorsal front vertebrae, abdominal vertebrae, middle vertebrae, caudal vertebrae, fish fins, tail, middle and rear parts of the fish bones, read the X-ray image of the front of the fish and the annotation file corresponding to the annotation target position, and store the annotation file;
[0026] Step 4.2.2: Through the MASK RCNN network model training, three prediction values of predicted classification, detection position, and segmentation mask are obtained through forward propagation, and these three prediction values are compared with the annotation file to calculate the loss of the three;
[0027] Step 4.2.3: Continuous iteration of back propagation makes the loss of the three prediction values gradually decrease until the model converges;
[0028] Step 4.2.4: Output the converged model;
[0029] Step 4.3, call the MASKRCNN network model to enter the testing phase and obtain the segmentation mask images of various parts of the fishbone;
[0030] Step 5: Based on the obtained segmentation mask images of each part of the fishbone, the fishbone phenotypic information is extracted by image processing technology;
[0031] Step 5.1, paint a specific pure color on the obtained mask images of the fish head, fish bladder and fish body, convert them into the HSV color space to track their colors, and then grayscale them and convert them into grayscale images;
[0032] Step 5.2: Convert the grayscale image into a binary image by adjusting the threshold. The area of the binary image containing the mask image target is white, and the rest of the background area is black.
[0033] Step 5.3, use the contour discovery algorithm to extract the black and white boundary contours, call the algorithm's internal function to calculate the perimeter and area of the contours, and thus obtain the perimeter and area of the target fish head, fish bladder, and fish body;
[0034] Step 5.4, draw a convex hull using the contour approximation method based on the perimeter of the contour, calculate the distance between the edge points of the convex hull, find the maximum distance as the major axis length of the target contour, and the shortest distance as the minor axis length, thereby obtaining the axis length information of the target fish;
[0035] Step 5.5, based on the obtained mask images of the fins, tail, and middle and rear parts, create a blank image of the same size as the original fish front X-ray image, extract the fins from the original fish front X-ray image into the blank image through the contour discovery algorithm, use the image sharpening algorithm to highlight the edges of the fins, use the Gaussian filter algorithm to eliminate small noise points, use the Hough linear transformation algorithm to draw each fin, and count the number of fins; use the same method as above for the tail and middle and rear parts to obtain the number of tail spines and the number of fish bones in the middle and rear parts;
[0036] Step 5.6, based on the obtained mask map of the spine, count the number of spines in each partition, obtain the number of spines in the anterior dorsal region, the number of spines in the abdomen, the number of spines in the middle and the number of spines in the tail, and add up the spines in each partition to obtain the total number of spines; the upper end of the abdominal spine is connected to a single fishbone, and the lower end is connected to two fishbones. The main fishbones in the abdominal area are three times the number of fishbones. The upper and lower ends of the middle and tail spines are each connected to a fishbone. The main fishbones in the middle and tail areas are twice the number of fishbones. The main fishbones in the abdomen and the middle and tail areas are added to obtain the number of main fishbones;
[0037] Step 6: The terminal computer writes the calculated fishbone phenotypic information and fish back thickness and length information into an automatically generated table, outlines each part through the terminal display module, and automatically calls the table to query the phenotypic information of the fishbone.
[0038] The beneficial effects of adopting the above technical scheme are: a system and method for automatic detection of fish phenotypic information of fish bones without loss of fish bones provided by the present invention have a wide range of applications and are suitable for a variety of fish phenotypic information detection scenarios; the detection process is fully automated, and images are automatically collected, images are recognized, and fish bone phenotypic information is extracted, which can greatly reduce manual participation, improve work efficiency, and reduce labor and time costs; fish bone phenotypic information can be automatically extracted through the MASKRCNN network model, which greatly reduces errors and has strong integration and generalization capabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of the structure of a non-destructive fishbone automatic detection system for fishbone phenotype information provided by an embodiment of the present invention;
[0040] Figure 2 A flow chart of a method for automatically detecting fishbone phenotype information of non-destructive fishbone provided by an embodiment of the present invention;
[0041] Figure 3 A flow chart of calculating fish back thickness by a terminal computer provided in an embodiment of the present invention;
[0042] Figure 4 A flow chart of calculating fishbone phenotype information provided by an embodiment of the present invention;
[0043] Figure 5 This is a diagram of the detection results of extracting partial facial information of Wuchang fish provided in an embodiment of the present invention.
[0044] In the figure: 1. fish tank; 2. transparent partition; 3. entry slot; 4. signal transmission system; 5. robotic arm; 6. ceiling. DETAILED DESCRIPTION
[0045] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0046] This embodiment takes a Wuchang fish as an example, and uses the fish phenotypic information automatic detection system and method of the present invention without damaging fish bones to detect the phenotypic information of the fish.
[0047] In this embodiment, a fishbone phenotypic information automatic detection system is provided. Figure 1As shown, it includes a data acquisition device, a signal transmission system 4, a terminal computer and a terminal display; the data acquisition device includes a transparent fish tank 1 with an inlet slot 3, a camera placed on the upper side of the fish tank 1 and an X-ray camera connected to the terminal computer directly in front of the fish tank 1. An adjustable transparent partition 2 with holes is also provided in the fish tank 1; a mechanical arm 5 controlled by the terminal computer is provided on the adjustable transparent partition 2, and the distance between the partition 2 and the fish tank 1 is adjusted by the mechanical arm 5. A regulating valve is also provided on the adjustable transparent partition 2. When the mechanical arm 5 pushes the partition 2 but fails to achieve the expected effect, the regulating valve is manually adjusted to achieve the purpose of fixing the fish. In this embodiment, the camera on the upper side of the fish tank 1 is installed on the ceiling 6.
[0048] The data acquisition device collects the fish side image and the fish front X-ray image of the fish to be detected, and the fish side image and the fish front X-ray image are transmitted to the terminal computer through the signal transmission system 4 for storage and calculation; the terminal computer extracts the fish side contour and calculates the thickness information of the fish through the image processing technology according to the received fish side image, and then controls the data acquisition device to collect the fish front X-ray image, and identifies the various contours of the fish through the instance segmentation technology according to the received fish front X-ray image, identifies the various contours of the fish through the mask map obtained by the contour, calculates the fish bone phenotypic information, and displays the detection result through the terminal display module; the fish bone phenotypic information includes the circumference, area and major axis length, minor axis length of the fish body, fish head, and fish vesicle, the number of fish cervical vertebrae, the number of partitioned vertebrae, the number of fin rays, the number of fish vertebrae, the number of fin rays, the number of main fish bones, tail bones and the number of middle and rear bones.
[0049] In this embodiment, a method for automatically detecting fishbone phenotype information without damaging fishbone is provided. Figure 2 As shown, the following steps are included:
[0050] Step 1, collecting the side image of the fish to be detected by the camera of the data acquisition device and transmitting the collected image to the terminal computer through the signal transmission system for storage and calculation;
[0051] The fish to be detected is slid into the fish tank 1 through the entry slot 3. When the fish swims in the fish tank 1, the camera is started to take continuous photos of the fish sideways, and the taken pictures are transmitted to the terminal computer through the signal transmission system 4 for storage and calculation;
[0052] Step 2: The terminal computer selects a sideways image of a straight fish body and extracts the fish back contour through image processing technology, thereby calculating the thickness information of the fish and transmitting the fish thickness information to a data acquisition device, such as Figure 3 As shown, the specific method is:
[0053] Step 2.1, graying the received fish side image into a grayscale image;
[0054] Step 2.2, converting the obtained grayscale image into a binary image by adaptively taking a threshold value of the image grayscale value, changing the fish back outline in the fish side image to white, and changing the image background to black;
[0055] Step 2.3, extracting the fish back contour using the contour discovery algorithm based on the binary image;
[0056] Step 2.4, draw the minimum circumscribed rectangle of the fish back contour through the internal function of the contour discovery algorithm;
[0057] Step 2.5, extract the height and width of the minimum circumscribed rectangle of the fish back contour, compare the two sizes, take the smaller value as the thickness of the fish, and the larger value as the length of the fish, so as to get the thickness of the fish;
[0058] Step 3, the mechanical arm of the data acquisition device receives the fish thickness information, and starts the X-ray camera after adjusting the distance between the partition and the fish tank to take a front X-ray image of the fish;
[0059] The terminal computer transmits the calculated fish thickness information to the robot arm 5 through the signal transmission system 4. After receiving the length information, the robot arm 5 starts and pushes the transparent partition plate 2 with holes to the left, so that the distance between the transparent partition plate 2 with holes and the left fish tank 1 is equal to the thickness of the fish. Then the robot arm 5 keeps the position unchanged. At this time, the robot arm 5 feeds back the action completion information to the terminal computer, and the terminal computer sends a shooting instruction to the X-ray camera. After receiving the instruction, the X-ray camera takes a single X-ray photo of the front of the fish through its own system and sends it back to the terminal computer.
[0060] In this embodiment, the process of the terminal computer detecting the information of each part of the fish based on the X-ray photo of the front of the fish is as follows: Figure 4 As shown, the specific method is as follows:
[0061] Step 4, the terminal computer obtains the segmentation mask map of each part of the fish bone through the MASK RCNN network model according to the received X-ray image of the front of the fish;
[0062] Step 4.1: Determine whether a trained MASK RCNN model already exists. If so, proceed to the test phase in step 4.3; if not, proceed to the training phase in step 4.2.
[0063] Step 4.2: Training phase;
[0064] Step 4.2.1, use labelme annotation software to annotate the contours of the fish head, fish bladder, fish body, dorsal front vertebrae, abdominal vertebrae, middle vertebrae, caudal vertebrae, fish fins, tail, and middle and rear parts of the fish bones, read the X-ray image of the front of the fish and the annotation file corresponding to the annotation target position, and store the annotation file;
[0065] Step 4.2.2: Through the MASK RCNN network model training, three prediction values of predicted classification, detection position, and segmentation mask are obtained through forward propagation, and these three prediction values are compared with the annotation file to calculate the loss of the three;
[0066] Step 4.2.3: Continuous iteration of back propagation makes the loss of the three prediction values gradually decrease until the model converges;
[0067] Step 4.2.4: Output the converged model;
[0068] Step 4.3, call the MASK RCNN network model to enter the testing phase and obtain the segmentation mask map of each part of the fishbone;
[0069] Step 5: Based on the obtained segmentation mask images of each part of the fishbone, the fishbone phenotypic information is extracted by image processing technology;
[0070] Step 5.1, paint a specific pure color on the obtained mask images of the fish head, fish bladder and fish body, convert them into the HSV color space to track their colors, and then grayscale them and convert them into grayscale images;
[0071] Step 5.2: Convert the grayscale image into a binary image by adjusting the threshold (the threshold range is between 50-150). The area of the binary image containing the mask image target is white, and the other background areas are black.
[0072] Step 5.3, use the contour discovery algorithm to extract the black and white boundary contours, call the algorithm's internal functions (cv2.contourArea() to calculate the area, cv2.arcLength() to calculate the perimeter) to calculate the perimeter and area of the contour, thereby obtaining the perimeter and area of the target fish head, fish bladder, and fish body;
[0073] Step 5.4, draw a convex hull using the contour approximation method based on the perimeter of the contour, calculate the distance between the edge points of the convex hull, find the maximum distance as the major axis length of the target contour, and the shortest distance as the minor axis length, thereby obtaining the axis length information of the target fish;
[0074] Step 5.5, based on the obtained mask images of the fins, tail, and middle and rear parts, create a blank image of the same size as the original fish front X-ray image, extract the fins from the original fish front X-ray image into the blank image through the contour discovery algorithm, use the image sharpening algorithm to highlight the edges of the fins, use the Gaussian filter algorithm to eliminate small noise points, use the Hough linear transformation algorithm to draw each fin, and count the number of fins; use the same method as above for the tail and middle and rear parts to obtain the number of tail spines and the number of fish bones in the middle and rear parts;
[0075] Step 5.6, based on the mask map of the obtained spine, count the number of spines in each partition, obtain the number of spines in the anterior dorsal region, the number of spines in the abdomen (the number of ribs), the number of spines in the middle and the number of spines in the tail, and add up the spines in each partition to obtain the total number of spines; the upper end of the abdominal spine is connected to a single fishbone, and the lower end is connected to two fishbones. The main fishbones in the abdominal area are three times the number of fishbones. The upper and lower ends of the middle and tail spines are each connected to a fishbone. The main fishbones in the middle and tail areas are twice the number of fishbones. The main fishbones in the abdominal and middle tail areas are added to obtain the number of main fishbones;
[0076] Step 6: The terminal computer writes the calculated fishbone phenotype information and fish back thickness and length information into the automatically generated table, and outlines each part through the terminal display module, such as Figure 5 As shown, the table is automatically called to query the phenotypic information of the fish bones.
[0077] In this embodiment, at this point, the entire identification process of the Wuchang fish bone is completed, and the terminal computer sends a control instruction to the robotic arm 5, and the robotic arm 5 pushes the transparent partition 2 with holes to the right so that the fish can swim normally. After the fish is salvaged, the above process can be repeated to measure and identify other fish species.
[0078] 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 or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.
Claims
1. A non-destructive automatic detection system for fishbone phenotype information, Features: The invention comprises a data acquisition device, a signal transmission system, a terminal computer and a terminal display; the data acquisition device comprises a transparent fish tank with an inlet, a camera placed on the upper side of the fish tank and an X-ray camera connected to the terminal computer in front of the fish tank; an adjustable transparent partition with holes is also arranged in the fish tank; a mechanical arm controlled by the terminal computer is arranged on the adjustable transparent partition, and the distance between the partition and the fish tank is adjusted by the mechanical arm; the data acquisition device acquires the side image of the fish to be detected and the X-ray image of the front of the fish, and transmits them to the terminal computer through the signal transmission system for storage and calculation; the terminal computer extracts the side contour of the fish and calculates the thickness information of the fish through the image processing technology according to the received side image of the fish, then controls the data acquisition device to acquire the X-ray image of the front of the fish, and obtains the segmentation mask map of each part of the fish bone through the MASK RCNN network model according to the received X-ray image of the front of the fish, and extracts the fish bone phenotypic information on the basis of the segmentation mask map of each part of the fish bone, and displays the detection result through the terminal display module.
2. The fishbone phenotype information automatic detection system of non-destructive fishbone according to claim 1, Features: The fish bone phenotypic information includes the circumference, area, major axis length, minor axis length, number of cervical vertebrae, number of partitioned vertebrae, number of fin rays, number of fish vertebrae, number of fin rays, number of main fish bones, tail bones and number of middle and rear bones of the fish body, fish head and fish fossa.
3. The fishbone phenotype information automatic detection system of non-destructive fishbone according to claim 1, Features: The adjustable transparent partition is also provided with a regulating valve, and when the mechanical arm pushes the partition but fails to achieve the expected effect, the regulating valve is manually adjusted to achieve the purpose of fixing the fish.
4. A method for automatically detecting fishbone phenotypic information of fishbone without loss of fishbone, using the system of claim 1 for detection, Features: The following steps are involved: Step 1, collecting the side image of the fish to be detected by the camera of the data acquisition device and transmitting the collected image to the terminal computer through the signal transmission system for storage and calculation; The fish to be tested is slid into the fish tank through the entry slot. When the fish swims in the fish tank, the camera is started to take continuous photos of the fish sideways, and the taken images are transmitted to the terminal computer through the signal transmission system for storage and calculation; Step 2, the terminal computer extracts the fish side profile through image processing technology according to the received fish side image, and then calculates the thickness information of the fish, and transmits the fish thickness information to the data acquisition device; Step 3, the mechanical arm of the data acquisition device receives the fish thickness information, and starts the X-ray camera after adjusting the distance between the partition and the fish tank to take a front X-ray image of the fish; Step 4, the terminal computer obtains the segmentation mask map of each part of the fish bone through the MASK RCNN network model according to the received X-ray image of the front of the fish; Step 5: Based on the obtained segmentation mask images of each part of the fishbone, the fishbone phenotypic information is extracted by image processing technology; Step 6: The terminal computer writes the calculated fishbone phenotypic information and fish back thickness and length information into an automatically generated table, outlines each part through the terminal display module, and automatically calls the table to query the phenotypic information of the fishbone.
5. According to claim 4, a method for automatically detecting fishbone phenotype information without damaging fishbone, Features: The step 2 comprises the following steps: Step 2.1, graying the received fish side image into a grayscale image; Step 2.2, converting the obtained grayscale image into a binary image by adaptively taking a threshold value of the image grayscale value, changing the fish back outline in the fish side image to white, and changing the image background to black; Step 2.3, extracting the fish back contour using the contour discovery algorithm based on the binary image; Step 2.4, draw the minimum circumscribed rectangle of the fish back contour through the internal function of the contour discovery algorithm; Step 2.5, extract the height and width of the minimum circumscribed rectangle of the fish back contour, compare the two sizes, take the smaller value as the thickness of the fish, and the larger value as the length of the fish, so as to get the thickness of the fish.
6. According to claim 5, a method for automatically detecting fishbone phenotype information without damaging fishbone, Features: The specific method of step 3 is: The terminal computer transmits the calculated fish thickness information to the robotic arm through the signal transmission system. After receiving the fish thickness information, the robotic arm starts and pushes the transparent partition with holes to the side where the fish is, so that the distance between the transparent partition with holes and the fish tank on that side is equal to the thickness of the fish. The robotic arm then maintains this position unchanged. At this time, the robotic arm feeds back the action completion information to the terminal computer, and the terminal computer sends a shooting command to the X-ray camera. The X-ray camera takes a single X-ray image of the front of the fish through its own system and then sends it back to the terminal computer.
7. According to claim 4, a method for automatically detecting fishbone phenotype information without damaging fishbone, Features: The specific method of step 4 is: Step 4.1: Determine whether a trained MASK RCNN model already exists. If so, proceed to the test phase in step 4.3; if not, proceed to the training phase in step 4.
2. Step 4.2: Training phase; Step 4.2.1, use the annotation software to annotate the contours of the fish head, fish bladder, fish body, dorsal front vertebrae, abdominal vertebrae, middle vertebrae, caudal vertebrae, fish fins, tail, middle and rear parts of the fish bones, read the X-ray image of the front of the fish and the annotation file corresponding to the annotation target position, and store the annotation file; Step 4.2.2: Through the MASK RCNN network model training, three prediction values of predicted classification, detection position, and segmentation mask are obtained through forward propagation, and these three prediction values are compared with the annotation file to calculate the loss of the three; Step 4.2.3: Continuous iteration of back propagation makes the loss of the three prediction values gradually decrease until the model converges; Step 4.2.4: Output the converged model; Step 4.3: Call the MASK RCNN network model to enter the testing phase and obtain the segmentation mask images of various parts of the fishbone.
8. According to claim 7, a method for automatically detecting fishbone phenotype information without damaging fishbone, Features: The specific method of step 5 is: Step 5.1, paint a specific pure color on the obtained mask images of the fish head, fish bladder and fish body, convert them into the HSV color space to track their colors, and then grayscale them and convert them into grayscale images; Step 5.2: Convert the grayscale image into a binary image by adjusting the threshold. The area of the binary image containing the mask image target is white, and the rest of the background area is black. Step 5.3, use the contour discovery algorithm to extract the black and white boundary contours, call the algorithm's internal function to calculate the perimeter and area of the contours, and thus obtain the perimeter and area of the target fish head, fish bladder, and fish body; Step 5.4, draw a convex hull using the contour approximation method based on the perimeter of the contour, calculate the distance between the edge points of the convex hull, find the maximum distance as the major axis length of the target contour, and the shortest distance as the minor axis length, thereby obtaining the axis length information of the target fish; Step 5.5, based on the obtained mask images of the fins, tail, and middle and rear parts, create a blank image of the same size as the original fish front X-ray image, extract the fins from the original fish front X-ray image into the blank image through the contour discovery algorithm, use the image sharpening algorithm to highlight the edges of the fins, use the Gaussian filter algorithm to eliminate small noise points, use the Hough linear transformation algorithm to draw each fin, and count the number of fins; use the same method as above for the tail and middle and rear parts to obtain the number of tail spines and the number of fish bones in the middle and rear parts; Step 5.6, based on the obtained mask map of the spine, count the number of vertebrae in each partition, obtain the number of vertebrae in the anterior dorsal region, the number of vertebrae in the abdomen, the number of vertebrae in the middle and the number of vertebrae in the tail, and add up the vertebrae in each partition to get the total number of vertebrae; the upper end of the abdominal vertebra is connected to a single fishbone, and the lower end is connected to two fishbones. In the abdominal area, the main fishbones are three times the number of fishbones. The upper and lower ends of the middle and tail vertebrae are each connected to a fishbone. In the middle and tail areas, the main fishbones are twice the number of fishbones. Add the main fishbones in the abdominal and middle tail areas to get the number of main fishbones.
