|
|
@ -63,9 +63,13 @@ class Photography(Bureau):
|
|
|
|
#cmd2 = "/usr/local/bin/uvccapture -m -x3264 -y2448 -o" + tmpimg.name
|
|
|
|
#cmd2 = "/usr/local/bin/uvccapture -m -x3264 -y2448 -o" + tmpimg.name
|
|
|
|
#subprocess.check_output(cmd1.split())
|
|
|
|
#subprocess.check_output(cmd1.split())
|
|
|
|
print(os.getcwd())
|
|
|
|
print(os.getcwd())
|
|
|
|
cmd = "../../lib/mjpg_streamer/mjpg-streamer-experimental/mjpg_streamer -i 'input_uvc.so -r 3264x2448 -n' -o 'output_file.so -f /tmp/webcam -d 500 -s 1'"
|
|
|
|
modpath = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
mjpg = os.path.join(modpath, "..", "lib", "mjpg-streamer",
|
|
|
|
|
|
|
|
"mjpg-streamer-experimental", "mjpg_streamer")
|
|
|
|
|
|
|
|
cmd = mjpg.split() + ["-i", "'input_uvc.so -r 3264x2448 -n'", "-o", "'output_file.so -f /tmp/webcam -d 500 -s 1'"]
|
|
|
|
|
|
|
|
|
|
|
|
proc = subprocess.Popen(cmd.split())
|
|
|
|
print(cmd)
|
|
|
|
|
|
|
|
proc = subprocess.Popen(cmd)
|
|
|
|
|
|
|
|
|
|
|
|
# copy last image to the tmpfile
|
|
|
|
# copy last image to the tmpfile
|
|
|
|
filelist = os.listdir()
|
|
|
|
filelist = os.listdir()
|
|
|
|