OpenCV query

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

Moderators: roger, gloomyandy, skoehler

floydbloke
Novice
Posts: 42
Joined: Mon Nov 04, 2013 7:04 pm

OpenCV query

Postby floydbloke » Mon Feb 12, 2018 7:47 pm

I am trying to do some image work with OpenCV.
My code displays a “Method not found in class” error at the following lines

Code: Select all

  Imgproc.logPolar(source,logPolarSource,new Point(logPolarSource.cols() / 2,logPolarSource.rows() /2),0.1,Imgproc.CV_WARP_INVERSE_MAP + Imgproc.CV_WARP_FILL_OUTLIERS);
  Imgproc.logPolar(template,logPolarTemplate,new Point(logPolarTemplate.cols() / 2,logPolarTemplate.rows() / 2),0.1,Imgproc.CV_WARP_INVERSE_MAP + Imgproc.CV_WARP_FILL_OUTLIERS);
;

I’m guessing this is version related, logPolar appears to have been introduced in OpenCV v 3.0.0rc1 (for Java).
Please can someone validate my guess and perhaps confirm what version of OpenCV is ‘bundled’ with LeJOS 0.9.1 ?
Is there an easy way to fix this?

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

Re: OpenCV query

Postby gloomyandy » Mon Feb 12, 2018 8:18 pm

We ship 2.4.11 of openCV with leJOS. I did get 3.0 working on the EV3 (it is in our git repo), but at the time 3.0 was very new and all of the examples seemed to be for 2.4, also 3.0 seemed to be slower than 2.4 and given that the EV3 is not very powerful it seemed that 2.4 was the best bet.
leJOS news https://lejosnews.wordpress.com/

floydbloke
Novice
Posts: 42
Joined: Mon Nov 04, 2013 7:04 pm

Re: OpenCV query

Postby floydbloke » Sat Feb 17, 2018 7:53 pm

gloomyandy wrote:... I did get 3.0 working on the EV3 (it is in our git repo),..


Thank you. That worked.

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

Re: OpenCV query

Postby clplaneguy » Tue Apr 17, 2018 6:52 pm

Do you have a link to the repo?

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

Re: OpenCV query

Postby gloomyandy » Tue Apr 17, 2018 8:31 pm

It is here:
https://sourceforge.net/p/lejos/ev3/sdc ... ster/tree/

But please note I will not be answering any questions on how to build it, install it or anything else. You are on your own if you decide to try and do anything with it. I have no idea if the built libs and jars for 3.0 work with the current release of leJOS and building from source is way to complex a process to try and talk anyone through.
leJOS news https://lejosnews.wordpress.com/

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

Re: OpenCV query

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

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


Return to “EV3 Software”

Who is online

Users browsing this forum: jippiee and 1 guest