ImagePRO-Python 0.5.0__tar.gz → 0.5.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 (32) hide show
  1. {imagepro_python-0.5.0/src/ImagePRO_Python.egg-info → imagepro_python-0.5.1}/PKG-INFO +1 -1
  2. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/pyproject.toml +1 -1
  3. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/body_analysis/body_pose_estimation.py +1 -1
  4. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/body_analysis/hand_tracking.py +1 -1
  5. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/eye_status_analysis.py +1 -1
  6. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/face_mesh_analysis.py +1 -1
  7. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/head_pose_estimation.py +1 -1
  8. {imagepro_python-0.5.0 → imagepro_python-0.5.1/src/ImagePRO_Python.egg-info}/PKG-INFO +1 -1
  9. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/LICENSE +0 -0
  10. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/setup.cfg +0 -0
  11. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/__init__.py +0 -0
  12. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/__init__.py +0 -0
  13. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/body_analysis/__init__.py +0 -0
  14. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/__init__.py +0 -0
  15. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/face_comparison.py +0 -0
  16. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/human_analysis/face_analysis/face_detection.py +0 -0
  17. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/object_analysis/object_detection.py +0 -0
  18. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/__init__.py +0 -0
  19. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/blur.py +0 -0
  20. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/contrast.py +0 -0
  21. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/crop.py +0 -0
  22. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/dataset_generator.py +0 -0
  23. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/grayscale.py +0 -0
  24. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/resize.py +0 -0
  25. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/rotate.py +0 -0
  26. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/pre_processing/sharpen.py +0 -0
  27. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/utils/__init__.py +0 -0
  28. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO/utils/io_handler.py +0 -0
  29. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO_Python.egg-info/SOURCES.txt +0 -0
  30. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO_Python.egg-info/dependency_links.txt +0 -0
  31. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/src/ImagePRO_Python.egg-info/requires.txt +0 -0
  32. {imagepro_python-0.5.0 → imagepro_python-0.5.1}/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: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: clean, modular, and easy-to-use Python library for image processing tasks.
5
5
  Author-email: Parsa Safaie <parsasafaie.2568@proton.me>
6
6
  License: MIT
@@ -7,7 +7,7 @@ where = ["src"]
7
7
 
8
8
  [project]
9
9
  name = "ImagePRO-Python"
10
- version = "0.5.0"
10
+ version = "0.5.1"
11
11
  description = "clean, modular, and easy-to-use Python library for image processing tasks."
12
12
  readme = "README.md"
13
13
  requires-python = "==3.10.*"
@@ -99,7 +99,7 @@ def detect_body_pose(
99
99
 
100
100
  def detect_body_pose_live():
101
101
  """Starts webcam and shows real-time body pose detection. Press ESC to exit."""
102
- cap = cv2.VideoCapture(0)
102
+ cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
103
103
  if not cap.isOpened():
104
104
  raise RuntimeError("Failed to open webcam.")
105
105
 
@@ -115,7 +115,7 @@ def detect_hands_live(max_hands: int = 2, min_confidence: float = 0.7):
115
115
  if not isinstance(min_confidence, (int, float)) or not (0.0 <= min_confidence <= 1.0):
116
116
  raise ValueError("'min_confidence' must be a float between 0.0 and 1.0.")
117
117
 
118
- cap = cv2.VideoCapture(0)
118
+ cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
119
119
  if not cap.isOpened():
120
120
  raise RuntimeError("Failed to open webcam.")
121
121
 
@@ -131,7 +131,7 @@ def analyze_eye_status_live(min_confidence: float = 0.7, threshold: float = 0.2)
131
131
  if not isinstance(min_confidence, (int, float)) or not (0 <= min_confidence <= 1):
132
132
  raise ValueError("'min_confidence' must be between 0 and 1.")
133
133
 
134
- cap = cv2.VideoCapture(0)
134
+ cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
135
135
  if not cap.isOpened():
136
136
  raise RuntimeError("Cannot access webcam.")
137
137
 
@@ -181,7 +181,7 @@ def analyze_face_mesh_live(max_faces: int = 1, min_confidence: float = 0.7):
181
181
  if not isinstance(min_confidence, (int, float)) or not (0 <= min_confidence <= 1):
182
182
  raise ValueError("'min_confidence' must be between 0 and 1.")
183
183
 
184
- cap = cv2.VideoCapture(0)
184
+ cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
185
185
  if not cap.isOpened():
186
186
  raise RuntimeError("Unable to open webcam.")
187
187
 
@@ -130,7 +130,7 @@ def estimate_head_pose_live(max_faces: int = 1, min_confidence: float = 0.7):
130
130
  if not isinstance(min_confidence, (int, float)) or not (0 <= min_confidence <= 1):
131
131
  raise ValueError("'min_confidence' must be between 0 and 1.")
132
132
 
133
- cap = cv2.VideoCapture(0)
133
+ cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
134
134
  if not cap.isOpened():
135
135
  raise RuntimeError("Failed to access webcam.")
136
136
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ImagePRO-Python
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: clean, modular, and easy-to-use Python library for image processing tasks.
5
5
  Author-email: Parsa Safaie <parsasafaie.2568@proton.me>
6
6
  License: MIT
File without changes