简体   繁体   English

用Python进行焦点测试

[英]Focus Testing in Python

I am currently using opencv, image and pygame for capturing frames from a hd webcam. 我目前正在使用opencv,image和pygame从高清网络摄像头捕获帧。 What I want to achieve is to check if the captured frames are focused or not. 我要实现的是检查捕获的帧是否聚焦。 This is aka focus testing but I couldn't come up with a solution in Python. 这又是焦点测试,但我无法提供Python解决方案。 IMHO problem can be reduced to determining the blurness percentage of each pixel and come up with a decision. 恕我直言的问题可以减少到确定每个像素的模糊百分比并得出决定。 What is the name of this algorithm I am seeking for ? 我要寻找的这个算法的名字是什么? Does anyone have any experience implementing similar algorithms in Python ? 有没有人有使用Python实现类似算法的经验?

I would appreciate any guidance. 我将不胜感激。

If you want to check if an image is blurry this Is there a way to detect if an image is blurry? 如果要检查图像是否模糊, 是否可以检测图像是否模糊? might be able to help you, pretty interesting. 也许可以帮助您,非常有趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM