OpenCV for Unity使用深度学习神经网络进行图像识别对象检测
3.打开场景Assets\OpenCVForUnity\Examples\MainModules\dnn\YoloObjectDetectionExample\YoloObjectDetectionWebCamTextureExample.unity。1.打开Assets\OpenCVForUnity\StreamingAssets\dnn\setup_dnn_module.pdf。6.也可以自己
·
本文使用的是OpenCV for Unity 2.4.5
1.打开Assets\OpenCVForUnity\StreamingAssets\dnn\setup_dnn_module.pdf

2.按照提示下载person.jpg、yolov4-tiny.cfg、yolov4-tiny.weights、coco.names

3.打开场景Assets\OpenCVForUnity\Examples\MainModules\dnn\YoloObjectDetectionExample\YoloObjectDetectionWebCamTextureExample.unity

4. 配置Dnn参数

5.运行测试,可以看到物体被检测出来了。

6.也可以自己训练数据集进行识别,下图是口罩识别。
更多推荐
所有评论(0)