# blur detection using opencv

I'm writing a script to detect blur images using OpenCV by applying Laplacian filter and calculate the std but there is a problem the std for images that contain motion blur is very close to those images which contain any other type of blur. (my propose is to find detect unsuitable images that can't detect the object on it like a dog image that contain motion blur for example)

I used this piece of code cv2.Laplacian(image, cv2.CV_64F, ksize=3 ).std() to find the blur ratio and make a threshold for std < 40 is considered a blurry image so I want a method to can differentiate between images that contain motion blur images and other kinds of blur

• oops, you just removed my edit that fixed the image: the Image url is https://i.imgur.com/cGxuLQK.jpg, not https://imgur.com/cGxuLQK like you used. – Marcus Müller Aug 2 '18 at 11:52
• @MarcusMüller sorry I removed it by mistake I will edit it, thank you :) – noura_7ussein Aug 2 '18 at 11:53