Upload files to "/"

This commit is contained in:
Tanmay 2024-10-16 16:45:56 +05:30
commit 9d3f3feb32
5 changed files with 21 additions and 0 deletions

5
Camera Essentials Normal file
View File

@ -0,0 +1,5 @@
sudo apt install -y python3-libcamera python3-kms++ python3-picamera2
if error occured due to above code run below commands:
ps aux | grep apt
sudo kill -9 ID (id is the process that holds the dpkg, id obtained from the 1st command)

16
camera.py Normal file
View File

@ -0,0 +1,16 @@
from picamera2 import Picamera2
picam2=Picamera2()
picam2.start()
picam2.capture_file("image1.jpg")
picam2.stop()
#from picamera2 import Picamera2
#picam2=Picamera2()
#picam2.start_and_record_video("image.mp4", duration = 10)

BIN
image.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
image.mp4 Normal file

Binary file not shown.

BIN
image1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB