arcjetCV 1.1.4.dev1__tar.gz → 1.1.4.dev2__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.
- {arcjetcv-1.1.4.dev1/arcjetcv.egg-info → arcjetcv-1.1.4.dev2}/PKG-INFO +1 -1
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/main.py +3 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/contour/cnn.py +1 -1
- arcjetcv-1.1.4.dev2/arcjetCV/segmentation/contour/model_loader.py +18 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2/arcjetcv.egg-info}/PKG-INFO +1 -1
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetcv.egg-info/SOURCES.txt +1 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/setup.py +1 -1
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/LICENSE +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/MANIFEST.in +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/README.md +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/README_pypi.md +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/calibrate_video.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/calibration_controller.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/calibration_main.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/calibration_model.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/calibration_view.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/chessboard_pattern.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/detetct_example.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/rotated_pattern.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/calibration/test.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/chessboard_pattern.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/_arcjetCV_gui.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/arcjetCV_gui.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/custom_classes.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/logo/arcjetCV_logo.icns +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/logo/arcjetCV_logo.ico +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/logo/arcjetCV_logo_.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/logo/arcjetCV_logo_white.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/gui/main_window.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/contour/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/contour/contour.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/contour/conversion.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/time/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/segmentation/time/time_segmentation.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/logger.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/output.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/processor.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/utils.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetCV/utils/video.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetcv.egg-info/dependency_links.txt +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetcv.egg-info/entry_points.txt +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetcv.egg-info/requires.txt +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/arcjetcv.egg-info/top_level.txt +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/setup.cfg +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/README.md +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/__init__.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/chessboard_pattern.png +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_calibration_functions.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_calibration_gui.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_functions.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_gui.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_obj_models.py +0 -0
- {arcjetcv-1.1.4.dev1 → arcjetcv-1.1.4.dev2}/tests/test_segmentation.py +0 -0
|
@@ -9,6 +9,7 @@ import os
|
|
|
9
9
|
from PySide6.QtWidgets import QApplication
|
|
10
10
|
from PySide6.QtGui import QIcon
|
|
11
11
|
from arcjetCV.gui.main_window import MainWindow
|
|
12
|
+
from arcjetCV.segmentation.model_loader import get_model_checkpoint
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
# Function to get the correct icon path based on OS
|
|
@@ -30,6 +31,8 @@ def main():
|
|
|
30
31
|
|
|
31
32
|
# Set application icon
|
|
32
33
|
icon_path = get_icon_path()
|
|
34
|
+
get_model_checkpoint()
|
|
35
|
+
|
|
33
36
|
if os.path.exists(icon_path):
|
|
34
37
|
app.setWindowIcon(QIcon(icon_path))
|
|
35
38
|
else:
|
|
@@ -16,7 +16,7 @@ class CNN:
|
|
|
16
16
|
# Download if missing
|
|
17
17
|
if not self.checkpoint_path.exists():
|
|
18
18
|
print(f"[INFO] Downloading model weights to {self.checkpoint_path}...")
|
|
19
|
-
url = "https://github.com/magnus-haw/arcjetCV/
|
|
19
|
+
url = "https://github.com/magnus-haw/arcjetCV/rawÒ/main/arcjetCV/segmentation/contour/Unet-xception_25_weights_only.pt"
|
|
20
20
|
urllib.request.urlretrieve(url, self.checkpoint_path)
|
|
21
21
|
|
|
22
22
|
self.checkpoint_path = (
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import urllib.request
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def get_model_checkpoint():
|
|
7
|
+
model_name = "Unet-xception_25_weights_only.pt"
|
|
8
|
+
checkpoint_path = Path(__file__).parent / model_name
|
|
9
|
+
|
|
10
|
+
if not checkpoint_path.exists():
|
|
11
|
+
print(f"[INFO] Downloading model weights to {checkpoint_path}...")
|
|
12
|
+
url = "https://github.com/magnus-haw/arcjetCV/raw/main/arcjetCV/segmentation/contour/Unet-xception_25_weights_only.pt"
|
|
13
|
+
try:
|
|
14
|
+
urllib.request.urlretrieve(url, checkpoint_path)
|
|
15
|
+
except Exception as e:
|
|
16
|
+
raise RuntimeError(f"❌ Failed to download model weights: {e}")
|
|
17
|
+
|
|
18
|
+
return checkpoint_path
|
|
@@ -30,6 +30,7 @@ arcjetCV/segmentation/contour/__init__.py
|
|
|
30
30
|
arcjetCV/segmentation/contour/cnn.py
|
|
31
31
|
arcjetCV/segmentation/contour/contour.py
|
|
32
32
|
arcjetCV/segmentation/contour/conversion.py
|
|
33
|
+
arcjetCV/segmentation/contour/model_loader.py
|
|
33
34
|
arcjetCV/segmentation/time/__init__.py
|
|
34
35
|
arcjetCV/segmentation/time/time_segmentation.py
|
|
35
36
|
arcjetCV/utils/__init__.py
|
|
@@ -66,7 +66,7 @@ check_linux_dependencies()
|
|
|
66
66
|
# Define the setup configuration
|
|
67
67
|
setup(
|
|
68
68
|
name="arcjetcv",
|
|
69
|
-
version="1.1.4.
|
|
69
|
+
version="1.1.4.dev2", # Set the version directly here
|
|
70
70
|
author="arcjetCV team",
|
|
71
71
|
description="Package to process arcjet videos and segment the edge of the shock and of the sample",
|
|
72
72
|
long_description=long_description,
|
|
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
|
|
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
|