forked from pool/python-tesserocr
Accepting request 516108 from home:lachs0r
Added doc files. OBS-URL: https://build.opensuse.org/request/show/516108 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tesserocr?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
_service
Normal file
3
_service
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<services>
|
||||||
|
<service name="download_files" mode="disabled"/>
|
||||||
|
</services>
|
47
python-tesserocr.changes
Normal file
47
python-tesserocr.changes
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 11 12:01:33 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
- Add doc files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 6 10:37:03 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
- Switch to PyPI source URL
|
||||||
|
- Add Pillow (PIL) to Recommends
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 26 19:42:30 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
- v2.2.2
|
||||||
|
* Support timeout in Recognize API methods
|
||||||
|
* Fixed typo in _Enum initialization error message formatting
|
||||||
|
* Display tessdata path in init exception message
|
||||||
|
* Fixed version check in Python 3 when reading the version number
|
||||||
|
from the tesseract executable
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 1 18:06:25 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
v2.2.1
|
||||||
|
* Fixed setup bug that affects gcc versions with no -std=c++11 option support
|
||||||
|
(which should be required by tesseract 4.0+ and not older versions).
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 28 15:39:24 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
v2.2.0
|
||||||
|
|
||||||
|
* Improved setup script
|
||||||
|
* Tesseract 4.0 support:
|
||||||
|
- Two new OEM enums: OEM.LSTM_ONLY and OEM.TESSERACT_LSTM_COMBINED (tesseract 4.0+)
|
||||||
|
- Two new API methods: GetTSVText and DetectOrientationScript (tesseract 4.0+)
|
||||||
|
- PyTessBaseApi.__init__ now accepts a new attribute oem (OCR engine mode: OEM.DEFAULT by default).
|
||||||
|
- file_to_text and image_to_text functions now also accept the oem attribute as above.
|
||||||
|
* Fixed segfault on API Init* failure
|
||||||
|
* Fixed segfault when pixa_to_list returns NULL
|
||||||
|
* Documentation fixes and other minor improvments
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 1 03:18:38 UTC 2017 - 9@cirno.systems
|
||||||
|
|
||||||
|
- Initial commit
|
63
python-tesserocr.spec
Normal file
63
python-tesserocr.spec
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-tesserocr
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
|
Name: python-tesserocr
|
||||||
|
Version: 2.2.2
|
||||||
|
Release: 0
|
||||||
|
Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Url: https://github.com/sirfz/tesserocr
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/t/tesserocr/tesserocr-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module Cython}
|
||||||
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: pkgconfig(tesseract)
|
||||||
|
Recommends: python-Pillow
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
A simple, Pillow-friendly wrapper around the tesseract-ocr API for Optical
|
||||||
|
Character Recognition (OCR).
|
||||||
|
|
||||||
|
tesserocr integrates directly with Tesseract's C++ API using Cython
|
||||||
|
which allows for simple Pythonic and easy-to-read source code. It
|
||||||
|
enables real concurrent execution when used with Python's threading
|
||||||
|
module by releasing the GIL while processing an image in tesseract.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n tesserocr-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc LICENSE README.rst
|
||||||
|
%{python_sitearch}/*
|
||||||
|
|
||||||
|
%changelog
|
3
tesserocr-2.2.2.tar.gz
Normal file
3
tesserocr-2.2.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f245c85643acaa6c740885c2cb18c6ca2ddb569756fbdeb10bd85a08c0a9fff2
|
||||||
|
size 53567
|
Reference in New Issue
Block a user