Converted document

OpenHoldem

Hashing Images

Using hash-values is the most easy way to recognize images. They are applicable whenever images get displayed in a fixed way. “Fuzzyness” like small changes in size and colour can’t be handles with hashes. They require fuzzy fonts and cause more work, both for the creator of the map and at run-time. For this example we take a scraper-friendly casino.
First find the region box that contains the image that you wish to collect, and select the "Create Image" tab.
figure images_hasing_images/Image2.jpg
The pop up box for the name will appear. Give your image the proper name.
figure images_hasing_images/Image3.jpg
Go to the left side of Open Scrape and open the images tree and find your newly created image and select "Create Hash".
figure images_hasing_images/Image4.jpg
figure images_hasing_images/Image5.jpg
In most cases the hash value will be unique. Collisions can happen, but are extremeley rare. If that is the case you have to change your regions so that all images get an unique hash-value for identification.
Now select your hash type from the new pop up box. Generally starting with Hash0.
figure images_hasing_images/Image6.jpg
Go back to the Edit Menu on the Open Scrape Tool Bar and select "Update Hashes" from the drop down menu. Confirm the process was succesfull by clicking on the box that contained the origional image. As soon as you have selected the region OpenScrape should show you the desired result: the cards name, in our case nine of hearts.
figure images_hasing_images/Image9.jpg
Document generated by eLyXer 1.2.5 (2013-03-10) on 2015-03-19T09:31:09.484000