Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Dockerized implementaion of person tracking
Qt 6.12 LTS is out! See what's new in the release blog

Dockerized implementaion of person tracking

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 464 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vipin2113106
    wrote on last edited by
    #1

    Hi,
    I've been banging my head in moving my local repo to dockerized implementation, but i am stuck in an infinite loop because of Qt errors. The error I am getting is this:
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/conda/bin/platforms" ...
    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

    I've also noticed when I switch to opencv version= 4.1.2.30 it starts working I can then see opencv windows and everything works flowlessly, but as soon as I switch to opencv version= 4.5.5.64 it stops working. I want to stick to opencv version= 4.5.5.64. Please can anyone guide me what dependency i should install to make it working or may be there is something that I am missing.

    YOLOv5 🚀 by Ultralytics, GPL-3.0 license

    Start FROM NVIDIA PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch

    FROM nvcr.io/nvidia/pytorch:22.04-py3
    RUN rm -rf /opt/pytorch # remove 1.2GB dir

    Downloads to user config dir

    #ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/

    Install linux packages

    RUN apt-get update && apt-get autoclean
    RUN apt-get update && apt-get install -y --no-install-recommends python3-pip
    RUN pip3 install pyqt5
    RUN apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
    RUN apt-get install -y libsm6 libxrender1 libfontconfig1
    ENV QT_DEBUG_PLUGINS=1

    Install pip packages

    COPY requirements.txt .
    RUN python -m pip install --upgrade pip
    RUN pip uninstall -y torch torchvision torchtext Pillow
    RUN pip install --no-cache -r requirements.txt albumentations wandb gsutil notebook Pillow>=9.1.0
    torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113

    #RUN pip install opencv-contrib-python==4.1.2.30

    RUN pip install opencv-contrib-python==4.5.5.64
    RUN mkdir -p /usr/src/app
    WORKDIR /usr/src/app
    COPY . /usr/src/app
    #RUN git clone https://github.com/ultralytics/yolov5 /usr/src/yolov5

    Set environment variables

    ENV OMP_NUM_THREADS=8

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt
    • Unsolved