简体   繁体   English

使用带有附加相机模块的 raspberry-pi 的简单 C# 相机查看器

[英]Simple C# camera viewer using raspberry-pi with attached camera module

Good day ladies and gentlemen女士们,先生们,美好的一天

I'm starting a little project where the C# application views real-time video stream from a camera.我正在启动一个小项目,其中 C# 应用程序查看来自相机的实时视频流。

The thing is that the camera that i will be using will be a raspberry pi (any model would do actually) with a camera module attached to it;问题是我将使用的相机将是树莓派(实际上任何型号都可以),并附有相机模块; and everything will be encased in a cheap CCTV camera casing.一切都将装在廉价的闭路电视摄像机外壳中。

My question here is that since the project will revolve around the C# Windows Forms Application, how can I receive the real-time video stream from the raspberry unit (using the C# application)?我的问题是,由于该项目将围绕 C# Windows 窗体应用程序,我如何从 raspberry 单元接收实时视频流(使用 C# 应用程序)?

Any helpful topics and tips for me to get me started are very much welcomed here.在这里非常欢迎任何对我有用的主题和提示。

thanks a bunch谢谢一堆

Ian伊恩

Yes of course, you can use Mono and run C# code right on your Pi!是的,当然,您可以使用 Mono 并在您的 Pi 上运行 C# 代码!

I haven't done it personally, but you should really look at the tutorials people have posted online.我没有亲自做过,但你真的应该看看人们在网上发布的教程。 Here's an example. 这是一个例子。

The thing I find totally cool is that you can develop your camera viewer application on Windows, compile your exe, copy it to your raspberry pi (once you get mono on it), and you can run it.我觉得非常酷的是,您可以在 Windows 上开发您的相机查看器应用程序,编译您的 exe,将其复制到您的 raspberry pi(一旦您获得单声道),您就可以运行它。

Hope you get it all working!希望你一切顺利! Raspberry Pi's are fun!树莓派很有趣!

Edit take a look at how the camera module interfaces with the pi and what functionality is exposed by the module.编辑看看相机模块如何与 pi 接口以及模块公开了哪些功能。 Look Here .这里 If you go all the way to the bottom, you'll see someone wrote a python implementation for the camera module.如果你一直走到底部,你会看到有人为相机模块编写了一个 python 实现。 Maybe you can read about how they leveraged the module in python and translate that into ac# implementation.也许您可以阅读有关他们如何利用 Python 中的模块并将其转换为 ac# 实现的信息。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM