How do I update OpenCV 2.4.11?

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

clplaneguy
Novice
Posts: 29
Joined: Sat Feb 18, 2017 3:44 pm

How do I update OpenCV 2.4.11?

Postby clplaneguy » Tue Apr 17, 2018 10:46 pm

The leJOS group (moderator berak) does not support OpenCV 2.4.11! This leaves me in a situation where I need to update the OpenCV library past 2.4.11! Are there any hints or instructions on how to do that?

User avatar
gloomyandy
leJOS Team Member
Posts: 6047
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How do I update OpenCV 2.4.11?

Postby gloomyandy » Wed Apr 18, 2018 1:10 pm

Sorry but I have no idea what you are talking about. Who/what does not support OpenCV 2.4.11? This is the only version of openCV supported for leJOS.
leJOS news https://lejosnews.wordpress.com/

clplaneguy
Novice
Posts: 29
Joined: Sat Feb 18, 2017 3:44 pm

Re: How do I update OpenCV 2.4.11?

Postby clplaneguy » Thu Apr 19, 2018 11:22 am

The current version of OpenCV is 3.4.1! I get downgraded on the OpenCV forum for even asking about 2.4.11! The response from the forum moderator was

" on the Lego EV3. It uses OpenCV 2.4.11!" -- that's the actual problem. it's outdated, and noone cares.

User avatar
gloomyandy
leJOS Team Member
Posts: 6047
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How do I update OpenCV 2.4.11?

Postby gloomyandy » Thu Apr 19, 2018 11:55 am

Well there you go. So looks like the openCV folks don't want to be bothered with old versions and I doubt if anyone will be rushing to help get a new version of openCV running on leJOS. It is now 3 years since I originally got openCV running on leJOS on the EV3. The reality is that the EV3 is now rather old (and so not very interesting), as a result no-one is really working on leJOS these days. Spending a lot of time endlessly porting new versions of LInux/openCV/Java etc. is really not a lot of fun.

I very much doubt if you will get anything like 3.4.1 running on the version of Linux that is used by leJOS. You may be able to run 3.4.1 on ev3dev so maybe you should try that? However do not be surprised if you find that the newer versions of openCV do not work very well on what is now old and not very powerful hardware. I certainly found that to be the case with openCV 3 when I tried it.

So looks like you have a few options...
1. Just use what exists, openCV 2.4.11 works fine on the EV3 and will probably work well enough for what you want to do.
2. Spend an age trying to get a more recent version of openCV working on leJOS (good luck - you will learn a lot though).
3. Try using ev3dev for your project, if you do this I'd honestly suggest that you use something like python for your project rather than Java, there are far more people using that setup than running Java on ev3dev. Looks like there is some activity (and some problems) with openCV on ev3dev...
https://github.com/ev3dev/ev3dev/issues/803
https://github.com/ev3dev/ev3dev/issues/1038
4. Give up on using the EV3 and switch to using some more up to date hardware that will probably run openCV way better than the EV3 ever will.

Good luck.
leJOS news https://lejosnews.wordpress.com/

salvador
New User
Posts: 6
Joined: Thu Apr 02, 2015 6:40 am

Re: How do I update OpenCV 2.4.11?

Postby salvador » Fri Apr 20, 2018 7:05 pm

Hi,

You might want to offload the image processing, leaving just the image capturing in the ev3 unit, and then sending it to your PC for ex. for treatment, then sending the cooked results back to the EV3.

That way you can use the opencv version that best suits you.

Cheers

Salvador

User avatar
esmetaman
Advanced Member
Posts: 377
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: How do I update OpenCV 2.4.11?

Postby esmetaman » Sat Apr 21, 2018 9:48 am

It is not necessary to move to Python to use a latest OpenCV version.

Take a look this Debian package:
https://packages.debian.org/search?suit ... pencv+java
https://packages.debian.org/buster/libopencv3.2-java

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots

User avatar
gloomyandy
leJOS Team Member
Posts: 6047
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: How do I update OpenCV 2.4.11?

Postby gloomyandy » Sat Apr 21, 2018 5:37 pm

However those packages are not for the latest version of openCV (they are for openCV 3.2/3.3, I think the original poster is asking for openCV 3.4). I'm not sure if openCV 3.4 is available at all on ev3dev.

My point about using Python was that far more people are using it on ev3dev than are using Java (especially with openCV), and that he will likely get more help if he uses Python. But it is his call.
leJOS news https://lejosnews.wordpress.com/


Return to “EV3 Software”

Who is online

Users browsing this forum: jippiee and 1 guest