필터 지우기
필터 지우기

how to track objects in a live video

조회 수: 16 (최근 30일)
Aiman Zara
Aiman Zara 2023년 3월 19일
답변: Image Analyst 2023년 3월 20일
By using this code, when I show the image of the object in a phone it tracks its name but when i show a video then it can not identify the object, what's wrong in the code. I think I am going wrong in the third line i-e (snapshot(camera)). Please help me what to add or remove in this code.
camera = webcam; % Connect to the camera
load("trained filename")
im = snapshot(camera); % Take a picture
image(im); % Show the picture
im = imresize(im,[224 224]); % Resize the picture for alexnet
label = classify(netTransfer,im); % Classify the picture
title(char(label)); % Show the class label

답변 (1개)

Image Analyst
Image Analyst 2023년 3월 20일

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by