Update OpenCV dependency to headless version in requirements and setup files

- Replaced 'opencv-python' with 'opencv-python-headless' in both requirements.txt and setup.py to reduce unnecessary GUI dependencies.
- Added a new .gitkeep file in the logs directory to ensure it is tracked in version control.
- Maintained existing code logic while improving dependency management.
This commit is contained in:
Timothyxxx
2025-08-20 01:26:24 +08:00
parent 492c910e94
commit b3e1c0344d
3 changed files with 4 additions and 4 deletions

0
logs/.gitkeep Normal file
View File

View File

@@ -7,7 +7,7 @@ pytz~=2024.1
transformers~=4.35.2
torch~=2.5.0
accelerate
opencv-python~=4.8.1.78
opencv-python-headless~=4.8.1.78
matplotlib~=3.7.4
pynput~=1.7.6
pyautogui~=0.9.54
@@ -28,7 +28,7 @@ PyGetWindow
rapidfuzz
pyacoustid
pygame
opencv-python
opencv-python-headless
ImageHash
scikit-image
librosa

View File

@@ -47,7 +47,7 @@ setup(
"transformers~=4.35.2",
"torch~=2.5.0",
"accelerate",
"opencv-python~=4.8.1.78",
"opencv-python-headless~=4.8.1.78",
"matplotlib~=3.7.4",
"pynput~=1.7.6",
"pyautogui~=0.9.54",
@@ -68,7 +68,7 @@ setup(
"rapidfuzz",
"pyacoustid",
"pygame",
"opencv-python",
"opencv-python-headless",
"ImageHash",
"scikit-image",
"librosa",