Video Writer for cycle detection
Afficher commentaires plus anciens
clc;clear all;close all
v = VideoWriter('cycles1','MPEG-4');
open(v);
Web=webcam;
k=1;
while k<200
frame=Web.snapshot;
[centers,radii] = imfindcircles(rgb2gray(frame),...
[8,30],"ObjectPolarity","dark",...
"Sensitivity",0.8,...
"Method","TwoStage");
imshow(frame)
h = viscircles(centers,radii,"Color",[0.2 0.3 0.5]);
writeVideo(v,frame);
k=k+1;
end
close(v)
clear Web
% I Wanr Write Video With Cycle that detected
1 commentaire
Benjamin Thompson
le 12 Août 2022
Do you mean cycle detection or circle detection?
Is there an error or some problem with your sample code that you can post here?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Motion Detection dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!