Skip to content

Commit

Permalink
Merge pull request #42 from locaal-ai/roy.uno_api_integration
Browse files Browse the repository at this point in the history
UNO api and UI/UX improvements
  • Loading branch information
royshil authored Oct 9, 2024
2 parents 8acb402 + fecded2 commit 7712abb
Show file tree
Hide file tree
Showing 19 changed files with 1,907 additions and 1,152 deletions.
53 changes: 27 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
# Python
*.pyc
__pycache__/
*.pyo
*.pyd
*.pyw
*.pyz
*.pyzw
*.pycachefile
*.egg-info/
dist/
build/

# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes
__MACOSX/

.env
output/
.vscode
# Python
*.pyc
__pycache__/
*.pyo
*.pyd
*.pyw
*.pyz
*.pyzw
*.pycachefile
*.egg-info/
dist/
build/

# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes
__MACOSX/

.env
output/
.vscode
.aider*
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ If you'd like to donate to help support the project, you can do so on [GitHub](h
- Perspective correction
- Image processing and binarization techniques, local, global etc.
- Output to text files (.txt, .csv, .xml)
- HTTP output via local server: HTML, JSON, XML and CSV endpoints
- [HTTP output via local server](docs/http_server.md): HTML, JSON, XML and CSV endpoints
- Call external HTTP services with the OCR data
- Import & Export configuration profiles
- Integrations: OBS (websocket), vMix (API), NewBlue FX Titler (API)
- Integrations: [OBS](https://obsproject.com/) (websocket), [vMix](docs/vmix.md) (API), [NewBlue FX Titler](https://newbluefx.com/titler-live) (API), [UNO](https://www.overlays.uno/) (API), [generic HTTP APIs](docs/out_api.md)
- Up to 30 updates/s
- Unlimited detection boxes
- Camera bump and drift correction with stabilization algorithm
- Unlimited devices or open instances on the same device
- Detect any scoreboard fonts, general fonts and even "dot" indicators
- Translated to 12 languages (English, German, Spanish, French, Italian, Japanese, Korean, Dutch, Polish, Portugese, Russian, Chinese)
- Collect OCR training data and annotate it with a built-in tool
- [Collect OCR training data](docs/data_annotation.md) and annotate it with a built-in tool

Price: FREE.

Expand Down Expand Up @@ -101,7 +101,7 @@ For Mac and Windows there are further dependencies in `requirements-mac.txt` and

There are some extra steps for installation on Windows:
- Download and install https://visualstudio.microsoft.com/visual-cpp-build-tools/ C++ Build Tools
- Build the win32DeviceEnum pyd by `$ cd win32DeviceEnum && python.exe setup.py build_ext --inplace`
- Build the win32DeviceEnum pyd by `$ cd src/win32DeviceEnum && python.exe setup.py build_ext --inplace`

#### MacOS

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ If you'd like to donate to help support the project, you can do so on [GitHub](h
- Perspective correction
- Image processing and binarization techniques, local, global etc.
- Output to text files (.txt, .csv, .xml)
- HTTP output via local server: HTML, JSON, XML and CSV endpoints
- [HTTP output via local server](http_server.md): HTML, JSON, XML and CSV endpoints
- Call external HTTP services with the OCR data
- Import & Export configuration profiles
- Integrations: OBS (websocket), vMix (API), NewBlue FX Titler (API)
- Integrations: [OBS](https://obsproject.com/) (websocket), [vMix](vmix.md) (API), [NewBlue FX Titler](https://newbluefx.com/titler-live) (API), [UNO](https://www.overlays.uno/) (API), generic HTTP APIs
- Up to 30 updates/s
- Unlimited detection boxes
- Template fields: Derived from other fields and optional extra text
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ opencv-python==4.10.0.84
pillow
platformdirs
pyinstaller==6.10.0
pyside6
pyside6==6.7.3
python-dotenv
requests
tesserocr
Expand Down
10 changes: 8 additions & 2 deletions scoresight.spec
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ datas = [
sources = [
'src/api_output.py',
'src/base_video_capture.py',
'src/box_settings_ui_handler.py',
'src/camera_info.py',
'src/camera_view.py',
'src/camera_thread.py',
'src/camera_view.py',
'src/defaults.py',
'src/file_output.py',
'src/frame_stabilizer.py',
Expand All @@ -63,14 +64,15 @@ sources = [
'src/main.py',
'src/mainwindow.py',
'src/ndi.py',
'src/ocr_training_data.py',
'src/obs_websocket.py',
'src/ocr_training_data.py',
'src/resizable_rect.py',
'src/resource_path.py',
'src/sc_logging.py',
'src/screen_capture_source.py',
'src/source_view.py',
'src/storage.py',
'src/template_fields.py',
'src/tesseract.py',
'src/text_detection_target.py',
'src/training_dojo.py',
Expand All @@ -85,8 +87,12 @@ sources = [
'src/ui_update_available.py',
'src/ui_url_source.py',
'src/ui_video_settings.py',
'src/uno_output.py',
'src/uno_ui_handler.py',
'src/update_check.py',
'src/video_settings.py',
'src/vmix_output.py',
'src/vmix_ui_handler.py',
]

if args.win:
Expand Down
20 changes: 20 additions & 0 deletions scripts/compile_ui.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Directory containing the .ui files
UI_DIR="$(dirname "$0")/../src"
# Directory to output the compiled .py files
OUTPUT_DIR=$UI_DIR

# Ensure the output directory exists
mkdir -p "$OUTPUT_DIR"

# Compile each .ui file in the UI_DIR
for ui_file in "$UI_DIR"/*.ui; do
# Get the base name of the file (without extension)
base_name=$(basename "$ui_file" .ui)
echo "Compiling $ui_file to $OUTPUT_DIR/ui_${base_name}.py"
# Compile the .ui file to a .py file
pyside6-uic "$ui_file" -o "$OUTPUT_DIR/ui_${base_name}.py"
done

echo "UI files compiled successfully."
Loading

0 comments on commit 7712abb

Please sign in to comment.