Outlined install on RasPi
This commit is contained in:
54
INSTALL.md
54
INSTALL.md
@@ -1,3 +1,57 @@
|
|||||||
|
1. Install Raspbian Desktop (Lite might lack some packages for the GUI)
|
||||||
|
|
||||||
|
https://www.raspberrypi.org/documentation/installation/installing-images/
|
||||||
|
|
||||||
|
2. Configure and Update
|
||||||
|
```bash
|
||||||
|
sudo rpi-config
|
||||||
|
sudo rpi-update
|
||||||
|
sudo apt update
|
||||||
|
sudo apt dist-upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Install required packages
|
||||||
|
```bash
|
||||||
|
sudo apt install gphoto2 libgphoto2-dev python3-dev python3-pip virtualenv
|
||||||
|
sudo apt install qt5-default pyqt5-dev pyqt5-dev-tools # for PyQt5-GUI
|
||||||
|
sudo apt install libffi6 libffi-dev # for gphoto2-cffi bindings
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Remove some files to get gphoto2 working
|
||||||
|
Note: This breaks file manager access etc. for some camera models
|
||||||
|
```bash
|
||||||
|
sudo rm /usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service
|
||||||
|
sudo rm /usr/share/gvfs/mounts/gphoto2.mount
|
||||||
|
sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.mount
|
||||||
|
sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
|
||||||
|
sudo rm /usr/lib/gvfs/gvfsd-gphoto2
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Reboot
|
||||||
|
|
||||||
|
5. Clone the Photobooth repository
|
||||||
|
```bash
|
||||||
|
git clone -b development https://github.com/reuterbal/photobooth
|
||||||
|
```
|
||||||
|
|
||||||
|
6. Initialize virtualenv
|
||||||
|
```bash
|
||||||
|
cd photobooth
|
||||||
|
virtualenv -p python3 --system-site-packages .venv
|
||||||
|
source .venv/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
7. Install Photobooth
|
||||||
|
```bash
|
||||||
|
pip install -e .
|
||||||
|
```
|
||||||
|
|
||||||
|
8. Run Photobooth
|
||||||
|
```bash
|
||||||
|
python3 photobooth
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
pip install pyqt5
|
pip install pyqt5
|
||||||
pip install opencv-python
|
pip install opencv-python
|
||||||
pip install Pillow
|
pip install Pillow
|
||||||
|
|||||||
19
setup.py
19
setup.py
@@ -100,9 +100,9 @@ setup(
|
|||||||
|
|
||||||
# Indicate who your project is intended for
|
# Indicate who your project is intended for
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'Intended Audience :: End Users/Desktop',
|
'Intended Audience :: End Users/Desktop',
|
||||||
|
|
||||||
'Topic :: Multimedia :: Graphics :: Capture :: Digital Camera',
|
'Topic :: Multimedia :: Graphics :: Capture :: Digital Camera',
|
||||||
|
|
||||||
# Pick your license as you wish
|
# Pick your license as you wish
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||||
@@ -121,7 +121,7 @@ setup(
|
|||||||
# project page. What does your project relate to?
|
# project page. What does your project relate to?
|
||||||
#
|
#
|
||||||
# Note that this is a string of words separated by whitespace, not a list.
|
# Note that this is a string of words separated by whitespace, not a list.
|
||||||
keywords='photobooth gphoto2 camera raspberry pi', # Optional
|
keywords='photobooth gphoto2 opencv camera raspberry pi', # Optional
|
||||||
|
|
||||||
# You can just specify package directories manually here if your project is
|
# You can just specify package directories manually here if your project is
|
||||||
# simple. Or you can use find_packages().
|
# simple. Or you can use find_packages().
|
||||||
@@ -141,12 +141,11 @@ setup(
|
|||||||
# For an analysis of "install_requires" vs pip's requirements files see:
|
# For an analysis of "install_requires" vs pip's requirements files see:
|
||||||
# https://packaging.python.org/en/latest/requirements.html
|
# https://packaging.python.org/en/latest/requirements.html
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'pyqt5',
|
'opencv-python',
|
||||||
'opencv-python',
|
'Pillow',
|
||||||
'Pillow',
|
'gpiozero',
|
||||||
'gpiozero',
|
'gphoto2',
|
||||||
'gphoto2',
|
'gphoto2-cffi'], # Optional
|
||||||
'gphoto2-cffi'], # Optional
|
|
||||||
|
|
||||||
# List additional groups of dependencies here (e.g. development
|
# List additional groups of dependencies here (e.g. development
|
||||||
# dependencies). Users will be able to install these using the "extras"
|
# dependencies). Users will be able to install these using the "extras"
|
||||||
@@ -157,7 +156,7 @@ setup(
|
|||||||
# Similar to `install_requires` above, these must be valid existing
|
# Similar to `install_requires` above, these must be valid existing
|
||||||
# projects.
|
# projects.
|
||||||
extras_require={ # Optional
|
extras_require={ # Optional
|
||||||
# 'dev': ['check-manifest'],
|
'dev': ['PyQt5'],
|
||||||
# 'test': ['coverage'],
|
# 'test': ['coverage'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user