简体   繁体   English

NUC 计算机 (Windows 10) 上的 C# 应用程序,用于长时间收集数据

[英]C# application on a NUC computer (Windows 10) for data collection over long period of time

I'm working on a project that involves grabbing frames from several cameras, all connected by USB to an Intel NUC computer running Windows 10.我正在开展一个项目,该项目涉及从多个摄像头抓取帧,所有摄像头均通过 USB 连接到运行 Windows 10 的英特尔 NUC 计算机。

I want to write C# application(s?) for that end.我想为此编写 C# 应用程序。 The scenario is as followed:场景如下:

  • Every hour, I need to grab several frames (1-5) from each camera.每小时,我需要从每台相机抓取几帧 (1-5)。 Then go to sleep till the next cycle.然后去睡觉直到下一个周期。
  • The data collection will take several months.数据收集将需要几个月的时间。

I thought about the following options:我考虑了以下选项:

  1. Main program running all time that calls the data collection cycle every hour.主程序一直运行,每小时调用一次数据收集周期。
  2. Program that just performs a single data collection cycle.仅执行单个数据收集周期的程序。 Then rely on outsider scheduler to call that program on specific times.然后依靠外部调度程序在特定时间调用该程序。

Since the duty cycle of this data collection is very small (setting up the devices and grabbing images sequentially takes less than a minute, compared to about an hour interval), and since it's not healthy for some of the devices to remain active to long periods, I want to close and reopen the devices' context upon demand.由于此数据收集的占空比非常小(与大约一个小时的间隔相比,设置设备并按顺序抓取图像只需不到一分钟的时间),并且由于某些设备长时间保持活动状态是不健康的,我想根据需要关闭并重新打开设备的上下文。

What option do you suggest to take, for a robust SW?对于强大的软件,您建议采取什么选择? I'll be happy to consider other options as well :)我也很乐意考虑其他选择:)

Your help is highly appreciated!非常感谢您的帮助!

Three years after, and the solution of @Damien_The_Unbeliever proved itself as a great one!三年后,@Damien_The_Unbeliever 的解决方案证明了自己是一个伟大的解决方案! I avoided memory leaks and other drifting sicknesses and was able to run the data acquisition for durations of months.我避免了内存泄漏和其他晕厥,并且能够运行数月的数据采集。

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

相关问题 如何等待很长一段时间webdriver c# - How to wait for a long period of time webdriver c# C#WinForm应用程序UI长时间冻结 - C# WinForm application UI freezes after long period c# 如何检测windows 表单应用程序在计算机启动后首次运行(启动时)? - c# how to detect that the windows form application runs for the first time(on startup) after computer starts? 缓冲 StreamWriter 用于长时间写入 - Buffered StreamWriter for writing over a long period of time 在 Windows 中长时间跟踪进程的内存使用情况的最佳工具是什么? - What's the best tool to track a process's memory usage over a long period of time in Windows? 在计算机C#Windows应用程序中升级已安装的程序 - Upgrade the installed program in computer c# windows application 从Intranet C#Windows应用程序中的计算机名称获取IP - Get IP from computer name in intranet C# Windows application 如何使用 c# windows 窗体应用程序制作计时器以关闭计算机 - How to make a timer to shutdown computer with c# windows form application 在另一台计算机上将C#Windows窗体应用程序的连接字符串更改为其 - Change the Connecting string of the C# windows form application to it in another computer C#WPF应用程序随着时间的推移而冻结 - C# WPF application freezed over time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM