EnoxSoftware / HoloLensWithOpenCVForUnityExample

HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
MIT License
262 stars 50 forks source link

Is OpenCV available for custom object detection? #48

Open chengchingyu0412 opened 1 year ago

chengchingyu0412 commented 1 year ago

Hi, I am interested in deploying OpenCV on HL2 for custom object detection. Is OpenCV available to do that? If so, are there some reference tutorial videos? (I notice that OpenCV can detect human faces, and I would like to detect other things, like construction vehicles.) Thank you so much

EnoxSoftware commented 1 year ago

Object detection with OpenCV often uses the DNN module these days, but unfortunately, OpenCV's DNN module is not compatible with the UWP platform and cannot be used with Hololens2. Therefore, consider using a traditional Haar feature-based Cascade-type classifier or DNN inference with Unity's Barracuda.

chengchingyu0412 commented 1 year ago

OK, thank you for your information!