Ask Your Question
0

Motion detection of airplanes and not clouds

asked 2018-12-20 16:14:02 -0600

AndyP gravatar image

Hi I'm trying to motion detect all visible airplanes. The problem is that the motion detection is picking up small changes in the clouds. Does anyone have any ideas to fix this? I thought I could eliminate all the boxes that aren't moving in a constant direction like the planes are, but I'm not sure how to do this. All of the cloud boxes are pretty much stationary. You can see in the first image it works great and picks up 2 airplanes. In the second image it picks up one airplane but also lots of clouds. 2 airplanes detected clouds detected

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-12-21 06:44:35 -0600

supra56 gravatar image

I used to do road lanes. To get rid of cloud and some on ground too. Certainly, I am using python on raspberry pi. Here is snippet code:

gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
equ = cv2.equalizeHist(gray)
blur = cv2.GaussianBlur(equ,(7,7),3)  
 # smooth and canny edge detection
edge = cv2.Canny(blur, 150, 255, 3)
ret, thresh = cv2.threshold(edge, 250, 255, cv2.THRESH_BINARY)
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-20 16:14:02 -0600

Seen: 614 times

Last updated: Dec 21 '18