![python 3 install opencv python 3 install opencv](https://pysource.com/wp-content/uploads/2019/03/how-to-install-python-3-and-open.jpg)
Install optimization packages (improved matrix operations for OpenCV).Sudo apt-get install libgtk2.0-dev libgtk-3-dev -y Install the GTK development library for basic GUI windows.Sudo apt-get install libxvidcore-dev libx264-dev -y
![python 3 install opencv python 3 install opencv](https://pyimagesearch.com/wp-content/uploads/2016/11/sierra_os_py2_installed.jpg)
Sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y Sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y Sudo apt-get install build-essential cmake pkg-config -y
#PYTHON 3 INSTALL OPENCV UPDATE#
The first step is to update and upgrade any existing packages:.Sudo apt-get autoremove Step 3: Install Dependencies
![python 3 install opencv python 3 install opencv](https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/ubuntu-cmake-opencv_hue368a52d406404acb9d73a73b272b04b_51767_768x0_resize_q75_lanczos.jpg)
You can do it simply typing the following command on the terminal window. So, it is better to remove some unused packages like LibreOffice and Wolfram engine to free up some space on your pi. But if you are using a 8GB memory card it might take 50% of all your space. The default OS will take around 15% if you are using 32GB card. Sudo shutdown -r now Step 2: Free Up Some Space Then you need to reboot your pi using the following command. It will show a message “The root partition has been resized”. Advanced Options > A1 Expand filesystem > Press “Enter”.Type the following command to expand the Raspberry Pi3 file system I will show all the steps to get it working properly. There are some steps to install OpenCV properly on Raspberry Pi 3 with Python 3.