检测视频中的变化
我有一个朋友,他的工作是观看视频并记录屏幕上发生的事情。大多数时候它只是蓝/白屏,所以变化很小。这是室外视频,因此颜色会随着时间的推移而变化。这也是一个雪区,所以天空和地面之间的差别很小。
我想知道是否有一种方法可以轻松找到屏幕上发生的事情,而无需坐下来完全观看。我想到了两种方法来做到这一点。
视频编码为 H.264,使用增量压缩。 有没有一种工具可以绘制特定时间使用的数据量的图表 框架?比特率的峰值表明视频上有活动。 这将有助于快速扫描找到每个活动点。
其次,可以使用脚本程序,例如 AutoIt 查看框架并获得平均颜色,然后在以下情况下发出警报 一定数量的像素超出了附近的“容差水平” 平均颜色。该视频仍需要开始播放 结束了,但是没必要去关注这个东西。
有这样的工具可用于#1吗?如果有必要,我可以为 #2 编写一些代码,我只是想看看有哪些资源可用。
I have a friend whose job is to watch a video and take note of times when something happens on the screen. Most of the time it's just a blue/white screen, so there is very little change. It is an outside video, so the color changes as the day goes by. It's also a snowy area, so there is little differentiation between sky and ground.
I'm wondering if there's a way to easily find when things are happening on the screen without sitting and watching it completely. I have thought of two methods for doing this.
The video is encoded as H.264, which uses delta compression.
Is there a tool that graphs the amount of data used at a particular
frame? The spikes in bitrate would indicate activity on the video.
This would help find every point of activity in a quick scan.Second, it would be possible to use a script program such as AutoIt
to view the frame and get an average color, then sound an alert when
a certain number of pixels fall outside a "tolerance level" near the
average color. The video would still need to be played beginning to
end, but it wouldn't be necessary to pay attention to the thing.
Is there such a tool available for #1? If necessary, I can code something for #2, I just thought I'd see what resources are available.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查 AutoIt 中的 PixelGetColor(针对单个像素)或 PixelSearch(针对扫描矩形)。
您可以使用 PixelGetColor 保存像素颜色并每秒检查相同的位置。如果新值与旧值不同,就会发生某些情况。为了增加检测变化的机会,您当然应该检查多个像素。
如果您知道要搜索的颜色,请使用 PixelSearch。 PixelSearch 能够扫描整个矩形。
它甚至有一个“阴影变化”参数,您可以在其中指定搜索特定颜色时想要的容差程度。
Check PixelGetColor (for a single pixel) or PixelSearch (for scanning a rectangle) in AutoIt.
You could save a pixels color using PixelGetColor and check the same position every second. If the new value is different from the old one something happened. To increase the chances of detecting changes you should of course check multiple pixels.
If you know the color you're searching for use PixelSearch. PixelSearch is able to scan a whole rectangle.
It even has a "shade-variation" parameter where you can specify how much tolerance you want to have when searching for a specific color.
您可以使用 autoIt 对屏幕的多个像素进行采样并返回颜色。然后跟踪它是否发生显着变化。也许在一个人大小的盒子里。它完全支持从屏幕捕获和解码屏幕元素。然后可以发送电子邮件或短信警报。
You can use autoIt to sample a number of pixels of the screen and return the color. Then track if it changes dramatically. Perhaps in a person sized box. It has full support for capturing from the screen and decoding the screen elements. Email or SMS alerts could then be sent.