Extract moving object from video taken by moving camera(drone) using opencv python
You can try optical flow. Since your platform is moving it's difficult to differentiate stationary vs dynamic objects with typical background subtraction techniques. With optical flow objects at the same distance from the camera should be moving with the same direction and magnitude. You can detect moving objects because they have different velocities relative to the area around them. This isn't trivial though; be ready to do a lot of tweaking to get the detection to work well.
I am working on a project where i have to detect moving object from moving camera for example: detecting hanging apples on trees using drone, detecting animals in farm using drone and detecting flowers on field like this. the main thing is i am using moving camera and i don't have fixed lighting condition as the video is captured in outdoor so i lighting may vary. I have to use open CV and python please suggest me reliable method that can be used for example as mentioned above.I know some basic method like background subtraction and motion detection but as my lighting conditions are not stationary i am not getting proper output