Clear Filters
Clear Filters

Human Detection using YOLOV3 with own Weights

11 views (last 30 days)
Hanes Ongos
Hanes Ongos on 6 Jan 2024
Answered: Shantanu Dixit on 26 Aug 2024 at 9:12
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 at 9:12
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!