mirror of
https://github.com/deepinsight/insightface.git
synced 2026-01-14 20:50:18 +00:00
21 lines
537 B
C++
21 lines
537 B
C++
#include <iostream>
|
|
#include <inspireface.h>
|
|
|
|
int main() {
|
|
std::string resourcePath = "test_res/pack/Pikachu";
|
|
HResult ret = HFReloadInspireFace(resourcePath.c_str());
|
|
if (ret != HSUCCEED) {
|
|
HFLogPrint(HF_LOG_ERROR, "Failed to launch InspireFace: %d", ret);
|
|
return 1;
|
|
}
|
|
|
|
// Switch to another resource
|
|
ret = HFReloadInspireFace("test_res/pack/Megatron");
|
|
if (ret != HSUCCEED) {
|
|
HFLogPrint(HF_LOG_ERROR, "Failed to reload InspireFace: %d", ret);
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|