admin管理员组文章数量:1312939
I'm currently trying to find a method to find the subject (the character) of an sprite, preferably with JS.
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:
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.
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.
本文标签: javascriptFinding amp Cropping to focused subjectStack Overflow
版权声明:本文标题:javascript - Finding & Cropping to focused subject - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741887317a2403097.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论