Clear Filters
Clear Filters

i want to capture an image through fish-eye camera in real time and use that image for processing.can anybody suggest me how to do it

1 view (last 30 days)
I used this code but it is using a webcam as an input for the video. I want to use a fish-eye camera instead. Please help.
% if(~isdeployed)
% cd(fileparts(which(mfilename)));
% end
% clc;
% Clear command window.
% clear;
% close all;
% Close all figure windows except those created by
% imtool close all;
% Close all figure windows created by imtool.
% workspace;
% Make sure the workspace panel is showing.
% fontSize = 36;
% % Start up the video.
% vid = videoinput('winvideo', 1, 'RGB24_640x480');
% vid.FramesPerTrigger = 1;
% preview(vid);
% start(vid);
% Get image and display it.
% rgbImage = getdata(vid);
% subplot(1,2, 1);
% imshow(rgbImage);
% title('Initial Image', 'FontSize', fontSize);
% set(gcf, 'Position', get(0,'Screensize'));
% Save this image to disk.
% fullImageFileName = fullfile( 'C:\Users\div\Desktop\myfirstimage.jpg');
% imwrite(rgbImage,fullImageFileName);
% Read it back in to check it.
% recalledImage = imread(fullImageFileName);
% subplot(1,2, 2);
% imshow(recalledImage);
% title('Recalled Image', 'FontSize', fontSize);

Answers (1)

Image Analyst
Image Analyst on 27 May 2013
Other than the video mode name used in videoinput() might be different for a different camera model, why do you think the code should be any different than it is for a webcam or any other digital camera?
  5 Comments
divya
divya on 28 May 2013
imaqhwinfo
ans =
InstalledAdaptors: {'gentl' 'gige' 'matrox' 'pointgrey' 'winvideo'}
MATLABVersion: '8.0 (R2012b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '4.4 (R2012b)'
>> imaqhwinfo('pointgrey')
ans =
AdaptorDllName: [1x82 char]
AdaptorDllVersion: '4.4 (R2012b)'
AdaptorName: 'pointgrey'
DeviceIDs: {[1]}
DeviceInfo: [1x1 struct]
this is the list of adaptors available

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!