magvitron
Active Member
magvitron submitted a new article:
matlab code for detecting and following a red ball. - the code is self explanatory
[/quote]
Read more about this article...
matlab code for detecting and following a red ball. - the code is self explanatory
Code:
clear;
clc % Clearing Matlab desktop
vid=videoinput('winvide
[quote]the code is self explanatory
[CODE]clear;
clc % Clearing Matlab desktop
vid=videoinput('winvideo',2,'RGB24_640X480'); % Defining the video input object
set(vid,'FramesPerTrigger',1); % Setting frames per trigger
preview(vid); %////// Showing the video of the moving Ball(TO BE USED %
% WHILE TESTING)
pause(10);% Waiting for a certain time for the system to get initialised
rgb_image = getsnapshot(vid); % Storing Image in an array variable
[a b c]= size(rgb_image); % Determining the...
Read more about this article...