Poker-AI.org Poker AI and Botting Discussion Forum 2020-02-12T14:29:03+00:00 http://poker-ai.org/phpbb/feed.php?f=26&t=3316 2020-02-12T14:29:03+00:00 2020-02-12T14:29:03+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8341#p8341 <![CDATA[Re: Hardware capture]]> Quote:

Usualy not. Same input picture produce same output. But every symbol may look different on different chairs.


Is it just looking different at different locations on the table as you mentioned for different chairs, or is it also when you move table to different position on the screen? Because even when bot plays on the same PC as poker client,
on most sites pixels look quite different for different chairs.

Statistics: Posted by nbiresev — Wed Feb 12, 2020 2:29 pm


]]>
2020-02-11T08:54:13+00:00 2020-02-11T08:54:13+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8338#p8338 <![CDATA[Re: Hardware capture]]> nbiresev wrote:

By the way when you say that pixels look different all the time when transferring image, does it happen even when you have the same image all the time that the transferred image will not be identical each time?

Usualy not. Same input picture produce same output. But every symbol may look different on different chairs.
In yuy2 if you move your table up or bottom - image will be same. But if you move it 1 pixel right or left - all symbols become different.
It depends on their absolute position in a row. odd/even

Statistics: Posted by nefton — Tue Feb 11, 2020 8:54 am


]]>
2020-02-11T08:46:52+00:00 2020-02-11T08:46:52+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8337#p8337 <![CDATA[Re: Hardware capture]]> nbiresev wrote:

ok great that this cheap device is not recognizable.
What about other devices that you listed above, are they returning EDID?

Every device have own EDID. But it is not a problem.
This splitter have option to copy EDID from input1 to output.
HardwareSystem2.png

Statistics: Posted by nefton — Tue Feb 11, 2020 8:46 am


]]>
2020-02-11T08:27:38+00:00 2020-02-11T08:27:38+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8336#p8336 <![CDATA[Re: Hardware capture]]> What about other devices that you listed above, are they returning EDID?

Tablemaps with original implementation are working with window handle just because they take screenshot from the window instead of from whole screen, and that way you always know position of the table in the screen, but you can edit code to make screenshot at specific position of the screen where you expect table to be and then perform fonts recognition.
I am no expert in OCR, but i think tablemaps are working just fine, so far didn't have any problems in detecting fonts. Off course if you say pixels are looking the different way all the time due to transfer of image, sure then it is more work.

By the way when you say that pixels look different all the time when transferring image, does it happen even when you have the same image all the time that the transferred image will not be identical each time?

Statistics: Posted by nbiresev — Tue Feb 11, 2020 8:27 am


]]>
2020-02-11T03:36:35+00:00 2020-02-11T03:36:35+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8335#p8335 <![CDATA[Re: Hardware capture]]> nbiresev wrote:

I think tablemaps from openholdem would be able to read such fonts without any issues.

1. Tablemaps need poker window. But there is only image, all windows are drawed here.
2. I am not expert in tablemaps, But for me tablemaps recognition techniks are so pure. Image compare, hash, binary fonts recognition. (dont forget pixels are NOT same each time. Their colors depends on neibor pixels and table position. (+ 10^6 other problems)
3. Usualy there is mutch difference betwin thinking and doing. You can post your experience with recognition anytime :)

Statistics: Posted by nefton — Tue Feb 11, 2020 3:36 am


]]>
2020-02-11T03:26:20+00:00 2020-02-11T03:26:20+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8334#p8334 <![CDATA[Re: Hardware capture]]> nbiresev wrote:

Those cheap devices don't return EDID so it is potentially recognizable by poker site.
I mean if device is recognizable due to not returning EDID, what is the point of using it then?

This splitter for 33$ from aliexpress support edid copy from real monitor to poker PC
splitter.png
So noone can detect if you use splitter + real monitor + capture.

Statistics: Posted by nefton — Tue Feb 11, 2020 3:26 am


]]>
2020-02-10T19:58:35+00:00 2020-02-10T19:58:35+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8333#p8333 <![CDATA[Re: Hardware capture]]>
Did you try Kvm2usb from epiphan or the one from robotsky? It is quite expensive but as i understood it shouldn't loose any information, and very important it returns EDID information so it can't be recognized by poker site. Those cheap devices don't return EDID so it is potentially recognizable by poker site.
I mean if device is recognizable due to not returning EDID, what is the point of using it then?

By the way even with those cheap devices, i see that image looks quite different from original but does it really matter? I mean the whole point is that you received image, it doesn't matter if it looks close to original i think it only matters if you can recognize fonts in it. As what ever method you use for OCR, you can work directly on transfered images instead of with original images.
I think tablemaps from openholdem would be able to read such fonts without any issues.

Statistics: Posted by nbiresev — Mon Feb 10, 2020 7:58 pm


]]>
2020-02-10T13:50:40+00:00 2020-02-10T13:50:40+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8330#p8330 <![CDATA[Re: Hardware capture]]> demo ocr.

Statistics: Posted by nefton — Mon Feb 10, 2020 1:50 pm


]]>
2020-02-10T15:45:59+00:00 2020-02-10T13:42:57+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8329#p8329 <![CDATA[Re: Hardware capture]]> magewell.png
It cost about 350$. I have not this device myself, but few my clients have. It have perfect picture!
megawel_1000.png
All artefacts you see - it is just yuy2 convertion.
It is so perfect, that my algorytms writen to desctop orign image working with magewell with no any changes!
Also they have sdk. (but I had not enought time + my clients time to try all this)
only pity that they declare rgb24 directshow support, but they did not support it from the box.
may be some sdk libraries will help. (have not this device myself)
Also magewell have some devices for 750$ (support 4k) - but I dont think you need it. + dont know what problems will apear.
So my advice is this magewell for 350$.

Statistics: Posted by nefton — Mon Feb 10, 2020 1:42 pm


]]>
2020-02-11T03:52:50+00:00 2020-02-10T13:24:58+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8328#p8328 <![CDATA[Re: Hardware capture]]> it is most chip;ess solution. I had buy it for only 65$. (usual price is 70-80$)
fucking_ezcap.png
They said on their site that it support yuy2. (because it is most mommon format for capture devices (your cameras too))
But default was MGPEG format. (read more about jpeg coding to understand what a shit they do)
Picture in jpeg are too terible to recognition. I had select yuy2 manualy but picture was same.
ezcap_1000.png
They capture it in jpeg,(loose many info while) and then convert it back to yuy2. (again some little looses)
STUPID. just look at this picture. Anyway I had many time and I love chelenges. That is only reason I do ocr pokerstars with this shit too.
p.s. forgot that my exemplar was broken. (1 usb3.0 wire has bad contact, and it work in usb2 mode with no yuy2 support (just slow jpeg)
So I had repaired it with the solder. You must think wery wery hard before buy this ***.
ezcap_repaired.jpg

Statistics: Posted by nefton — Mon Feb 10, 2020 1:24 pm


]]>
2020-02-10T13:47:10+00:00 2020-02-10T13:10:21+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8327#p8327 <![CDATA[Re: Hardware capture]]> unnamed_china.png
It is my 1st capture. So I dont know is that was good or not. For now I know - it is middle.
Here is capture by this card:
china_n_1000.png
as you see there are 4 pixel artefacts (all captured in yuy2 mode, so must be 2 pixel only)
+ black is not black, white is not white. Image looks mutch darker than orign. Brightness, Contrast, Hue, Saturation - makes no any sense.(it makes picture even more terrible)
But this image was enought quality to make recognition of some rooms, also all my captures have enought speed to play tables with render. (this will be another article :) )
Think twice are you will be able to recognize that picture :)

Statistics: Posted by nefton — Mon Feb 10, 2020 1:10 pm


]]>
2020-02-10T13:47:57+00:00 2020-02-10T12:59:11+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=3316&p=8326#p8326 <![CDATA[Hardware capture]]> There are many capture devices in the market, and every year it changes a lot. Each capture is different with different drivers, etc. And usualy you cant know this stuff untill got a capture in a hands. Also you cant garantee same look devices will give same capture.
For my purposes I use most common tehnology that semi all devices are support (as they say on their sites!)(but they did not)
this is YUY2 directshow. Had try opencv - but it is 100 times slower.
To understand future you need read about YUY2. long story shot: brightness coded 8 bit per pixel each pixel. And color and saturation coded 8 bit but for 2 near pixels at once. (so they have same color and saturation)
Ok, lets start tests. Here is example picture (sized 10x to viev it in brauser):
orign_1000.png

I had open in on 1 pc, and capture with different captures on another. with default settings.
Test picture represent some worst situations (lert) and some usual situations (default table size).

Statistics: Posted by nefton — Mon Feb 10, 2020 12:59 pm


]]>