【发布时间】:2020-09-02 05:29:36
【问题描述】:
我正在使用opencv.js,当我调用Mat类的构造函数时出现错误
new cv.Mat(100, 100)
opencv.js:30 Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'width' in 100
at Object.toWireType (opencv.js:30)
at Mat.constructor_body (opencv.js:30)
at Mat.<anonymous> (opencv.js:30)
at new Mat (eval at createNamedFunction (opencv.js:30), <anonymous>:4:34)
at Object.window.cv.onRuntimeInitialized (SplashView.vue?f176:10)
at doRun (opencv.js:30)
at run (opencv.js:30)
at runCaller (opencv.js:30)
at removeRunDependency (opencv.js:30)
at receiveInstance (opencv.js:30)
【问题讨论】:
标签: javascript opencv image-processing face-detection