ImagePRO-Python 1.0.0__tar.gz → 1.0.2__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 (34) hide show
  1. {imagepro_python-1.0.0/src/ImagePRO_Python.egg-info → imagepro_python-1.0.2}/PKG-INFO +2 -1
  2. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/pyproject.toml +3 -1
  3. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/utils/__init__.py +3 -2
  4. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/utils/result.py +15 -4
  5. {imagepro_python-1.0.0 → imagepro_python-1.0.2/src/ImagePRO_Python.egg-info}/PKG-INFO +2 -1
  6. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO_Python.egg-info/requires.txt +1 -0
  7. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/LICENSE +0 -0
  8. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/setup.cfg +0 -0
  9. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/__init__.py +0 -0
  10. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/__init__.py +0 -0
  11. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/body_analysis/__init__.py +0 -0
  12. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/body_analysis/body_pose_estimation.py +0 -0
  13. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/body_analysis/hand_tracking.py +0 -0
  14. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/__init__.py +0 -0
  15. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/eye_status_analysis.py +0 -0
  16. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/face_comparison.py +0 -0
  17. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/face_detection.py +0 -0
  18. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/face_mesh_analysis.py +0 -0
  19. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/human_analysis/face_analysis/head_pose_estimation.py +0 -0
  20. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/object_analysis/__init__.py +0 -0
  21. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/object_analysis/object_detection.py +0 -0
  22. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/__init__.py +0 -0
  23. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/blur.py +0 -0
  24. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/contrast.py +0 -0
  25. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/crop.py +0 -0
  26. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/dataset_generator.py +0 -0
  27. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/grayscale.py +0 -0
  28. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/resize.py +0 -0
  29. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/rotate.py +0 -0
  30. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/pre_processing/sharpen.py +0 -0
  31. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO/utils/image.py +0 -0
  32. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO_Python.egg-info/SOURCES.txt +0 -0
  33. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO_Python.egg-info/dependency_links.txt +0 -0
  34. {imagepro_python-1.0.0 → imagepro_python-1.0.2}/src/ImagePRO_Python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ImagePRO-Python
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Professional & modular image processing library with OpenCV, MediaPipe, and YOLO integration.
5
5
  Author-email: Parsa Safaie <parsasafaie.2568@proton.me>
6
6
  License: MIT
@@ -27,4 +27,5 @@ Requires-Dist: opencv-python<5.0,>=4.8
27
27
  Requires-Dist: ultralytics<9.0,>=8.2.0
28
28
  Requires-Dist: mediapipe<1.0,>=0.10.0
29
29
  Requires-Dist: insightface<1.0,>=0.7
30
+ Requires-Dist: onnxruntime<2.0,>=1.16
30
31
  Dynamic: license-file
@@ -7,7 +7,7 @@ where = ["src"]
7
7
 
8
8
  [project]
9
9
  name = "ImagePRO-Python"
10
- version = "1.0.0"
10
+ version = "1.0.2"
11
11
  description = "Professional & modular image processing library with OpenCV, MediaPipe, and YOLO integration."
12
12
  readme = "README.md"
13
13
  requires-python = "==3.10.*"
@@ -33,8 +33,10 @@ dependencies = [
33
33
  "ultralytics>=8.2.0,<9.0",
34
34
  "mediapipe>=0.10.0,<1.0",
35
35
  "insightface>=0.7,<1.0",
36
+ "onnxruntime>=1.16,<2.0",
36
37
  ]
37
38
 
39
+
38
40
  [project.urls]
39
41
  Homepage = "https://github.com/parsasafaie/ImagePRO"
40
42
  Repository = "https://github.com/parsasafaie/ImagePRO.git"
@@ -1,6 +1,7 @@
1
1
  # Utils Module
2
2
  # Provides shared utilities for image I/O operations and data handling
3
3
 
4
- from .io_handler import IOHandler
4
+ from .image import Image
5
+ from .result import Result
5
6
 
6
- __all__ = ["IOHandler"]
7
+ __all__ = ["Image", "Result"]
@@ -135,12 +135,23 @@ class Result:
135
135
  try:
136
136
  with out_path.open("w", newline="", encoding="utf-8") as f:
137
137
  writer = csv.writer(f)
138
- if isinstance(payload, list) and payload and all(isinstance(i, (list, tuple)) for i in payload):
139
- writer.writerows(payload)
140
- elif isinstance(payload, (list, tuple)):
141
- writer.writerow(list(payload))
138
+ if isinstance(payload, (list, tuple)):
139
+ writer.writerows(flatten_rows(payload))
142
140
  else:
143
141
  writer.writerow([payload])
144
142
  except Exception as exc:
145
143
  raise IOError(f"Failed to write CSV to {out_path}: {exc}") from exc
146
144
  return self
145
+
146
+ def flatten_rows(data):
147
+ """Flatten any nested lists/tuples into rows suitable for CSV writing."""
148
+ rows = []
149
+ for item in data:
150
+ if isinstance(item, (list, tuple)):
151
+ if item and all(isinstance(x, (list, tuple)) for x in item):
152
+ rows.extend(flatten_rows(item))
153
+ else:
154
+ rows.append(list(item))
155
+ else:
156
+ rows.append([item])
157
+ return rows
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ImagePRO-Python
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: Professional & modular image processing library with OpenCV, MediaPipe, and YOLO integration.
5
5
  Author-email: Parsa Safaie <parsasafaie.2568@proton.me>
6
6
  License: MIT
@@ -27,4 +27,5 @@ Requires-Dist: opencv-python<5.0,>=4.8
27
27
  Requires-Dist: ultralytics<9.0,>=8.2.0
28
28
  Requires-Dist: mediapipe<1.0,>=0.10.0
29
29
  Requires-Dist: insightface<1.0,>=0.7
30
+ Requires-Dist: onnxruntime<2.0,>=1.16
30
31
  Dynamic: license-file
@@ -3,3 +3,4 @@ opencv-python<5.0,>=4.8
3
3
  ultralytics<9.0,>=8.2.0
4
4
  mediapipe<1.0,>=0.10.0
5
5
  insightface<1.0,>=0.7
6
+ onnxruntime<2.0,>=1.16
File without changes