There are several necessary packages that need to be installed.
sudo pip3 install python & python3
sudo raspi-config
Select Interfacing Options > I2C.
Select Yes when prompted to enable the I2C interface.
Select Yes when prompted to automatically load the I2C kernel module.
Select Finish.
Select Yes when prompted to reboot.
sudo raspi-config
Select Interfacing Options > web camera.
Select Yes when prompted to enable the web camera interface.
Select Yes when prompted to automatically load the web camera module.
Select Finish.
Select Yes when prompted to reboot.
pip3 install PyOpenGL PyOpenGL_accelerate
pip install PyOpenGL PyOpenGL_accelerate
sudo apt-get install python3-pygame
sudo apt-get install python-pygame
sudo pip3 install guizero
Notice: guizero package currently doesn’t support python2.7 or earlier.
sudo pip3 install RTIMULib
sudo pip install RTIMULib
sudo apt-get install -y python3-smbus
sudo apt-get install -y python-smbus
pip3 install numpy matplotlib opencv-python scikit-learn scikit-image
Go to terminal and type sudo nano /etc/xdg/autostart/display.desktop
In the editor, typing
[Desktop Entry]
Name=Display
Exec=/usr/bin/python3 /home/pi/Desktop/Senior_Design_Project/gui2.py