|
|
@ -66,10 +66,11 @@ class Photography(Bureau):
|
|
|
|
modpath = os.path.dirname(__file__)
|
|
|
|
modpath = os.path.dirname(__file__)
|
|
|
|
mjpg = os.path.join(modpath, "..", "..", "lib", "mjpg-streamer",
|
|
|
|
mjpg = os.path.join(modpath, "..", "..", "lib", "mjpg-streamer",
|
|
|
|
"mjpg-streamer-experimental", "mjpg_streamer")
|
|
|
|
"mjpg-streamer-experimental", "mjpg_streamer")
|
|
|
|
|
|
|
|
mjpg_dir = os.path.dirname(mjpg)
|
|
|
|
cmd = mjpg.split() + ["-i", "'input_uvc.so -r 3264x2448 -n'", "-o", "'output_file.so -f /tmp/webcam -d 500 -s 1'"]
|
|
|
|
cmd = mjpg.split() + ["-i", "'input_uvc.so -r 3264x2448 -n'", "-o", "'output_file.so -f /tmp/webcam -d 500 -s 1'"]
|
|
|
|
|
|
|
|
|
|
|
|
print(cmd)
|
|
|
|
print(cmd)
|
|
|
|
proc = subprocess.Popen(cmd)
|
|
|
|
proc = subprocess.Popen(cmd, cwd=mjpg_dir)
|
|
|
|
|
|
|
|
|
|
|
|
# copy last image to the tmpfile
|
|
|
|
# copy last image to the tmpfile
|
|
|
|
filelist = os.listdir()
|
|
|
|
filelist = os.listdir()
|
|
|
|