gengyanlei / fire-smoke-detect-yolov4

fire-smoke-detect-yolov4-yolov5 and fire-smoke-detection-dataset 火灾检测,烟雾检测
MIT License
1.21k stars 299 forks source link

how to use the onnx in C++ opencv with dnn #35

Open NacerFaraj opened 2 years ago

NacerFaraj commented 2 years ago

I am using opencv 4.5.4, which supports the use of converted yolov5.onnx. So, I converted the best.pt (inside Yolov5 folder) to best.onnx.

I can now load the model successfully using: cv::dnn::readNetFromONNX("best.onnx") BUT, I do not know how to use it to find bounding boxes around fires and smokes given a test image!

Please help me anyone does know how. thanks.

gengyanlei commented 2 years ago

You should go to the issue area of yolov5 for consultation.

NacerFaraj commented 2 years ago

Thank you so much for the reply. :-)

On Wed, Oct 27, 2021 at 2:37 PM gengyanlei @.***> wrote:

You should go to the issue area of yolov5 for consultation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gengyanlei/fire-smoke-detect-yolov4/issues/35#issuecomment-952807057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMI3PQG6UDPREDUJ6EABOVTUI7MQVANCNFSM5GTZJXZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.