Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following changes are part of this file:
OpenCV
./build -c make
. OpenCV 2.4 is in LTS and only being maintained instead of active development, so this should be safe.-p
to./build
. This has been tested on vanilla Arch Linux and Ubuntu.WITH_TBB=ON
to./build -c make
. What this does in OpenCV is allows common functions to be compiled with full parallelization support against TBB, so instead of running a OpenCV function on one single core as we were doing before, we can run it on all available cores paired with our NEON optimizations! This has netted a average of 30% decrease in execution time versus the previous non optimized OpenCV 2.4.8. Intel TBB requires a file calledtbbvars.sh
to be sourced before it can be used with OpenCV. A new file in the users home directory called.firesight
will be created and within itsource /opt/intel/tbb/build/tbb_release/tbbvars.sh
is added. Sourcing the file before the use of FireSight and OpenCV is mandatory, and support will be needed in firenodejs build to source this file before it's vision processing is initialized. Intel TBB is fully open source under GPL.libjpeg-turbo_1.5.0_armhf-pi2.deb
andlibjpeg-turbo_1.5.0_armhf-pi3.deb
. Each have been compiled to the highest performance compilation settings available and also use NEON SIMD support. If dpkg is available on the host OS of the Raspberry Pi 2 or 3 then it will be automatically installed into/opt/libjpeg-turbo
firesight -p json/pipeline0.json -i img/cam.jpg
netted a average execution time of 0.33 seconds with OpenCV 2.4.8, and 0.18 seconds with full optimizations on 2.4.13.General
dpkg
-D WITH_BUILD_DOCS=OFF
apt-get
is available update package listsTodo
Pull request requires discussion of sourcing
tbbvars.sh
and acceptance response from: @firepick1Cheers,
-Dayton 🐯