commit 9d3f3feb3281d994043c34947bee8fda0cf2ebe7 Author: Tanmay Date: Wed Oct 16 16:45:56 2024 +0530 Upload files to "/" diff --git a/Camera Essentials b/Camera Essentials new file mode 100644 index 0000000..926a9c0 --- /dev/null +++ b/Camera Essentials @@ -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) \ No newline at end of file diff --git a/camera.py b/camera.py new file mode 100644 index 0000000..4752faa --- /dev/null +++ b/camera.py @@ -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) + diff --git a/image.jpg b/image.jpg new file mode 100644 index 0000000..0fb0a2a Binary files /dev/null and b/image.jpg differ diff --git a/image.mp4 b/image.mp4 new file mode 100644 index 0000000..32e955b Binary files /dev/null and b/image.mp4 differ diff --git a/image1.jpg b/image1.jpg new file mode 100644 index 0000000..d62bd03 Binary files /dev/null and b/image1.jpg differ