levan92 / deep_sort_realtime

A really more real-time adaptation of deep sort
MIT License
166 stars 51 forks source link

use opencv-contrib-python-headless instead of opencv #27

Closed lozybean closed 2 years ago

lozybean commented 2 years ago

since opencv rely on libGL.so, which is not necessary when inference realtime, please use opencv-contrib-python-headless instead

levan92 commented 2 years ago

Hi @lozybean, thank you for your suggestion. You can go ahead to modify setup.py or simply replace ur cv2 installation with opencv-python-headless locally on your side. deep_sort_realtime should run successfully whether with opencv-python or opencv-python-headless. What I placed under setup.py or requirements.txt is just the packages most people will commonly have/use.

lozybean commented 2 years ago

Hi @lozybean, thank you for your suggestion. You can go ahead to modify setup.py or simply replace ur cv2 installation with opencv-python-headless locally on your side. deep_sort_realtime should run successfully whether with opencv-python or opencv-python-headless. What I placed under setup.py or requirements.txt is just the packages most people will commonly have/use.

Thank you for your reply, I installed from pypi, would you please use opencv-python-headless and publish to pypi?

levan92 commented 2 years ago

You can do you own local changes/install your suitable dependencies in your environment, I probably won't be publishing another package just to re-specify the type of opencv module. Apologies about that!