Upload files to "/"
This commit is contained in:
commit
9d3f3feb32
5
Camera Essentials
Normal file
5
Camera Essentials
Normal 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
16
camera.py
Normal 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
image1.jpg
Normal file
BIN
image1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
Loading…
Reference in New Issue
Block a user