Jayk
Junior Member level 1
- Joined
- Dec 18, 2011
- Messages
- 16
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,283
- Location
- Rajkot,India
- Activity points
- 1,426
clc;
close all;
clear all;
obj = videoinput('winvideo', 1);
set(obj, 'SelectedSourceName', 'input1');
src_obj = getselectedsource(obj);
get(src_obj);
preview(obj);
frame = getsnapshot(obj);
image(frame);
delete(obj);
this is my code for taking simple image....but dont know image are not obtain proper.....i have attached the type of image....i am working on this for two days....can any one give solution what is the problem.....i dont find problem in code....is it some setting i have to do
close all;
clear all;
obj = videoinput('winvideo', 1);
set(obj, 'SelectedSourceName', 'input1');
src_obj = getselectedsource(obj);
get(src_obj);
preview(obj);
frame = getsnapshot(obj);
image(frame);
delete(obj);
this is my code for taking simple image....but dont know image are not obtain proper.....i have attached the type of image....i am working on this for two days....can any one give solution what is the problem.....i dont find problem in code....is it some setting i have to do
Last edited: