Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunSendilraj authored Oct 21, 2021
1 parent 632987f commit 8c8490c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Main/takePicture.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from time import sleep
from picamera import PiCamera


if __name__ == "__main__":
#namefile
fileName= print(input("Save Image As: "))
#instantiate
c = PiCamera ()
#camera settins
c.ISO = 800
c.exposure = 'night'
c.ss = 10000
#start Picture
c.start_preview()
sleep(10)
c.capture(f{f'{fileName}.png'})


0 comments on commit 8c8490c

Please sign in to comment.