Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

video streaming GUI design

Status
Not open for further replies.

go.beavs

Newbie level 5
Joined
Oct 23, 2011
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
I want to design a GUI that capture video stream from camera plugged to USB port. I am looking for sources to read about how to do that, and if possible some open sources code.

Also, what would be the easiest language to program this kind of design ?
 

You can use matlab

here is the code

% Create video input object.
vid = videoinput('dcam',1,'Y8_1024x768')

% Set video input object properties for this application.
% Note that example uses both SET method and dot notation method.
set(vid,'TriggerRepeat',Inf);
vid.FrameGrabInterval = 5;

% Set value of a video source object property.
vid_src = getselectedsource(vid);
set(vid_src,'Tag','motion detection setup');

% Create a figure window.
figure;

% Start acquiring frames.
start(vid)

% Calculate difference image and display it.
while(vid.FramesAcquired<=100) % Stop after 100 frames
data = getdata(vid,2);
diff_im = imabsdiff(data:),:,:,1),data:),:,:,2));
imshow(diff_im);
end

stop(vid)
 

Thanks for replaying back, but I have to design a GUI to display the video streaming.
 

Is it possible to make the designed GUI in matlab to capture the images from an FPGA development board instead of camera ? Because my project is a camera that will by synchronized to an FPGA board and then to the PC through a USB. And can I have some features in the GUI like calculating the fps ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top