6

GitHub - georgia-tech-db/eva: Exploratory Video Analytics System

 1 year ago
source link: https://github.com/georgia-tech-db/eva
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
EVA

EVA Video Database System: Where SQL meets Deep Learning!

star2 Try It Out! star2

Links

EVA Video Database System

What is EVA?

EVA is a new database system tailored for video analytics -- think MySQL for videos. It supports a simple SQL-like language for querying videos (e.g., finding frames in a movie with your favorite actor or find touchdowns in a football game). It comes with a wide range of commonly used computer vision models.

Why EVA?

eyes Easily query videos in user-facing applications with a simple SQL-like interface for commonly used computer vision models.

bullettrain_front Speed up queries and save money spent on model inference using in-built sampling, caching, and filtering optimizations.

sparkles Hit your target accuracy using state-of-the-art model selection and query optimization algorithms.

QuickStart

  1. EVA requires Python 3.7+. To install EVA, we recommend using an virtual environment and the pip package manager:
pip install evadb
  1. Start the EVA server and the client programs
eva_server &   # launch server
eva_client     # launch client
  1. UPLOAD a video using the client (we use ua_detrac.mp4 video as an example):
LOAD FILE "data/ua_detrac/ua_detrac.mp4" INTO MyVideo;
  1. That's it. You can now start issuing queries over the loaded video:
SELECT id, data FROM MyVideo WHERE id < 5;

More Interesting Queries

  1. Search for frames in the video that contain a car
SELECT id, data FROM MyVideo WHERE ['car'] <@ FastRCNNObjectDetector(data).labels;

QueryResult
  1. Search for frames in the video that contain a pedestrian and a car
SELECT id, data FROM MyVideo WHERE ['pedestrian', 'car'] <@ FastRCNNObjectDetector(data).labels;
  1. Search for frames in the video with more than 3 cars
SELECT id, data FROM MyVideo WHERE Array_Count(FastRCNNObjectDetector(data).labels, 'car') > 3;
  1. Create your own user-defined function (UDF) that wraps around a vision model like FastRCNN
CREATE UDF IF NOT EXISTS MyUDF
INPUT  (frame NDARRAY UINT8(3, ANYDIM, ANYDIM))
OUTPUT (labels NDARRAY STR(ANYDIM), bboxes NDARRAY FLOAT32(ANYDIM, 4),
        scores NDARRAY FLOAT32(ANYDIM))
TYPE  Classification
IMPL  'eva/udfs/fastrcnn_object_detector.py';

Contributing to EVA

To file a bug or request a feature, please use GitHub issues. Pull requests are welcome. For more information on installing from source and contributing to EVA, see our contributing guidelines.

Contributors

See the people page for the full listing of contributors.

License

Copyright (c) 2018-2022 Georgia Tech Database Group Licensed under Apache License.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK