Skip to content
Snippets Groups Projects
Commit 28aafacd authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Remove document processing dependency

parent 17979186
No related branches found
No related tags found
1 merge request!97Remove document processing dependency
Pipeline #175653 passed
......@@ -2,17 +2,8 @@
## Base setup
This package is based on a GitLab package registry containing all the document processing source code.
You need [a personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with [scope](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#personal-access-token-scopes) `read_api` and access to the [teklia-document-processing repository](https://gitlab.teklia.com/tools/document-processing) in order to install this module. You will need to add the below to your `~/.netrc` file:
```shell
machine gitlab.teklia.com
login __token__
password <YOUR_PERSONAL_TOKEN>
```
- Use a virtualenv (e.g. with virtualenvwrapper `mkvirtualenv -a . atr-data-gen`)
- Install `atr-data-generator` as a package (e.g. with pip `pip install --index-url https://gitlab.teklia.com/api/v4/projects/149/packages/pypi/simple -e .`)
- Install `atr-data-generator` as a package (e.g. with pip `pip install -e .`)
## Unit tests
......
# -*- coding: utf-8 -*-
from typing import NamedTuple
import pytest
import pytest_lazyfixture
from document_processing.utils import BoundingBox
from atr_data_generator.extract.utils import _is_vertical, resize_image_height
BoundingBox = NamedTuple("BoundingBox", x=int, y=int, width=int, height=int)
@pytest.mark.parametrize(
"bbox, vertical",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment