Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
awerdich committed Sep 10, 2024
2 parents 97c65e1 + 211b300 commit a8488b8
Show file tree
Hide file tree
Showing 5 changed files with 287 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ making it a scalable solution.
### How to Use Label Studio ###
The labeling software is included here as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
Please refer to the original [Label Studio repository](https://github.com/HumanSignal/label-studio) for installation instructions.
We have created a [custom labeling interface](src/periomodel/labelinterface/label_interface_4.html) for
the periodontal disease radiograph data.
See [instructions](https://labelstud.io/tags/#Create-a-custom-labeling-configuration) on how to
create a custom labeling configuration with Label Studio.

---
## References
Expand Down
53 changes: 53 additions & 0 deletions src/periomodel/labelinterface/label_interface1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<View>
<Image name="image" value="$image" maxWidth="750px"/>
<View style="display: flex;">
<Header size="10" value="Diagnostic Quality" style="font-weight:lighter;color:blue" />
<Choices name="quality" toName="image"
choice="single"
showInline="true"
required="true">
<Choice value="good"/>
<Choice value="poor"/>
</Choices>
<Header size="10" value="Bbox" style="font-weight:lighter;color:blue" />
<Choices name="bbox" toName="image"
choice="single" showInline="true" required="true">
<Choice value="whole"/>
<Choice value="partial"/>
<Choice value="implant"/>
<Choice value="off-tooth"/>
</Choices>
<Header size="10" value="ToothNumber" style="font-weight:lighter;color:blue" />
<Number name="tooth_number"
toName="image"
min="1"
max="32"
hotkey="+"
required="true" />
</View>
<View style="display: flex;">
<Header size="10" value="Disease" style="font-weight:lighter;color:red" />
<Choices name="disease" toName="image"
choice="single" showInline="true" required="false">
<Choice value="healthy"/>
<Choice value="stable"/>
<Choice value="unstable"/>
<Choice value="very unstable"/>
</Choices>
</View>
<View style="display: flex;">
<Header size="10" value="Probing" style="font-weight:lighter;color:red" />
<Text name="t1" value="1" />
<Number name="depth_1" toName="image" min="0" max="10" required="false" />
<Text name="t2" value="2" />
<Number name="depth_2" toName="image" min="0" max="10" required="false" />
<Text name="t3" value="3" />
<Number name="depth_3" toName="image" min="0" max="10" required="false" />
<Text name="t4" value="4" />
<Number name="depth_4" toName="image" min="0" max="10" required="false" />
<Text name="t5" value="5" />
<Number name="depth_5" toName="image" min="0" max="10" required="false" />
<Text name="t6" value="6" />
<Number name="depth_6" toName="image" min="0" max="10" required="false" />
</View>
</View>
56 changes: 56 additions & 0 deletions src/periomodel/labelinterface/label_interface2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<View>
<Image name="image" value="$image" maxWidth="750px"/>
<View style="display: flex;">
<Header size="5" value="Diagnostic Quality" style="font-weight:lighter;color:blue" />
<Choices name="quality" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Diagnostic Quality">
<Choice value="yes"/>
<Choice value="no"/>
</Choices>
<Header size="5" value="Bounding Box" style="font-weight:lighter;color:blue" />
<Choices name="bbox" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Bounding Box">
<Choice value="whole"/>
<Choice value="partial"/>
<Choice value="implant"/>
<Choice value="off-tooth"/>
</Choices>
<Header size="5" value="Position" style="font-weight:lighter;color:blue" />
<Number name="tooth_number"
toName="image"
min="1"
max="32"
hotkey="+"
required="true" />
</View>
<View style="display: flex;">
<Choices name="disease" toName="image"
choice="single" showInline="true" required="false">
<Choice value="healthy"/>
<Choice value="stable"/>
<Choice value="unstable"/>
<Choice value="very unstable"/>
</Choices>
</View>
<View style="display: flex;">
<Header size="10" value="Probing" style="font-weight:lighter;color:black" />
<Text name="t1" value="1" />
<Number name="depth_1" toName="image" min="0" max="10" required="false" />
<Text name="t2" value="2" />
<Number name="depth_2" toName="image" min="0" max="10" required="false" />
<Text name="t3" value="3" />
<Number name="depth_3" toName="image" min="0" max="10" required="false" />
<Text name="t4" value="4" />
<Number name="depth_4" toName="image" min="0" max="10" required="false" />
<Text name="t5" value="5" />
<Number name="depth_5" toName="image" min="0" max="10" required="false" />
<Text name="t6" value="6" />
<Number name="depth_6" toName="image" min="0" max="10" required="false" />
</View>
</View>
70 changes: 70 additions & 0 deletions src/periomodel/labelinterface/label_interface_3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<View>
<Style>
.tooth_cols { background: lightblue;
font-weight: lighter;
font-family: monospace, monospace;
border: 1px solid black;
color: blue;
max-width: 1048px;
justify-content: space-evenly;
text-align: left;
align-items: left;
flex-wrap: wrap; }
</Style>
<Image name="image" value="$image" maxWidth="750px"/>
<View style="display: flex;">
<Header size="5" value="Diagnostic Quality" style="font-weight:lighter;color:blue" />
<Choices name="quality" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Diagnostic Quality">
<Choice value="yes"/>
<Choice value="no"/>
</Choices>
<Header size="5" value="Bounding Box" style="font-weight:lighter;color:blue" />
<Choices name="bbox" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Bounding Box">
<Choice value="whole"/>
<Choice value="partial"/>
<Choice value="implant"/>
<Choice value="off-tooth"/>
</Choices>
<View className="tooth_cols">
<Header size="5" value="Position" style="font-weight:lighter;color:blue" />
<Number name="tooth_number"
toName="image"
min="1"
max="32"
hotkey="+"
required="true" />
</View>
</View>
<View style="display: flex;">
<Choices name="disease" toName="image"
choice="single" showInline="true" required="false">
<Choice value="healthy"/>
<Choice value="stable"/>
<Choice value="unstable"/>
<Choice value="very unstable"/>
</Choices>
</View>
<View style="display: flex;">
<Header size="5" value="Probing" style="word-spacing:20px;font-weight:lighter;color:black" />
<Text name="t1" value="1" />
<Number name="depth_1" toName="image" min="0" max="10" required="false" />
<Text name="t2" value="2" />
<Number name="depth_2" toName="image" min="0" max="10" required="false" />
<Text name="t3" value="3" />
<Number name="depth_3" toName="image" min="0" max="10" required="false" />
<Text name="t4" value="4" />
<Number name="depth_4" toName="image" min="0" max="10" required="false" />
<Text name="t5" value="5" />
<Number name="depth_5" toName="image" min="0" max="10" required="false" />
<Text name="t6" value="6" />
<Number name="depth_6" toName="image" min="0" max="10" required="false" />
</View>
</View>
104 changes: 104 additions & 0 deletions src/periomodel/labelinterface/label_interface_4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<View>
<Style>
.tooth_cols { background: lightblue;
font-weight: lighter;
font-family: monospace, monospace;
border: 1px solid black;
color: blue;
max-width: 1048px;
justify-content: space-evenly;
text-align: left;
align-items: left;
flex-wrap: wrap; }
</Style>
<Image name="image" value="$image" maxHeight="700px" zoomControl="true" zoomBy="1.1" />
<View style="display: flex;">
<Header size="5" value="Diagnostic Quality (use for model)" style="font-weight:lighter;color:blue" />
<Choices name="quality" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Diagnostic Quality">
<Choice value="yes"/>
<Choice value="no"/>
</Choices>
<Header size="5" value="Bounding Box" style="font-weight:lighter;color:blue" />
<Choices name="bbox" toName="image"
choice="single"
showInline="true"
required="true"
requiredMessage="Select Bounding Box">
<Choice value="whole"/>
<Choice value="partial"/>
<Choice value="implant"/>
<Choice value="off-tooth"/>
</Choices>
</View>
<Choices name="pos" toName="image"
showInline="true"
required="true"
requiredMessage="Select Position">
<View className="tooth_cols">
<Choice value="01" hotkey=" "/>
<Choice value="02" hotkey=" "/>
<Choice value="03" hotkey=" "/>
<Choice value="04" hotkey=" "/>
<Choice value="05" hotkey=" "/>
<Choice value="06" hotkey=" "/>
<Choice value="07" hotkey=" "/>
<Choice value="08" hotkey=" "/>
<Choice value="09" hotkey=" "/>
<Choice value="10" hotkey=" "/>
<Choice value="11" hotkey=" "/>
<Choice value="12" hotkey=" "/>
<Choice value="13" hotkey=" "/>
<Choice value="14" hotkey=" "/>
<Choice value="15" hotkey=" "/>
<Choice value="16" hotkey=" "/>
</View>
<View className="tooth_cols">
<Choice value="32" hotkey=" "/>
<Choice value="31" hotkey=" "/>
<Choice value="30" hotkey=" "/>
<Choice value="29" hotkey=" "/>
<Choice value="28" hotkey=" "/>
<Choice value="27" hotkey=" "/>
<Choice value="26" hotkey=" "/>
<Choice value="25" hotkey=" "/>
<Choice value="24" hotkey=" "/>
<Choice value="23" hotkey=" "/>
<Choice value="22" hotkey=" "/>
<Choice value="21" hotkey=" "/>
<Choice value="20" hotkey=" "/>
<Choice value="19" hotkey=" "/>
<Choice value="18" hotkey=" "/>
<Choice value="17" hotkey=" "/>
</View>
</Choices>
<View style="display: flex">
<Header size="5" value="Disease" style="word-spacing:20px;font-weight:lighter;color:blue" />
<Choices name="disease" toName="image"
choice="single" showInline="true" required="true"
requiredMessage="Select Disease">
<Choice value="healthy"/>
<Choice value="stable"/>
<Choice value="unstable"/>
<Choice value="very unstable"/>
</Choices>
</View>
<View style="display: flex;">
<Header size="5" value="Probing" style="word-spacing:20px;font-weight:lighter;color:blue" />
<Text name="t1" value="Distal-facial" />
<Number name="d1" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing distal-facial"/>
<Text name="t2" value="Mid-facial" />
<Number name="d2" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing mid-facial"/>
<Text name="t3" value="Mesial-facial" />
<Number name="d3" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing mesial-facial"/>
<Text name="t4" value="Distal-lingual" />
<Number name="d4" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing distal-lingual"/>
<Text name="t5" value="Mid-lingual" />
<Number name="d5" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing mid-lingual"/>
<Text name="t6" value="Mesial-lingual" />
<Number name="d6" toName="image" min="0" max="10" required="true" requiredMessage="Enter probing mesial-lingual"/>
</View>
</View>

0 comments on commit a8488b8

Please sign in to comment.