每10秒钟捕获一次新图像 [英] capture a new image every 10 seconds

查看:95
本文介绍了每10秒钟捕获一次新图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我想制作一个程序,每隔特定的时间从网络摄像机捕获一个图像...(每10秒钟捕获一个新图像)
我有捕捉图像的程序
我想要计时器的代码..我如何创建计时器并每10秒执行一次捕获图像的代码.

请给我C#代码的帮助
谢谢

Hi I want to make a program that capture an image from web camera every specific time ... (capture a new image every 10 seconds)
I have the program to capture the image
I want the code of timer .. how i create timer and execute the code of capturing image every 10 seconds.

Please I want the Help in C# code
Thank you

推荐答案

在工具箱中有一个计时器控件.
Interval属性以毫秒为单位.
因此,如果要1秒将其设置为1000.
如果要10秒,则将其设置为10000.
双击计时器,将显示Timer_Tick事件.
将您要执行的代码放在此处.
希望运行时将Enabled属性设置为true.
In the Toolbox there is a timer control.
The Interval property is in milliseconds.
So if you want 1 second set it to 1000.
if you want 10 seconds set it to 10000.
Double-clicking the timer gives you the Timer_Tick event.
Put your code you want to execute there.
Set the Enabled property to true when you want it to run.


这篇关于每10秒钟捕获一次新图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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