mbari-org / annosaurus

Service for storing and retrieving video/image annotations from VARS
https://docs.mbari.org/annosaurus/
Apache License 2.0
1 stars 1 forks source link

MBARI logo

annosaurus

Build DOI

tl;dr

A web-service for creating image and video annotations. Swagger docs are available in your instance at http://yourhostname.domain:<port>/docs. Here's an example of how to launch it using Docker:

docker run -d \
    -p 8080:8080 \
    -e BASICJWT_CLIENT_SECRET="xxxx" \
    -e BASICJWT_SIGNING_SECRET="xxxx" \
    -e DATABASE_DRIVER="com.microsoft.sqlserver.jdbc.SQLServerDriver" \
    -e DATABASE_LOG_LEVEL=INFO \
    -e DATABASE_PASSWORD="xxx" \
    -e DATABASE_URL="jdbc:sqlserver://database.mbari.org:1433;databaseName=M3_ANNOTATIONS" \
    -e DATABASE_USER=dbuser \
    -e LOGBACK_LEVEL=WARN \
    --name=annosaurus \
    --restart unless-stopped \
    mbari/annosaurus

Overview

The service in this repository is one component of our Video Annotation and Reference System. annosaurus is a REST-based web service that stores and retrieves annotations for videos and images. It is designed to work as a programming-language agnostic API that can be accessed from any programming language. The goal of this project is to provide a data service that allows developers and scientists to easily build their own tools for annotating video and images collections.

This service stands on its own and does not require any other video annotations services. It does require a database, either PostgreSQL or SQL Server.

How-To

Data Model

Class Diagram

Data Model

ER Diagram

ER Model

Building

This project is built using SBT. To build a distribution from source, run sbt stage. The compiled application will be in annosaurus/target/universal/stage. You can start the service using annosaurus/target/universal/stage/bin/annosaurus.

Deployment

Refer to DEPLOYMENT.md for production deployment instructions.

Related Projects