I'm trying to build a viewer application for analog surveillance cameras in .NET. Something along the line of Zoneminder. Just wondering if there's any api available or where should I start looking in the .NET framework? I'm no expert in the imaging area. Thank you.
我正在尝试为.NET中的模拟监控摄像机构建一个查看器应用程序。沿着Zoneminder的路线。只是想知道是否有可用的api或者我应该从哪里开始查看.NET框架?我不是成像领域的专家。谢谢。
2 个解决方案
#1
1
This looks interesting. It's not in C#, but it should be easy enough to port it to C# using one of the online converters.
这看起来很有趣。它不在C#中,但它应该很容易使用其中一个在线转换器将其移植到C#。
See also https://*.com/questions/236249/simple-net-webcam-library
另请参见https://*.com/questions/236249/simple-net-webcam-library
#2
0
For an analog surveillance camera, you'll need an encoder. You can find cheap encoders that support DirectShow which you can wire together and display in a .NET app quickly.
对于模拟监控摄像机,您需要一个编码器。您可以找到支持DirectShow的廉价编码器,您可以将它们连接在一起并快速显示在.NET应用程序中。
You need to be careful in choosing a capture card though. Many manufacturers claim to support DirectShow but really only utilize DirectDraw internally and have no real support for DirectShow. Or they support DirectShow but not any of the standard connectors that are used and basically support it in name only. Or they support DirectShow but require custom code just for their card.
你需要小心选择一张采集卡。许多制造商声称支持DirectShow,但实际上只在内部使用DirectDraw,并且对DirectShow没有真正的支持。或者它们支持DirectShow,但不支持任何使用的标准连接器,并且仅在名称上支持它。或者他们支持DirectShow但需要为他们的卡定制代码。
Here are a few options I would recommend.
以下是我推荐的几个选项。
If using a USB webcam is an option instead of an analog security camera, it'll be cheaper and easier. The camera will usually support DirectShow directly although sometimes you can run into color space conversion issues with certain cameras and there's no way to know about this ahead of time until you test a particular camera.
如果使用USB网络摄像头是一种选择而不是模拟安全摄像头,它将更便宜,更容易。相机通常会直接支持DirectShow,虽然有时您可能会遇到某些相机的色彩空间转换问题,并且在您测试特定相机之前无法提前知道这一点。
#1
1
This looks interesting. It's not in C#, but it should be easy enough to port it to C# using one of the online converters.
这看起来很有趣。它不在C#中,但它应该很容易使用其中一个在线转换器将其移植到C#。
See also https://*.com/questions/236249/simple-net-webcam-library
另请参见https://*.com/questions/236249/simple-net-webcam-library
#2
0
For an analog surveillance camera, you'll need an encoder. You can find cheap encoders that support DirectShow which you can wire together and display in a .NET app quickly.
对于模拟监控摄像机,您需要一个编码器。您可以找到支持DirectShow的廉价编码器,您可以将它们连接在一起并快速显示在.NET应用程序中。
You need to be careful in choosing a capture card though. Many manufacturers claim to support DirectShow but really only utilize DirectDraw internally and have no real support for DirectShow. Or they support DirectShow but not any of the standard connectors that are used and basically support it in name only. Or they support DirectShow but require custom code just for their card.
你需要小心选择一张采集卡。许多制造商声称支持DirectShow,但实际上只在内部使用DirectDraw,并且对DirectShow没有真正的支持。或者它们支持DirectShow,但不支持任何使用的标准连接器,并且仅在名称上支持它。或者他们支持DirectShow但需要为他们的卡定制代码。
Here are a few options I would recommend.
以下是我推荐的几个选项。
If using a USB webcam is an option instead of an analog security camera, it'll be cheaper and easier. The camera will usually support DirectShow directly although sometimes you can run into color space conversion issues with certain cameras and there's no way to know about this ahead of time until you test a particular camera.
如果使用USB网络摄像头是一种选择而不是模拟安全摄像头,它将更便宜,更容易。相机通常会直接支持DirectShow,虽然有时您可能会遇到某些相机的色彩空间转换问题,并且在您测试特定相机之前无法提前知道这一点。