Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Extract Images from Video Using OpenCV in Python

Tips and Traps

  1. Most videoes have a FPS of 24. Some videos have higher FPS (e.g., 30 or 60) so that they can capture motions better. A record video on a computer has a FPS of the refresh rate of the monitor, which is usually 60. You can get the FPS of a video using OpenCV in Python.

Resizing Hard Disk of Guest Machine in Virtualbox

Suppose you have virtual hard disk in VirtualBox called xp.vdi, you can resize it (megabytes) using the following command.

VBoxManage modifyhd xp.vdi --resize 40960

The command currently doesn't support vmdk virtual disk. So if you have a virtual disk called xp.vmdk, you have to first convert it …