updating
This commit is contained in:
19
conn_test.py
Normal file
19
conn_test.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import os
|
||||||
|
from signal import signal, SIGINT
|
||||||
|
from goprocam import GoProCamera, constants
|
||||||
|
|
||||||
|
seconds = 4
|
||||||
|
|
||||||
|
# helps with video recording
|
||||||
|
def handler(s, f):
|
||||||
|
gopro.stopWebcam()
|
||||||
|
quit()
|
||||||
|
|
||||||
|
def takeVideo(time):
|
||||||
|
signal(SIGINT, handler)
|
||||||
|
gopro = GoProCamera.GoPro()
|
||||||
|
gopro.shoot_video(time)
|
||||||
|
gopro.downloadLastMedia(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
|
||||||
|
gopro.delete("last")
|
||||||
|
|
||||||
|
takeVideo(seconds)
|
||||||
@@ -44,8 +44,9 @@ def compress(filename):
|
|||||||
def takeVideo(time):
|
def takeVideo(time):
|
||||||
signal(SIGINT, handler)
|
signal(SIGINT, handler)
|
||||||
gopro = GoProCamera.GoPro(ip_address=GoProCamera.GoPro.getWebcamIP())
|
gopro = GoProCamera.GoPro(ip_address=GoProCamera.GoPro.getWebcamIP())
|
||||||
|
gopro.video_settings("720p", fps='30')
|
||||||
gopro.shoot_video(time)
|
gopro.shoot_video(time)
|
||||||
gopro.downloadLastMedia(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
|
gopro.downloadLowRes(custom_filename=(location+"plaintext/" + numFiles() + ".mp4"))
|
||||||
gopro.delete("last")
|
gopro.delete("last")
|
||||||
|
|
||||||
# method to encrypt with ECC, however this is unsupported in pycryptodome
|
# method to encrypt with ECC, however this is unsupported in pycryptodome
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
3
|
1
|
||||||
Reference in New Issue
Block a user