- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AlbertA0789,
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
- Select Kernel from the top menu
- Click on Change kernel
- Ensure Python 3 (OpenVINO 2020.3.1 LTS) is selected
- Restart the kernel from the top menu (Kernel -> Restart) or click the reload icon
Regards,
Jesus
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AlbertA0789,
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
- Select Kernel from the top menu
- Click on Change kernel
- Ensure Python 3 (OpenVINO 2020.3.1 LTS) is selected
- Restart the kernel from the top menu (Kernel -> Restart) or click the reload icon
Regards,
Jesus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you need any additional information, please submit a new question as this thread will no longer be monitored.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page