效果1 识别摩托
const char* classNames[] = { “背景”, “飞机”, “自行车”, “鸟”, “船”, “瓶子”, “大汽车”, “小汽车”, “猫”, “椅子”, “奶牛”, “餐桌”, “狗”, “马”, “机车”, “人”, “花盆植物”, “羊”, “沙发”, “火车”, “tv监视器” };
String file_path = parser.getPathToApplication() + "/";
String modelConfiguration = file_path + "xx.prototxt";
String modelBinary = file_path + "model.caffemodel";
try
{
//加载深度神经网络模型
dnn::Net net = readNetFromCaffe(modelConfiguration, modelBinary);
if (net.empty())
{
cerr
关注
打赏