Installing OpenCV 3 for Aruco on a Raspberry Pi 3

Basically followed these instructions

Install guide: Raspberry Pi 3 + Raspbian Jessie + OpenCV 3

Except! Don’t get his suggested zips. They did not work since they were to old to have aruco. I did this and there was only the dictionary of constants and none of the functions in cv2.aruco.

Here’s a script that is basically compiled from the page, except git cloning the opencv directories.

Put this into a install_opencv.sh and run

then run the script

This process takes a while. However the early stages might still ask you stuff so get into the cloning before you leave it be for a couple hours. OpenCV is pretty big. I think it’s using 40% of a 8gb SD card, so plan accordingly. I think you can delete the clone directories once it’s installed.

One thought on “Installing OpenCV 3 for Aruco on a Raspberry Pi 3”

  1. Can verify this worked great for me as of June 2017. However, I found that if compiled on all four cores the PI would freeze up and I wouldn’t be able to see progress, so I canceled. Switching ‘make j4’ to ‘make j2’ sets it to only use two cores, and this way I was able to watch progress the whole way through.

Leave a Reply

Your email address will not be published. Required fields are marked *