172 Commits (master)
 

Author SHA1 Message Date
vahid c4df3d65a1 this resolves #60 !! with newer opencv-python versions weird things happen 2 years ago
vahidrezanezhad b0ef767366
Merge pull request #63 from mikegerber/fix/not-detecting-any-regions-and-lines
🐛 Work around not detecting any regions (and lines) with OpenCV 4.6
2 years ago
Mike Gerber 8e1622da80
Merge pull request #65 from mikegerber/fix/disable-travis-py37
🐛 Don't test on Python 3.7
2 years ago
Gerber, Mike c30ce0a625 🐛 Don't test on Python 3.7
I believe this was never supposed to work on Python 3.7 and there some
problems with it:

https://github.com/qurator-spk/sbb_textline_detection/issues/64

"Fix" this by removing the test on Python 3.7. Fixes gh-64.
2 years ago
Gerber, Mike b2cd3f88dc 🐛 Work around not detecting any regions (and lines) with OpenCV 4.6
Using opencv-python-headless 4.6.x we get the following error when
detecting the contours of the detected text regions:

module 'cv2' has no attribute 'cv2'

Work around this by requiring OpenCV < 4.6 for now. See also the
discussion at
https://github.com/qurator-spk/sbb_textline_detection/issues/60.

Fixes gh-60.
2 years ago
vahidrezanezhad eaf8ecd4d4
Merge pull request #62 from mikegerber/remove-unused-variable
Remove unused variable 'possibles'
2 years ago
Gerber, Mike 2553bd39f9 Remove unused variable 'possibles' 2 years ago
vahidrezanezhad a5d4bf00fa
Merge pull request #61 from mikegerber/fix/cli-required-options
🐛 Make required options required
2 years ago
Gerber, Mike 8f64deefd6 🐛 Make required options required
When the user does not give, e.g. an input image, the program just
reports a cryptic error message.

Fix this and make the CLI friendlier by requiring the options using the
Click API. Now the CLI gives a useful error:

  Error: Missing option '--image' / '-i'.
2 years ago
Clemens Neudecker a78f40a89d
Merge pull request #58 from bertsky/patch-1
ocrd_tool.json: add model content-type
2 years ago
Clemens Neudecker 694af0f903
Merge pull request #59 from stweil/master
Ignore Python build artifacts
2 years ago
Stefan Weil 67f3ca6a4d Ignore Python build artifacts
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2 years ago
Robert Sachunsky 04e1972720 ocrd_tool.json: add model content-type 2 years ago
Clemens Neudecker 325389a4f7
Update README.md 3 years ago
vahidrezanezhad f1d2777a18
Merge pull request #57 from mikegerber/fix/setup-namespace
🐛 sbb_textline_detection: Fix qurator namespace
3 years ago
Gerber, Mike 82cae07dc4 🐛 sbb_textline_detection: Fix qurator namespace
Set namespace_packages in setup.py. This fixes installation problems
reported by @kba.

I have no idea why this does not happen with my tests on Python 3.7.
I don't know what I am doing, but this fixes it.
3 years ago
vahidrezanezhad 95d8f7021f
Merge pull request #55 from qurator-spk/resolve-resources
processor: self.resolve_resource model
3 years ago
Konstantin Baierer 5c7fd26883 processor: self.resolve_resource model 3 years ago
Clemens Neudecker 451b71f906
Merge pull request #54 from qurator-spk/tf-1.15
Update requirements.txt
3 years ago
Clemens Neudecker 5fd94d38cd
Update requirements.txt 3 years ago
vahidrezanezhad c241830b4b
Merge pull request #48 from bertsky/fix-coords
ensure valid coordinates by intersection with parent…
3 years ago
vahidrezanezhad 4c498fcad2
resolving issue https://github.com/qurator-spk/sbb_textline_detection/issues/53 3 years ago
Clemens Neudecker 17069f72d2
Merge pull request #51 from qurator-spk/h5py3
require h5py < 3, #50
3 years ago
Konstantin Baierer 5d7c09038e require h5py < 3, #50 3 years ago
Clemens Neudecker b8b779efc3
Merge pull request #49 from qurator-spk/readme-upd
Update README.md
4 years ago
Clemens Neudecker 4259d4d860
Update README.md 4 years ago
Robert Sachunsky 261db14ec3 ensure valid coordinates by intersection with parent…
- Border: intersect with page frame
- text regions: intersect with (new) Border
- text lines: intersect with (new) text region
  (and back-transform at all)
4 years ago
vahidrezanezhad 247d5f9fc2
Merge pull request #45 from bertsky/readme-ocr-d-cli
README: improve OCR-D interface description
4 years ago
Robert Sachunsky ff4f7767aa
README: improve OCR-D interface description 4 years ago
Gerber, Mike 665b739fb8 🐛 sbb_textline_detector: Re-base Border coords too 4 years ago
Gerber, Mike 006c7765b0 🐛 sbb_textline_detector: Filter cropped images (OCR-D) 4 years ago
Gerber, Mike 020ffbcfde Merge branch 'fix/image_from_page' 4 years ago
Gerber, Mike 37cc513ce9 🚧 sbb_textline_detector: Translate detected coordinates 4 years ago
Gerber, Mike a9b9c8a885 🚧 sbb_textline_detector: Get image via image_from_page 4 years ago
Gerber, Mike 38df5dbbfd 🐛 sbb_textline_detector: Work around incompatible numpy version installed by pip 4 years ago
vahidrezanezhad cbc9838aec
Merge pull request #41 from kba/getlogger
getLogger per method
4 years ago
Konstantin Baierer f167f6768c getLogger per method 4 years ago
vahidrezanezhad 0f09f4a1f6
Update main.py
Issues 30 and 40 are resolved
4 years ago
vahidrezanezhad a7c92c92ff
Merge pull request #38 from qurator-spk/printspace-vs-border
replace 'PrintSpace' with 'Border'
4 years ago
Clemens Neudecker e4798c6811
replace 'PrintSpace' with 'Border' 4 years ago
Clemens Neudecker 36adbe29d8
replace 'PrintSpace' with 'Border' 4 years ago
Clemens Neudecker 6a73d61e48
Merge pull request #37 from qurator-spk/update-readme
Update README.md
4 years ago
Clemens Neudecker b6381fb1d9
Update README.md 4 years ago
Clemens Neudecker 06cecaecb2
Update README.md (heuristic methods) 4 years ago
Clemens Neudecker ae0cb2f32b
Update README.md (textline detection)
tbc
4 years ago
Clemens Neudecker 0466d6914e
Update README.md (layout detection)
tbc
4 years ago
Clemens Neudecker a53915e002
Update README.md (border detection)
tcb
4 years ago
Clemens Neudecker c15da4cd0f
add travis CI badge 4 years ago
Clemens Neudecker 4acdc39293
Merge pull request #13 from stweil/travis
Add initial Travis CI
4 years ago
Mike Gerber 6b0fc49fe8
Merge pull request #36 from kba/file-ids-and-such
use make_file_id and assert_file_grp_cardinality
4 years ago