detecting color bars

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
pirelouit
Posts: 18
Joined: January 16th, 2006, 12:08 pm

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
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

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
pirelouit
Posts: 18
Joined: January 16th, 2006, 12:08 pm

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
Post Reply