Detection and Tracking of RED Color in Video Streaming by Using MATLAB
Detection and Tracking of RED Color in Video Streaming by Using MATLAB
com
BEST OF LUCK.
Engr Rana Muhammad Shakeel
[email protected]
+92-333-4962507
https://www.facebook.com/EngnrShakeel
visit my site
http://electro-technolgy.blogspot.com
Function CODE:
function [camera_name, camera_id, resolution] = getCameraInfo(a)
camera_name = char(a.InstalledAdaptors(end));
camera_info = imaqhwinfo(camera_name);
camera_id = camera_info.DeviceInfo.DeviceID(end);
resolution = char(camera_info.DeviceInfo.SupportedFormats(end));
Main CODE:
a = imaqhwinfo;
[camera_name, camera_id, format] = getCameraInfo(a);
hold on
hold off
end
% Both the loops end here.