I have a task where I am processing a video stream as a batch of images, I have assigned a pointer and am processing the images as a string initially. This is the part of the code where the error occurs
String *Img_seq;
Img_seq = new string[200].c_str();
Mat src, img, img1, image, img_dst, frame;
double TotalTime = 0.0, AveTime = 0.0;
char imgInPath[256], imgOutPath[256], imgOutPath1[256], imgOutPath2[256], BboxPath[256];
string imgpath;
std::vector<cv::String> filenames;
cv::String folder;
capture >> frame;
stringstream ss;
rectangle(frame, cv::Point(10, 2), cv::Point(100, 20),
cv::Scalar(255, 255, 255), -1);
ss << capture.get(CV_CAP_PROP_POS_FRAMES);
Img_seq[200] = ss.str();
keyboard = waitKey( 30 );
The error which is occurring is:
error: cannot convert ‘std::__cxx11::string* {aka std::__cxx11::basic_string}’ to ‘cv::String’ in assignment
Img_seq = new string[200].c_str();
what do I do in this case, I am new to this so appoligies for the basic question