Upload files to "/"
This commit is contained in:
@@ -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)
|
||||||
@@ -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
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
Reference in New Issue
Block a user