Poker-AI.org

Poker AI and Botting Discussion Forum
It is currently Mon Nov 13, 2023 12:51 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Sep 02, 2017 8:56 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
I have tried to take screenshots pf several Android emulators for my OCR, but so far it only returns a black image, or a completelly white image.
I have read, that the reason is probably, that they use OpenGL. I also tried to get the pixels from an injected DLL, with BitBlt and so on, but nothing is really working.
I can just screenshot the whole Desktop, that works but it sucks as the windows can not overlap.

Has anyone had success with screenshotting an Android Emulator?


Top
 Profile  
 
PostPosted: Sat Sep 02, 2017 10:47 pm 
Offline
Veteran Member

Joined: Mon Mar 04, 2013 9:40 pm
Posts: 269
Why not just take the screenshot from outside of the emulator or VM?


Top
 Profile  
 
PostPosted: Sat Sep 02, 2017 10:57 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
Yes, that's what I am trying to do. I am not trying to create a screenshot from inside the emulator.

Basically I have my c++ application on my Windows desktop and try to screenshot the emulator window. I know how to get the s creenshot of the whole desktop, but the good thing about printwindow is, that you can pass it a HWND and it will even print background windows, but it's not working with any emulator so far.


Top
 Profile  
 
PostPosted: Sun Sep 03, 2017 9:58 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 10, 2013 10:31 am
Posts: 139
I think you should use DirectShow to capture it.
Because standard С++ capture tools like
Code:
HWND hDesktopWnd = GetDesktopWindow();
HDC hDesktopDC = GetWindowDC(hDesktopWnd);
HDC hCaptureDC = CreateCompatibleDC(hDesktopDC);;
HBITMAP hCaptureBitmap = CreateCompatibleBitmap(hDesktopDC, nScreenWidth, nScreenHeight);
......

do not work with directshow propertly (and may be with openGL too).


Top
 Profile  
 
PostPosted: Fri Sep 08, 2017 9:22 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
I the end I just ended up screenshotting the whole desktop.


Top
 Profile  
 
PostPosted: Tue Sep 12, 2017 9:15 pm 
Offline
Junior Member

Joined: Mon Sep 11, 2017 8:01 pm
Posts: 19
What is the app out of curiosity?

I use minicap for taking Android screenshots.


Top
 Profile  
 
PostPosted: Thu Sep 21, 2017 2:57 pm 
Offline
Veteran Member

Joined: Wed Mar 20, 2013 1:43 am
Posts: 267
There are a few poker apps for android nowadays. My OCR is not going that well so far, does anyone know if it's possible to somehow hook text functions on the emulator? Something like ExtTextout on windows?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group