How to remove the shadows of the seeds? Also I would like to know if there is a way to change the color of all the seeds to red colour?
Asked
Active
Viewed 7,591 times
1
-
Why not make it easy on yourself and use proper illumination when taking the picture? — Also, please refrain from asking multiple questions at once, see [ask]. – Cris Luengo Jul 28 '18 at 13:34
2 Answers
1
It seems rather easy to detect the seeds since your background is homogeneous. You can start by some simple image processing (contrast enhancement, thresholding, contour detection) to detect the seeds and then you can plot red blobs (with the same area as the detected regions) on the original image. As for the shadows, you can check this question (How to remove the shadow in image by using openCV?).
1
I think you can solve with this paper and it will make you interesting.
The algorithm described there works quite well and this will be a good example for you in using opencv.
And you can find the source code here
Regards.

drimyus
- 91
- 1
- 5