2025-03-25 00:51:26 +08:00
|
|
|
/**
|
|
|
|
|
* Created by Jingyu Yan
|
|
|
|
|
* @date 2024-10-01
|
|
|
|
|
*/
|
2024-05-02 01:27:29 +08:00
|
|
|
#include <iostream>
|
|
|
|
|
#include "track_module/face_track.h"
|
|
|
|
|
#include "inspireface/recognition_module/face_feature_extraction.h"
|
|
|
|
|
#include "log.h"
|
|
|
|
|
|
|
|
|
|
using namespace inspire;
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
InspireArchive archive("test_res/pack/Pikachu");
|
|
|
|
|
|
|
|
|
|
FaceTrack track;
|
2025-03-25 00:51:26 +08:00
|
|
|
// FaceRecognition recognition(archive, true);
|
2024-05-02 01:27:29 +08:00
|
|
|
|
|
|
|
|
auto ret = track.Configuration(archive);
|
|
|
|
|
INSPIRE_LOGD("ret=%d", ret);
|
|
|
|
|
|
|
|
|
|
auto image = cv::imread("test_res/data/bulk/kun.jpg");
|
|
|
|
|
for (int i = 0; i < 10000000; ++i) {
|
|
|
|
|
CameraStream stream;
|
|
|
|
|
stream.SetDataBuffer(image.data, image.rows, image.cols);
|
|
|
|
|
stream.SetDataFormat(BGR);
|
|
|
|
|
stream.SetRotationMode(ROTATION_0);
|
|
|
|
|
|
|
|
|
|
track.UpdateStream(stream, true);
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-25 00:51:26 +08:00
|
|
|
// InspireModel model;
|
|
|
|
|
// ret = archive.LoadModel("mask_detect", model);
|
|
|
|
|
// std::cout << ret << std::endl;
|
|
|
|
|
//
|
|
|
|
|
// archive.PublicPrintSubFiles();
|
2024-05-02 01:27:29 +08:00
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|