First images on labthings-fastapi
We now have very basic camera and stage support.
This commit is contained in:
parent
ac45423739
commit
081654533f
100 changed files with 60 additions and 10149 deletions
0
src/openflexure_microscope_server/__init__.py
Normal file
0
src/openflexure_microscope_server/__init__.py
Normal file
15
src/openflexure_microscope_server/server.py
Normal file
15
src/openflexure_microscope_server/server.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from __future__ import annotations
|
||||
import logging
|
||||
from labthings_fastapi.thing_server import ThingServer
|
||||
from labthings_sangaboard import SangaboardThing
|
||||
from labthings_picamera2.thing import StreamingPiCamera2
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
thing_server = ThingServer()
|
||||
camera = StreamingPiCamera2()
|
||||
thing_server.add_thing(camera, "/camera")
|
||||
stage = SangaboardThing()
|
||||
thing_server.add_thing(stage, "/stage")
|
||||
|
||||
app = thing_server.app
|
||||
Loading…
Add table
Add a link
Reference in a new issue