arcjetCV 0.0.7.dev2__py3-none-any.whl → 0.0.7.dev3__py3-none-any.whl
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.
- arcjetCV/gui/logo/arcjetCV_logo.icns +0 -0
- arcjetCV/gui/logo/arcjetCV_logo.ico +0 -0
- arcjetCV/gui/main.py +15 -4
- arcjetCV/segmentation/contour/Unet-xception-last-checkpoint.pt +3 -0
- arcjetCV/segmentation/contour/Unet-xception_25_original.pt +3 -0
- arcjetCV/segmentation/time/time-checkpoint.pt +3 -0
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/METADATA +1 -1
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/RECORD +12 -17
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/WHEEL +1 -1
- arcjetCV/calibration/__init__.py +0 -0
- arcjetCV/calibration/calibrate_video.py +0 -55
- arcjetCV/calibration/calibration_controller.py +0 -891
- arcjetCV/calibration/calibration_main.py +0 -16
- arcjetCV/calibration/calibration_model.py +0 -178
- arcjetCV/calibration/calibration_view.py +0 -322
- arcjetCV/calibration/chessboard_pattern.png +0 -0
- arcjetCV/calibration/detetct_example.py +0 -48
- arcjetCV/calibration/rotated_pattern.png +0 -0
- arcjetCV/chessboard_pattern.png +0 -0
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/LICENSE +0 -0
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/entry_points.txt +0 -0
- {arcjetcv-0.0.7.dev2.dist-info → arcjetCV-0.0.7.dev3.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
arcjetCV/gui/main.py
CHANGED
|
@@ -4,20 +4,31 @@ No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF AN
|
|
|
4
4
|
Waiver and Indemnity: RECIPIENT AGREES TO WAIVE ANY AND ALL CLAIMS AGAINST THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT. IF RECIPIENT'S USE OF THE SUBJECT SOFTWARE RESULTS IN ANY LIABILITIES, DEMANDS, DAMAGES, EXPENSES OR LOSSES ARISING FROM SUCH USE, INCLUDING ANY DAMAGES FROM PRODUCTS BASED ON, OR RESULTING FROM, RECIPIENT'S USE OF THE SUBJECT SOFTWARE, RECIPIENT SHALL INDEMNIFY AND HOLD HARMLESS THE UNITED STATES GOVERNMENT, ITS CONTRACTORS AND SUBCONTRACTORS, AS WELL AS ANY PRIOR RECIPIENT, TO THE EXTENT PERMITTED BY LAW. RECIPIENT'S SOLE REMEDY FOR ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS AGREEMENT.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
+
import sys
|
|
8
|
+
import os
|
|
7
9
|
from PySide6.QtWidgets import QApplication
|
|
8
10
|
from PySide6.QtGui import QIcon
|
|
9
|
-
import sys
|
|
10
11
|
from arcjetCV.gui.main_window import MainWindow
|
|
11
12
|
|
|
13
|
+
# Function to get the correct icon path based on OS
|
|
14
|
+
def get_icon_path():
|
|
15
|
+
base_path = os.path.dirname(os.path.abspath(__file__)) # Get current script directory
|
|
16
|
+
icon_filename = "arcjetCV_logo_.ico" if sys.platform.startswith("win") else "arcjetCV_logo_.icns" if sys.platform == "darwin" else "arcjetCV_logo_.png"
|
|
17
|
+
return os.path.join(base_path, "logo", icon_filename)
|
|
12
18
|
|
|
13
19
|
def main():
|
|
14
20
|
app = QApplication(sys.argv)
|
|
15
21
|
window = MainWindow()
|
|
16
|
-
|
|
17
|
-
|
|
22
|
+
|
|
23
|
+
# Set application icon
|
|
24
|
+
icon_path = get_icon_path()
|
|
25
|
+
if os.path.exists(icon_path):
|
|
26
|
+
app.setWindowIcon(QIcon(icon_path))
|
|
27
|
+
else:
|
|
28
|
+
print(f"[WARNING] Icon file not found: {icon_path}")
|
|
29
|
+
|
|
18
30
|
window.show()
|
|
19
31
|
sys.exit(app.exec())
|
|
20
32
|
|
|
21
|
-
|
|
22
33
|
if __name__ == "__main__":
|
|
23
34
|
main()
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
arcjetCV/__init__.py,sha256=kP9aGiOz-RNfwr1BRz1OW-96ztitlHuBGj-NWxBbTRA,2308
|
|
2
|
-
arcjetCV/chessboard_pattern.png,sha256=P68ymEW07kVgknRrj3a-P11fSXoBT3MdOq0CVbun6uc,3672
|
|
3
|
-
arcjetCV/calibration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
arcjetCV/calibration/calibrate_video.py,sha256=v9jN2TV9Zf71LDPaZ4ml01iCgdbYlqcScnzwTXFyM2U,2276
|
|
5
|
-
arcjetCV/calibration/calibration_controller.py,sha256=DXNuMuuurI9buUXa15HpeA_wZrLiWM_guGl7pzkBevw,33680
|
|
6
|
-
arcjetCV/calibration/calibration_main.py,sha256=Wt2v7UWSyR6chWgYQzGwuniDZv4LXVp_nxc1HahG_Io,358
|
|
7
|
-
arcjetCV/calibration/calibration_model.py,sha256=GNcr40Ras-GJu4HH14t8WB4OJA9ZRXKXyuRbfv41gyE,6545
|
|
8
|
-
arcjetCV/calibration/calibration_view.py,sha256=utlytDtEyH8wiuSD0UQ2FahoGg-OFHYhYJwEWFSk9l8,13010
|
|
9
|
-
arcjetCV/calibration/chessboard_pattern.png,sha256=P68ymEW07kVgknRrj3a-P11fSXoBT3MdOq0CVbun6uc,3672
|
|
10
|
-
arcjetCV/calibration/detetct_example.py,sha256=EonWBqziQNyoL6jG5MRgJAuf4EQdjDeVarzl5nfOZfo,1467
|
|
11
|
-
arcjetCV/calibration/rotated_pattern.png,sha256=XFLP4vHhOtH5Og1Ydxxl3kU9Rtfhlbgu7wabe7mrC24,7356
|
|
12
2
|
arcjetCV/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
3
|
arcjetCV/gui/_arcjetCV_gui.py,sha256=tcPPE_-O_3KpgmaNU7lFxvLz4rshdML1gWSHbt-sL40,46354
|
|
14
4
|
arcjetCV/gui/arcjetCV_gui.py,sha256=XtsuZU8-e221XeRLMuVP1Ef_kQJxqAKrwxsWQWr0Bsw,47497
|
|
15
5
|
arcjetCV/gui/custom_classes.py,sha256=tnH2St2jOB8cRunuodcXsdt6dxsU7dujfBli37J5pGo,2095
|
|
16
|
-
arcjetCV/gui/main.py,sha256=
|
|
6
|
+
arcjetCV/gui/main.py,sha256=mbQ26fKXYSOvipkyACgGeD4CS1PqHgEqPDnRGdrNkMk,2653
|
|
17
7
|
arcjetCV/gui/main_window.py,sha256=Hxct6U6vCPI2O-3h8KwjOCAUxFQvdcZZwoGB0qcxyKM,50676
|
|
8
|
+
arcjetCV/gui/logo/arcjetCV_logo.icns,sha256=oxYpc3ettYktu5zsMWx1vofElnYz9jVZg70qWRBeUGQ,140715
|
|
9
|
+
arcjetCV/gui/logo/arcjetCV_logo.ico,sha256=GUeKE9903isQprycUXhWDN_ZhZmauE4Fse8n6r1K2C8,51872
|
|
18
10
|
arcjetCV/gui/logo/arcjetCV_logo_.png,sha256=m0Ydni4gZ2Fau16hTXtOOVx7MvBIyaS_cF_4djNKKTg,93638
|
|
19
11
|
arcjetCV/gui/logo/arcjetCV_logo_white.png,sha256=P2zZSy1VUqnHAhGAJPg7nsolMsYUtTabSIG2r7F1QmU,101105
|
|
20
12
|
arcjetCV/segmentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
arcjetCV/segmentation/contour/Unet-xception-last-checkpoint.pt,sha256=opZRO5H-AH3UAItmuU3pmMSdAMGbX3M4V1T5I2UHTl0,134
|
|
14
|
+
arcjetCV/segmentation/contour/Unet-xception_25_original.pt,sha256=yJiL9nNFUfCflG1-piBHfX2m3IeQCuTJ9x9XlFAdiD0,134
|
|
21
15
|
arcjetCV/segmentation/contour/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
16
|
arcjetCV/segmentation/contour/cnn.py,sha256=4P67gjYOqZ3k22U5VRulSekc0Vl-F51yDXVyOF59EK4,1444
|
|
23
17
|
arcjetCV/segmentation/contour/contour.py,sha256=yv2vcStiqDbxQQyqgy6vOicscJm4jZsjCtnqG4HUhpU,15041
|
|
24
18
|
arcjetCV/segmentation/time/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
|
+
arcjetCV/segmentation/time/time-checkpoint.pt,sha256=TfSn5wVjS6qw_J1C6ry0SOqElVbYTad1adQIwVb1kKs,130
|
|
25
20
|
arcjetCV/segmentation/time/time_segmentation.py,sha256=MkDKpKeQqugc7Yu8f21c4__hHPG1VmrLd_aTiYS2_YY,3927
|
|
26
21
|
arcjetCV/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
22
|
arcjetCV/utils/logger.py,sha256=Xq0FFwivFKS7Wx1L_EMInEb9FpF6H46tXIkHiceI9a0,443
|
|
@@ -37,9 +32,9 @@ tests/test_functions.py,sha256=x_A_TDi2lzzOKr1W2YO08NHNHhdvU8TDNb8g1Dcdol4,4931
|
|
|
37
32
|
tests/test_gui.py,sha256=d_xc7s5X6VFzYIyO9AvBZfOir8SruU1X30raskPZH9Q,18935
|
|
38
33
|
tests/test_obj_models.py,sha256=QAk8uNhRGZPTHkHVx3gswzsPA-nbpOSM2pkjLR4_gRE,4131
|
|
39
34
|
tests/test_segmentation.py,sha256=X3X66Ef-3FDID-xH6r637gx4zydD4BvKM8Sk5see97o,8296
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
35
|
+
arcjetCV-0.0.7.dev3.dist-info/LICENSE,sha256=WSqTxCTC97vbTvtqTCphE6o0u4jrQQg4nuWHLjk33kU,12784
|
|
36
|
+
arcjetCV-0.0.7.dev3.dist-info/METADATA,sha256=uPWGJQYRdvmJY6UYCDAM2Jp6ORJnLWiXB2Ib-rCuils,5903
|
|
37
|
+
arcjetCV-0.0.7.dev3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
38
|
+
arcjetCV-0.0.7.dev3.dist-info/entry_points.txt,sha256=IWfHYYfvKgoa5zhGibTEnJUHHTKChL2z81gysRPJxrk,86
|
|
39
|
+
arcjetCV-0.0.7.dev3.dist-info/top_level.txt,sha256=8Eo3uozrbj-4LkXnIy2dU4IrkHYWIQROWpc-WYuUxiw,15
|
|
40
|
+
arcjetCV-0.0.7.dev3.dist-info/RECORD,,
|
arcjetCV/calibration/__init__.py
DELETED
|
File without changes
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
def apply_calibration(frame, calibration_data):
|
|
2
|
-
"""
|
|
3
|
-
Apply calibration to a single frame using provided calibration data.
|
|
4
|
-
|
|
5
|
-
Args:
|
|
6
|
-
frame (numpy.ndarray): The input frame (image) to calibrate.
|
|
7
|
-
calibration_data (dict): A dictionary containing calibration data with keys:
|
|
8
|
-
- "camera_matrix": The intrinsic camera matrix.
|
|
9
|
-
- "dist_coeffs": The distortion coefficients.
|
|
10
|
-
- "rvec" (optional): The rotation vector for 3D transformations.
|
|
11
|
-
- "tvec" (optional): The translation vector for 3D transformations.
|
|
12
|
-
|
|
13
|
-
Returns:
|
|
14
|
-
numpy.ndarray: The calibrated frame (image).
|
|
15
|
-
"""
|
|
16
|
-
# Extract calibration data
|
|
17
|
-
camera_matrix = np.array(calibration_data["camera_matrix"])
|
|
18
|
-
dist_coeffs = np.array(calibration_data["dist_coeffs"])
|
|
19
|
-
|
|
20
|
-
# Undistort the frame
|
|
21
|
-
h, w = frame.shape[:2]
|
|
22
|
-
new_camera_matrix, _ = cv2.getOptimalNewCameraMatrix(
|
|
23
|
-
camera_matrix, dist_coeffs, (w, h), 1, (w, h)
|
|
24
|
-
)
|
|
25
|
-
undistorted_frame = cv2.undistort(frame, camera_matrix, dist_coeffs, None, new_camera_matrix)
|
|
26
|
-
|
|
27
|
-
# Apply 3D transformations if rvec and tvec are available
|
|
28
|
-
if "rvec" in calibration_data and "tvec" in calibration_data:
|
|
29
|
-
rvec = np.array(calibration_data["rvec"])
|
|
30
|
-
tvec = np.array(calibration_data["tvec"])
|
|
31
|
-
|
|
32
|
-
# Define points on the image plane
|
|
33
|
-
height, width = undistorted_frame.shape[:2]
|
|
34
|
-
object_points = np.array([
|
|
35
|
-
[0, 0, 0],
|
|
36
|
-
[width, 0, 0],
|
|
37
|
-
[width, height, 0],
|
|
38
|
-
[0, height, 0]
|
|
39
|
-
], dtype=np.float32)
|
|
40
|
-
|
|
41
|
-
# Project 3D points to the image plane
|
|
42
|
-
image_points, _ = cv2.projectPoints(object_points, rvec, tvec, new_camera_matrix, None)
|
|
43
|
-
|
|
44
|
-
# Compute the perspective transform
|
|
45
|
-
src_points = np.float32([[0, 0], [width, 0], [width, height], [0, height]])
|
|
46
|
-
dst_points = np.float32(image_points[:, 0, :])
|
|
47
|
-
perspective_transform = cv2.getPerspectiveTransform(src_points, dst_points)
|
|
48
|
-
|
|
49
|
-
# Apply the perspective transformation
|
|
50
|
-
calibrated_frame = cv2.warpPerspective(undistorted_frame, perspective_transform, (w, h))
|
|
51
|
-
else:
|
|
52
|
-
# If no 3D transformation data, return the undistorted frame
|
|
53
|
-
calibrated_frame = undistorted_frame
|
|
54
|
-
|
|
55
|
-
return calibrated_frame
|