HumanSignal / HumanSignal/label-studio
How to refrence images for ocr pre annotations when using docker
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
Hello,
Following [this article](https://labelstud.io/guide/start.html#Run-Label-Studio-on-Docker-and-use-local-storage), I use this command to run my docker container:
```
docker run -it -p 8080:8080 -v "$(pwd)/mydata:/label-studio/data" \
--env LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true \
--env LABEL_STUDIO_CAL_FILES_DOCUMENT_ROOT=/label-studio/files \
-v "$(pwd)/data/to_annotate:/label-studio/files" \
heartexlabs/label-studio:latest label-studio
```
The command perfectly works and I can see my previous projects, But I can't seem to be able to load the image for ocr pre-annotaitons I have prepared. My pre annotations are prepared following this [article](https://labelstud.io/blog/Improve-OCR-quality-with-Tesseract-and-Label-Studio.html).
Now my problem is that I don't know how to reference the image correctly when I am running a docker container. I seen [this part of the tutorial](https://labelstud.io/blog/Improve-OCR-quality-with-Tesseract-and-Label-Studio.html#Reference-the-images-in-the-script). But it wasn't clear to me how the refrencing should be.
In to_annotate directory I have an image named `1.png`, here are the ways I tried refrencing and none of the worked:
- `1.png`
- `/label-studio/files/1.png`
- `files/1.png`
I was wondering, how I should reference the image so that I can see the image when I import my pre-annotations to the label studio project.
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.