powderblock / DealWithItReddit

Reddit bot. Computer vision for facial detection and transformation. Python, PRAW, & OpenCV.
http://www.reddit.com/user/DealWithItbot/
MIT License
33 stars 3 forks source link

Rainbow fringes on certain scales of glasses #47

Open porglezomp opened 9 years ago

porglezomp commented 9 years ago

For example: 9hlevub

powderblock commented 9 years ago

The happens on the middle of the glasses as well.

Example: kqzer9q

powderblock commented 9 years ago

I'll see I can I get this in an offline environment with controlled vars for scale and background.

This will require trouble shooting. Isn't alpha blending in OpenCV really weird with blending?

porglezomp commented 9 years ago

I think the issue is that we're not using a real filtering algorithm, and so for the rainbow: that's the random memory you sometime get in transparent areas bleeding in because of different filtering on the alpha and the color. This could potentially be fixed by editing the original png depending on the implementation of the png loader.