Skip to main content
NVIDIA
NVIDIA

eyecontact

Downloadable

Estimate gaze angles of a person in a video and redirect to make it frontal.

API Reference

Getting Started

NVIDIA Maxine Eye Contact NIM uses gRPC APIs for inferencing requests. Following instructions demonstrate the usage of Maxine Eye Contact NIM model using Python client.

Prerequisites

You will need a system with git and Python 3.10+ installed.

Download the NVIDIA Maxine Eye Contact Python client

Download code by cloning the gRPC Client Repository:

git clone https://github.com/NVIDIA-Maxine/nim-clients.git
cd nim-clients/eye-contact/

Install the dependencies for the NVIDIA Maxine Eye Contact Python client:

sudo apt-get install python3-pip
pip install -r requirements.txt

Run Python Client

Navigate to the scripts directory

cd scripts

Send gRPC request

python eye-contact.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id 480bffcb-6fea-4571-9741-eb50212c9c0f \
--api-key $NVIDIA_API_KEY \
--input <input file path> \
--output <output file path and the file name>

Example command with sample input:

python eye-contact.py --preview-mode \
--target grpc.nvcf.nvidia.com:443 \
--function-id 480bffcb-6fea-4571-9741-eb50212c9c0f \
--api-key $NVIDIA_API_KEY \
--input ../assets/sample_transactional.mp4 \
--output ../assets/output.mp4

Note the requirements for input file:

  • The supported file type is mp4 with H.264 codec.
  • The size limit for input file is 1 GB.
  • It can take up to 10 mins to process large input files.

Refer this documentation for more information.