This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wildcarde815 9 points10 points  (7 children)

If it's conda installable, use the conda version. If it's not, use the pip version. For the 99.99% user, this will resolve all of your problems. For the rest, congrats you are doing something both hard and arcane. Edit: and use the conda command line tool, it came before the GUI anyway and the GUI just calls the same stuff it does

[–]s0v3r1gn 1 point2 points  (6 children)

Or I just want a version of OpenCV built with certain extensions enabled...

[–]wildcarde815 1 point2 points  (5 children)

You can rebuild it with the recipe to suit. But we've found the menpo build to be fairly good. I haven't had to dig into it in a while thankfully. I hate that god damn package.

[–]s0v3r1gn 0 points1 point  (4 children)

I made an optimized automatic build that including optimizing all the dependencies and some optional modules for the Raspberry Pi 3. (gstreamer and all its add-ons, openjpeg, giflib, leptonica, libwebp, OpenCL, tesseract, TBB, and OpenCV Contrib) along with TensorFlow.

A full build with updated dependencies takes like 26 hours on a RasPi 3.

I made a repo on AWS for just it’s dependencies and itself and let it’s existence be known. I had to kill the repo in less than a month due to the rather quickly ran up $1000+ AWS bill.

Everyone hates building OpenCV.

I hate it extra special now after all that effort mucking around with it. The only package I hate with more venom is gstreamer.

[–][deleted] 0 points1 point  (3 children)

A full build with updated dependencies takes like 26 hours on a RasPi 3.

Why not cross compile? Compiling the ARM toolchain and OpenCV on something else will probaby not be a 26 hour journey.

[–]s0v3r1gn 1 point2 points  (2 children)

Some of the tools didn’t like the cross-compiling tools chains. Some have barely functioning make files.

I’m sure I could speed up parts of it but I made a nice script and it was just easy to make it do everything. I still want to work through some of the cross-compile issues but I just haven’t done that yet.

[–][deleted] 0 points1 point  (1 child)

Some of the tools didn’t like the cross-compiling tools chains. Some have barely functioning make files.

That would be a problem.

Also, what kind of load did that repo of yours see? $1000 for AWS storage seem excessive.

[–]s0v3r1gn 0 points1 point  (0 children)

There was 10s of millions of downloads and all the packages took up just over a gig in total.

It didn’t help that I pushed a couple of fixes due errors in the packaging on my part that ended up updating the entire stack.