Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Use BackgroundSubtractorMOG2 in OpenCV 2.4.13 with Java

$
0
0
Hi, I have been running my openCV setup on windows until now, but now I need to change to Ubuntu. Because of this, I was unable to create a .jar file for openCV version 3.x so I ended up with version 2.4.13. This means that some of the lines of code that I had (perfectly working in Windows with openCV 3.1) no longer work. I had the following line: BackgroundSubtractorMOG2 mog2 = Video.createBackgroundSubtractorMOG2(); Now, I am trying to change this to work with openCV version 2.4.13, but I'm simply not able to. I have tried the following line mog2 = org.opencv.video.BackgroundSubtractorMOG(); but this gives me the following: org.opencv.video cannot be resolved to a type. What can I do to make this run on my current setup?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>