RSS
 

Archive for the ‘Ubuntu’ Category

Ubuntu: Install Opencv from source step-by-step

25 Aug

To install OpenCV library in Ubuntu from source, I tried these steps. The code of OpenCV is not the last but the one which is in the Ubuntu repository. If you want to install the last version just download it from the official SVN in sourceforge.
[ad#Amazon Opencv]
You can install opencv anywhere but its best you put in the propoer place

1) Sign as root

sudo su

2) Go to

cd /usr/local/src

3) prepare your environment

apt-get install build-essential

4) prepare your environment

apt-get install dpkg-dev

5) Download opencv packages

apt-get source opencv

6) Go to extracted opencv folder

cd opencv-1.0

7) List all dependency package informed in

more /debian/control 

8) Install all dependency package informed in /debian/control by invoking

apt-get install [package-1] package-2] [packga-3] ... [package-n]

9) Also install other necessary package

apt-get install fakeroot ffmpeg quilt

10) Build package by invoking

dpkg-buildpackage -us -uc -rfakeroot

11) Go to samples folder

cd /samples/c

12) Build samples

make -f  Makefile.debian

13) Plug in your webcam and run the samples

./facedetect

14) See you face detected in monitor

 
No Comments

Posted in Ubuntu

 

Ubuntu: Intel Graphics on X200 with intrepid

29 Jul

I installed ubuntu intrepid on my thinkpad x200. It is mostly working but the graphics were big enough to annoy me.
I tried many xorg.conf configuration and this on worked perfectly for me to fix the screen resolution to wxga.

Section “Device”
Identifier “Configured Video Device”
Driver “intel”
Option “monitor-HDMI-1″ “HDMI-1″
Option “monitor-HDMI-2″ “HDMI-2″
EndSection

Section “Monitor”
Identifier “Configured Monitor”
EndSection

Section “Monitor”
Identifier “HDMI-1″
Option “Ignore” “True”
EndSection

Section “Monitor”
Identifier “HDMI-2″
Option “Ignore” “True”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “1280×800″ “1024×768″
Virtual 2432 864
EndSubSection
EndSection

 
No Comments

Posted in Ubuntu

 

Ubuntu: Very good HowTo for everything

29 Jul

I found in Internet a good web page to install many useful thing for Ubuntu.
I paste it for my own reference and it may help othres.
Here is the page
—————–
Here is the summery

Initial setup

  1. Install Ubuntu
  2. Update and upgrade package sources
  3. Turn on the firewall
  4. Install the graphics driver

Multimedia

Internet & Networking

Filesystem

Scientific & Programming

Misc

 
No Comments

Posted in Ubuntu

 

Ubuntu: Two or more plots in the same windows

15 Jul

The mode is called MULTI-PLOT.

Gnuplot can plot more than one figure in a frame ( like subplot in matlab ) i.e., try:

set multiplot; # get into multiplot mode
set size 1,0.5;
set origin 0.0,0.5; # The upper plot
plot sin(x);
set origin 0.0,0.0; # The bottom plot
plot cos(x)
unset multiplot # exit multiplot mode

 
No Comments

Posted in Ubuntu

 

Ubuntu: Convert ogg to avi

15 Jul

Most of the time, I record with recordMyDesktop which produces .ogg-Videos. So any need to convert it to avi file to share the screen-cast.
First you need memcoder, so install it:
sudo apt-get install memcoder
Next use this commend:
mencoder out.ogg -o out.avi -oac mp3lame -ovc lavc

  • out.ogg is the .ogg-file you want to convert
  • out.avi is the .avi-file you want to create
  • mp3lame is the used audio-codec (here mp3)
  • lavc is the used video-codec (here libavcodec)
 
No Comments

Posted in Ubuntu