Skip to content

This code processes fish images by isolating the fish using HSV masking and contour detection. It calculates the fish's length, height, and area, then saves these measurements along with the fish ID and weight to an Excel file. Processed images with bounding boxes are also saved for reference.

Notifications You must be signed in to change notification settings

mikey-png/Fish-Weight-Prediction-Using-Image-Recognition

Repository files navigation

Fish-Weight-Prediction-Using-Image-Recognition

This code processes fish images by isolating the fish using HSV masking and contour detection. It calculates the fish's length, height, and area, then saves these measurements along with the fish ID and weight to an Excel file. Processed images with bounding boxes are also saved for reference.

分别提取每个图片中鱼的主体

image

计算长度、宽度、像素面积 与原始数据中的重量,组合为新的训练样本

image

训练样本中可见像素面积和重量有一定的线性相关性

image

使用RF+SVM训练 在测试集可达 90%以上准确率

image

Datasource:https://www.kaggle.com/datasets/miokee/fish-img

About

This code processes fish images by isolating the fish using HSV masking and contour detection. It calculates the fish's length, height, and area, then saves these measurements along with the fish ID and weight to an Excel file. Processed images with bounding boxes are also saved for reference.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages