|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
Video Stabilizer Demo user guide.
nvx_demo_video_stabilizer is a demo that demonstrates the image based video stabilization algorithm. It uses the Harris feature detector and sparse pyramidal optical flow method (Lucas-Kanade) to estimate a frame's motion.
The demo uses the following pipeline:
(next frame)
|
+-------------------------------------+-------------------------------+-------+
| | | |
| [ColorConvert] | |
| | | |
| +--------------------------------+ | |
| | | | |
| | [GaussianPyramid] | |
| | | | |
| | (pyr delay -1) (pyr delay 0) (pts delay -1) | |
| | | | | | |
| | | | +----+ | |
| | | | | | | |
| | +----------------+------------------+ | | |
| | | | | |
| | [OpticalFlowPyrLK] | | |
| | | | | |
| +-------+------------------------+ | | |
| | | | | |
| [HarrisTrack] +-------+---------------+ | |
| | | | |
| (pts delay 0) [FindHomography] | |
| | | |
| +-------+-----------------------+ |
| | |
| [HomographyFilter] |
| | |
| (...) (matrix delay -1) (matrix delay 0) |
| | | | |
| +-------------+------------------+ [ImageCopy]
| | |
| [MatrixSmoother] (RGBX delay -n) (...) (RGBX delay 0)
| | |
+------------------+ |
| |
[TruncateStabTransform] |
| |
+---------------+---------------+
|
[WarpPerspective]
|
(stabilized)
nvx_demo_video_stabilizer is installed in the following directory:
/usr/share/visionworks/sources/demos/video_stabilizer
For the steps to build sample applications, see the Samples and Demos section for your OS.
./nvx_demo_video_stabilizer [options]
--source=/path/to/video.avi for video--source=/path/to/image_%04d_sequence.png for image sequence--source="device:///v4l2?index=0" for the first V4L2 camera--source="device:///v4l2?index=1" for the second V4L2 camera.--source="device:///nvcamera?index=0" for the GStreamer NVIDIA camera (Jetson TX1 only).--source="device:///nvmedia?config=dvp-ov10635-yuv422-ab-e2379&number=4" for the GStreamer NVIDIA camera (Vibrante for Linux only)../nvx_demo_video_stabilizer --source=video.avi -n6./nvx_demo_video_stabilizer --source=video.avi --crop=0.1ESC to close the demo.Space to pause/resume the demo.