Skip to main content

EVA Video Database System (Think MySQL for videos).

Project description

EVA

Quickly capture information embedded in videos!

🌟 Try It Out! 🌟

EVA Video Analytics System

PyPI Status CI Status Coverage Status License Documentation Status Discuss Python Versions

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?

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

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

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

Links

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
python eva/eva_server&   # launch server
python eva/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

Development Environment Setup

To install EVA from source, use a virtual environment and the pip package manager. EVA requires JAVA 8 for generating the parser.

git clone https://github.com/georgia-tech-db/eva.git && cd eva
python3 -m venv test_eva_db                             # to create a virtual environment
source test_eva_db/bin/activate                         # activate virtual environment
pip install --upgrade pip
sudo -E apt install -y openjdk-11-jdk openjdk-11-jre    # to install JAVA
sh script/antlr4/generate_parser.sh                     # to generate the EVA parser
pip install -e ".[dev]"

Note: If you face Pytorch CUDA compatibility issues after installation, refer this link and re-install the correct torch and torchvision packages with pip

To verify that installation is successful, run the test suite.

sh script/test/test.sh

Contributing Guidelines

To file a bug or request a feature, please use GitHub issues. Pull requests are welcome. For more information on installing from source, troublshooting,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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evadb-0.0.10.tar.gz (214.6 kB view details)

Uploaded Source

Built Distribution

evadb-0.0.10-py3-none-any.whl (415.3 kB view details)

Uploaded Python 3

File details

Details for the file evadb-0.0.10.tar.gz.

File metadata

  • Download URL: evadb-0.0.10.tar.gz
  • Upload date:
  • Size: 214.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.6

File hashes

Hashes for evadb-0.0.10.tar.gz
Algorithm Hash digest
SHA256 c2cb6763eb83c65d38a8b89bb664160d7453875a1b7d533a66e7b7bdfbdc3276
MD5 ef605847735018e53252c6fa979f06e3
BLAKE2b-256 a59c2b7296f191a4f96d6dfde062b50d97a18f831b0a314a24a710e59bcb1330

See more details on using hashes here.

File details

Details for the file evadb-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: evadb-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 415.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.6

File hashes

Hashes for evadb-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8201bddeb0e21bde434db99168bb8d5589d472ad07956088cef866400dfa6e6c
MD5 ee55e27635f08bea4ff68d354e3f3e3c
BLAKE2b-256 1e15acbb0457b56ba5d053106ba5d0feee5442e93446fad5ca80aa5ab649efd6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page