Alexandre B A Villares 🐍 on Nostr: #LazyMastodon, from time to time I look up how to take an image "posterize" it with ...
#LazyMastodon, from time to time I look up how to take an image "posterize" it with #Python (easy with #Numpy) but then I'd like to extract polygonal contours of each colored region (idealy #shapely Polygons). My #OpenCV skills are not very good so I usually fail at this last step. What else should I try to learn? From the tutorials I found, nothing really "clicks". Any suggestions?
Published at
2024-11-03 21:23:36Event JSON
{
"id": "36feb9889e5e0210f90bb89aa33fff53174e2fffbb5bbbb54797980d94f452cd",
"pubkey": "883b5e42e69fa4eb2bee76e555c217028b48dc7676f61453c7f506fd1a33ab62",
"created_at": 1730669016,
"kind": 1,
"tags": [
[
"t",
"lazymastodon"
],
[
"t",
"python"
],
[
"t",
"numpy"
],
[
"t",
"shapely"
],
[
"t",
"opencv"
],
[
"proxy",
"https://ciberlandia.pt/users/villares/statuses/113421124674124960",
"activitypub"
]
],
"content": "#LazyMastodon, from time to time I look up how to take an image \"posterize\" it with #Python (easy with #Numpy) but then I'd like to extract polygonal contours of each colored region (idealy #shapely Polygons). My #OpenCV skills are not very good so I usually fail at this last step. What else should I try to learn? From the tutorials I found, nothing really \"clicks\". Any suggestions?",
"sig": "e1cb80f9cfb42688426f85532a01ded33f56de167c5c8faa7a87472a776c84775bb4ed6d8f53d7d9ba60c8dd40fd55c67b8de98a9b2a6be8cbf784dc8c15c189"
}