Author Topic: Universal, cross platform, Roulette OCR  (Read 1446 times)

0 Members and 2 Guests are viewing this topic.

ahlidap

Universal, cross platform, Roulette OCR
« on: July 11, 2018, 09:17:28 PM »
Hello,

today I decided to give a shot to OCR on roulette.
I managed to get it working (super ugly, gui and code, but its working).

It's built on JAVA to be cross platform, and because it's the language I use every day.

I define 2 areas in the roulette game software:
1. full number history, to detect changes (ie, a new result)
2. last number "container", to apply the reading after a new result given by point 1.

Very basic yet, but this will allow it to work on a lot of casinos / game providers.
I've tested on 3, it's ok so far.

Do you think this can be useful for any of you?

Example1 (needed to correct last nr area after first reading):
https://youtu.be/CFSsCRSyScA [nofollow]

Example2:
https://youtu.be/_jVAQQd_qPM [nofollow]

PS: kav, https certificate is annoying at the moment.. throwing exceptions on Chrome
 

MrPerfect.

Re: Universal, cross platform, Roulette OCR
« Reply #1 on: July 12, 2018, 12:47:39 PM »
Could you please list functions of software ?
   Please upload example of output file of numbers history. 
   Can it deal with cases where different angles of camera view is shown during spin  ( image jumping)?
  Thanks.
 

ahlidap

Re: Universal, cross platform, Roulette OCR
« Reply #2 on: July 12, 2018, 04:25:23 PM »
Hi Mr. P.

at the moment I don't export results, or have any other functionality as I've finished this part yesterday.
I'm open to suggestions and possible improvements.

The software doesn't rely on video feed.
It applies the OCR to the number history of casino software (pic in attachment).

I use the full history for change detection, and just the last nr "container", to obtain last result.
Doing it in this way is more flexible.
« Last Edit: July 12, 2018, 04:45:43 PM by ahlidap »
 

heatmap

Re: Universal, cross platform, Roulette OCR
« Reply #3 on: July 12, 2018, 11:46:07 PM »
@ahlidap why rely on ocr? why not rely on javascript such as a Chrome or firefox extension to gather information from websites? im sure if you understand how and what OCR is you can understand that there might be an API or somehow to talk to the browser or even setup a server to accept the data you need to record?

edit : i just answered my own question ... they use a canvas for results? this is big if so
« Last Edit: July 12, 2018, 11:48:37 PM by heatmap »
 

alcatraz

Re: Universal, cross platform, Roulette OCR
« Reply #4 on: July 13, 2018, 09:08:33 AM »
@ahlidap
Your idea is pretty interesting. How about the possibility to store a predefined sequence of "x" numbers (i.E. you decide to store 30 numbers during the current session) and reload those later on ?
 

ahlidap

Re: Universal, cross platform, Roulette OCR
« Reply #5 on: July 13, 2018, 01:34:17 PM »
@Heatmap,

at least on Evolution Gaming, last winning number is accessible via a specific set of html classes of the number history element.
But this way is a lot more compatible, and I can do a lot more (even a bot).

@alcatraz,

I can store them, no problem.
Why reload? If it's only a reader, there is no advantage in loading them. You can just export new sequence and add them on your excel or other software.
;)

Yesterday I made another test, overall it's working pretty well. Need some little fixing but that's normal :)
 

MrPerfect.

Re: Universal, cross platform, Roulette OCR
« Reply #6 on: July 13, 2018, 05:05:10 PM »
Ahlidap, send me your Skype. ... l will give you some ideas. How good you are in programming?
 

kav

  • https://www.youtube.com/c/rouletteman
  • Administrator
  • Hero Member
  • *****
  • Posts: 2336
  • Thanked: 1317 times
  • Gender: Male
Re: Universal, cross platform, Roulette OCR
« Reply #7 on: July 16, 2018, 08:54:14 PM »
Ali,

What https exceptions do you get on Chrome? Could you please give examples/pointers?
 

ahlidap

Re: Universal, cross platform, Roulette OCR
« Reply #8 on: July 17, 2018, 10:27:07 AM »
Hi,
I'm sorry, I've been busy these days.

@kav,
the error was about the certificate date (probably expired?).
At the moment It's ok, with a valid certificate.

About the tool, I've identified some bugs that I probably can, and will try to fix.
Other issues are very casino and / or game provider specific. (reality check, obligation to place bets, ...)

Regards
 

MrPerfect.

Re: Universal, cross platform, Roulette OCR
« Reply #9 on: July 17, 2018, 02:41:58 PM »
Obligation to place bets is not a problem. Use one of numbers that hit already by minimum denomination. If they require you to place bet every 3 spins, or every 5... then do it. It will be difficult to loose a lot this way.
  For example..  you collect 300 spins and bet 100 of them 50 cent. All investment is 50 euro, you are expected to hit naturally between 2 and 3 times. If you hit 3 , you are in profit... if 2 times, 14 euro lost, but you got entire day of data. No one gonna collect you data for 14 euro a day!!!
   Just need to make sure that data you collect does really worth something. Numbers by itself is a very weak data...
« Last Edit: July 17, 2018, 02:43:53 PM by MrPerfect. »
 

GIAJJENNO

Re: Universal, cross platform, Roulette OCR
« Reply #10 on: July 17, 2018, 10:25:29 PM »
Collect data, collect data and collect data...for what? What do you mean about collecting data?
 

MrPerfect.

Re: Universal, cross platform, Roulette OCR
« Reply #11 on: July 17, 2018, 11:36:12 PM »
Gia, did you read the topic or a forum in general? Your question has been answered more then once.
 

MrPerfect.

Re: Universal, cross platform, Roulette OCR
« Reply #12 on: July 18, 2018, 01:43:34 AM »

at least on Evolution Gaming, last winning number is accessible via a specific set of html classes of the number history element.
  Thanks, Bro,  you made my day!!! I never thought abut such possibility
 

ahlidap

Re: Universal, cross platform, Roulette OCR
« Reply #13 on: July 18, 2018, 09:46:49 AM »

at least on Evolution Gaming, last winning number is accessible via a specific set of html classes of the number history element.
  Thanks, Bro,  you made my day!!! I never thought abut such possibility

;) No prob.
As for my OCR to work on that, I also needed to remove that "blink" effect on last winning number, and put all background in black (easiest to test the overall working status of my software, instead fixing this "bugs" on it)

Removing blinking effect can be done by adding the following css (if anyone needs):

*:before {
animation: none !important;
}

Mr. P, you probably need precise timing between speed start and screenshot of Diamond / rotor ball hit, correct?
As you pointed, different camera angles difficult this..
 

ahlidap

Re: Universal, cross platform, Roulette OCR
« Reply #14 on: July 18, 2018, 09:55:00 AM »
Collect data, collect data and collect data...for what? What do you mean about collecting data?

To create a model that consumes that data, and outputs information to be used.
Depending on your model, your representation of the "game environment" can be more or less detailed.
If you can trust the output or not, that will depend not only on your model (how you do the "magic") but also on the quality of data you collect.

You can have the best race car in the world but be an horrible driver.
Something like that...

But I will never be able / capable of doing this, as I'm Portuguese... lol

Overall, imagine a model that is capable of representing some surface on earth.
If you don't have enough data, or if your data is incorrect, you will end with a wrong representation of the environment, and you may end with an hill that is represented flat.
« Last Edit: July 18, 2018, 09:59:44 AM by ahlidap »