Skip to content

How to create custom tags #7660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
new-bajie opened this issue May 30, 2025 · 0 comments
Open

How to create custom tags #7660

new-bajie opened this issue May 30, 2025 · 0 comments

Comments

@new-bajie
Copy link

new-bajie commented May 30, 2025

For example, <newImage>,
Additionally, I have discovered a problem
<View style="display: flex;"> <Image name="cls_dec" value="$image"/> <View style="padding: 0em 1em; background: #f1f1f1; margin-right: 1em; border-radius: 3px; width:25%;"> <View style="position: sticky; top: 0"> <Header value="图像分类:" size="4" /> <RectangleLabels name="cls_rectangle" toName="cls_dec" canRotate="false"> <Label value="OK"/> <Label value="short"/> <Label value="missPart"/> <Label value="missStitch"/> <Label value="airholeAD"/> <Label value="weldAD"/> <Label value="hole"/> <Label value="Shaotin"/> <Label value="empty"/> <Label value="ADobj"/> <Label value="break"/> <Label value="shot"/> <Label value="hit"/> <Label value="hitempty"/> </RectangleLabels> <View visibleWhen="region-selected" whenTagName="cls_rectangle"> <Taxonomy name="cls_taxonomy" toName="cls_dec" perRegion="true" placeholder="下拉选择物料" maxUsages="1"> <Choice value="pin"/> <Choice value="C5_1"/> <Choice value="C5_2"/> <Choice value="C5_3"/> <Choice value="C5_4"/> <Choice value="triode"/> <Choice value="RR"/> <Choice value="C_ocr"/> <Choice value="Transistor_ocr"/> <Choice value="P_1"/> <Choice value="capacitance_b4"/> <Choice value="capacitance_o4"/> <Choice value="2L0"/> <Choice value="special"/> <Choice value="heter"/> <Choice value="Plum_1"/> <Choice value="Plum_2"/> <Choice value="Plum_L2"/> <Choice value="cir_g"/> <Choice value="screw"/> </Taxonomy> </View> </View> <View> <Header value="目标检测:" size="4" /> <RectangleLabels name="dec_rectangle" toName="cls_dec"> <Label value="short"/> <Label value="Shaotin"/> <Label value="missStitch"/> <Label value="airholeAD"/> <Label value="hole"/> <Label value="empty"/> <Label value="ADobj"/> </RectangleLabels> <View visibleWhen="region-selected" whenTagName="dec_rectangle"> <Header value="实例框属性" size="5" /> <Choices name="dec_choices" toName="cls_dec" perRegion="true" showInline="true" choice="multiple"> <Choice value="is_synthetic"/> <Choice value="iscrowd"/> <Choice value="ignore"/> </Choices> </View> </View> </View> </View>

Multiple RectangleLabels tasks, marking the Label of the first task, when marking the second RectangleLabels task, it will select both tasks simultaneously. I expect that when selecting the second Label, the first Label should be deselected, just like switching from RectangleLabels Label to PolygonLabels Label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant