1
我已經實現了使用Kurento OpenCV模塊的算法,並且我需要將每個幀的地標記錄到文本文件以供日後分析,我如何能夠最好地實現這一目標?如何使用自定義Kurento OpenCV模塊登錄到文本文件
我試圖創建在構造函數中的文件:
myfile.open("/home/farai/Desktop/example.txt");
於是我寫信給每個幀的文件發現:
for(int j = 0; j < shapes[i].NPoints(); j++){
myfile << shapes[i][j].x << ":" << shapes[i][j].y <<" ";
}
myfile<<"\n";
這是我已經試過,但我不沒有任何文件正在創建。