I am having a project to count the number of pigs using Pyhton and Opencv to count. My problem is that the number of pigs is too much, the pigs are crowded together, making the pig counting missed and inaccurate. I drew 2 straight lines to easily confirm the pig counting, when the pig has not passed the 2 straight lines, the dot is pink, when it passes the 2 lines, the dot is green and the pig will be counted, but the pigs are too crowded and crowded together, so the counting is not accurate Continue reading...