Dec 192007
For some time now I’ve been into computer vision. However, much of computer vision is done on matlab, a 1000$ piece of software that doesn’t jive with my open source philosophy. Luckily, there are a number of open source alternatives. I prefer scilab, though octave is a good alternative. However, scilab has the advantage of an open source video toolbox. In this first article, I’ll show you how to setup scilab, opencv (the intel open computer vision library), and the sivp toolbox. Then we’ll verify its working by processing video from an avi file or in this case, a live webcam stream.
- First, lets start by installing scilab and preparing our system to compile ffmpeg and opencv
- Now follow this guide to get opencv and ffmpeg compiled. Remember to make sure ffmpeg, v4l, and v4l2 are compiled options, or we’ll be unable to process video, webcam, or newer webcam video
- Now head on over to the SIVP webpage and follow the typical
./configure && make && sudo make install - At this point we should have video streaming in scilab. Fire up scilab from the command line
scilab - Here, we’ll want to make sure the video/image toolbox is loaded. Hit the toolbox menu, then the sivp toolbox. You should get a message about it being loaded
- Now, hit the examples button, and make sure your main scilab window stays open. From here click the sivp section, and we can grab straight from a videocam, image, video etc.
- The best part about the examples is the (very simple) code is displayed in your main scilab window, very cool!
sudo aptitude install scilab
From here the sky is the limit!
Thanks!!
Unfortunately this with the current versions of OpenCV 2 and Ubuntu 9.10 (Karmic)
Hey Pap.
Is it no longer working? I haven’t tried it with Karmic or Lucid yet. Code change?
how to do this on windows platform?
SIVP and OpenCV……….i have SIVP on SCILAB but dont have OpenCV…….HOW TO COMPILE IT?
Thanks in advance.
now i am able to open Images but now videos…..later i come to know i must compile OpenCV.
How to do that on Windows platform?
now i am able to open Images but not videos…..later i come to know i must compile OpenCV to open videos.
How to do that on Windows platform?
Hey Jazz,
I wrote this article some time ago, when compiling openCV from source was necessary to get the full usable functionality vs the release. Nowadays you should just be able to install openCV from an install release package, windows too. See http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.2/
Hi
I have solved the problem.
i am working on the Windows SP2 platfrom………..
i first installed
Scilab5.3.0 then
SIVP0.5.3
OpenCV2.2.0
AND THEN MOST IMPORTANT……………..YOU HAVE TO INSTALL xvid CODEC TO OPEN avi FILES. YOU CAN GET IT FROM…..
http://www.xvid.org/Downloads.15.0.html
FOR FREE…….
you can find better discussion at
http://www.mathkb.com/Uwe/Forum.aspx/scilab/2448/SciLab-and-SIVP-Toolbox
I am working with AVI files very well now………Hope you will too…….