CVHub520 / X-AnyLabeling

Effortless data labeling with AI support from Segment Anything and other awesome models.
GNU General Public License v3.0
3.82k stars 442 forks source link

seek help #362

Closed 202112213501021 closed 5 months ago

202112213501021 commented 5 months ago

I want to know which piece of the source code controls the mask of the tag, like if I click head: image How do I get the clicked label, and how do I export only this piece of mask?

CVHub520 commented 5 months ago

Hi, you can refer to the following link for the relevant information: canvas.py.

202112213501021 commented 5 months ago

Hi, you can refer to the following link for the relevant information: canvas.py. Can I export the mask of this piece separately, it is very important to me!!!Can you help me

CVHub520 commented 5 months ago

Hi, you can refer to the following link for the relevant information: canvas.py. Can I export the mask of this piece separately, it is very important to me!!!Can you help me

Sure. If you want to export the specificed mask you can refer to this toturial.

202112213501021 commented 5 months ago

您好,您可以参考以下链接获取相关信息:canvas.py。我可以单独导出这件作品的蒙版吗,这对我来说非常重要!!你可以帮我吗

确定。如果要导出特定面具,可以参考此图。

I don't want to mask all of them but export them based on the single label I hovered over, focusing on the segmentation labels, which are the labels for the polygons!

CVHub520 commented 5 months ago

Yeap. FIrstly, tell me which type, e.g., yolo, coco, voc or the others are you want to export?

202112213501021 commented 5 months ago

Yeap. FIrstly, tell me which type, e.g., yolo, coco, voc or the others are you want to export?

I want to convert to a mask binary image

CVHub520 commented 5 months ago

Understood. You might want to follow the tutorial as outlined earlier. If everything is set up correctly, it should generate the corresponding binary mask image based on your specified color map, and it will automatically ignore any undefined labels.

202112213501021 commented 5 months ago

Understood. You might want to follow the tutorial as outlined earlier. If everything is set up correctly, it should generate the corresponding binary mask image based on your specified color map, and it will automatically ignore any undefined labels.

Sorry, my meaning is not clear. I say again.If I have three labeled labels, I only want to export one of them, so I just asked you at the beginning, how to select the current label that my mouse clicked

CVHub520 commented 5 months ago

As I mentioned above, you can only fill in the category you need in the export template and then try to export the mask image directly. Usually, if it goes smoothly, the result will screen out the undefined categories.

202112213501021 commented 5 months ago

As I mentioned above, you can only fill in the category you need in the export template and then try to export the mask image directly. Usually, if it goes smoothly, the result will screen out the undefined categories.

What I'm going to do now is add a button on top of your software that allows me to export arbitrary masks, so I want to be a little bit smart, now, I want to get a very important variable. The category selected by my mouse, which variable it is, like image image or image

CVHub520 commented 5 months ago

Understood. Dose you need a feature that allows you to automatically export the corresponding binary mask image by pressing the shortcut key after the mouse clicks on the target of interest, right?

If this is the case, that feature is a personalized requirement, and need to modify the source code to adapt by yourself.