如何在微控制器上运行opencv? [英] How to run opencv on on a microcontroller?

查看:96
本文介绍了如何在微控制器上运行opencv?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对电子领域和控制器一无所知. 但是我想知道如何将opencv程序与红色交通灯相结合? 我知道答案是关于微控制器的,但我只知道有一个编译器AVR,可以将C编译为十六进制,然后使用微控制器.

I don't know lots of things about the electronics field and controllers. But I want to know how to combine an opencv program with a red traffic light? I know that the answer is something that is micro controller but I only know that there is a compiler AVR which can compile C to hex and then working with micro controllers.

但是OpenCV(我认为我不会在C上运行)是高级的,可能无法与AVR一起使用.

But OpenCV (which I think I won't run on C) is high level and probably won't work with AVR.

那么我该如何结合机器视觉程序(由OpenCV& C ++实现)和交通红灯计时器呢?

So what should I do to combine a machine vision program (by OpenCV & C++) and the timer of a traffic red light?

  • 由于某些原因,更改编程语言和库对我来说是如此困难.
  • 我的程序必须是实时的.
  • 如果有另一个成本不高的系统(而不是控制器和...),并且可以运行opencv程序,那么我可以使用它.

如果您需要更多详细信息,请告诉我.

If you need anymore details just tell me.

推荐答案

我最初将此问题报告为>可能重复,但是您问了一些其他需要解决的问题.

I originally reported this question as possible duplicate, but you asked some other questions that need to be addressed.

OpenCV自版本2.0 起提供了 C接口 C ++接口.因此,从理论上讲,可以使用C编译器来配置和构建OpenCV,但是我不知道此任务背后的困难,因为我自己从来没有做过.请注意,大多数C ++接口仅被编码为C接口的包装器.

OpenCV provides a C interface as well as a C++ interface since version 2.0. So in theory, it is possible to configure and build OpenCV using a C compiler, but I don't know the difficulty behind this task since I never done it myself. Note that most of the C++ interface is coded only as a wrapper around the C interface.

关于实现实时处理,这完全取决于设备的处理能力和您选择在设备中使用的算法解决方案.

About achieving real-time processing, that depends entirely on the processing power of your device and the algorithms you choose to use in your solution.

我们最近在中讨论了有关实时处理和OpenCV的问题.此线程.

这篇关于如何在微控制器上运行opencv?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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