用於AAM訓練的資料集 asf檔案C 讀取

2021-08-20 12:41:20 字數 771 閱讀 4422

aam資料集訓練檔案有asf格式的,轉化為正常的txt格式如下:

人臉特徵點共58個,分為7個路徑,現用c++程式將其讀取,並用不同顏色在原圖上把不同路徑的特徵點表示出來。注意:採集的座標已經歸一化,需要將其轉化為原始座標。

#include #include #include #include int main()

std::vectorcoords;

cv::mat contours;

std::string line;

while (std::getline(file, line))

else if (line.size() < 10)

else

else if (path == "1")

else if (path == "2")

else if (path == "3")

else if (path == "4")

else if (path == "5")

else if (path == "6")}}

} }imshow("pic", img);

cv::waitkey(0);

return 0;

}

結果顯示:

YOLO訓練自己的資料集

很高興現在已經有幾百人通過我的教程成功地使用yolo處理自己的資料集。最近一直在用cnn的模型做影象二分類,但苦於效果不佳,於是把影象分類問題轉作目標識別問題。做目標識別選擇了yolo you only look once 乙個最近推出的方法,突出的優點就是速度快。查詢了網上關於yolo的訓練自己資...

SSD訓練自己的資料集(一) 製作VOC資料集

import os path 123 filelist os.listdir path 該資料夾下所有的檔案 包括資料夾 count 0 for file in filelist print file for file in filelist 遍歷所有檔案 olddir os.path.join p...

mmdetection訓練自己資料集的配置詳情記錄

檢測attention 原始碼注釋發布於我的github 近期更新到最新版 後面有些語法在csdn的markdown上不支援,導致顯示bug,我就懶得改了,有需求直接訪問原部落格檢視。for version 0.6.0 訓練需要改動的配置為 以一張的車分割為例。檔案結構 如圖 其中car.json是...