1

我正在使用 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 DISABLE_EXCEPTION_CATCHING=0 or DISABLE_EXCEPTION_CATCHING=2 to catch.
(Use `node --trace-uncaught ...` to show where the exception was thrown)

当我跑步时node --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);

有人明白这里发生了什么吗?

4

0 回答 0