Image Recognition/Processing

Need More API Functions? Request Language Additions Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Image Recognition/Processing

Postby boonos » Fri Feb 19, 2010 10:26 am

It would be nice to create a bot based on what images are on screen. A script will compare if a similar image is present in the screen or not.
Very similar from Q-u-i-c-k-M-a-c-r-o.
boonos
I Have A Few Questions
 
Posts: 2
Joined: Fri Feb 19, 2010 10:16 am

Re: Image Recognition/Processing

Postby L. Spiro » Fri Feb 19, 2010 4:44 pm

Then you had better get started.
Real-time full-screen scanning is entirely possible with L. Spiro Script using a bi-dimensional Boyer-Moore surface scan.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Re: Image Recognition/Processing

Postby boonos » Sat Feb 20, 2010 1:19 pm

ok.
Im stuck.
I think i need some tips.

1. How do i open image files? will i use FOpen?
2. How do i get the screen image?
will i use:
BOOL CaptureScreen(const LPRECT lprRegion, const _TCHAR * ptcFile)
but it might be slow.
i used:

HWND hwnd = FindWindow( "Minesweeper" );
if ( !hwnd ) { return; }
HDC something = GetWindowDC( hwnd );
...
colors = GetPixel( something, screenx, screeny);

but it only get a particular window, not the whole screen.

Thanks
boonos
I Have A Few Questions
 
Posts: 2
Joined: Fri Feb 19, 2010 10:16 am

Re: Image Recognition/Processing

Postby L. Spiro » Sat Aug 14, 2010 8:56 am

Pass NULL to GetWindowDC().


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 1 guest

cron