making the program can generate cannyImg itself but not from opencv