arcjetCV 0.0.7.dev1__tar.gz → 0.0.7.dev3__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 (46) hide show
  1. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/PKG-INFO +1 -1
  2. arcjetcv-0.0.7.dev3/arcjetCV/gui/logo/arcjetCV_logo.icns +0 -0
  3. arcjetcv-0.0.7.dev3/arcjetCV/gui/logo/arcjetCV_logo.ico +0 -0
  4. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/main.py +15 -4
  5. arcjetcv-0.0.7.dev3/arcjetCV/segmentation/contour/Unet-xception-last-checkpoint.pt +3 -0
  6. arcjetcv-0.0.7.dev3/arcjetCV/segmentation/contour/Unet-xception_25_original.pt +3 -0
  7. arcjetcv-0.0.7.dev3/arcjetCV/segmentation/time/time-checkpoint.pt +3 -0
  8. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/PKG-INFO +1 -1
  9. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/SOURCES.txt +5 -1
  10. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/setup.py +29 -14
  11. arcjetcv-0.0.7.dev1/arcjetCV/chessboard_pattern.png +0 -0
  12. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/LICENSE +0 -0
  13. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/README.md +0 -0
  14. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/__init__.py +0 -0
  15. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/__init__.py +0 -0
  16. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/_arcjetCV_gui.py +0 -0
  17. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/arcjetCV_gui.py +0 -0
  18. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/custom_classes.py +0 -0
  19. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/logo/arcjetCV_logo_.png +0 -0
  20. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/logo/arcjetCV_logo_white.png +0 -0
  21. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/gui/main_window.py +0 -0
  22. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/__init__.py +0 -0
  23. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/contour/__init__.py +0 -0
  24. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/contour/cnn.py +0 -0
  25. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/contour/contour.py +0 -0
  26. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/time/__init__.py +0 -0
  27. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/segmentation/time/time_segmentation.py +0 -0
  28. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/__init__.py +0 -0
  29. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/logger.py +0 -0
  30. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/output.py +0 -0
  31. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/processor.py +0 -0
  32. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/utils.py +0 -0
  33. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV/utils/video.py +0 -0
  34. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/dependency_links.txt +0 -0
  35. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/entry_points.txt +0 -0
  36. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/requires.txt +0 -0
  37. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/arcjetCV.egg-info/top_level.txt +0 -0
  38. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/setup.cfg +0 -0
  39. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/README.md +0 -0
  40. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/__init__.py +0 -0
  41. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_calibration_functions.py +0 -0
  42. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_calibration_gui.py +0 -0
  43. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_functions.py +0 -0
  44. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_gui.py +0 -0
  45. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_obj_models.py +0 -0
  46. {arcjetcv-0.0.7.dev1 → arcjetcv-0.0.7.dev3}/tests/test_segmentation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: arcjetCV
3
- Version: 0.0.7.dev1
3
+ Version: 0.0.7.dev3
4
4
  Summary: Package to process arcjet videos and segment the edge of the shock and of the sample
5
5
  Home-page: https://github.com/magnus-haw/arcjetCV
6
6
  Author: arcjetCV team
@@ -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
- path = "logo/arcjetCV_logo_.png"
17
- app.setWindowIcon(QIcon(path))
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()
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2854ff0694187ce0eb3d852277f65be8da17acee5f02f826c797478336dd990b
3
+ size 115472778
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c8e1ee2f28e1b51d6d7060b6dec39e7afc9a917fe5c1c57fe1e7e86f30b151c
3
+ size 115473862
@@ -0,0 +1,3 @@
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67a8f307ebfe8679f2049ea86e0fb4222efad1499acad5485c00d3deb36c7cff
3
+ size 42054
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: arcjetCV
3
- Version: 0.0.7.dev1
3
+ Version: 0.0.7.dev3
4
4
  Summary: Package to process arcjet videos and segment the edge of the shock and of the sample
5
5
  Home-page: https://github.com/magnus-haw/arcjetCV
6
6
  Author: arcjetCV team
@@ -2,7 +2,6 @@ LICENSE
2
2
  README.md
3
3
  setup.py
4
4
  arcjetCV/__init__.py
5
- arcjetCV/chessboard_pattern.png
6
5
  arcjetCV.egg-info/PKG-INFO
7
6
  arcjetCV.egg-info/SOURCES.txt
8
7
  arcjetCV.egg-info/dependency_links.txt
@@ -15,13 +14,18 @@ arcjetCV/gui/arcjetCV_gui.py
15
14
  arcjetCV/gui/custom_classes.py
16
15
  arcjetCV/gui/main.py
17
16
  arcjetCV/gui/main_window.py
17
+ arcjetCV/gui/logo/arcjetCV_logo.icns
18
+ arcjetCV/gui/logo/arcjetCV_logo.ico
18
19
  arcjetCV/gui/logo/arcjetCV_logo_.png
19
20
  arcjetCV/gui/logo/arcjetCV_logo_white.png
20
21
  arcjetCV/segmentation/__init__.py
22
+ arcjetCV/segmentation/contour/Unet-xception-last-checkpoint.pt
23
+ arcjetCV/segmentation/contour/Unet-xception_25_original.pt
21
24
  arcjetCV/segmentation/contour/__init__.py
22
25
  arcjetCV/segmentation/contour/cnn.py
23
26
  arcjetCV/segmentation/contour/contour.py
24
27
  arcjetCV/segmentation/time/__init__.py
28
+ arcjetCV/segmentation/time/time-checkpoint.pt
25
29
  arcjetCV/segmentation/time/time_segmentation.py
26
30
  arcjetCV/utils/__init__.py
27
31
  arcjetCV/utils/logger.py
@@ -7,21 +7,36 @@ with open("README.md", "r", encoding="utf-8") as fh:
7
7
  long_description = fh.read()
8
8
 
9
9
 
10
- # Define a function to check for platform-specific dependencies
11
10
  def check_linux_dependencies():
12
11
  if sys.platform.startswith("linux"):
13
- print(
14
- "\n[INFO] Linux detected: Ensure the following system libraries are installed:"
15
- )
16
- print(
17
- "\n[INFO] Run the following command to install the necessary Qt dependencies:"
18
- )
19
- print(
20
- "\n[Ubuntu/Debian] sudo apt-get install libxcb-xinerama0 libxcb1 libx11-xcb1 libxcb-cursor0"
21
- )
22
- print("[Fedora] sudo dnf install libxcb libX11-xcb libxcb-cursor")
23
- print("[Arch] sudo pacman -S libxcb xcb-util xcb-util-cursor\n")
12
+ print("\n[INFO] Linux detected: Checking required system libraries...")
24
13
 
14
+ # List of required packages
15
+ required_packages = [
16
+ "libxcb-xinerama0", "libxcb1", "libx11-xcb1", "libxcb-cursor0",
17
+ "libxcb-icccm4", "libxcb-keysyms1", "libxcb-render-util0",
18
+ "libxcb-shape0", "libxcb-xfixes0", "libxcb-randr0",
19
+ "libxcb-util1", "libxcb-image0", "libxcb-sync1", "libxcb-xinput0"
20
+ ]
21
+
22
+ try:
23
+ # Check if running on Ubuntu/Debian
24
+ with open("/etc/os-release") as f:
25
+ os_info = f.read().lower()
26
+ if "ubuntu" in os_info or "debian" in os_info:
27
+ print("\n[INFO] Ubuntu/Debian detected. Installing dependencies via APT...")
28
+ subprocess.run(["sudo", "apt", "update"], check=True)
29
+ subprocess.run(["sudo", "apt", "install", "-y"] + required_packages, check=True)
30
+ print("\n[INFO] System dependencies installed successfully.")
31
+ else:
32
+ print("\n[WARNING] Non-Debian system detected. Please install the dependencies manually.")
33
+ print("\n[INFO] Run one of the following commands based on your distribution:")
34
+ print("\n[Ubuntu/Debian] sudo apt-get install " + " ".join(required_packages))
35
+ print("[Fedora] sudo dnf install libxcb libX11-xcb libxcb-cursor")
36
+ print("[Arch] sudo pacman -S libxcb xcb-util xcb-util-cursor\n")
37
+
38
+ except Exception as e:
39
+ print(f"\n[ERROR] Could not determine Linux distribution: {e}")
25
40
 
26
41
  # Run the platform check before proceeding
27
42
  check_linux_dependencies()
@@ -29,7 +44,7 @@ check_linux_dependencies()
29
44
  # Define the setup configuration
30
45
  setup(
31
46
  name="arcjetCV",
32
- version="0.0.7.dev1", # Set the version directly here
47
+ version="0.0.7.dev3", # Set the version directly here
33
48
  author="arcjetCV team",
34
49
  description="Package to process arcjet videos and segment the edge of the shock and of the sample",
35
50
  long_description=long_description,
@@ -39,7 +54,7 @@ setup(
39
54
  include_package_data=True, # Include package data based on the rules below
40
55
  package_data={
41
56
  "": ["*.txt", "*.md", "*.png", "*.gif"], # Include these file types
42
- "arcjetCV": ["gui/logo/*.png"], # Include specific logo images
57
+ "arcjetCV": ["gui/logo/*.png", "gui/logo/*.ico", "gui/logo/*.icns"], # Include specific logo images
43
58
  },
44
59
  exclude_package_data={
45
60
  "arcjetCV": [
File without changes
File without changes
File without changes