Human Detection using YOLOV3 with own Weights

2 views (last 30 days)
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.

Answers (1)

Shantanu Dixit
Shantanu Dixit on 26 Aug 2024
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!