#๐Ÿ”’ How could I achieve this?

6 messages ยท Page 1 of 1 (latest)

late hillBOT
#

@sonic stump

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

half glade
#

Depends on how complex the image is. But in general, you would use OpenCV to help define the silhouette. And then draw on it by thickening the border.
Do you have an example image?

half glade
#

Yes, they are the same thing. But since this image is transparent, there are actually a few ways you can do this.

  1. take the image, make all non transparent pixels white, scale up a little bit, and finally put the original image back on top. This is conceptually the easiest.
  2. ignore that part and do the more complex canny edge detection and then make a white line mask around the edge. This is a more general approach that can handle other types of images. It isn't perfect per se. And it requires more topics to learn. So up to you
late hillBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.