Page 1 of 1

detecting color bars

Posted: September 3rd, 2008, 9:14 am
by pirelouit
Hi! I was wondering if there would be a way to detect color bars in a movie file with scripting.

Would there be a way to use the sampleImage() method to automatically place markers where the 'correct color pattern' is detected?

Thnkas,
Louis

Re: detecting color bars

Posted: September 3rd, 2008, 2:10 pm
by lloydalvarez
yes, definitely and you could have a conditional check so if all the sampleImages (you'd have to do one for each color) come in correct you can assume it's color bars.

the only thing is that sampleImage only works in expressions and not directly in scripting so you 'd have to add expressions with scripting that call sampleImage. Take a look at my magnum script to see an example of how to do this.

-Lloyd

Re: detecting color bars

Posted: September 4th, 2008, 8:13 am
by pirelouit
Thank you, this is exactly the help that I needed to get me started. You script is going to save me a lot of time.

Thanks again,
Louis