arcjetCV 0.0.4.dev6__tar.gz → 0.0.4.dev8__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-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/PKG-INFO +1 -1
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/PKG-INFO +1 -1
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/setup.py +16 -2
- arcjetcv-0.0.4.dev8/tests/__init__.py +27 -0
- arcjetcv-0.0.4.dev6/tests/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/LICENSE +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/README.md +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/arcjetCV_gui.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/custom_classes.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/logo/arcjetCV_logo_.png +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/logo/arcjetCV_logo_white.png +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/main.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/gui/main_window.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/contour/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/contour/cnn.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/contour/contour.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/time/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/segmentation/time/time_segmentation.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/__init__.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/logger.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/output.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/processor.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/utils.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV/utils/video.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/SOURCES.txt +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/dependency_links.txt +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/entry_points.txt +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/requires.txt +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/arcjetCV.egg-info/top_level.txt +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/setup.cfg +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/tests/README.md +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/tests/test_functions.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/tests/test_gui.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/tests/test_obj_models.py +0 -0
- {arcjetcv-0.0.4.dev6 → arcjetcv-0.0.4.dev8}/tests/test_segmentation.py +0 -0
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
|
+
import sys
|
|
3
|
+
import os
|
|
2
4
|
|
|
3
5
|
# Read the README file for long description
|
|
4
6
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
5
7
|
long_description = fh.read()
|
|
6
8
|
|
|
9
|
+
# Define a function to check for platform-specific dependencies
|
|
10
|
+
def check_linux_dependencies():
|
|
11
|
+
if sys.platform.startswith('linux'):
|
|
12
|
+
print("\n[INFO] Linux detected: Ensure the following system libraries are installed:")
|
|
13
|
+
print("\n[INFO] Run the following command to install the necessary Qt dependencies:")
|
|
14
|
+
print("\n[Ubuntu/Debian] sudo apt-get install libxcb-xinerama0 libxcb1 libx11-xcb1 libxcb-cursor0")
|
|
15
|
+
print("[Fedora] sudo dnf install libxcb libX11-xcb libxcb-cursor")
|
|
16
|
+
print("[Arch] sudo pacman -S libxcb xcb-util xcb-util-cursor\n")
|
|
17
|
+
|
|
18
|
+
# Run the platform check before proceeding
|
|
19
|
+
check_linux_dependencies()
|
|
20
|
+
|
|
7
21
|
# Define the setup configuration
|
|
8
22
|
setup(
|
|
9
23
|
name="arcjetCV",
|
|
10
|
-
version="0.0.4.
|
|
24
|
+
version="0.0.4.dev8", # Set the version directly here
|
|
11
25
|
author="arcjetCV team",
|
|
12
26
|
description="Package to process arcjet videos and segment the edge of the shock and of the sample",
|
|
13
27
|
long_description=long_description,
|
|
@@ -53,4 +67,4 @@ setup(
|
|
|
53
67
|
"Topic :: Scientific/Engineering",
|
|
54
68
|
"Topic :: Scientific/Engineering :: Physics",
|
|
55
69
|
],
|
|
56
|
-
)
|
|
70
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import urllib.request
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def download_large_file(url, local_filename):
|
|
6
|
+
"""Downloads the file from the specified URL if it doesn't already exist locally."""
|
|
7
|
+
if not os.path.exists(local_filename):
|
|
8
|
+
print(f"Downloading {url} to {local_filename}...")
|
|
9
|
+
urllib.request.urlretrieve(url, local_filename)
|
|
10
|
+
print(f"Downloaded {local_filename}.")
|
|
11
|
+
else:
|
|
12
|
+
print(f"{local_filename} already exists, skipping download.")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def download_test_video():
|
|
16
|
+
"""Ensures that the test video 'arcjet_test.mp4' is downloaded."""
|
|
17
|
+
base_url = "https://github.com/magnus-haw/arcjetCV/raw/main/arcjetCV/tests/"
|
|
18
|
+
file_to_download = "arcjet_test.mp4"
|
|
19
|
+
|
|
20
|
+
download_large_file(
|
|
21
|
+
base_url + file_to_download,
|
|
22
|
+
os.path.join(os.path.dirname(__file__), file_to_download),
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Automatically download the video when the function is called
|
|
27
|
+
download_test_video()
|
|
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
|