Interesting Software posted by on December 21, 2011

Software interesting for the industry
OpenCV is a library for image processing. Here is a fantastic install instruction.
http://www.ozbotz.org/opencv-installation

For those who need help to generate code, there is this wonderful Harpia thing. Unfortunately there are problems to make it work on Ubuntu. The program doesn’t compile the generated file.

Here is a link to a deb file It works for 64 and 32 bit Ubuntu Precise:

https://launchpad.net/ubuntu/+source/harpia/1.1-0ubuntu2/+build/3005785

You need to change the file /usr/lib/python2.6/dist-packages/harpia/gerador.py line 2308 to use g++ instead of gcc -x c++

Change this:

makeFileEntry = "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"+installDirName+"/lib/; export PKG_CONFIG_PATH="+installDirName+"/lib/pkgconfig/;gcc -x c++  " + codeFilename[:-2] + " `pkg-config --cflags opencv` " + codeFilename + " `pkg-config --libs opencv` "

into this:

makeFileEntry = "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"+installDirName+"/lib/; export PKG_CONFIG_PATH="+installDirName+"/lib/pkgconfig/;g++ -o " + codeFilename[:-2] + " `pkg-config --cflags opencv` " + codeFilename + " `pkg-config --libs opencv` "

I know that formatting sux but copy and paste it into something that wraps… Hopefully this will work…

=========

So now the “big plan” is to make a connector from Harpia and OpenCV into Proview.se so that PLC programs in proview can order OpenCV to capture and process an image from a camera and present the result as some PLC variables. These variables can be the coordinates of detected objects or the number of detected object in a frame or something else.

It should be easy to expand Harpia’s structure to support new connectors and Proview.se have a very good I/O structure so that new drivers can be implemented. Proview also support “components” so it should be possible to define the camera and a number of variable as a component.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ thirty nine = forty seven