summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 03:32:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 03:32:53 +0000
commit9d7c63e276f8b7c5ee4cf1a73949ea24d42d5c36 (patch)
treeb281731a7a568fcc4f4fbf44e3a73e37630e58cf
parent9afd488c184350455039ffc01ec7e66bfcfe754c (diff)
automatic import of python-aksharajaana
-rw-r--r--.gitignore1
-rw-r--r--python-aksharajaana.spec429
-rw-r--r--sources1
3 files changed, 431 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8c20e18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/AksharaJaana-1.0.1.1.tar.gz
diff --git a/python-aksharajaana.spec b/python-aksharajaana.spec
new file mode 100644
index 0000000..2af9834
--- /dev/null
+++ b/python-aksharajaana.spec
@@ -0,0 +1,429 @@
+%global _empty_manifest_terminate_build 0
+Name: python-AksharaJaana
+Version: 1.0.1.1
+Release: 1
+Summary: A Kannada OCR
+License: MIT License
+URL: https://github.com/Navaneeth-Sharma/Akshara-Jaana/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0f/11/9d288e469c34d83f93099c48e8abdbc23b34e377d652549ec3c6be142c0b/AksharaJaana-1.0.1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# AksharaJaana
+
+<p align="center">
+ <img src="https://user-images.githubusercontent.com/63489382/173864136-118db121-fcf4-4c8a-9b7d-7c4e4c0e48f9.png" width=200px>
+</p>
+
+<p align="center">
+ An OCR for Kannada.
+</p>
+
+<p align="center">
+ <a href="https://www.npmjs.com/package/@swc/core">
+ <a href="https://pypi.org/project/AksharaJaana/"><img src="https://img.shields.io/badge/pypi-package-blue?labelColor=black&style=flat&logo=python&link=https://pypi.org/project/AksharaJaana/" alt="pypi" /></a>
+ </a>
+</p>
+
+AksharaJaana is a package which uses tesseract ocr in the backend to convert the read-only kannada text to editable format.
+A Special feature of this is it can separate columns in the page and thus making it easier to read and edit.
+Do consider using this package if necessary and feel free to mail me for any clarifications.
+
+- Email : navaneethsharma2310oct@gmail.com
+- Twitter handle: https://twitter.com/navaneethakbh
+
+Happy coding and installing.
+
+To see the python package visit https://pypi.org/project/AksharaJaana/
+
+## The Requirements
+
+***Conda environment is preferred for the smooth use***
+
+- AksharaJaana *(pip package)*, check out the latest version available
+- Tesseract
+- poppler
+
+## Details for Installation
+
+### Ubuntu
+
+Open terminal and execute below commands.
+
+1. **Installing tesseract-ocr in the system**
+
+ ```bash
+ sudo apt-get update -y
+ sudo apt-get install -y tesseract-ocr
+ sudo apt-get install tesseract-ocr-kan
+ ```
+
+2. **Installing poppler in the system**
+
+ ```bash
+ sudo apt-get install -y poppler-utils
+ ```
+
+3. **Installing python and pip (if pip is not installed)**
+
+ ```bash
+ sudo apt install python==3.6.9
+ ```
+
+4. **Installing packages for AksharaJaana**
+
+ ```bash
+ pip install --upgrade AksharaJaana
+ ```
+
+### Windows
+
+1. Installing tesseract-ocr in the system
+ - **Download tesseract**
+ - go to the <a href="https://github.com/UB-Mannheim/tesseract/wiki">website</a>
+ - click on `tesseract-ocr-w64-setup-v5.0.0-alpha.20200328.exe (64 bit)`.
+ - **Install tesseract for Kannada Language and Script**
+ - open the downloaded file and click next and accept the agreement.
+ - Next you will give an option to choose the languages.
+ - **Choose kannada in both script and language**
+ - **Add tesseract to Path**
+ - Check if this folder `C:\Program Files\Tesseract-OCR\` is present. If yes, follow below procedure
+ - Add `C:\Program Files\Tesseract-OCR\` to your system PATH by doing the following
+ 1. Click on the `Windows start button`, search for `Edit the system environment variables`, click on Environment Variables
+ 2. Under System variables, look for and double-click on PATH, click on `New`.
+ 3. then add `C:\Program Files\Tesseract-OCR\`, click OK.
+ - if folder is not present, manually add the folder tesseract-ocr to the Program Files in the C drive which must be present at the download section (after extraction) and follow the same procedure
+ - See complete [docs](docs/tesseract_installation/README.md).
+
+2. Installing poppler in the system
+
+ - **Download Poppler**
+ - go to <a href="http://blog.alivate.com.au/poppler-windows/">this</a> page
+ - click on `poppler-0.54_x86`
+ - **Unzip** the file and copy files to `C:\Users\Program Files\poppler-0.68.0_x86`
+ - **Add poppler to path**
+ - Add `C:\Program Files\poppler-0.68.0_x86\bin` to your system PATH by doing the following:
+ 1. Click on the Windows start button, search for Edit the system environment variables, click on Environment Variables
+ 2. under System variables, look for and double-click on PATH, click on New
+ 3. then add C:\Users\Program Files\poppler-0.68.0_x86\bin, click OK.
+
+3. Installing python and pip in the system (If pip is not installed)
+ - <a href="https://www.python.org/downloads/">Download python</a>
+
+4. Installing packages for AksharaJaana
+ - open command prompt
+
+ ```bash
+ pip install AksharaJaana
+ ```
+
+5. **Reboot** the system before starting to use
+
+### Python Script
+
+```python
+from AksharaJaana.main as OCREngine
+
+ocr = OCREngine()
+text = ocr.get_text_from_file("Your file Path")
+print(text)
+```
+
+
+%package -n python3-AksharaJaana
+Summary: A Kannada OCR
+Provides: python-AksharaJaana
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-AksharaJaana
+# AksharaJaana
+
+<p align="center">
+ <img src="https://user-images.githubusercontent.com/63489382/173864136-118db121-fcf4-4c8a-9b7d-7c4e4c0e48f9.png" width=200px>
+</p>
+
+<p align="center">
+ An OCR for Kannada.
+</p>
+
+<p align="center">
+ <a href="https://www.npmjs.com/package/@swc/core">
+ <a href="https://pypi.org/project/AksharaJaana/"><img src="https://img.shields.io/badge/pypi-package-blue?labelColor=black&style=flat&logo=python&link=https://pypi.org/project/AksharaJaana/" alt="pypi" /></a>
+ </a>
+</p>
+
+AksharaJaana is a package which uses tesseract ocr in the backend to convert the read-only kannada text to editable format.
+A Special feature of this is it can separate columns in the page and thus making it easier to read and edit.
+Do consider using this package if necessary and feel free to mail me for any clarifications.
+
+- Email : navaneethsharma2310oct@gmail.com
+- Twitter handle: https://twitter.com/navaneethakbh
+
+Happy coding and installing.
+
+To see the python package visit https://pypi.org/project/AksharaJaana/
+
+## The Requirements
+
+***Conda environment is preferred for the smooth use***
+
+- AksharaJaana *(pip package)*, check out the latest version available
+- Tesseract
+- poppler
+
+## Details for Installation
+
+### Ubuntu
+
+Open terminal and execute below commands.
+
+1. **Installing tesseract-ocr in the system**
+
+ ```bash
+ sudo apt-get update -y
+ sudo apt-get install -y tesseract-ocr
+ sudo apt-get install tesseract-ocr-kan
+ ```
+
+2. **Installing poppler in the system**
+
+ ```bash
+ sudo apt-get install -y poppler-utils
+ ```
+
+3. **Installing python and pip (if pip is not installed)**
+
+ ```bash
+ sudo apt install python==3.6.9
+ ```
+
+4. **Installing packages for AksharaJaana**
+
+ ```bash
+ pip install --upgrade AksharaJaana
+ ```
+
+### Windows
+
+1. Installing tesseract-ocr in the system
+ - **Download tesseract**
+ - go to the <a href="https://github.com/UB-Mannheim/tesseract/wiki">website</a>
+ - click on `tesseract-ocr-w64-setup-v5.0.0-alpha.20200328.exe (64 bit)`.
+ - **Install tesseract for Kannada Language and Script**
+ - open the downloaded file and click next and accept the agreement.
+ - Next you will give an option to choose the languages.
+ - **Choose kannada in both script and language**
+ - **Add tesseract to Path**
+ - Check if this folder `C:\Program Files\Tesseract-OCR\` is present. If yes, follow below procedure
+ - Add `C:\Program Files\Tesseract-OCR\` to your system PATH by doing the following
+ 1. Click on the `Windows start button`, search for `Edit the system environment variables`, click on Environment Variables
+ 2. Under System variables, look for and double-click on PATH, click on `New`.
+ 3. then add `C:\Program Files\Tesseract-OCR\`, click OK.
+ - if folder is not present, manually add the folder tesseract-ocr to the Program Files in the C drive which must be present at the download section (after extraction) and follow the same procedure
+ - See complete [docs](docs/tesseract_installation/README.md).
+
+2. Installing poppler in the system
+
+ - **Download Poppler**
+ - go to <a href="http://blog.alivate.com.au/poppler-windows/">this</a> page
+ - click on `poppler-0.54_x86`
+ - **Unzip** the file and copy files to `C:\Users\Program Files\poppler-0.68.0_x86`
+ - **Add poppler to path**
+ - Add `C:\Program Files\poppler-0.68.0_x86\bin` to your system PATH by doing the following:
+ 1. Click on the Windows start button, search for Edit the system environment variables, click on Environment Variables
+ 2. under System variables, look for and double-click on PATH, click on New
+ 3. then add C:\Users\Program Files\poppler-0.68.0_x86\bin, click OK.
+
+3. Installing python and pip in the system (If pip is not installed)
+ - <a href="https://www.python.org/downloads/">Download python</a>
+
+4. Installing packages for AksharaJaana
+ - open command prompt
+
+ ```bash
+ pip install AksharaJaana
+ ```
+
+5. **Reboot** the system before starting to use
+
+### Python Script
+
+```python
+from AksharaJaana.main as OCREngine
+
+ocr = OCREngine()
+text = ocr.get_text_from_file("Your file Path")
+print(text)
+```
+
+
+%package help
+Summary: Development documents and examples for AksharaJaana
+Provides: python3-AksharaJaana-doc
+%description help
+# AksharaJaana
+
+<p align="center">
+ <img src="https://user-images.githubusercontent.com/63489382/173864136-118db121-fcf4-4c8a-9b7d-7c4e4c0e48f9.png" width=200px>
+</p>
+
+<p align="center">
+ An OCR for Kannada.
+</p>
+
+<p align="center">
+ <a href="https://www.npmjs.com/package/@swc/core">
+ <a href="https://pypi.org/project/AksharaJaana/"><img src="https://img.shields.io/badge/pypi-package-blue?labelColor=black&style=flat&logo=python&link=https://pypi.org/project/AksharaJaana/" alt="pypi" /></a>
+ </a>
+</p>
+
+AksharaJaana is a package which uses tesseract ocr in the backend to convert the read-only kannada text to editable format.
+A Special feature of this is it can separate columns in the page and thus making it easier to read and edit.
+Do consider using this package if necessary and feel free to mail me for any clarifications.
+
+- Email : navaneethsharma2310oct@gmail.com
+- Twitter handle: https://twitter.com/navaneethakbh
+
+Happy coding and installing.
+
+To see the python package visit https://pypi.org/project/AksharaJaana/
+
+## The Requirements
+
+***Conda environment is preferred for the smooth use***
+
+- AksharaJaana *(pip package)*, check out the latest version available
+- Tesseract
+- poppler
+
+## Details for Installation
+
+### Ubuntu
+
+Open terminal and execute below commands.
+
+1. **Installing tesseract-ocr in the system**
+
+ ```bash
+ sudo apt-get update -y
+ sudo apt-get install -y tesseract-ocr
+ sudo apt-get install tesseract-ocr-kan
+ ```
+
+2. **Installing poppler in the system**
+
+ ```bash
+ sudo apt-get install -y poppler-utils
+ ```
+
+3. **Installing python and pip (if pip is not installed)**
+
+ ```bash
+ sudo apt install python==3.6.9
+ ```
+
+4. **Installing packages for AksharaJaana**
+
+ ```bash
+ pip install --upgrade AksharaJaana
+ ```
+
+### Windows
+
+1. Installing tesseract-ocr in the system
+ - **Download tesseract**
+ - go to the <a href="https://github.com/UB-Mannheim/tesseract/wiki">website</a>
+ - click on `tesseract-ocr-w64-setup-v5.0.0-alpha.20200328.exe (64 bit)`.
+ - **Install tesseract for Kannada Language and Script**
+ - open the downloaded file and click next and accept the agreement.
+ - Next you will give an option to choose the languages.
+ - **Choose kannada in both script and language**
+ - **Add tesseract to Path**
+ - Check if this folder `C:\Program Files\Tesseract-OCR\` is present. If yes, follow below procedure
+ - Add `C:\Program Files\Tesseract-OCR\` to your system PATH by doing the following
+ 1. Click on the `Windows start button`, search for `Edit the system environment variables`, click on Environment Variables
+ 2. Under System variables, look for and double-click on PATH, click on `New`.
+ 3. then add `C:\Program Files\Tesseract-OCR\`, click OK.
+ - if folder is not present, manually add the folder tesseract-ocr to the Program Files in the C drive which must be present at the download section (after extraction) and follow the same procedure
+ - See complete [docs](docs/tesseract_installation/README.md).
+
+2. Installing poppler in the system
+
+ - **Download Poppler**
+ - go to <a href="http://blog.alivate.com.au/poppler-windows/">this</a> page
+ - click on `poppler-0.54_x86`
+ - **Unzip** the file and copy files to `C:\Users\Program Files\poppler-0.68.0_x86`
+ - **Add poppler to path**
+ - Add `C:\Program Files\poppler-0.68.0_x86\bin` to your system PATH by doing the following:
+ 1. Click on the Windows start button, search for Edit the system environment variables, click on Environment Variables
+ 2. under System variables, look for and double-click on PATH, click on New
+ 3. then add C:\Users\Program Files\poppler-0.68.0_x86\bin, click OK.
+
+3. Installing python and pip in the system (If pip is not installed)
+ - <a href="https://www.python.org/downloads/">Download python</a>
+
+4. Installing packages for AksharaJaana
+ - open command prompt
+
+ ```bash
+ pip install AksharaJaana
+ ```
+
+5. **Reboot** the system before starting to use
+
+### Python Script
+
+```python
+from AksharaJaana.main as OCREngine
+
+ocr = OCREngine()
+text = ocr.get_text_from_file("Your file Path")
+print(text)
+```
+
+
+%prep
+%autosetup -n AksharaJaana-1.0.1.1
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-AksharaJaana -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e96fc78
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b6130c1fb3cd7426d44cfa1aeb428894 AksharaJaana-1.0.1.1.tar.gz