python - frozen frames detection openCV python
问题描述
I'm trying to detect camera is capturing frozen frames or black frame. Suppose a camera is capturing video frames and suddenly same frame is capturing again and again. I spend long time to get any idea about this problem statement but i failed. So how we detect it or any idea/steps/procedure for this problem.
解决方案
This was my approach to solve this issue.
Frozen frames: calculate absolute difference over HSV/RGB per every pixel in two consecutive frames np.arrays and determine max allowed diff that is valid for detecting frozen frames.
Black frames have naturally very low (or zero) V-value sum over the frame. Determine max V-sum of whole frame to determine, below which the frame is "black".
推荐阅读
- chef-infra - 如何避免厨师独奏将文件从站点食谱复制到食谱文件夹?
- python - Geopandas每行不同的crs?
- python - 使用 python 打开终端并在 docker 中运行命令
- javascript - 在 Blazor 服务器端中,如何检测用户是否尝试离开当前页面
- python - 如何在 Tensorflow 2 LSTM 训练中屏蔽多输出?
- html - 引导导入影响所有其他 CSS 设计
- javascript - 如何测试测试中的负面行为?就像调用 API 失败一样
- node.js - 托管在 Heroku 上的 React 应用程序抛出 500 服务器错误
- php - 学习 PHP:尝试使用 CREATE DATABASE IF NOT EXISTS 添加新数据库 // 出错 SQLSTATE[HY000] [1049] base unknow
- reactjs - 在 api 调用之前反应 useState 钩子更新