i have work on code for recognition hand gesture using Hu Moment extraction feature, from here enter link description here but I have a problem for declaring an array
int matchTheState(vector<Point> present_hand_state, vector<vector<Point > > MyContours)
{
double array[MyContours.size()];
while the contents of the vector<vector<point>> MyContours
is an image declaration that is used as a comparison value.
the error said:
expression must have constant value (cannot call non-constecxpr function...)
function call must have a constant value in a constant expression