Generating Average Colors from a Video Source
              in 
             Programming Questions 
              •  
              3 years ago    
            
 
           
             I'm 
            very new to processing and am looking for some general guidance. I'd like to put together a program that loads a video, analyzes every "x" frame for the average color and either saves a RGB value or prints that value as a single pixel wide line of appropriate color and user-defined height next to the previous value creating a "bar" of average colors for the video. 
            
             
            
            
             
            
            
             
            
            
             
            
            
             
            
            
             
            
            
 
            
           
             Essentially what this individual did using Python: 
             http://www.bwolfdesign.com/movie-color-palettes/ (I've tried to get his posted code to work and do this in Python but it's eluded me for days [I know no python either]. If you have any suggestions there, I'm open to that as well).
            
            
             As for Processing resources, I've found this post (
             http://processing.org/discourse/yabb2/YaBB.pl?num=1226878575) which calculates the average color for every "x" frame and draws it to a rectangle. I'm having trouble figuring out how to write that data to a text or csv file or skip straight to the image creation process.
            
            
             Alternatively, this post seems helpful for (very) general recommendations on color analysis (
             http://processing.org/discourse/yabb2/YaBB.pl?num=1258979998) as does this background subtraction program (
             http://processing.org/learning/library/backgroundsubtraction.html).
            
            
             If you have any general (or specific) advice on how I should go about with creating this, I'm open to hear it and getting my hands dirty mucking about with some code.
            
            
             Thanks,
            
            
             David
            
 
            
              
              1  
            
 
            