Skip to content

Guiss-Guiss/picamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📸 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 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

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
  1. 📥 Clone the repository
git clone https://github.com/Guiss-Guiss/picamera.git
cd picamera

🚀 Auto-start Configuration

  1. ⚙️ Create the systemd service file:
sudo nano /etc/systemd/system/picamera.service
  1. 📝 Add the following content:
[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
  1. ▶️ Enable and start the service:
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.

About

Application photo web pour Raspberry Pi Zero 2 W

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published