|
Blob Location Steve from United States [4 posts] |
5 year
|
We are running a camera and phidgets 888 module.
We are trying to fire a output on the phidgets based on the location or zone of a blob across the web. (4 total equal zones across web)
We were trying
If Blobs >1 and (Blob X location > xxx and < xxx) then
Set Phidgets Out 1
If Blobs >1 and (Blob X location > xxx and < xxx) then
Set Phidgets Out 2
If Blobs >1 and (Blob X location > xxx and < xxx) then
Set Phidgets Out 3
If Blobs >1 and (Blob X location > xxx and < xxx) then
Set Phidgets Out 4
How do we capture a blobs coordinates when a blob appears?
|
|
|
Steven Gentner from United States [1446 posts] |
5 year
|
Steve,
Probably the most convienent way is to use the Blob Filter module and select the Create Blobs Array which will create an array of X,Y coordinates. The reason I suggest the blob filter module to do this is that you will probably want to use it to filter out any small blobs or blobs that you don't want to track anyhow. From here you can use one of the programming modules to execute your above conditional array using the GetArrayVariable("BLOBS").
STeven.
|
|