Skip to content

Lucas/docker setup#9

Merged
rxv801 merged 5 commits into
mainfrom
lucas/docker-setup
Jun 12, 2026
Merged

Lucas/docker setup#9
rxv801 merged 5 commits into
mainfrom
lucas/docker-setup

Conversation

@lukitasxue

@lukitasxue lukitasxue commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

docker readme for py CV, camera test in docker using funciton and images, also added CI tests
this PR is not part of Electron, its just dockerization, ignore the warnings

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Docker-based packaging and a simple image-driven test harness for the Python CV worker, aiming to make the phone-detection pipeline easier to run consistently without a local Python environment.

Changes:

  • Add a python/Dockerfile that installs CV runtime deps, installs Python requirements, and downloads the YOLOX-S ONNX model during build.
  • Add Docker-focused usage documentation (python/docker_README.md) and a .dockerignore for cleaner build contexts.
  • Add a small CLI script to run phone detection on a static image (python/cv/phone_image_test.py).

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 3 comments.

File Description
python/Dockerfile Builds a slim Python image with OpenCV/MediaPipe runtime libs, installs deps, and fetches the YOLOX model.
python/docker_README.md Documents Docker and local workflows for running image-based detection and webcam testing.
python/cv/phone_image_test.py Adds a simple command-line entry point to run detect_phone() on an image file.
python/.dockerignore Excludes venv/caches and model artifacts from Docker build context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread python/docker_README.md
Download the model:

```bash
./setup.sh
Comment thread python/Dockerfile
Comment on lines +17 to +19
# Download YOLOX-S phone detection model into the image
RUN mkdir -p models && \
python -c "import urllib.request; urllib.request.urlretrieve('https://github.com/Megvii-BaseDetection/YOLOX/releases/download/0.1.1rc0/yolox_s.onnx', 'models/yolox_s.onnx')"
from phone_detector import detect_phone


def main():

@rxv801 rxv801 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After pr 14 we need to add the gaze detector in it too.

@rxv801 rxv801 merged commit e480a68 into main Jun 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants