This project is a FastAPI server for ingesting and processing observations from a computer vision system. It uses YOLO for object detection and maintains a "world state" based on the ingested observations.
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install the dependencies:
pip install -r requirements.txt
To start the server, run the following command:
bash start.shThe server will be available at http://localhost:8000.
Ingests a new observation and updates the world state.
Request Body:
The request body should be a JSON object with the following structure:
{
"source": "string",
"timestamp": "datetime",
"summary": "string",
"objects": [
{
"label": "string",
"confidence": "float"
}
],
"vision": {
"key": "value"
}
}Response:
{
"status": "ok"
}Returns the current world state.
Response:
A JSON object representing the current state of the world, as determined by the ingested observations.
Returns the last observation that was ingested.
Response:
A JSON object representing the last observation.