We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Multiple OpenCV instances? (Read 641 times)
Multiple OpenCV instances?
Mar 29th, 2009, 7:11am
 
Is there a way to run multiple instances of opencv in one sketch? I want to detect eyes within detected faces, however creating a new opencv instance with the same parent again overwrites the previous one. Omitting the parent "this" from the instance creating doesn't help either.
Grateful for any help!
Re: Multiple OpenCV instances?
Reply #1 - May 14th, 2009, 1:03pm
 
From my experience you can't run multiple instances of openCV and use both to capture video.  I believe the webcam can only be used by one object at a time to read video.  If you want to then use that video in multiple ways you can use the copy() function to a new instance of openCV.

For what you want to do, you want to use the ROI function.  That targets the openCV object to search within a certain area.
Page Index Toggle Pages: 1