Updated capture route for new capture output structure
This commit is contained in:
parent
8137646d5e
commit
9f259b7f3e
1 changed files with 8 additions and 5 deletions
|
|
@ -111,14 +111,17 @@ class ListAPI(MicroscopeView):
|
||||||
else:
|
else:
|
||||||
abort(400)
|
abort(400)
|
||||||
|
|
||||||
capture_obj = self.microscope.camera.capture(
|
output = self.microscope.camera.new_image(
|
||||||
write_to_file=True, # Always write data to disk when using API
|
write_to_file=True,
|
||||||
keep_on_disk=keep_on_disk,
|
keep_on_disk=keep_on_disk,
|
||||||
|
filename=filename)
|
||||||
|
|
||||||
|
self.microscope.camera.capture(
|
||||||
|
output,
|
||||||
use_video_port=use_video_port,
|
use_video_port=use_video_port,
|
||||||
filename=filename,
|
|
||||||
resize=resize)
|
resize=resize)
|
||||||
|
|
||||||
return jsonify(capture_obj.metadata)
|
return jsonify(output.metadata)
|
||||||
|
|
||||||
|
|
||||||
class CaptureAPI(MicroscopeView):
|
class CaptureAPI(MicroscopeView):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue