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

Port to ocrd core version 3.0.0 #5

Open
wants to merge 102 commits into
base: fix-alpha-shape
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
2ed2c4f
add executable property
MehmedGIT Aug 13, 2024
61e6caf
add setup method if missing
MehmedGIT Aug 13, 2024
a0965c2
add self.logger wherever missing
MehmedGIT Aug 13, 2024
dbccae5
require core >= 3.0.0a1
kba Aug 13, 2024
8557a26
port part of binarize to core v3
kba Aug 13, 2024
911a4c1
Merge pull request #1 from kba/port-to-v3
MehmedGIT Aug 13, 2024
278b706
move: determine_zoom to common.py
MehmedGIT Aug 13, 2024
6beec17
move: logger init to setup()
MehmedGIT Aug 13, 2024
1b2fea3
refactor: log -> logger
MehmedGIT Aug 13, 2024
fe33494
remove: unused imports
MehmedGIT Aug 13, 2024
3368a53
remove: file grp cardinality checks inside process()
MehmedGIT Aug 13, 2024
ae97768
remove: constructors, adapt setup()
MehmedGIT Aug 13, 2024
60d02d2
completed: OcropyBinarize
MehmedGIT Aug 13, 2024
dcaccd4
remove file grp cardinality asserts
MehmedGIT Aug 13, 2024
b178227
Update ocrd_cis/ocropy/binarize.py
MehmedGIT Aug 14, 2024
67b6107
Update ocrd_cis/ocropy/binarize.py
MehmedGIT Aug 14, 2024
06a98b1
Update ocrd_cis/ocropy/binarize.py
MehmedGIT Aug 14, 2024
1e6cd7b
Update ocrd_cis/ocropy/binarize.py
MehmedGIT Aug 14, 2024
71bb26d
fix: potentially wrong dpi in logs
MehmedGIT Aug 14, 2024
64f02a3
binarize: don't conflate region/lines seg, pass output_file_id
kba Aug 14, 2024
d7c15c7
Update binarize.py
MehmedGIT Aug 14, 2024
156d79f
Merge pull request #2 from kba/fix-binarize-v3
MehmedGIT Aug 14, 2024
19566c0
try to migrate recognize
MehmedGIT Aug 14, 2024
5f60976
fix: migrate recognize
MehmedGIT Aug 14, 2024
e8b2603
fix: detect_zoom logging
MehmedGIT Aug 14, 2024
7dfd496
update: test_lib base url
MehmedGIT Aug 14, 2024
033c38a
logging exception -> error
MehmedGIT Aug 14, 2024
46d84d5
refactor: logger as a first positional argument
MehmedGIT Aug 14, 2024
f6fe4cf
fix: test_lib.bash data url
MehmedGIT Aug 14, 2024
aed0f95
fix: recognize OcrdPage import
MehmedGIT Aug 14, 2024
804f031
try to migrate clip
MehmedGIT Aug 14, 2024
7bdff31
remove: process() methods
MehmedGIT Aug 15, 2024
03c2f15
adapt: docstring of process_page_pcgts
MehmedGIT Aug 15, 2024
90ac28e
refactor: other small things
MehmedGIT Aug 15, 2024
f24f86b
fix: determine_zoom
MehmedGIT Aug 15, 2024
5f8e1df
add missing Levenshtein req in setup
MehmedGIT Aug 15, 2024
9a14e1d
fix: remove version req for Levenshtein
MehmedGIT Aug 15, 2024
4ca4d14
fix: Levenshtein import
MehmedGIT Aug 15, 2024
fbaafcb
update ocrd-cis-binarize to be compatible with bertsky/core#8
kba Aug 15, 2024
516ce4b
binarize: use final v3 API
bertsky Aug 15, 2024
2e4f26f
binarize: use correct types
bertsky Aug 15, 2024
21be941
clip: use final v3 API
bertsky Aug 15, 2024
9539ac9
clip: use correct types
bertsky Aug 15, 2024
734b5eb
recognize: use final v3 API
bertsky Aug 15, 2024
28ad585
recognize: fix typing import
bertsky Aug 16, 2024
9a7c10a
denoise: adapt to final v3 API
bertsky Aug 16, 2024
7c9f39f
deskew: adapt to final v3 API
bertsky Aug 16, 2024
6698668
dewarp: adapt to final v3 API
bertsky Aug 16, 2024
48a3146
resegment: adapt to final v3 API
bertsky Aug 16, 2024
0dd6fba
ocropy_segment: implement process_page_pcgts
MehmedGIT Aug 16, 2024
ad5ac7c
ocropy_segment: remove process
MehmedGIT Aug 16, 2024
5d4007b
segment: adapt to final v3 API
bertsky Aug 16, 2024
df1c35c
train: adapt to final v3 API
bertsky Aug 16, 2024
c08b623
ocrd-tool.json: add v3 cardinalities
bertsky Aug 16, 2024
a18307d
fix: ocropy train errors
MehmedGIT Aug 16, 2024
0ba6839
remove: unused imports
MehmedGIT Aug 16, 2024
7b4ebc6
Merge branch 'port-to-v3' into port-to-v3-return-object
MehmedGIT Aug 16, 2024
6b06e88
Update binarize.py
MehmedGIT Aug 16, 2024
6b19f35
Merge pull request #3 from kba/port-to-v3-return-object
MehmedGIT Aug 16, 2024
d1a14b7
refactor: python strings v3
MehmedGIT Aug 16, 2024
d8542c2
spacing: train
MehmedGIT Aug 16, 2024
d785971
spacing: segment
MehmedGIT Aug 16, 2024
7ca78a9
spacing: resegment
MehmedGIT Aug 16, 2024
1004b43
spacing: rest
MehmedGIT Aug 16, 2024
c5498a0
spacing: dewarp
MehmedGIT Aug 16, 2024
31e1245
fix: dewarp return
MehmedGIT Aug 16, 2024
f86c993
improve str speed: precompute element_name_id
MehmedGIT Aug 16, 2024
b8e3ad6
fix: clip suffix
MehmedGIT Aug 16, 2024
02724f2
fix: denoise return
MehmedGIT Aug 16, 2024
aac6fe0
try to fix: ocropy denoise
MehmedGIT Aug 16, 2024
5548d0e
fix: ocropy denoise
MehmedGIT Aug 16, 2024
c9f0f56
fix: resegment
MehmedGIT Aug 16, 2024
fff9097
optimize segment
MehmedGIT Aug 16, 2024
8b92832
optimize ocropy common
MehmedGIT Aug 17, 2024
fceaffe
optimize ocrolib
MehmedGIT Aug 17, 2024
3de2585
optimize align cli
MehmedGIT Aug 17, 2024
0949277
align: use final v3 API
bertsky Aug 22, 2024
d4f8483
use ocrd_utils instead of pkg_resources
bertsky Aug 22, 2024
ecc44c0
postcorrect: use final v3 API
bertsky Aug 22, 2024
2b310b4
revert: ocropy.ocrolib changes
MehmedGIT Aug 23, 2024
4420c6f
revert: ocropy.common changes
MehmedGIT Aug 23, 2024
2d8650e
remove whitespaces in ocropy.common and ocropy.ocrolib
MehmedGIT Aug 23, 2024
9a153b0
postcorrect: adapt to frozendict Processor.parameter in v3
bertsky Aug 25, 2024
bd0613a
require ocrd>=3.0.0b1
bertsky Aug 26, 2024
f6e437f
add: simple github actions workflow
MehmedGIT Aug 27, 2024
403781a
Update .github/workflow/tests.yml
MehmedGIT Aug 27, 2024
97083bb
Update .github/workflow/tests.yml
MehmedGIT Aug 27, 2024
2b20e0c
fix: checkout ref
MehmedGIT Aug 27, 2024
86a08eb
Create GH Actions workflow: test.yml
MehmedGIT Aug 27, 2024
231edf2
Merge branch 'master' into port-to-v3
MehmedGIT Aug 27, 2024
1d7e9a0
delete: wrong path for workflows
MehmedGIT Aug 27, 2024
224e86f
fix: NaN error for python3.9+
MehmedGIT Aug 27, 2024
a397531
fix: NaN in reading_order in morph.py
MehmedGIT Aug 27, 2024
9cf8305
fix type hints
bertsky Sep 1, 2024
a0c734d
dewarp: make thread-safe
bertsky Sep 1, 2024
66baaf0
recognize: disallow multithreading (impossible with current lstm impl…
bertsky Sep 1, 2024
32ce656
postcorrect: make work under METS Server
bertsky Sep 1, 2024
c4a5999
tests: use METS Server if OCRD_MAX_PARALLEL_PAGES>1
bertsky Sep 1, 2024
ae7dc67
make test: run serially and parallel, show times
bertsky Sep 1, 2024
e540b10
require ocrd>=3.0.0b4
bertsky Sep 2, 2024
99b3489
segment: adapt to numpy deprecation
bertsky Sep 26, 2024
dee1abf
eval/stats: Levenshtein -> rapidfuzz.distance.Levenshtein
kba Oct 11, 2024
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
27 changes: 27 additions & 0 deletions .github/workflow/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test ocrd_cis installation and run tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
MehmedGIT marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [ "ubuntu-22.04" ]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ocrd_cis
run: make install
- name: Test ocrd_cis
run: make test
MehmedGIT marked this conversation as resolved.
Show resolved Hide resolved