Image Comparisons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xxsodapopxx5
    New Member
    • Dec 2006
    • 22

    Image Comparisons

    I have this program I am writing that is using a few third part applications. I need it to check if there is an image up.

    I have the image, it is 100x20 pixels and i was going to take a screen capture and have it look through the screen capture to see if it is on there. Is there a to do this? I just need an idea, i can't seem to get a start on this. Thanks for any help in advance.
  • vanc
    Recognized Expert New Member
    • Mar 2007
    • 211

    #2
    Originally posted by xxsodapopxx5
    I have this program I am writing that is using a few third part applications. I need it to check if there is an image up.

    I have the image, it is 100x20 pixels and i was going to take a screen capture and have it look through the screen capture to see if it is on there. Is there a to do this? I just need an idea, i can't seem to get a start on this. Thanks for any help in advance.
    There is an Image Up? Is it upward or what? What are you trying to do here, please explain in more detail.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      If you are wanting to "look" to see if an image is on the screen, using .NET available controls would be slower than doing it with a human eye.

      EDIT: As an after though if you had each image as a continuous serious of bytes, and all were the same pixel format (same number of bytes per pixel, and same stride and all that) you MIGHT be able to do a simple scan through for the sequence contained in a byte[] inside a different byte[]

      Comment

      • xxsodapopxx5
        New Member
        • Dec 2006
        • 22

        #4
        ok so to answer your questions.
        Specifically i have a browser up, it is taking half the screen. I also have an application up that is taking half the screen. I have a command that runs overnight. While it is running i want it to check every few minutes if it is complete so i can move on to the next task. The browser does NOT show text, but an image when it is done, also it is NOT always in the same place, but in a general area. I would like a function to be able to scan this area(example: take a screenshot and only scan a small area or even the whole screen it doesn't matter) and i want to compare it to an image I have.

        once its done i would like to it to return the location of the picture or if it didnt find anything at all.

        This is just something i have never done, so any help would be much appreciated.

        Comment

        • vanc
          Recognized Expert New Member
          • Mar 2007
          • 211

          #5
          Originally posted by xxsodapopxx5
          ok so to answer your questions.
          Specifically i have a browser up, it is taking half the screen. I also have an application up that is taking half the screen. I have a command that runs overnight. While it is running i want it to check every few minutes if it is complete so i can move on to the next task. The browser does NOT show text, but an image when it is done, also it is NOT always in the same place, but in a general area. I would like a function to be able to scan this area(example: take a screenshot and only scan a small area or even the whole screen it doesn't matter) and i want to compare it to an image I have.

          once its done i would like to it to return the location of the picture or if it didnt find anything at all.

          This is just something i have never done, so any help would be much appreciated.
          If the browser displays images only then you can watch its source folder to see if there is any images to compare with your original image. Since you are using third party library, comparison is not a problem with you. Or you can use a screen capture software to capture a specific area of the image in browser, which is set as default target for the capturer. Then every 2 minutes, you check the saved folder of the capturer to take out the captured image to compare.

          cheeers.

          Comment

          • digirati82
            New Member
            • Oct 2007
            • 1

            #6
            Originally posted by xxsodapopxx5
            I have this program I am writing that is using a few third part applications. I need it to check if there is an image up.

            I have the image, it is 100x20 pixels and i was going to take a screen capture and have it look through the screen capture to see if it is on there. Is there a to do this? I just need an idea, i can't seem to get a start on this. Thanks for any help in advance.
            You could also embed the internet control in your application and wait for the callback when the page content changes, then check for the image you are looking for...

            Comment

            • xxsodapopxx5
              New Member
              • Dec 2006
              • 22

              #7
              thanks for your help, I have tried a few things and can't seem to get it to work. I have tried to take a screencapture and search pixel by pixel, but that was a flop, well at least i couldn't figure out how to program it. I also can't seem to take a screencapture of a small section of the screen.

              Comment

              Working...