Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

add pyinstaller spec

roryclear6ecbbf067de9
diff --git a/clearcam.spec b/clearcam.spec
new file mode 100644
index 0000000..a25cea8
--- /dev/null
+++ b/clearcam.spec
@@ -0,0 +1,57 @@
+# -*- mode: python ; coding: utf-8 -*-
+from PyInstaller.utils.hooks import collect_submodules, collect_data_files
+
+hiddenimports = collect_submodules("tinygrad")
+datas = collect_data_files("tinygrad")
+
+# Add your additional required imports
+hiddenimports += [
+ 'cv2',
+ 'scipy.optimize._lsap', # This is the actual module for linear_sum_assignment
+ 'numpy',
+ "ctypes",
+ "ctypes.util",
+]
+
+a = Analysis(
+ ['clearcam.py'],
+ pathex=[],
+ binaries=[],
+ datas=datas,
+ hiddenimports=hiddenimports,
+ hookspath=[],
+ hooksconfig={},
+ runtime_hooks=[],
+ excludes=[],
+ noarchive=True,
+ optimize=0,
+)
+pyz = PYZ(a.pure)
+
+exe = EXE(
+ pyz,
+ a.scripts,
+ [],
+ exclude_binaries=True,
+ name='clearcam',
+ debug=False,
+ bootloader_ignore_signals=False,
+ strip=False,
+ upx=True,
+ console=True,
+ disable_windowed_traceback=False,
+ argv_emulation=False,
+ target_arch=None,
+ codesign_identity=None,
+ entitlements_file=None,
+)
+coll = COLLECT(
+ exe,
+ a.binaries,
+ a.datas,
+ strip=False,
+ upx=True,
+ upx_exclude=[],
+ name='clearcam',
+)
+# todo tinygrad needs to be added manually
\ No newline at end of file