Skip to content

gary-vladimir/2023_T003

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Up and Running CyberPi + RaspberryPi

Configure Raspberry pi

  1. Download the Raspberry Pi Imager (i used Etcher first but this one makes the process much easier and faster)

  2. Download the Raspberry Pi OS (make sure to download the Raspberry Pi OS (64-bit) Lite ) this is a very important step, since at the time i did this, i only had raspberries B with very little memory, which is the main reason i suspect many installation attempts failed.

  3. Connect your SD card to your computer and start te imager.

  4. on the imager, select "operating system" ==> "custom" ==> (the image from step 2)

  5. select the sd card for storage

  6. BEFORE WRITING click on the settings and configure everything (this saves a lot of time)

  7. Now you can flash😄

  8. Turn the Raspberry pi on, since we used the lite version, it does not come with any sotware or graphics, so don't bother on connecting a monitor or keyboard. Because we already activated the ssh on step 4. we can do everything from our host computer.

  9. open a terminal and run: ssh gary@TMRPI.local and that's it! 🥳

Install OpenCV

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
  4. sudo apt install python3-pip
  5. pip install --upgrade pip setuptools wheel
  6. sudo shutdown -r now
  7. pip install opencv-python-headless

Install The Picamera library

sudo apt install -y python3-picamera2

test it with: libcamera-hello you should see a camera preview for about 5 seconds.(to see if it is connected and working)

Install the Pillow library

pip install Pillow this library is necesary for resizing the photos

Install the cyberpi library

pip3 install cyberpi

Run Program

Clone this repository in the raspberry pi using:

git clone https://github.com/gary-vladimir/2023_T003

if you don't have git on your raspberry pi you can add it with: sudo apt-get install git

if you already had the Repo make sure it's updated with git pull origin main

Make sure you have python 3 installed and run:

python program.py

Recover fotos

scp gary@TMRPI.local:/home/gary/2023_T003/test.jpg ./Downloads/

About

Solution with raspberry pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages