I have shown 2 images of a yolo semgented mask of a carrot. My goal is to create a realistic robotic grasping position. But I'm not sure how to get the angle of the carrot based on the carrot in the center, and I would like to advice or help π
My approach is i think, get the centroid of the mask, calculate the angle of the skeleton of the carrot, add 2 lines using that angle > add a margin of pixels based on how thick the carrot is.
I'm trying to google for tools that will help me calculate it but I'm not getting rlly far. The things I tried is not calulating the angle correctly π¦ Any pro's here that knows how to approach this with which tools/libs?
#π Need to create a robotic grasping outline on a carrot.. how? Using Scikit-image for skeleton.
5 messages Β· Page 1 of 1 (latest)
@lone root
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.
Closes after a period of inactivity, or when you send !close.
using this to get the skeleton of the mask:
https://scikit-image.org/docs/stable/auto_examples/edges/plot_skeleton.html#sphx-glr-download-auto-examples-edges-plot-skeleton-py
@lone root
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.