Ask Your Question
0

How to Install OpenCV with Processing??

asked 2013-01-28 07:37:07 -0600

HappyTron gravatar image

There is no clear instructions on how to install OpenCV to be able to use with Processing 2.0 beta 7.

If there is anyone who can help me please reply!! I really want to learn and use image processing with my arduino. Processing can help me bridge the gap.

I BEG OF YOU SOMEONE PLEASE INSTRUCT ME HOW TO USE OPENCV WITH PROCESSING :(

edit retag flag offensive close merge delete

Comments

I'm having troubles using OpenCV in processing 2.0b7 and 2.0b8 on WIN7 64. i've installed the binaries and put the openCV bin in my system PATH variable. i've installed the OpenCV libraries in my processing sketchbook/libraries folder. but when i open the blobs example from the OpenCV examples i get the following error: >Cannot find class or type named "Rectangle"<

here is the code from the example: ANY help would be much appreciated!!

import hypermedia.video.*;


OpenCV opencv;

int w = 320;
int h = 240;
int threshold = 80;

boolean find=true;

PFont font;

void setup() {

    size( w*2+30, h*2+30 );

    opencv = new OpenCV( this );
    opencv.capture(w,h);

    font = loadFont( "AndaleMono.vlw" );
rSi gravatar imagerSi ( 2013-04-01 09:35:30 -0600 )edit
1

First of all, rSi, it is kind of arrogant to hijack someone his thread to actually post a second problem. So please remove the notice and create your own.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-01 09:41:43 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-04-01 09:43:44 -0600

I am not familiar with the processing software, but please, follow the next guide. It goes step by step through getting OpenCV to work with processing.

http://andybest.net/2009/02/processing-opencv-tutorial-1/

However it seems this is not done with the original openCV code, but by a port made by a guy named Peter Kirn. Basically this means that this is not the correct place to address your problems.

edit flag offensive delete link more

Comments

thanks for your answer! i'm a bit confused, because following the link you posted i could not find a tutorial on installing openCV... how to use it with processing is well documented. i was confused, because processing.org points you to: http://ubaa.net/shared/processing/opencv/ for the windows binaries you need to use with processing. i didn't know that its a different code base. thanks!

rSi gravatar imagerSi ( 2013-04-01 13:09:42 -0600 )edit
0

answered 2013-05-03 14:23:33 -0600

samuel gravatar image

Add this on top of your code:

import java.awt.Rectangle;
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-28 07:37:07 -0600

Seen: 7,408 times

Last updated: May 03 '13