comic-ocr-reader 0.0.4__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- comic_ocr_reader-1.0.3/.github/workflows/python-publish.yml +70 -0
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.gitignore +94 -94
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.idea/comic-ocr.iml +6 -6
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.idea/misc.xml +6 -6
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.idea/vcs.xml +5 -5
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/LICENSE.md +20 -20
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/PKG-INFO +19 -5
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/README.md +51 -37
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/pyproject.toml +30 -30
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/requirements.txt +3 -3
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/__main__.py +123 -104
- comic_ocr_reader-1.0.3/src/comic_ocr_reader/filepaths.py +3 -0
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/functions/__init__.py +58 -58
- comic_ocr_reader-1.0.3/src/comic_ocr_reader/functions/model_init.py +92 -0
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/html_utils/__init__.py +111 -111
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/html_utils/html_template.html +650 -650
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/img_utils/__init__.py +62 -62
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/tests/test.py +23 -23
- comic_ocr_reader-1.0.3/tests/test_main_flow.py +46 -0
- comic_ocr_reader-1.0.3/tests/test_model_init.py +48 -0
- comic_ocr_reader-0.0.4/LICENSE.MD +0 -21
- comic_ocr_reader-0.0.4/readme.md +0 -37
- comic_ocr_reader-0.0.4/src/comic_ocr_reader/filepaths.py +0 -3
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.idea/inspectionProfiles/Project_Default.xml +0 -0
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {comic_ocr_reader-0.0.4 → comic_ocr_reader-1.0.3}/src/comic_ocr_reader/__init__.py +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This workflow will upload a Python Package to PyPI when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
release-build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.x"
|
|
28
|
+
|
|
29
|
+
- name: Build release distributions
|
|
30
|
+
run: |
|
|
31
|
+
# NOTE: put your own distribution build steps here.
|
|
32
|
+
python -m pip install build
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
- name: Upload distributions
|
|
36
|
+
uses: actions/upload-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: release-dists
|
|
39
|
+
path: dist/
|
|
40
|
+
|
|
41
|
+
pypi-publish:
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
needs:
|
|
44
|
+
- release-build
|
|
45
|
+
permissions:
|
|
46
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
47
|
+
id-token: write
|
|
48
|
+
|
|
49
|
+
# Dedicated environments with protections for publishing are strongly recommended.
|
|
50
|
+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
|
|
51
|
+
environment:
|
|
52
|
+
name: pypi
|
|
53
|
+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
|
|
54
|
+
# url: https://pypi.org/p/YOURPROJECT
|
|
55
|
+
#
|
|
56
|
+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
|
|
57
|
+
# ALTERNATIVE: exactly, uncomment the following line instead:
|
|
58
|
+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
|
|
59
|
+
|
|
60
|
+
steps:
|
|
61
|
+
- name: Retrieve release distributions
|
|
62
|
+
uses: actions/download-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: release-dists
|
|
65
|
+
path: dist/
|
|
66
|
+
|
|
67
|
+
- name: Publish release distributions to PyPI
|
|
68
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
69
|
+
with:
|
|
70
|
+
packages-dir: dist/
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
# Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
2
|
-
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
3
|
-
|
|
4
|
-
# User-specific stuff
|
|
5
|
-
.idea/**/workspace.xml
|
|
6
|
-
.idea/**/tasks.xml
|
|
7
|
-
.idea/**/usage.statistics.xml
|
|
8
|
-
.idea/**/dictionaries
|
|
9
|
-
.idea/**/shelf
|
|
10
|
-
|
|
11
|
-
# AWS User-specific
|
|
12
|
-
.idea/**/aws.xml
|
|
13
|
-
|
|
14
|
-
# Generated files
|
|
15
|
-
.idea/**/contentModel.xml
|
|
16
|
-
|
|
17
|
-
# Sensitive or high-churn files
|
|
18
|
-
.idea/**/dataSources/
|
|
19
|
-
.idea/**/dataSources.ids
|
|
20
|
-
.idea/**/dataSources.local.xml
|
|
21
|
-
.idea/**/sqlDataSources.xml
|
|
22
|
-
.idea/**/dynamic.xml
|
|
23
|
-
.idea/**/uiDesigner.xml
|
|
24
|
-
.idea/**/dbnavigator.xml
|
|
25
|
-
|
|
26
|
-
# Gradle
|
|
27
|
-
.idea/**/gradle.xml
|
|
28
|
-
.idea/**/libraries
|
|
29
|
-
|
|
30
|
-
# Gradle and Maven with auto-import
|
|
31
|
-
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
32
|
-
# since they will be recreated, and may cause churn. Uncomment if using
|
|
33
|
-
# auto-import.
|
|
34
|
-
# .idea/artifacts
|
|
35
|
-
# .idea/compiler.xml
|
|
36
|
-
# .idea/jarRepositories.xml
|
|
37
|
-
# .idea/modules.xml
|
|
38
|
-
# .idea/*.iml
|
|
39
|
-
# .idea/modules
|
|
40
|
-
# *.iml
|
|
41
|
-
# *.ipr
|
|
42
|
-
|
|
43
|
-
# CMake
|
|
44
|
-
cmake-build-*/
|
|
45
|
-
|
|
46
|
-
# Mongo Explorer plugin
|
|
47
|
-
.idea/**/mongoSettings.xml
|
|
48
|
-
|
|
49
|
-
# File-based project format
|
|
50
|
-
*.iws
|
|
51
|
-
|
|
52
|
-
# IntelliJ
|
|
53
|
-
out/
|
|
54
|
-
|
|
55
|
-
# mpeltonen/sbt-idea plugin
|
|
56
|
-
.idea_modules/
|
|
57
|
-
|
|
58
|
-
# JIRA plugin
|
|
59
|
-
atlassian-ide-plugin.xml
|
|
60
|
-
|
|
61
|
-
# Cursive Clojure plugin
|
|
62
|
-
.idea/replstate.xml
|
|
63
|
-
|
|
64
|
-
# SonarLint plugin
|
|
65
|
-
.idea/sonarlint/
|
|
66
|
-
# see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119
|
|
67
|
-
.idea/sonarlint.xml
|
|
68
|
-
|
|
69
|
-
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
70
|
-
com_crashlytics_export_strings.xml
|
|
71
|
-
crashlytics.properties
|
|
72
|
-
crashlytics-build.properties
|
|
73
|
-
fabric.properties
|
|
74
|
-
|
|
75
|
-
# Editor-based HTTP Client
|
|
76
|
-
.idea/httpRequests
|
|
77
|
-
http-client.private.env.json
|
|
78
|
-
|
|
79
|
-
# Android studio 3.1+ serialized cache file
|
|
80
|
-
.idea/caches/build_file_checksums.ser
|
|
81
|
-
|
|
82
|
-
# Apifox Helper cache
|
|
83
|
-
.idea/.cache/.Apifox_Helper
|
|
84
|
-
.idea/ApifoxUploaderProjectSetting.xml
|
|
85
|
-
|
|
86
|
-
# Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215
|
|
87
|
-
.idea/**/copilot.data.migration.*.xml
|
|
88
|
-
|
|
89
|
-
# ------------------------------------------------------
|
|
90
|
-
/src/test-pics
|
|
91
|
-
/src/outputs
|
|
92
|
-
/test-pics
|
|
93
|
-
/outputs
|
|
94
|
-
/temporary
|
|
1
|
+
# Covers JetBrains IDEs: IntelliJ, GoLand, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
|
2
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
|
3
|
+
|
|
4
|
+
# User-specific stuff
|
|
5
|
+
.idea/**/workspace.xml
|
|
6
|
+
.idea/**/tasks.xml
|
|
7
|
+
.idea/**/usage.statistics.xml
|
|
8
|
+
.idea/**/dictionaries
|
|
9
|
+
.idea/**/shelf
|
|
10
|
+
|
|
11
|
+
# AWS User-specific
|
|
12
|
+
.idea/**/aws.xml
|
|
13
|
+
|
|
14
|
+
# Generated files
|
|
15
|
+
.idea/**/contentModel.xml
|
|
16
|
+
|
|
17
|
+
# Sensitive or high-churn files
|
|
18
|
+
.idea/**/dataSources/
|
|
19
|
+
.idea/**/dataSources.ids
|
|
20
|
+
.idea/**/dataSources.local.xml
|
|
21
|
+
.idea/**/sqlDataSources.xml
|
|
22
|
+
.idea/**/dynamic.xml
|
|
23
|
+
.idea/**/uiDesigner.xml
|
|
24
|
+
.idea/**/dbnavigator.xml
|
|
25
|
+
|
|
26
|
+
# Gradle
|
|
27
|
+
.idea/**/gradle.xml
|
|
28
|
+
.idea/**/libraries
|
|
29
|
+
|
|
30
|
+
# Gradle and Maven with auto-import
|
|
31
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
|
32
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
|
33
|
+
# auto-import.
|
|
34
|
+
# .idea/artifacts
|
|
35
|
+
# .idea/compiler.xml
|
|
36
|
+
# .idea/jarRepositories.xml
|
|
37
|
+
# .idea/modules.xml
|
|
38
|
+
# .idea/*.iml
|
|
39
|
+
# .idea/modules
|
|
40
|
+
# *.iml
|
|
41
|
+
# *.ipr
|
|
42
|
+
|
|
43
|
+
# CMake
|
|
44
|
+
cmake-build-*/
|
|
45
|
+
|
|
46
|
+
# Mongo Explorer plugin
|
|
47
|
+
.idea/**/mongoSettings.xml
|
|
48
|
+
|
|
49
|
+
# File-based project format
|
|
50
|
+
*.iws
|
|
51
|
+
|
|
52
|
+
# IntelliJ
|
|
53
|
+
out/
|
|
54
|
+
|
|
55
|
+
# mpeltonen/sbt-idea plugin
|
|
56
|
+
.idea_modules/
|
|
57
|
+
|
|
58
|
+
# JIRA plugin
|
|
59
|
+
atlassian-ide-plugin.xml
|
|
60
|
+
|
|
61
|
+
# Cursive Clojure plugin
|
|
62
|
+
.idea/replstate.xml
|
|
63
|
+
|
|
64
|
+
# SonarLint plugin
|
|
65
|
+
.idea/sonarlint/
|
|
66
|
+
# see https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119
|
|
67
|
+
.idea/sonarlint.xml
|
|
68
|
+
|
|
69
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
|
70
|
+
com_crashlytics_export_strings.xml
|
|
71
|
+
crashlytics.properties
|
|
72
|
+
crashlytics-build.properties
|
|
73
|
+
fabric.properties
|
|
74
|
+
|
|
75
|
+
# Editor-based HTTP Client
|
|
76
|
+
.idea/httpRequests
|
|
77
|
+
http-client.private.env.json
|
|
78
|
+
|
|
79
|
+
# Android studio 3.1+ serialized cache file
|
|
80
|
+
.idea/caches/build_file_checksums.ser
|
|
81
|
+
|
|
82
|
+
# Apifox Helper cache
|
|
83
|
+
.idea/.cache/.Apifox_Helper
|
|
84
|
+
.idea/ApifoxUploaderProjectSetting.xml
|
|
85
|
+
|
|
86
|
+
# Github Copilot persisted session migrations, see: https://github.com/microsoft/copilot-intellij-feedback/issues/712#issuecomment-3322062215
|
|
87
|
+
.idea/**/copilot.data.migration.*.xml
|
|
88
|
+
|
|
89
|
+
# ------------------------------------------------------
|
|
90
|
+
/src/test-pics
|
|
91
|
+
/src/outputs
|
|
92
|
+
/test-pics
|
|
93
|
+
/outputs
|
|
94
|
+
/temporary
|
|
95
95
|
/dist
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module version="4">
|
|
3
|
-
<component name="PyDocumentationSettings">
|
|
4
|
-
<option name="format" value="GOOGLE" />
|
|
5
|
-
<option name="myDocStringFormat" value="Google" />
|
|
6
|
-
</component>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module version="4">
|
|
3
|
+
<component name="PyDocumentationSettings">
|
|
4
|
+
<option name="format" value="GOOGLE" />
|
|
5
|
+
<option name="myDocStringFormat" value="Google" />
|
|
6
|
+
</component>
|
|
7
7
|
</module>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="Black">
|
|
4
|
-
<option name="sdkName" value="Python 3.14 (comic-ocr) (2)" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.14 (comic-ocr)" project-jdk-type="Python SDK" />
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="sdkName" value="Python 3.14 (comic-ocr) (2)" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.14 (comic-ocr)" project-jdk-type="Python SDK" />
|
|
7
7
|
</project>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="VcsDirectoryMappings">
|
|
4
|
-
<mapping directory="" vcs="Git" />
|
|
5
|
-
</component>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="VcsDirectoryMappings">
|
|
4
|
+
<mapping directory="" vcs="Git" />
|
|
5
|
+
</component>
|
|
6
6
|
</project>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Haganta R. Ginting
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Haganta R. Ginting
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comic_ocr_reader
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A Python package made for processing Japanese manga into a format usable with web-based on-screen dictionaries like Yomitan.
|
|
5
5
|
Project-URL: Homepage, https://github.com/HagantaRG/comic-ocr
|
|
6
6
|
Author-email: HRG <rhaganta@gmail.com>
|
|
7
7
|
License-Expression: MIT
|
|
8
|
-
License-File: LICENSE.
|
|
8
|
+
License-File: LICENSE.md
|
|
9
9
|
Classifier: Operating System :: OS Independent
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Requires-Python: >=3.9
|
|
@@ -20,16 +20,30 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
# Jelly's Manga Reading Thingy.
|
|
21
21
|
This is my own rendition of the excellent [Mokuro](https://github.com/kha-white/mokuro) project, made mostly just to do it.
|
|
22
22
|
That being said, if you have any suggestions, please give me a heads-up and I will be happy to implement it. Probably.
|
|
23
|
-
|
|
23
|
+
## Installation
|
|
24
|
+
To install, you should only need to run:
|
|
25
|
+
```
|
|
26
|
+
pip install comic-ocr-reader
|
|
27
|
+
```
|
|
28
|
+
Once that it is installed (it may take some time, there are large dependencies in there) you should then run:
|
|
29
|
+
```
|
|
30
|
+
comic_ocr_reader
|
|
31
|
+
```
|
|
32
|
+
Or if that doesn't work:
|
|
33
|
+
```
|
|
34
|
+
python3 -m comic_ocr_reader
|
|
35
|
+
```
|
|
24
36
|
## Usage
|
|
25
37
|
1. Prepare a folder containing the images you would like to process. As of v.0.0.1 the images in this folder must be named the page number you would like that image to be.
|
|
26
38
|
(e.g. the PNG image you would like to use as the second page should be titled "2.png")
|
|
27
39
|
The name of the folder will be the name of the resultant HTML file. (e.g. if your folder is titled "Naruto" the output HTML file will be "Naruto.html" )
|
|
28
40
|
2. Run comic-reader-ocr and enter the "folder" command.
|
|
29
41
|
3. Enter the absolute path of the folder from step 1 and wait for comic-reader-ocr to process all the images.
|
|
30
|
-
4. Once finished, the resulting HTML file will be placed
|
|
42
|
+
4. Once finished, the resulting HTML file will be placed within the folder from step 1.
|
|
31
43
|
5. Open the resulting HTML using your web browser of choice.
|
|
32
|
-
|
|
44
|
+
### Notes
|
|
45
|
+
- You *will* need to keep the HTML file within the same folder as all the rest of the pages. Otherwise, the images will not load.
|
|
46
|
+
- Depending on your hardware, it may take quite some time to fully process all pages. On my laptop, it took roughly ~8s/page. I imagine on something with an actual GPU it would be faster though.
|
|
33
47
|
## FAQs (as decided by Myself)
|
|
34
48
|
1. Is this a worse version of various other projects (e.g. [Mokuro](https://github.com/kha-white/mokuro))?
|
|
35
49
|
|
|
@@ -1,37 +1,51 @@
|
|
|
1
|
-
# Jelly's Manga Reading Thingy.
|
|
2
|
-
This is my own rendition of the excellent [Mokuro](https://github.com/kha-white/mokuro) project, made mostly just to do it.
|
|
3
|
-
That being said, if you have any suggestions, please give me a heads-up and I will be happy to implement it. Probably.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
# Jelly's Manga Reading Thingy.
|
|
2
|
+
This is my own rendition of the excellent [Mokuro](https://github.com/kha-white/mokuro) project, made mostly just to do it.
|
|
3
|
+
That being said, if you have any suggestions, please give me a heads-up and I will be happy to implement it. Probably.
|
|
4
|
+
## Installation
|
|
5
|
+
To install, you should only need to run:
|
|
6
|
+
```
|
|
7
|
+
pip install comic-ocr-reader
|
|
8
|
+
```
|
|
9
|
+
Once that it is installed (it may take some time, there are large dependencies in there) you should then run:
|
|
10
|
+
```
|
|
11
|
+
comic_ocr_reader
|
|
12
|
+
```
|
|
13
|
+
Or if that doesn't work:
|
|
14
|
+
```
|
|
15
|
+
python3 -m comic_ocr_reader
|
|
16
|
+
```
|
|
17
|
+
## Usage
|
|
18
|
+
1. Prepare a folder containing the images you would like to process. As of v.0.0.1 the images in this folder must be named the page number you would like that image to be.
|
|
19
|
+
(e.g. the PNG image you would like to use as the second page should be titled "2.png")
|
|
20
|
+
The name of the folder will be the name of the resultant HTML file. (e.g. if your folder is titled "Naruto" the output HTML file will be "Naruto.html" )
|
|
21
|
+
2. Run comic-reader-ocr and enter the "folder" command.
|
|
22
|
+
3. Enter the absolute path of the folder from step 1 and wait for comic-reader-ocr to process all the images.
|
|
23
|
+
4. Once finished, the resulting HTML file will be placed within the folder from step 1.
|
|
24
|
+
5. Open the resulting HTML using your web browser of choice.
|
|
25
|
+
### Notes
|
|
26
|
+
- You *will* need to keep the HTML file within the same folder as all the rest of the pages. Otherwise, the images will not load.
|
|
27
|
+
- Depending on your hardware, it may take quite some time to fully process all pages. On my laptop, it took roughly ~8s/page. I imagine on something with an actual GPU it would be faster though.
|
|
28
|
+
## FAQs (as decided by Myself)
|
|
29
|
+
1. Is this a worse version of various other projects (e.g. [Mokuro](https://github.com/kha-white/mokuro))?
|
|
30
|
+
|
|
31
|
+
- Yes.
|
|
32
|
+
|
|
33
|
+
2. Do you know how to like. Write things. That work?
|
|
34
|
+
|
|
35
|
+
- No.
|
|
36
|
+
|
|
37
|
+
3. Why did you do this?
|
|
38
|
+
|
|
39
|
+
- As a learning exercise, mostly. Plus, I like trying to reinvent wheels.
|
|
40
|
+
|
|
41
|
+
4. Can I make suggestions?
|
|
42
|
+
|
|
43
|
+
- Yes.
|
|
44
|
+
|
|
45
|
+
5. Did you use AI for this?
|
|
46
|
+
|
|
47
|
+
- Yes. Most of the HTML and JS was AI generated, as unfortunately I really *really* don't like looking at either of those things.
|
|
48
|
+
|
|
49
|
+
6. Are you going to try to make this a webapp because that probably makes a lot of sense or just. Like. Something that isn't Python so that it's easier to distribute or something?
|
|
50
|
+
|
|
51
|
+
- Yes. I'll probably try to rewrite this in Rust or do something like the [mokuro-reader](https://github.com/Gnathonic/mokuro-reader) project.
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["hatchling >= 1.26"]
|
|
3
|
-
build-backend = "hatchling.build"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "comic_ocr_reader"
|
|
7
|
-
version = "
|
|
8
|
-
authors = [
|
|
9
|
-
{ name="HRG", email="rhaganta@gmail.com" },
|
|
10
|
-
]
|
|
11
|
-
description = "A Python package made for processing Japanese manga into a format usable with web-based on-screen dictionaries like Yomitan."
|
|
12
|
-
readme = "README.md"
|
|
13
|
-
requires-python = ">=3.9"
|
|
14
|
-
dependencies = [
|
|
15
|
-
"easyocr~=1.7.2",
|
|
16
|
-
"pillow~=12.3.0",
|
|
17
|
-
"numpy~=2.5.1",
|
|
18
|
-
"manga-ocr",
|
|
19
|
-
"tqdm",
|
|
20
|
-
"loguru",
|
|
21
|
-
]
|
|
22
|
-
classifiers = [
|
|
23
|
-
"Programming Language :: Python :: 3",
|
|
24
|
-
"Operating System :: OS Independent",
|
|
25
|
-
]
|
|
26
|
-
license = "MIT"
|
|
27
|
-
license-files = ["LICENSE.
|
|
28
|
-
|
|
29
|
-
[project.urls]
|
|
30
|
-
Homepage = "https://github.com/HagantaRG/comic-ocr"
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling >= 1.26"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "comic_ocr_reader"
|
|
7
|
+
version = "1.0.3"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="HRG", email="rhaganta@gmail.com" },
|
|
10
|
+
]
|
|
11
|
+
description = "A Python package made for processing Japanese manga into a format usable with web-based on-screen dictionaries like Yomitan."
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.9"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"easyocr~=1.7.2",
|
|
16
|
+
"pillow~=12.3.0",
|
|
17
|
+
"numpy~=2.5.1",
|
|
18
|
+
"manga-ocr",
|
|
19
|
+
"tqdm",
|
|
20
|
+
"loguru",
|
|
21
|
+
]
|
|
22
|
+
classifiers = [
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Operating System :: OS Independent",
|
|
25
|
+
]
|
|
26
|
+
license = "MIT"
|
|
27
|
+
license-files = ["LICENSE.md"]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/HagantaRG/comic-ocr"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
easyocr~=1.7.2
|
|
2
|
-
pillow~=12.3.0
|
|
3
|
-
numpy~=2.5.1
|
|
1
|
+
easyocr~=1.7.2
|
|
2
|
+
pillow~=12.3.0
|
|
3
|
+
numpy~=2.5.1
|
|
4
4
|
manga-ocr
|