Invalid number of channels in input image

前端 未结 2 1292
猫巷女王i
猫巷女王i 2021-01-18 07:22

I am receiving an error when running my program, I think specifically about color manipulation in the OpenCV library.

I\'m trying to build a program that takes a vid

2条回答
  •  离开以前
    2021-01-18 08:13

    You want to do color manipulation but your image has the type CV_8U1. It has to be at least a three channel image like CV_8UC3 or CV_32F. Try a different CV_Type

    Camera.set(cv::CAP_PROP_FORMAT, CV_32F);
    

提交回复
热议问题