Skip to content

TrackerCSRT not included in the wasm bundle #4021

@luisrudge

Description

@luisrudge

this is my dockerfile

FROM emscripten/emsdk:3.1.46

WORKDIR /src

RUN git clone --depth 1 https://github.com/opencv/opencv.git && \
    git clone --depth 1 https://github.com/opencv/opencv_contrib.git

WORKDIR /src/opencv

RUN emcmake python3 ./platforms/js/build_js.py build_wasm \
    --build_wasm \
    --disable_single_file \
    --cmake_option="-DOPENCV_EXTRA_MODULES_PATH=/src/opencv_contrib/modules" \
    --cmake_option="-DBUILD_opencv_tracking=ON"


# Copy build artifacts to the same paths expected by the release workflow
FROM alpine:3.20
WORKDIR /src/opencv/build_wasm/bin
COPY --from=0 /src/opencv/build_wasm/bin/opencv.js ./opencv.js
COPY --from=0 /src/opencv/build_wasm/bin/opencv_js.wasm ./opencv_js.wasm

These are the only trackers included:

Image

Am I doing something wrong? I tested a few trackers in python but TrackerCSRT is the best one for my situation, so I'd like to use that in the WASM build as well. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions