how can i detect row crops in this pictures?
1 view (last 30 days)
Show older comments

0 Comments
Answers (1)
Image Analyst
on 2 Jan 2019
Edited: Image Analyst
on 2 Jan 2019
If you're using a handheld camera, or camera on a moving vehicle, where the field of view changes drastically, then I thin it's best for you to use imfreehand() to manually find them. A demo is attached.
If you're using a mounted camera with a fixed field of view then you can just predefine a template in advance.
Trying to automatically find rows would be difficult, especially since I think you're doing this on growing crops and the "rows" are not so obvious in situations where the plants are very young (just specks in a rectangular grid), or very mature (in which case the rows may even come in contact with each other).
Another option would be deep learning but even that may not be perfect.
It would be easier in your other photos where all the plants are the same color and are in straight "rows", not curved, and are large enough that the intra-row spacing is less than the row-to-row spacing.
Another option would be to try the radon transform. I attach a demo.
2 Comments
Image Analyst
on 4 Jan 2019
Since it's been done and published already, the best answer I can give is like in my Answer there where I said to take one of the published algorithms, which do work. And if for some reasons your crops are not like everyone elses you either adapt one of those algorithms or hire one of those groups to get it done for you. It sounds like hiring may be your best option since you seem unsure about being able to adapt or write it yourself.
See Also
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!