cnocr 2.3.2__tar.gz → 2.3.2.1__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.
Files changed (62) hide show
  1. {cnocr-2.3.2 → cnocr-2.3.2.1}/PKG-INFO +1 -1
  2. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/__version__.py +1 -1
  3. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/utility.py +2 -0
  4. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/PKG-INFO +1 -1
  5. {cnocr-2.3.2 → cnocr-2.3.2.1}/LICENSE +0 -0
  6. {cnocr-2.3.2 → cnocr-2.3.2.1}/README.md +0 -0
  7. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/__init__.py +0 -0
  8. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/app.py +0 -0
  9. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/classification/__init__.py +0 -0
  10. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/classification/dataset.py +0 -0
  11. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/classification/image_classifier.py +0 -0
  12. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/clf_cli.py +0 -0
  13. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/cli.py +0 -0
  14. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/cn_ocr.py +0 -0
  15. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/consts.py +0 -0
  16. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/data_utils/__init__.py +0 -0
  17. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/data_utils/aug.py +0 -0
  18. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/data_utils/block_shuffle.py +0 -0
  19. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/data_utils/transforms.py +0 -0
  20. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/data_utils/utils.py +0 -0
  21. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/dataset.py +0 -0
  22. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/dataset_utils.py +0 -0
  23. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/gradio_app.py +0 -0
  24. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/gradio_app2.py +0 -0
  25. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/label_cn.txt +0 -0
  26. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/label_number.txt +0 -0
  27. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/line_split.py +0 -0
  28. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/lr_scheduler.py +0 -0
  29. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/models/__init__.py +0 -0
  30. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/models/ctc.py +0 -0
  31. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/models/densenet.py +0 -0
  32. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/models/mobilenet.py +0 -0
  33. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/models/ocr_model.py +0 -0
  34. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/__init__.py +0 -0
  35. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/consts.py +0 -0
  36. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/postprocess/__init__.py +0 -0
  37. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/postprocess/rec_postprocess.py +0 -0
  38. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/pp_recognizer.py +0 -0
  39. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/rapid_recognizer.py +0 -0
  40. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/utils/__init__.py +0 -0
  41. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/utils/chinese_cht_dict.txt +0 -0
  42. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/utils/en_dict.txt +0 -0
  43. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/ppocr/utils/ppocr_keys_v1.txt +0 -0
  44. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/recognizer.py +0 -0
  45. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/serve.py +0 -0
  46. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/trainer.py +0 -0
  47. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr/utils.py +0 -0
  48. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/SOURCES.txt +0 -0
  49. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/dependency_links.txt +0 -0
  50. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/entry_points.txt +0 -0
  51. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/not-zip-safe +0 -0
  52. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/requires.txt +0 -0
  53. {cnocr-2.3.2 → cnocr-2.3.2.1}/cnocr.egg-info/top_level.txt +0 -0
  54. {cnocr-2.3.2 → cnocr-2.3.2.1}/setup.cfg +0 -0
  55. {cnocr-2.3.2 → cnocr-2.3.2.1}/setup.py +0 -0
  56. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_cnocr.py +0 -0
  57. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_dataset.py +0 -0
  58. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_models.py +0 -0
  59. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_ppocr.py +0 -0
  60. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_pytorch.py +0 -0
  61. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_trainer.py +0 -0
  62. {cnocr-2.3.2 → cnocr-2.3.2.1}/tests/test_transforms.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cnocr
3
- Version: 2.3.2
3
+ Version: 2.3.2.1
4
4
  Summary: Python3 package for Chinese/English OCR, with small pretrained models
5
5
  Home-page: https://github.com/breezedeus/cnocr
6
6
  Author: breezedeus
@@ -17,4 +17,4 @@
17
17
  # specific language governing permissions and limitations
18
18
  # under the License.
19
19
 
20
- __version__ = '2.3.2'
20
+ __version__ = '2.3.2.1'
@@ -307,6 +307,8 @@ def draw_ocr_box_txt(image,
307
307
  continue
308
308
  color = (random.randint(0, 255), random.randint(0, 255),
309
309
  random.randint(0, 255))
310
+ # box 是 ndarray, 它的 dtype 必须是 float32
311
+ box = box.astype(np.float32)
310
312
  draw_left.polygon(box, fill=color)
311
313
  draw_right.polygon(
312
314
  [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cnocr
3
- Version: 2.3.2
3
+ Version: 2.3.2.1
4
4
  Summary: Python3 package for Chinese/English OCR, with small pretrained models
5
5
  Home-page: https://github.com/breezedeus/cnocr
6
6
  Author: breezedeus
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes