gianni
gianni

Reputation: 113

Finding & Cropping to focused subject

I'm currently trying to find a method to find the subject (the character) of an sprite, preferably with JS.

enter image description here

Originally I thought of finding the part of the image with the most pixel density, though I'd assume issues would arise for characters with large weapons. I've tried looking around for solutions and the general conception seems to resort to some sort of recognition, like AI. If possible I'd like to avoid using AI. The solution doesn't need to be real time either, the original images can be cropped beforehand.

Here is an example of the desired effects I'm looking for: enter image description here

As mentioned earlier, I was thinking about using pixel density to find the general idea, maybe a quadrant. Though I don't know how reliable this would hold up.

enter image description here

Any ideas or a point in the right direction will be greatly appreciated. I apologize in advance for not being able provide any code, as I'm yet unclear which direction to head.

Upvotes: 0

Views: 39

Answers (0)

Related Questions