Shadow

OpenCV Contours & Convex Hull 2 Structure plugin [DEPRECATED] (Composition by benoitlahoz)

Author: benoitlahoz
License: Public Domain
Date: 2011.10.19
Compatibility: 10.6, 10.7
Categories:
Required plugins:
Kineme GL, Carasuelo OpenCV

[EDIT 20120124 - UPDATED - please see this post now : http://kineme.net/composition/benoitlahoz/BlobTrackingPluginCarasueloOpenCV002a]

My first OpenCV plugin : it gets the contours and convex hulls present in the input image and output a structure of lines structure.

Very-alpha-version : it doesn't support for the moment a difference between the image size and the renderer size, but I'm working on it.

(BTW : i'm looking for a way to get the renderer size in pixels inside of my program... if someone knows how to do this :-/)

I didn't use the Canny filter which slows a lot the comp. I would be interested to know the performance on others machine than mine.

TODO :

  • Track blobs [EDIT : done in the new plugin, see below]
  • Delaunay Triangulation
  • Output Image (arghhh)
  • ...

Thanks to Mirek OpenCV plugin that helped me to understand how to convert the input image to OpenCV. Thanks to Mehmet for the threshold CIKernel.

Works in 32/64 bits

Bounding Box / Mask for PixelS (Composition by benoitlahoz)

Author: benoitlahoz
License: (unknown)
Date: 2011.02.03
Compatibility: 10.6
Categories:
Required plugins:
(none)

I needed to obtain the bounding box coordinates of the PixelS plugin (actually I used the OpenCL version) result to output a mask so...

With a very little work Kineme GL Quad can be replaced by a Kineme 3D plane or whatever...

CVTools Detecting lines after a time

benoitlahoz's picture

Hi !

I'm trying to detect lines from a movie / video input to trigger another movie stuck to these lines.

Actually, when the image is totally motionless it works very well, but a little movement make the Line Detection "panic".

What I would like to do is to wait a certain amount of time testing if there is movement in the image, and then trigger a line detection only once to launch the second movie.

I guess I have these steps to realize, but I can't manage to find how :

  1. testing movement in time
  2. triggering one detection if the image is not moving too much (it can't be really motionless if this is a video input / movie)
  3. storing the line structure
  4. testing again if there is movement. If yes : I delete the stored lines and then restart at point 1.

I wonder how to make a median of velocities values in time. May be with a queue ?

Any idea ?

Thanks a lot in advance !

Shadow, Glare

cybero's picture

Shadow, Glare by Erin Sheriff from triplecanopy, a serious desktop toy, just try running it for a few idle minutes.

Programmed by Seth Erickson .

Simple but enigmatic :-).

I'm half expecting a slow moving massive spaceship over my shoulder when the shade rolls over the screen •~

Employs a QC file as an integral part of its operation.