Switch to picamerax
This commit is contained in:
parent
0bff4bdb62
commit
54c342bbbb
10 changed files with 122 additions and 99 deletions
|
|
@ -204,4 +204,4 @@ if __name__ == "__main__":
|
|||
from labthings import Server
|
||||
logging.info("Starting OpenFlexure Microscope Server...")
|
||||
server = Server(app)
|
||||
server.run(host="::", port=5000, debug=False, zeroconf=True)
|
||||
server.run(host="0.0.0.0", port=5000, debug=False, zeroconf=True)
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ import numpy as np
|
|||
import time
|
||||
import logging
|
||||
|
||||
from picamera import PiCamera
|
||||
from picamera.array import PiRGBArray, PiBayerArray
|
||||
from picamerax import PiCamera
|
||||
from picamerax.array import PiRGBArray, PiBayerArray
|
||||
|
||||
|
||||
def rgb_image(camera, resize=None, **kwargs):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "openflexure-microscope-jsclient",
|
||||
"version": "2.3.0",
|
||||
"version": "2.4.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from openflexure_microscope.api.utilities import get_bool, JsonResponse
|
|||
from labthings import Schema, fields, find_component
|
||||
from labthings.views import View, PropertyView
|
||||
from labthings.utilities import description_from_view
|
||||
from labthings.views.marshalling import marshal_with
|
||||
from labthings.marshalling import marshal_with
|
||||
|
||||
from marshmallow import pre_dump
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue