ame wrote:Anyway, can you fly the drone at night? If the weeds are taller than other plants could you shine a light and look at the shadows? If you cast a light at a low angle it makes the shadows much larger, so easier to see.
That's a good idea. Of course if your light is right next to the camera, you won't see the shadows, being always hidden behind whatever casts them. But if you have either the light or the camera mounted on a pole so there is some distance, and thus angle difference between light source and camera, then you should be able to see the shadow that the weed plant casts over the crop. Depending on the texture of the crop's top surface leaves, though, I'm still not sure if fully automatic recognition is necessarily easy.
In general this is a 3D extraction problem, you want to know the shape of the surroundings in 3-D, so you can pick out the tall objects. I know there have been demonstrations of algorithms that combine several still images from different angles to create a 3D model of a scene. Whether that could run in real-time on a Pi, I don't know. Maybe with very limited resolution, it could work.
And of course, if it all does work, don't stand in the field yourself during this process or you might get doused with herbicide, I guess! And if it does work and you selectively eliminate all the tall weeds, that means short weeds will now proliferate, but I guess that's another story.