Erlang 上的 OpenCV
我想在我的 Erlang 应用程序中使用 OpenCV。一种解决方案是编写一个 Erlang 端口等,但我确信以前已经完成过。
理想的结果是能够从 Erlang 配置 OpenCV,并且永远不会触及一行 C 代码。但这可能吗?你会怎么做?
I would like to use OpenCV in my Erlang application. One solution would be to write an Erlang port etc., but I'm sure it has been done before.
The ideal result would be to be able to configure OpenCV from Erlang, and never touch a line of C code. But is this possible ? How would you do that ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不使用 OpenCV C 库将特定的 OpenCV 配置包装在 C 应用程序中,并使用 Result = os:cmd('myapp') 调用该应用程序。这样您就不必担心可能的互操作性问题,并且可以在 C 代码和 Erlang 代码之间实现清晰的分离。
Why not wrap the specific OpenCV configuration in a C application using the OpenCV C lib and call that app using Result = os:cmd('myapp'). That way you don't have to mess around with possible interoperability issues and have a clear separation between you C and Erlang code.