Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/391.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 异常捕获已禁用-无法捕获此异常_Javascript_Opencv_Exception_Opencv Solvepnp - Fatal编程技术网

Javascript 异常捕获已禁用-无法捕获此异常

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

我使用的是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)
当我运行
节点--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);
有人知道这里发生了什么吗