如何从录制的监控摄像机视频读取时间? [英] How to read time from recorded surveillance camera video?

查看:548
本文介绍了如何从录制的监控摄像机视频读取时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我必须从监控摄像机录制的视频中读取录制时间。

I have a problem where I have to read the time of recording from the video recorded by a surveillance camera.

时间显示在左上角区域的视频。以下是显示时间的区域的屏幕抓取的链接。此外,数字颜色(白色/黑色)在视频期间不断变化。

The time shows up on the top-left area of the video. Below is a link to screen grab of the area which shows the time. Also, the digit color(white/black) keeps changing during the duration of the video.


http://i55.tinypic。 com / 2j5gca8.png

请指导我解决这个问题。我是一个Java程序员,所以更喜欢通过Java的方法。

Please guide me in the direction to approach this problem. I am a Java programmer so would prefer an approach through Java.

编辑:
感谢unhillbilly的评论。我看过Ron Cemer OCR库,其性能远远低于我们的要求。

Thanks unhillbilly for the comment. I had looked at the Ron Cemer OCR library and its performance is much below our requirement.

由于ocr性能不如预期,我计划使用屏幕抓取为所有数字构建字符集,并使用一些图像/像素比较库比较框架时间与比较后将显示概率结果的字符集。

Since the ocr performance is less than desired, I was planning to build a character set using the screen grabs for all the digits, and using some image/pixel comparison library to compare the frame time with the character-set which will show a probabilistic result after comparison.

所以我在寻找一个好的图像比较库非java库,我可以使用命令行运行)。

So I was looking for a good image comparison library(I would be OK with a non-java library which I can run using the command-line). Also any advice on the above approach would be really helpful.

推荐答案

这似乎不需要一个完整的OCR在这里。

我假设数字总是在图像中的相同位置。你只需要在每个已知位置(黑色或白色)中输入数字0-9。

每个位置都有一个简单的模板匹配每个数字(你将有10个模板数字在每种颜色)是非常快(实时),应该给你非常准确的结果。

It doesn't seem like you need a full blown OCR here.
I presume that the numbers are always in the same position in the image. You only expect digits 0-9 at each of the know positions (in either black or white).
A simple template matching at each position with each of the digits (you'll have 20 templates for the 10 digits at each color) is very fast (real-time) and should give you very accurate results.

这篇关于如何从录制的监控摄像机视频读取时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆