Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA openCV 3.1 Object Detection code unavailable in JavaCV 1.2 #481

Closed
noahf19 opened this issue Aug 19, 2016 · 12 comments
Closed

CUDA openCV 3.1 Object Detection code unavailable in JavaCV 1.2 #481

noahf19 opened this issue Aug 19, 2016 · 12 comments

Comments

@noahf19
Copy link

noahf19 commented Aug 19, 2016

Hi!

The CUDA object detection code for opencv 3.1 is not currently available in JavaCV 1.2. I was wondering if there was a near term plan to add that in.

@fjank
Copy link

fjank commented Dec 24, 2016

I am currently beginning to work go get (at least part of) the cuda module available in javacv. When I have something that works (for the couple of methods I need), I will make sure to add a pull request. Estimate that I have something basic ready in January 2017.

@noahf19
Copy link
Author

noahf19 commented Dec 24, 2016 via email

@archenroot
Copy link
Member

Can you share such papers?

Look for example here

@fjank
Copy link

fjank commented Jan 19, 2017

I have something that works now, will create a pull request as soon as i have cleaned it up a bit. For the one method i have tried with (calcOpticalFlowPyrLK) the performance on my system was slightly worse. That method was quite fast with my parameters already (4.5ms), while with the cpu to gpu copy and back again, multicore cpu, and a rather slow mobile gpu, the performance went a bit down to about 6ms. But i can parallellize my code path using gpu with another cpu intensive function, so for me the 4.5ms will disappear.
Dense optical flow has also been tested: before about 450ms pr frame, with gpu about 30-40 ms pr frame.

@archenroot
Copy link
Member

Question: How is this project related to OpenPNP-OpenCV? I have now little chaos why there are 2 bindings available, or this is related project?

Thanks for explanation.

@saudet
Copy link
Member

saudet commented Jan 20, 2017 via email

@archenroot
Copy link
Member

archenroot commented Jan 20, 2017

Ok, then why they say on the site (citation):

OpenCV 3.2.0 (packaged by OpenPnP)

OpenCV Java bindings packaged with native libraries, seamlessly delivered as a turn-key Maven dependency.

@saudet
Copy link
Member

saudet commented Jan 22, 2017

They are just using the bindings for Java that come with OpenCV.

@archenroot
Copy link
Member

I got it, on my Gentoo system I installed the opencv with java support, so in lib path it generated additional jar file to linux so library. But this Java binding is very similar or same. I mean what is the key difference between javacpp way and opencv java implementations?

@saudet
Copy link
Member

saudet commented Jan 23, 2017 via email

@saudet
Copy link
Member

saudet commented Dec 18, 2017

As per the commit above, I've enabled CUDA builds, and will soon be merging bytedeco/javacpp-presets#416.

@saudet
Copy link
Member

saudet commented Jan 18, 2018

Thanks to @SamCarlberg, it is now available in the newly released version 1.4. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants