Skip to content

Conversation

@kalwalt
Copy link
Member

@kalwalt kalwalt commented Oct 27, 2025

This pull request introduces several improvements to the build system, updates dependencies, and cleans up logging throughout the codebase. The most significant changes are the upgrade to OpenCV 4.12.0 and Emscripten 3.1.69, enhancements to Docker-based build scripts for cross-platform compatibility, and the removal of verbose console logging in the TypeScript sources.

Dependency and Build System Updates:

  • Upgraded the OpenCV submodule to version 4.12.0 and updated the Emscripten Docker image to 3.1.69 in all build scripts and CI workflows, along with new build flags to further reduce the final bundle size and disable unnecessary CPU features. (.github/workflows/build_opencv.yml, opencv, README.md, build_w_docker.sh, build_w_docker.bat) [1] [2] [3] [4] [5]

  • Added a new build_w_docker.bat script to support building the project on Windows using Docker, improving cross-platform developer experience. (build_w_docker.bat)

Documentation Improvements:

  • Overhauled the README.md to clarify project goals, update supported OpenCV and Emscripten versions, and provide clearer instructions for building on different platforms. (README.md)

Code Cleanliness and Logging:

  • Removed or commented out verbose console.log statements from the TypeScript source files to reduce noise during development and production runs. (src/Workers/WebARKitCVWorkers.ts, src/Workers/Worker.ts, src/core/WebARKitCoreCV.ts, examples/example_image.html) [1] [2] [3] [4] [5] [6] [7] [8]

Build Script Enhancements:

  • Improved the Docker-based build scripts (build_w_docker.sh and new build_w_docker.bat) to handle permissions more robustly, ensure output directories exist, and reliably copy build artifacts to the correct location. (build_w_docker.sh, build_w_docker.bat) [1] [2]

- Created a new Windows batch script `build_w_docker.bat` for building OpenCV.js using Docker, including user permissions handling and output directory management.
- Updated the existing `build_w_docker.sh` script to improve error handling and ensure proper directory permissions, while aligning the Docker image version with the new batch script.
- Modified the OpenCV submodule to update to the latest commit.
…and improve performance.

- Commented out console logs in example_image.html, WebARKitCVWorkers.ts, Worker.ts, and WebARKitCoreCV.ts.
@kalwalt kalwalt self-assigned this Oct 27, 2025
@kalwalt kalwalt added 🚀 enhancement New feature or request ⚒️ github_actions All about github actions and workflows used by the project ⌨️ Typescript About Typescript issues and related features 🔬 OpenCV Improvements to OpenCV code and building the source code dependencies Pull requests that update a dependency file labels Oct 27, 2025
@kalwalt kalwalt merged commit 60c61de into dev Oct 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ⚒️ github_actions All about github actions and workflows used by the project 🔬 OpenCV Improvements to OpenCV code and building the source code 🚀 enhancement New feature or request ⌨️ Typescript About Typescript issues and related features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants