in reply to Using Perl and the GIMP to compare images

I'm not sure if this is much help, but it's an idea.

If you have a known screen size and you know were the element is, possibly, you could just do a dump to a raw / line oriented format and jump to the appropriate row and scan for the progress bar?



-Lee
perl digital dash (in progress)
  • Comment on Re: Using Perl and the GIMP to compare images

Replies are listed 'Best First'.
Re^2: Using Perl and the GIMP to compare images
by sailortailorson (Scribe) on Feb 06, 2006 at 22:58 UTC

    Lee

    That probably would work.

    My boss said what he used to do was to just do a bit by bit compare.

    However, I am going to piggyback on to the evolutionary trend evinced by the commercial software test packages and try to do an XORish transform between the current page and an older version of it.

    Also, I read somewhere recently that Flash is an open format. Since the element I am looking for is in Flash, I am going to see I can (find what I need in Perl to) read the text from Flash.

    Thanks for your suggestion

      This might be of help. Didn't find it on CPAN the first time around.
      In the Imager distro, Imager::Filters
      Image Difference
      
      You can create a new image that is the difference between 2 other images.
      
        my $diff = $img->difference(other=>$other_img);
      
      For each pixel in $img that is different to the pixel 
      in $other_img, the pixel from $other_img is given, 
      otherwise the pixel is transparent black.
      
      This can be used for debugging image differences 
      ("Where are they different?"), and for optimizing 
      animated GIFs.
      

      -Lee

      perl digital dash (in progress)