Spawnova / ShinsImageScanClass

A library/class for fast AutoHotKey image/pixel searching
MIT License
74 stars 12 forks source link

Image scale & scan #15

Closed KRN-8 closed 1 year ago

KRN-8 commented 1 year ago

from all the videos on YT i originally thought the width and height parameters determine the scale of the picture :-) soo, is there a way to scale pictures or find them no matter the scale ? most games scale with the window (which i can imagine i would be able to calculate from the window sizes) but some games and apps also let you ZOOM, which makes scanning for elements much more trickier ;-(

in my current scanning project, the game has a tilemap, and soo i need to find the contents of each tile for further processing im thinking if i can find the scale of 1 tile i can scan for images with that scale on the entire rest of the screen ... yay ( currently my only option is to do lots of math and loops with pixel scanning and checking, travelling 1 pixel at a time XD )

Spawnova commented 1 year ago

The width and height are generally parameters for region scanning, there is not support for scaled scanning, it's much more complex and above my current knowledge level sorry =[

KRN-8 commented 1 year ago

DW, i will Start with trying to "force" a singular size (by resizing the window in specific way and zooming ingame ALL the way to the max) and probably End up with sth. like, pixelsearching for tile sizes and then checking colors of specific pixels to determine the type of the tile XD

maybe i will end up finding another library that does img scaling and incorporate it into yours ( if so i will let you know ;-) ) the only thing i can think of is trying all the sizes in a loop untill i find it ... OHNO bruteforce !