Beruflich Dokumente
Kultur Dokumente
Agenda
Introduction Video and Image Processing Blockset Demo: optical flow Demo: stereo vision Questions
Detect and track objects Count objects in a scene Stabilize camera motion Deinterlace video frames Create mosaicks and panoramas Generate depth maps from stereo image pairs
Common Challenges
Accessing and analyzing video data Exploring algorithms and what-if scenarios Understanding the system-wide context Rebuilding standard algorithms Visualizing intermediate results Testing and validating under real-world conditions
44
66
System Objects
Definition
MATLAB objects that represent time-based and data-driven algorithms, sources, and sinks
hReader = video.MultimediaFileReader(viptraffic.avi) step(hReader);
Batch Processing
Load the entire video file and process it all at once
MATLAB
Memory
Batch Video Algorithm
Source
88
Stream Processing
Load a video frame and process it before moving on to the next frame
MATLAB
Memory
Stream Source
Stream Processing
99
flow = opticalFlow(currentFrame,prevFrame,horn-schunck,... numIter,magitude-squared); opticalFlowOutput(:,:,2:end) = opticalFlowOutput(:,:,1:end-1); opticalFlowOutput(:,:,1) = flow; i = i+1; end implay(opticalFlowOutput)
10
Initialize objects
In-the-loop code is much simpler Implicit states, buffering, and indexing Video player runs in-the-loop
11
12 12
ConnectedComponentLabeler GeometricTranslator ContrastAdjuster Convolver2D CornerDetector Crosscorrelator2D DCT2D Histogram2D HistogramEqualizer HoughLines HoughTransform IDCT2D
13
Register neighboring frames to create a large view of the scene or stabilize camera motion Applications: Security License plate recognition Aerial surveying Medical imaging
14 14
Detect, classify, and track objects in a scene Applications: Traffic monitoring Cell counting Lane departure warning system
15 15
Applications: Obstacle avoidance Automotive safety Face recognition Scene reconstruction Part pickers
16 16
Left
Right
17 17
Stereo rectification Align images horizontally Block matching Find disparity map Backprojection Calculate 3D points
18 18
Graphical design in Simulink Fixed point modeling Code generation Targeting and verification
DSPs FPGAs
19
Live video and image acquisition directly into MATLAB and Simulink Device property configuration Live video previewing GUI or functional interface Support for multiple hardware vendors
20
System objects simplify coding and reduce errors Algorithms for computer vision and video processing Flexible environment enables algorithm exploration Support for reading and writing many video file formats Text and graphics annotations on video data Support for cameras and frame grabbers Embedded hardware design considerations
21
Other examples:
People tracking
Video mosaicking Video stabilization Lane departure warning system Abandoned object detection
22
User stories
Contact us
Sales representative
23
Questions?
24