473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Oct 22 '07 #1
6 1135
vanc
211 Expert 100+
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.
Oct 23 '07 #2
Plater
7,872 Expert 4TB
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[]
Oct 23 '07 #3
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.
Oct 24 '07 #4
vanc
211 Expert 100+
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.
Oct 26 '07 #5
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...
Oct 26 '07 #6
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.
Oct 27 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: A.M. Kuchling | last post by:
python.org has a page of "Python vs. X" language comparisons at <http://www.python.org/doc/Comparisons.html>. They're all pretty outdated, and often unfair because they're written by a person who...
0
by: Mike Rovner | last post by:
Mike Rovner wrote: > A.M. Kuchling wrote: >> python.org has a page of "Python vs. X" language comparisons at >> <http://www.python.org/doc/Comparisons.html>. They're all pretty >> outdated, and...
11
by: Dietrich Epp | last post by:
Without invoking double-underscore black magic, it is possible to choose a, b, and c in Python such that: a < b b < c c < a This could cause sorting functions to malfunction. >>> class...
5
by: Pratyush | last post by:
Hi, Suppose there is a vector of objects of class A, i.e., std::vector<A> vec_A(N); The class A satisifies all the STL vector requirements. Now I wish to add some attributes for each of the...
3
by: Kevin King | last post by:
I have a question about an assignment I have. I need to count the number of comparisons in my merge sort. I know that the function is roughly nlog(n), but I am definately coming up with too many...
6
by: Yeah | last post by:
I have alternate holiday headers for my web site, and I would like to display a certain image for an upcoming holiday. Examples: Christmas 12/10 - 12/26 New Years Eve 12/27 - 1/2...
10
by: Peter Ammon | last post by:
I'm fuzzy on exactly what I can depend on when doing floating point comparisons. I know that calculated values can differ, e.g. I'm not guaranteed that 1. + 2. == 3. What about comparisons with...
2
by: Paul Aspinall | last post by:
Hi I am trying to find some code, or reference docs, to assist in helping capture images from an image capture device (ie. webcam etc etc). I want to be able to compare successive images coming...
4
by: Aamir Mahmood | last post by:
Hi I am on framework version 1.1 (SP1). Consider the following code. public static void Main() { int i=1; int j=1;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.