在纯Java中学习JavaCV [英] Learning JavaCV in pure Java

查看:435
本文介绍了在纯Java中学习JavaCV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力学习JavaCV。众所周知,缺乏关于这一主题的教育材料是一个非常大的问题。在JavCV主页中,他们为OpenCV CookBook一书中的C ++示例提供了大量示例。但情况是,他们不是Java,他们在SCALA !!!!现在我已经疯了!我知道很多例子都在网上,但我想从头开始学习它,然后我才能正确地做到。 OpenCV CookBook是一本非常好的书,但它完全是关于C ++中的OpenCV,而不是关于Java的。

I am trying to learn JavaCV. As you all know, the lack of educational materials on this subject is a very big problem. In JavCV home page, they have provided lot of examples for the C++ examples in book "OpenCV CookBook". But the case is, they are not Java, they are in SCALA!!!! Now I have already gone crazy! I know lot of examples are in web, but I want to learn it from beginning to advance, then only I can do it properly. "OpenCV CookBook" is a very good book but it is all about OpenCV in C++, not anything about Java.

有人请帮助我找一个更好的学习JavaCV的地方。提供我,URL,书籍等等。但它必须是在100%Java中学习JavaCV,而不是在Scala,C ++,C或其他任何语言中学习!请帮忙!

Someone please help me to find a better place to learn JavaCV. Provide me whatever, URL, Book, etc. But it must be about learning JavaCV in 100% Java, not in Scala, C++, C or whatever other language! Please help!

推荐答案

<更新>

时间变化 - OpenCV也是如此。现在,纯Java包装器(不是Android)正在快速增长,允许任何人直接在桌面Java应用程序中使用OpenCV功能/

Times change - and so does OpenCV. Right now, a pure Java wrapper (not Android) is growing fast, allowing anyone to use OpenCV functions directly in desktop Java apps/

< / update>

您可以在OpenCV示例目录中找到Java中的一些教程: samples / android

You can find some tutorials in Java in the OpenCV samples directory: samples/android.

您还可以找到更多信息此处

You can also find some more info here.

现在,我很确定你会说你想要Java,而不是Android :)。但这需要一个解释。

Now, I am pretty sure you will say you want Java, but not Android :). But this requires an explanation.

出于各种原因 - 主要是效率,第二个可移植性到嵌入式平台,计算机视觉是几乎完全用C / C ++完成。这是事实上的标准。每个人都使用它,有充分的理由和良好的结果。

For various reasons - the main one being efficiency and the second one portability to embedded platforms, computer vision is done almost entirely in C/C++. It is the de facto standard. Everybody uses it, with good reasons, and good results.

C ++代码库有不同的适配器,如Python和Java,但它们的存在是为了填补一些特定的空白:Python用于快速原型设计,Java用于接口连接Android主要语言。但在所有情况下,真正的算法开发都是用C / C ++完成的。这就是为什么没有人关心其他语言的教程/书籍/示例。

There are different adapters to the C++ code base, like Python and Java, but they exist to fill some specific gaps: Python is used for fast prototyping, and Java for interfacing the Android main language. But in all scenarios, the 'real' algorithm development is done with C/C++. This is why nobody cares about tutorials/books/examples in other languages.

结论:如果你想学习图像处理,学习C ++或蟒蛇。如果你想构建一些应用程序,请从docs / android教程学习OpenCV java界面。但不要指望灵活性或对性能的控制。

Conclusion: If you want to learn image processing, learn C++ or Python. If you want to build some app, learn the OpenCV java interface from docs/android tutorials. But do not expect flexibility or control over performance.

更新的备注

那里还有两件事要指明。

There are two more things to specify here.

首先,随着Android的发展,Python证明越来越受欢迎,内容可用两种语言(和其他语言)正在急剧增加。但是在未来几年,核心开发组 - 以及最好的文档 - 将在C ++领域。

First, as Android gets on its wheels, and Python proves more and more popular, the content available in the two languages (and others) are increasing dramatically. But for the years to come, the core development group - and the best docs - will be in the C++ area.

最后,但并非最不重要,你应该记住,在任何工作或编程领域,如果你坚持一种语言,你就死定了。原则很重要,您应该能够以各种语言实现它们,并且您应该能够从各种来源阅读和理解它们。如果程序员说他无法将伪代码转换为Java呢?它与其他语言完全相同。

Last, but not least, you should keep in mind that in any work or programming area, if you stick to one language, you're dead. Principles matter, and you should be able to implement them in a variety of languages, and you should be able to read and understand from a variety of sources. What about a programmer that says he is not able to translate pseudo-code into Java? It's quite the same with other languages.

你可以阅读伟大的博客文章 不要称自己为程序员 ,以了解为什么你应该忘记用一种语言编程。

You can read the great blog post Don't call yourself a programmer to understand why you should forget about programming in one language.

这篇关于在纯Java中学习JavaCV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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