Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
<View>
<Repeater on="$document" indexFlag="{{idx}}" mode="pagination">
<Image name="page_{{idx}}" value="$document[{{idx}}].page" inline="true"/>
<RectangleLabels name="labels_{{idx}}" toName="page_{{idx}}">
<RectangleLabels name="rectangles" toName="pdf" showInline="true">
<Label value="Title" background="green" />
<Label value="Date" background="blue" />
<Label value="Author" background="yellow"/>
<Label value="Organization" background="orange"/>
<Label value="Author" background="gold"/>
<Label value="Organization" background="pink"/>
<Label value="Amount" background="red"/>
</RectangleLabels>
<View style="display: flex; justify-content: center;">
<Header value="Rate this page:"/>
<Rating name="rating_{{idx}}" toName="page_{{idx}}"/>
</View>
</Repeater>
</RectangleLabels>
<Image valueList="$pages" name="pdf"/>
</View>


<!-- {
"document": [
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0001.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0002.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0003.jpg"
}
"pages": [
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0001.jpg",
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0002.jpg",
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0003.jpg"
]
} -->
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,24 @@ title: Multi-page document annotation
type: community
group: Computer Vision
image: /static/templates/multipage.png
details: <h1>Classify PDF documents</h1>
details: <h1>Annotate PDF documents</h1>
config: |
<View>
<Repeater on="$document" indexFlag="{{idx}}" mode="pagination">
<Image name="page_{{idx}}" value="$document[{{idx}}].page" inline="true"/>
<RectangleLabels name="labels_{{idx}}" toName="page_{{idx}}">
<RectangleLabels name="rectangles" toName="pdf" showInline="true">
<Label value="Title" background="green" />
<Label value="Date" background="blue" />
<Label value="Author" background="yellow"/>
<Label value="Organization" background="orange"/>
<Label value="Author" background="gold"/>
<Label value="Organization" background="pink"/>
<Label value="Amount" background="red"/>
</RectangleLabels>
<View style="display: flex; justify-content: center;">
<Header value="Rate this page:"/>
<Rating name="rating_{{idx}}" toName="page_{{idx}}"/>
</View>
</Repeater>
</RectangleLabels>
<Image valueList="$pages" name="pdf"/>
</View>


<!-- {
"document": [
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0001.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0002.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0003.jpg"
}
"pages": [
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0001.jpg",
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0002.jpg",
"https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0003.jpg"
]
} -->
} -->
Binary file modified label_studio/core/static/templates/multipage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading