【发布时间】:2020-08-11 19:49:16
【问题描述】:
我正在编写使用 Hu Moment 提取功能识别手势的代码,从这里 enter link description here 但我在声明数组时遇到了问题
int matchTheState(vector<Point> present_hand_state, vector<vector<Point > > MyContours)
{
double array[MyContours.size()];
而vector<vector<point>> MyContours 的内容是用作比较值的图像声明。
错误说:
expression must have constant value (cannot call non-constecxpr function...)
function call must have a constant value in a constant expression
【问题讨论】:
标签: c++ opencv visual-c++ opencv3.0