Ask Your Question

Revision history [back]

opencv_js.wasm is too large

Default size of opencv_js.wasm is ~6MB. Is there way how do decrease size of it? For example by removing unnecessary modules? My only requirements are to use keypoints algorithms.

I tryed to modify opencv_js.config.py to this white_list = makeWhiteList([core, features2d]) but result size is still ~2MB. I need max 1MB

I posted similar question to Cloudflare Workers https://community.cloudflare.com/t/opencv-in-workers/164569