https://github.com/guiss-guiss/picamera
Application photo web pour Raspberry Pi Zero 2 W
https://github.com/guiss-guiss/picamera
camera photography raspberry-pi time-lapse webapp
Last synced: 2 months ago
JSON representation
Application photo web pour Raspberry Pi Zero 2 W
- Host: GitHub
- URL: https://github.com/guiss-guiss/picamera
- Owner: Guiss-Guiss
- License: mit
- Created: 2025-01-20T21:39:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-19T20:21:14.000Z (about 1 year ago)
- Last Synced: 2025-08-10T06:22:49.204Z (11 months ago)
- Topics: camera, photography, raspberry-pi, time-lapse, webapp
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📸 PiCamera Web Interface
A web interface to control a Raspberry Pi camera using Python Flask and picamera2.
## ✨ Features
- 🎥 Live video streaming
- 📷 Photo capture with adjustable settings
- ⏱️ Automatic capture sequences
- 🖼️ Photo gallery management
- 🎛️ Camera settings control (exposure, gain, brightness, etc.)
## 📋 Prerequisites
### 🤖 [Raspberry Pi Zero 2 W](https://www.raspberrypi.com/products/raspberry-pi-zero-2-w/)
### 📷 [Raspberry Pi Camera Module 3](https://www.raspberrypi.com/products/camera-module-3/), or
### 📷 [Raspberry Pi HQ Camera](https://www.raspberrypi.com/products/raspberry-pi-high-quality-camera/)
### 🏠 [Case (3D print)](https://www.printables.com/model/1090727-case-for-raspberry-pi-zero-2w-and-camera-module-3)
- 💾 Raspberry Pi OS Lite (64-bit)
- 🐍 Python 3.x
- 🌐 Web browser
## 🛠️ Installation
1. 💽 Flash Raspberry Pi OS with Raspberry Pi Imager
- Enable SSH during configuration
2. 🔄 Update the system and expand the filesystem
```bash
ssh pi@raspberry_pi_ip_address
sudo raspi-config # Go to Advanced Options and choose Expand Filesystem
sudo apt update && sudo apt upgrade -y
sudo apt install python3-picamera2 python3-flask git -y
```
3. 📥 Clone the repository
```bash
git clone https://github.com/Guiss-Guiss/picamera.git
cd picamera
```
## 🚀 Auto-start Configuration
1. ⚙️ Create the systemd service file:
```bash
sudo nano /etc/systemd/system/picamera.service
```
2. 📝 Add the following content:
```ini
[Unit]
Description=PiCamera
After=network.target
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/picamera
Environment=PYTHONPATH=/home/pi/picamera
ExecStart=/usr/bin/python3 /home/pi/picamera/app.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
```
3. ▶️ Enable and start the service:
```bash
sudo systemctl enable picamera.service
sudo systemctl start picamera.service
```
## 📖 Usage
1. 🌐 Access the interface at `http://raspberry-pi-ip:5001`
2. 🎮 Use the controls to:
- 📸 Capture photos
- ⏱️ Configure automatic capture sequences
- 🎛️ Adjust camera settings
- 🖼️ View and manage captured photos
## 🤝 Contributing
1. 🔀 Fork the repository
2. 🌿 Create a branch for your feature
3. ✅ Commit your changes
4. ⬆️ Push to the branch
5. 📩 Create a Pull Request
## 📜 License
This project is licensed under the MIT License.