Dockerized application for sentence extraction using the CRAFT text detection model.
271
CRAFT-Sentence-Extractor is a Docker image designed for extracting sentences from documents using the CRAFT (Character Region Awareness for Text Detection) model, enhanced with custom logic for sentence grouping and document layout understanding.
To run the Docker container and expose it on port 5000:
docker run -d -p 5000:5000 your-dockerhub-username/craft-app
Once the container is running, you can send an image (e.g., a scanned book page) via an HTTP request to the /process_image endpoint.
Example:
curl -X POST -F "image=@your_image.png" http://localhost:5000/process_image
This will return detected sentences or word bounding boxes, depending on the configuration.
You can set the following environment variables to adjust the app’s behavior:
FLASK_ENV: Set to production (default) or development.This project is licensed under the MIT License.
Contributions and suggestions are welcome! Feel free to open an issue or submit a pull request.
Content type
Image
Digest
sha256:a4056bb32…
Size
1.4 GB
Last updated
about 2 years ago
docker pull hectorandac/craft-sentence-extractor