Metadata-Version: 2.1
Name: useful-lva-sdk
Version: 0.1.2
Summary: Unofficial Vision AI Live Video Analytics SDK
Author: Yan Xue
Author-email: xueyan.sjtu@gmail.com
License: MIT
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# Vertex AI Vision Live Video Analytics SDK 
*Unofficial Vertex AI Vision SDK in Python.* It's for building Live Video Analytics (LVA) program and CRUD LVA resources. 

## Installation

```commandline
pip install useful-lva-sdk
```

## Get started

Create an LVA program with this lib:

```python
from useful_lva_sdk.core.lva_graph_builder import LvaGraphBuilder
from useful_lva_sdk.core.operator import *

graph = LvaGraphBuilder("test-analysis") \
    .add_analyzer(GcsVideoSource(), "gcs_source") \
    .add_analyzer(GcsProtoSink(), "gcs_sink") \
    .add_analyzer(OccupancyCounting(), "oc") \
    .connect("oc", "gcs_sink") \
    .connect("gcs_source", "oc") \
    .build()
```

Create an analysis with this lib:

```python
from useful_lva_sdk.client.lva_client import LVAClient

analysis = graph.analysis()
client = LVAClient(
    project="PROJECT_ID",
    location="LOCATION_ID",
    cluster="CLUSTER_ID",
)
client.create_analysis(analysis.name, analysis)
```
