Human Detection using YOLOV3 with own Weights
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone! I am trying to detect humans using yolov3 weights. Right now, I am trying to detect using an image but later I am going to use a camera to detect humans. I don't know if this is possible using my own weights with my config file.
0 个评论
回答(1 个)
Shantanu Dixit
2024-8-26
Hi Hanes, to perform real-time human detection using 'yolov3', use 'snapshot' functionality available in MATLAB to capture frames from a webcam. Refer to the example code below.
Below approach assumes an already trained yolov3Detector for human detection.
cam = webcam;
while true
% Capture a frame from the camera
frame = snapshot(cam);
[bboxes, scores, labels] = detect(yolov3Detector, frame);
%% extend functionality
% Wait for a key press to exit
if waitforbuttonpress
break;
end
end
% Release the camera
clear cam;
Refer to the below MathWorks documentation for more information.
Note that this feature requires the Support package for USB Webcams add-on.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!