Hi I am trying object tracking jupyter notebook from devcloud and since it says "Before importing vaspy, environment variables LD_LIBRARY_PATH and PYTHONPATH need to be set. LD_LIBRARY_PATH should specify the VAS shared libraries directory and PYTHONPATH should specify the vaspy shared library directory". So I use os.environ to change it like below
os.environ['LD_LIBRARY_PATH'] = '/home/hp/Downloads/video-analytics-serving-master'
os.environ['PYTHONPATH'] = '/home/hp/Downloads/VASPy-master'
from vaspy import hd as HD
from vaspy import ot as OT
from vaspy.common import *
print("Imported VAS modules")
but then I receive error as below:
ImportError: cannot import name 'hd' from 'vaspy' (/home/hp/anaconda3/envs/Python_3_7/lib/python3.7/site-packages/vaspy/__init__.py)
So I check the vaspy library and I found out there is indeed no HD and OT in the library. Is the vaspy library is a modified version? If it is can you tell me where I can find it? Thanks
Thanks for reaching out, you should not need to modify the Jupyter notebook to get the sample to work. Please make sure section 4.2 Import VAS contains the next 4 lines of code and ensure you have selected the correct Kernel (OpenVINO 2020.3.1 LTS).
from vaspy import hd as HD from vaspy import ot as OT from vaspy.common import * print("Imported VAS modules")
From the Jupyter Notebook vasp_object_tracker_video