Skip to content

Commit

Permalink
Enable TBB support
Browse files Browse the repository at this point in the history
* debs created from OpenCV with TBB flag on
* updated build_information.txt and readme accordingly
  • Loading branch information
Dario committed Jul 2, 2019
1 parent df46503 commit eb0800b
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
Binary file modified OpenCV-4.1.0-armv7l-dev.deb
Binary file not shown.
Binary file modified OpenCV-4.1.0-armv7l-libs.deb
Binary file not shown.
Binary file modified OpenCV-4.1.0-armv7l-licenses.deb
Binary file not shown.
Binary file modified OpenCV-4.1.0-armv7l-main.deb
Binary file not shown.
Binary file modified OpenCV-4.1.0-armv7l-python.deb
Binary file not shown.
Binary file modified OpenCV-4.1.0-armv7l-scripts.deb
Binary file not shown.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# OpenCV 4.1.0 for Raspberry Pi
* A pre-compiled **OpenCV 4.1.0** for **Raspberry PI**, optimized for deep learning (**NEON** and **VFPV3** turned on).
* A pre-compiled **OpenCV 4.1.0** for **Raspberry Pi**, optimized for deep learning (**NEON**, **VFPV3**, **TBB** turned on).
* Bindings for **Python2** and **Python3** are also included.
* Created with OpenCV cpack targets
* Tested on **Raspberry Pi 3+** on **Raspbian Stretch**
* Tested on **Raspberry Pi 3+** using **Raspbian Stretch (Debian 9)**

# Prerequisites
Before proceeding, install the OpenCV library prerequisites.
Before proceeding, install OpenCV library prerequisites.
```
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y libtiff5-dev libjasper-dev libpng12-dev libjpeg-dev \
libavcodec-dev libavformat-dev libswscale-dev \
libv4l-dev libgtk2.0-dev libatlas-base-dev gfortran
sudo apt-get install -y
libjpeg-dev libpng-dev libtiff-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
libxvidcore-dev libx264-dev libjasper1 libjasper-dev \
libgtk-3-dev \
libatlas-base-dev gfortran \
libeigen3-dev libtbb-dev
```

Install numpy based on your Python version:
Install **numpy** based on your target Python version:
```
sudo apt-get install -y python3-dev python3-numpy
```
Expand Down Expand Up @@ -46,5 +50,7 @@ sudo pip3 install imutils
python3 test.py
```

# Future development
* Include TBB
# How to uninstall
```
sudo apt purge opencv-*
```
15 changes: 7 additions & 8 deletions build_information.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ General configuration for OpenCV 4.1.0 =====================================
C Compiler: /usr/bin/cc
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -mfpu=neon -mfp16-format=ieee -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
Linker flags (Release): -Wl,--gc-sections
Linker flags (Debug): -Wl,--gc-sections
ccache: YES
Precompiled headers: NO
Extra dependencies: dl m pthread rt
Expand All @@ -42,13 +42,13 @@ General configuration for OpenCV 4.1.0 =====================================
Documentation: NO
Non-free algorithms: YES

GUI:
GUI:
GTK+: YES (ver 3.22.11)
GThread : YES (ver 2.50.3)
GtkGlExt: NO
VTK support: NO

Media I/O:
Media I/O:
ZLib: /usr/lib/arm-linux-gnueabihf/libz.so (ver 1.2.8)
JPEG: /usr/lib/arm-linux-gnueabihf/libjpeg.so (ver 62)
WEBP: build (ver encoder: 0x020e)
Expand All @@ -72,13 +72,13 @@ General configuration for OpenCV 4.1.0 =====================================
GStreamer: NO
v4l/v4l2: YES (linux/videodev2.h)

Parallel framework: pthreads
Parallel framework: TBB (ver 4.3 interface 8006)

Trace: YES (built-in)

Other third-party libraries:
Lapack: NO
Eigen: NO
Eigen: YES (ver 3.3.2)
Custom HAL: YES (carotene (ver 0.0.1))
Protobuf: build (3.5.1)

Expand All @@ -100,12 +100,11 @@ General configuration for OpenCV 4.1.0 =====================================

Python (for build): /usr/bin/python2.7

Java:
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO

Install to: /usr/local
-----------------------------------------------------------------

0 comments on commit eb0800b

Please sign in to comment.