Skip to content

royord/rPiWebcam

Repository files navigation

Webcam

Hardware Needed

The following hardware will produce 2 mirrored camera sets, one as a primary and a second full copy as a backup. Additional cameras may be needed in order to perform correct tests and development platforms.

HQ Camera Focus

The Raspberry Pi HQ Camera uses a manual-focus lens — twist the lens barrel to adjust focus. If your image is soft or blurry, rotate the lens ring until the image is sharp.

Spacer rings: Some HQ Camera kits include metal spacer rings between the lens and sensor. These are sometimes used for night-vision mods (removing the IR cover glass), but they throw the lens out of its designed working distance and make it impossible to focus. If you're not doing a night-vision mod, do not install spacer rings between the lens and the camera body.

Installing the OS

  • Download and install raspberry pi imager from the most recent release on the website. The following link can be used. https://www.raspberrypi.com/software/
  • Choose the correct Raspberry Pi Device, choose the correct "Operating System", one of the "LITE" versions to ensure that only the needed software is installed. We will not be needing a graphical user interface, LITE removes this option. ,select the correct storage media to flash the OS. Click "NEXT" to continue setup. img.png
  • On the following select "EDIT SETTINGS" to customize the installation. readmeImages/OS_Settings_Apply.png Before putting the SD card into the raspberry pi computer, add a file "ssh" to the root SD card file system to enable SSH in the OS.
  • On the "GENERAL" tab configure the hostname to "webcam", username and password to a value of your choice. Other settings may be configured as needed readmeImages/OS_General_Settings.png
  • On the "SERVICES" tab enable SSH using the access method that you prefer, the rest of the documentation will use SSH to install the needed software and services.readmeImages/OS_Services_Enable_SSH.png

Additional help if needed: https://www.youtube.com/watch?v=ntaXWS8Lk34 https://www.raspberrypi.com/documentation/computers/getting-started.html

Install base OS libraries:

sudo apt update
sudo apt dist-upgrade -y
sudo apt autoremove -y
sudo apt install screen vim nano git python3-netifaces build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev tk-dev libcap-dev build-essential python3-libcamera libcamera-apps libcamera-dev python3-picamera2 python3-libcamera

create a public key ''' ssh-keygen -t ed25519 -C "your_email@example.com" '''

cat .ssh/id_ed25519.pub

Make sure that the ssh agent is running:

eval "$(ssh-agent -s)"

use the following command to get the content of the public key to add to github profile:

cat .ssh/id_ed25519.pub

set the git settings for my user:

git config --global user.email "user@domain.com"
git config --global user.name "user_name"

now clone the repository:

git clone git@github.com:royord/rPiWebcam.git

change directory to the cloned folder

cd rPiWebcam

create a virtual environment

python -m venv .venv

activate virtual env

source .venv/bin/activate

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages