AI impacts surrounding human life, such as the economy, health, education, and agricultural production; however, the crop prices in the harvest season are still on manual calculation, which causes doubts about accuracy. In this study, an image-based approach is proposed to help farmers calculate rice prices more accurately. YOLOv5 is used to detect and extract the scales in the images taken from the harvesting of rice crops. Then, various image processing techniques, such as brightness balance, background removal, etc., are compiled to determine the needle position and number on the extracted scale. Lastly, geometric transformations are proposed to calculate the weight. A real dataset of 709 images is used for the experiment. The proposed method achieves good results in terms of mAP@0.5 at 0.995, mAP@[0.5:0.95] at 0.830 for scale detection, and MAE at 3.7 for weight calculation.
Tạp chí khoa học Trường Đại học Cần Thơ
Lầu 4, Nhà Điều Hành, Khu II, đường 3/2, P. Xuân Khánh, Q. Ninh Kiều, TP. Cần Thơ
Điện thoại: (0292) 3 872 157; Email: tapchidhct@ctu.edu.vn
Chương trình chạy tốt nhất trên trình duyệt IE 9+ & FF 16+, độ phân giải màn hình 1024x768 trở lên