You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on opencv4nodejs means the extension takes a long time (20 minutes+) to build, and the build itself is brittle due to the use of CMake (which is only needed to build opencv4nodejs).
Solution
MagicCardZoom only depends on opencv4nodejs for offline tasks such as indexing the images, however it is not used by the extension when running in the browser (since it is a NodeJS package).
In theory we could replace all usages of opencv4nodejs with calls to opencv.js (see my instructions here on how to compile any function from OpenCV), or other more lightweight image libraries. This way we can drop the dependencies on opencv4nodejs and CMake, and make the build faster and more robust.
The text was updated successfully, but these errors were encountered:
## Problem
Depending on
opencv4nodejs
means the extension takes a long time (20 minutes+) to build, and the build itself is brittle due to the use ofCMake
(which is only needed to buildopencv4nodejs
).Solution
MagicCardZoom only depends on
opencv4nodejs
for offline tasks such as indexing the images, however it is not used by the extension when running in the browser (since it is a NodeJS package).In theory we could replace all usages of
opencv4nodejs
with calls toopencv.js
(see my instructions here on how to compile any function from OpenCV), or other more lightweight image libraries. This way we can drop the dependencies onopencv4nodejs
andCMake
, and make the build faster and more robust.The text was updated successfully, but these errors were encountered: