label-studio-ml-backend icon indicating copy to clipboard operation
label-studio-ml-backend copied to clipboard

Multi-page annotation

Open juhonkang opened this issue 1 year ago • 7 comments

How to create backend & labelling interface for multipage annotation?

juhonkang avatar Apr 02 '23 10:04 juhonkang

hey @juhonkang

can you add more details about your case? what data you're annotating, how much data each annotation have, etc.

nicholasrq avatar Apr 11 '23 12:04 nicholasrq

<View>
  <Repeater on="$document" indexFlag="{{idx}}" mode="pagination">
      <Image name="page_{{idx}}" value="$document[{{idx}}].page" inline="true"/>

    	<Labels name="labels_{{idx}}" toName="page_{{idx}}">
            <Label value="Text" background="green"/>
            <Label value="Handwriting" background="blue"/>
      	</Labels>
    
      <Rectangle name="bbox_{{idx}}" smart="true" toName="page_{{idx}}" strokeWidth="3"/>
		
      <TextArea name="transcription_{{idx}}" toName="page_{{idx}}"
            editable="true"
            perRegion="true"
            required="true"
            maxSubmissions="1"
            rows="5"
            placeholder="Recognized Text"
            displayMode="region-list"
            />

      <View style="display: flex; justify-content: center;">
        <Header value=" Rate this page:"/>
        <Rating name="rating_{{idx}}" toName="page_{{idx}}"/>
      </View>
  </Repeater>
</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"
    }
  ]
} -->

I want to make with ~8 images at once This one is the view I want to use, how can I modify the tesseract.py API of the example? The most problem I'm facing is finding the idx of the image, and returning the result

juhonkang avatar Apr 11 '23 16:04 juhonkang

Hi @nicholasrq, Have you checked it?

juhonkang avatar Apr 16 '23 01:04 juhonkang

I want to annotate the pdf files, converted to image.

It's multi page doc annotation, and can be ~8 pages

juhonkang avatar Apr 16 '23 17:04 juhonkang

Hi @

juhonkang avatar Apr 25 '23 06:04 juhonkang

Hi @nicholasrq, any progress for that?

juhonkang avatar Apr 25 '23 06:04 juhonkang

@nicholasrq @makseq Hope that label studio expert help me soon because I need this feature for one of my project :(

juhonkang avatar Apr 26 '23 15:04 juhonkang