-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
62 lines (52 loc) · 1.42 KB
/
run.bat
File metadata and controls
62 lines (52 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
echo AVer CAM520 Pro Controller - HTTP Edition
echo ==========================================
echo.
REM Try to use Python 3.12 first, then 3.11, then default python
py -3.12 --version >nul 2>&1
if not errorlevel 1 (
set PYTHON_CMD=py -3.12
echo Using Python 3.12
goto :install_deps
)
py -3.11 --version >nul 2>&1
if not errorlevel 1 (
set PYTHON_CMD=py -3.11
echo Using Python 3.11
goto :install_deps
)
python --version >nul 2>&1
if not errorlevel 1 (
set PYTHON_CMD=python
echo Using default Python
goto :install_deps
)
echo ERROR: No compatible Python version found
echo Please install Python 3.11 or 3.12 from https://www.python.org/downloads/
pause
exit /b 1
:install_deps
echo Installing/updating dependencies...
echo.
%PYTHON_CMD% -m pip install --upgrade pip
%PYTHON_CMD% -m pip install opencv-python numpy PyQt6 mediapipe pyvirtualcam requests cv2-enumerate-cameras
if errorlevel 1 (
echo ERROR: Failed to install some dependencies
echo Try running as administrator or check your Python installation
pause
exit /b 1
)
echo ✓ All dependencies installed successfully
echo.
REM Run the application
echo Launching AVer CAM520 Pro Controller...
echo.
echo IMPORTANT: Make sure your camera software is running at localhost:36680
echo You can change the port in the app if needed.
echo.
%PYTHON_CMD% main.py
if errorlevel 1 (
echo.
echo ERROR: Application crashed
pause
)