报错Error: CalcHist - object has no property: ranges
at Error (native)
at calcHistogram (/app/histogram_opencv.js:30:19)
at calcImageSimilarity (/app/histogram_opencv.js:35:17)
at processImages (/app/histogram_opencv.js:60:28)
at Object. (/app/histogram_opencv.js:70:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
使用官方进行读取图片并进行直方图计算 代码如下
打印的图片数据如下
报错Error: CalcHist - object has no property: ranges at Error (native) at calcHistogram (/app/histogram_opencv.js:30:19) at calcImageSimilarity (/app/histogram_opencv.js:35:17) at processImages (/app/histogram_opencv.js:60:28) at Object. (/app/histogram_opencv.js:70:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)