Skip to main content
# Go to the Aivero Python Interface Installation folder
cd /opt/aivero/apyi-install

# Source our environment
source dddq_environment.sh

# Sample the output file
python3 scripts/preview_3dq_sample.py input.mkv -d -i1

#Loaded necessary plugins

#Preview controls:
# Press the following keys for the desired function:
# Pause --> Spacebar
# Play --> Enter
# Frame stepping --> s
# Playback rate:
# 1x --> 1
# 2x --> 2
# Seek/Jump:
# 1 second backwards --> leftArrow
# 1 second forward --> rightArrow
# Beggining of file --> upArrow
# Mark sample start --> x
# Mark sample end --> c


# Export samples to mp4
python3 scripts/convert_to_mp4.py input_file.mkv -i1

# v7labs upload
# Note that you also need to pass your V7 Darwin API key as `--key API_KEY`
# or log in using `darwin authenticate`.
python3 scripts/upload_to_v7.py --path input_file.mkv_infra1.mp4 --dataset test-01

# Download annotations file from v7labs
python3 scripts/download_from_v7.py --folder annotations/ --dataset test-01

# Continue in pytorch or deeplabcut example

Sample

Now that you have your file that contains the whole contents you can use the preview_3dq_ sample.py to preview and use the instructions on screen to sample the file, giving a name to the new sample.

Export samples to .mp4

Using the convert_to_mp4.py you can export your samples' non-depth streams to individual mp4 files.

Upload to v7labs

To upload the files in out/ format to v7labs you can use any of the ways defined in their API docs.

E.g. https://docs.v7labs.com/docs/import-image-or-video-data

Moreover, we also provide a Python script that allows you to upload to V7.

Download annotation from v7labs

Downloading annotations from v7labs can be done manually by creating an export and then downloading it.

We also provide a python script that will do these things.