Javascript 异常捕获已禁用-无法捕获此异常
我使用的是mjyc/opencv.js版本,当我运行cv.solvePnP功能时,我得到了这个Javascript 异常捕获已禁用-无法捕获此异常,javascript,opencv,exception,opencv-solvepnp,Javascript,Opencv,Exception,Opencv Solvepnp,我使用的是mjyc/opencv.js版本,当我运行cv.solvePnP功能时,我得到了这个 /home/madhan/solvingpnp/node_modules/@mjyc/opencv.js/opencv.js:85 throw ex ^ 6410192 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABL
/home/madhan/solvingpnp/node_modules/@mjyc/opencv.js/opencv.js:85
throw ex
^
6410192 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
(Use `node --trace-uncaught ...` to show where the exception was thrown)
当我运行节点--trace uncaught pnp.js
时,我得到了这个结果
/home/madhan/solvingpnp/node_modules/@mjyc/opencv.js/opencv.js:85
throw ex
^
6410192 - Exception catching is disabled, this exception cannot be caught. Compile with -s DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
Thrown at:
at /home/madhan/solvingpnp/node_modules/@mjyc/opencv.js/opencv.js:85:15
at emit (events.js:310:20)
at internal/process/execution.js:164:25
这是我得到错误的代码块
var success = cv.solvePnP(obj_pts, img_pts, cam_mat, dist_coeff,rvec,tvec,true);
console.log(success);
有人知道这里发生了什么吗