-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Description
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:

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!