Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Updated library name spelling #541

Merged
merged 2 commits into from
Oct 25, 2021
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
Prev Previous commit
docs: Updated remaining docTR spelling
  • Loading branch information
fg-mindee committed Oct 25, 2021
commit 3ede6e6c154e4e23ac252da8e03530af0f8f1147
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ If you wish to cite this project, feel free to use this [BibTeX](http://www.bibt

```bibtex
@misc{doctr2021,
title={DocTR: Document Text Recognition},
title={docTR: Document Text Recognition},
author={Mindee},
year={2021},
publisher = {GitHub},
Expand Down
2 changes: 1 addition & 1 deletion api/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import doctr


PROJECT_NAME: str = 'DocTR API'
PROJECT_NAME: str = 'docTR API template'
PROJECT_DESCRIPTION: str = 'Template API for Optical Character Recognition'
VERSION: str = doctr.__version__
DEBUG: bool = os.environ.get('DEBUG', '') != 'False'
2 changes: 1 addition & 1 deletion api/app/routes/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.post("/", response_model=List[DetectionOut], status_code=200, summary="Perform text detection")
async def text_detection(file: UploadFile = File(...)):
"""Runs DocTR text detection model to analyze the input"""
"""Runs docTR text detection model to analyze the input"""
img = decode_img_as_tensor(file.file.read())
boxes, _ = det_predictor([img])[0]
return [DetectionOut(box=box.tolist()) for box in boxes[:, :-1]]
2 changes: 1 addition & 1 deletion api/app/routes/ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@router.post("/", response_model=List[OCROut], status_code=200, summary="Perform OCR")
async def perform_ocr(file: UploadFile = File(...)):
"""Runs DocTR OCR model to analyze the input"""
"""Runs docTR OCR model to analyze the input"""
img = decode_img_as_tensor(file.file.read())
out = predictor([img])

Expand Down
2 changes: 1 addition & 1 deletion api/app/routes/recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@router.post("/", response_model=RecognitionOut, status_code=200, summary="Perform text recognition")
async def text_recognition(file: UploadFile = File(...)):
"""Runs DocTR text recognition model to analyze the input"""
"""Runs docTR text recognition model to analyze the input"""
img = decode_img_as_tensor(file.file.read())
out = reco_predictor([img])
return RecognitionOut(value=out[0][0])
2 changes: 1 addition & 1 deletion demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def main():
st.set_page_config(layout="wide")

# Designing the interface
st.title("DocTR: Document Text Recognition")
st.title("docTR: Document Text Recognition")
# For newline
st.write('\n')
# Instructions
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DocTR: Document Text Recognition
docTR: Document Text Recognition
================================

State-of-the-art Optical Character Recognition made seamless & accessible to anyone, powered by TensorFlow 2 & PyTorch
Expand Down
4 changes: 2 additions & 2 deletions references/classification/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Character classification

The sample training script was made to train a character classification model with DocTR
The sample training script was made to train a character classification model with docTR.

## Setup

First, you need to install doctr (with pip, for instance)
First, you need to install `doctr` (with pip, for instance)

```shell
pip install -e . --upgrade
Expand Down
4 changes: 2 additions & 2 deletions references/detection/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Text detection

The sample training script was made to train text detection model with doctr
The sample training script was made to train text detection model with docTR.

## Setup

First, you need to install doctr (with pip, for instance)
First, you need to install `doctr` (with pip, for instance)

```shell
pip install -e . --upgrade
Expand Down
4 changes: 2 additions & 2 deletions references/recognition/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Text recognition

The sample training script was made to train text recognition model with doctr
The sample training script was made to train text recognition model with docTR.

## Setup

First, you need to install doctr (with pip, for instance)
First, you need to install `doctr` (with pip, for instance)

```shell
pip install -e . --upgrade
Expand Down