Kobelvilla2

Qt and std::cout

If you want to use std::cout with Qt in Visual Studio you have to change the SubSystem of your project setting.

Right click project -> Properties -> Linker -> System -> Subsystem
Change the value from Windows(/SUBSYSTEM:WINDOWS) to Console(/SUBSYSTEM:CONSOLE). Now you have the Qt GUI and a console in the background.

app-my-ride

Get the Flash Player to see this content.

Papervision Tutorial

Today I started to test Papervision3d for Flash in a Flex project. I was searching a very minimalistic example which shows how to use the papervision library in flex builder. After a while I found this one: Simple working Flex papervision 3d example, which shows a cube which is rotating.

You can see the result here.
PapervisionTest

ARToolkitPlus camera calibration

Today I was experimenting with ARToolkitPlus a software library that can be used to calculate camera position and orientation relative to physical markers in real time. To get a reliable position of the marker in a picture it is important to calibrate the camera which is used. The authors of ARToolkitPlus suggest to use the Camera Calibration Toolbox for Matlab. The toolbox is well documented and easy to use. The toolkit generates a file called Calib_Results.m.

The ARToolkitPlus needs an ASCII-file containing the following informations

[line1]: ARToolKitPlus_CamCal_Rev02
[line2]: xsize ysize cc_x cc_y fc_x fc_y kc1 kc2 kc3 kc3 kc5 kc6 iter

which can be taken from the Calib_Results.m file.

xsize, ysize: calibrated frame dimensions (does not have to match the frame dimensions at runtime)
cc_x, cc_y: principal point location (in pixels)
fc_x, fc_y: focal length (in pixels)
kc1..kc6: radial/tangential distortion coefficients (kc6 currently not in use)
iter: number of iterations for distortion compensation.

For my Sony firewire DV cam the ARToolkitPlus calibration file, created from the matlab camera calibration file from above, looks as follows.

ARToolkitPlus_SonyDVCam
360 288 170.555587873985790 156.349897479289890 4.848803600222190 5.131806560891684 -0.389314936291939 2.943393328535414 0.001258278172844 -0.002916145962022 0.00 0.00 10

AXIS Media Control SDK

Axis also offers a SDK to access their IP-network cameras. It is C++ based and there are also some sample applications included.

boost library

Today I tried to get a connection to the mjpeg stream of my Axis P1346 network camera in C++. While searching the www I found the boost library which looks quite promising. The use under Windows with VS2008 is very simple.

  • download and extract the newest version
  • run the boostrap.bat in the main boost folder
  • open Visual Studio command prompt
  • change to main boost folder
  • to compile the libs enter “bjam threading=multi –prefix=c:\boost install”

About

This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.