Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Can Python recognize Images/Sprites?

Can Python recognize Images/Sprites?

I'm curious as to whether this can be done, or if I will need a specific module. I have no experience with this but I'd really like to learn. Any recommendations would be great.
[Image: Ijqx9DX.png]
Quick Love my posts please!
Well.. an image is just a file... and a file is just data organized a certain way so it can be processed by other files...
So yes, python can recognize both of what you have requested, but the limitations of working with said devices would most likely require additional libraries...
I dont know what u mean by recognize but u can take a look at Pillow module check this out and tell us if its what u r looking for..
(Apr 5, 2019 12:27 AM)District Wrote:  Can Python recognize Images/Sprites?

I'm curious as to whether this can be done, or if I will need a specific module. I have no experience with this but I'd really like to learn. Any recommendations would be great.

Check out PyTesseract.
[Image: VGjo5UA.gif]
Of course Python recognizes Images, or rather there are modules that let you work with images.
The most prominent is PIL or Pillow, a fork from PIL https://pillow.readthedocs.io/en/stable/
[Image: 0DvFxnA.gif]
Donate: 3ABKRghau93ziRaDfVwiiwtjky3i1gLrKn
Yes actually python can. If the sprite that you expect to see is going to be the same few consistent sprites, you can use Opencv (open computer vision) to do a template match.

Since images are just 3D arrays, it computes the similarity between your image and the target image with some distance metric. If it's "close enough" it'll identify it.

So you'll just need numpy and opencv. dm me if you still need help.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersFeb 5, 2025 09:07 AM 0 75 Feb 5, 2025 09:07 AM
Last Post: Hackers
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 630 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by CryptAug 18, 2020 05:32 PM 2 159 Aug 18, 2020 05:32 PM
Last Post: Crypt