Skip to content

Commit

Permalink
remove artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
cwlacewe committed Oct 14, 2024
1 parent fcc9178 commit fb5e262
Showing 1 changed file with 0 additions and 106 deletions.
106 changes: 0 additions & 106 deletions tests/unit_tests/meta_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -367,112 +367,6 @@ Json::Value Meta_Data::construct_find_video_with_dynamic_metadata() {
return tuple;
}

Json::Value Meta_Data::construct_find_video_withop(Json::Value operations) {
Json::Value tuple;

Json::Value results;
results["blob"] = true;
results["limit"] = 1;

Json::Value video;
video["results"] = results;
video["operations"].append(operations);

Json::Value find_video;
find_video["FindVideo"] = video;

tuple.append(find_video);
return tuple;
}

Json::Value Meta_Data::construct_find_image_with_dynamic_metadata() {
Json::Value tuple;

Json::Value cons;
cons["category"][0] = "==";
cons["category"][1] = "image_dynamic_metadata";

Json::Value metacons;
metacons["objectID"][0] = "==";
metacons["objectID"][1] = "face";

Json::Value results;
results["blob"] = true;

Json::Value link_image;
link_image["ref"] = 1;

Json::Value image;
image["constraints"] = cons;
image["_ref"] = 1;

Json::Value find_image;
find_image["FindImage"] = image;

tuple.append(find_image);

Json::Value bimage;
bimage["metaconstraints"] = metacons;
bimage["link"] = link_image;

Json::Value find_image_bbox;
find_image_bbox["FindImage"] = bimage;

tuple.append(find_image_bbox);

return tuple;
}

Json::Value Meta_Data::construct_find_video_with_dynamic_metadata() {
Json::Value tuple;

Json::Value cons;
cons["category"][0] = "==";
cons["category"][1] = "dynamic_metadata";

Json::Value metacons;
metacons["objectID"][0] = "==";
metacons["objectID"][1] = "face";

Json::Value results;
results["blob"] = true;

Json::Value link_video;
link_video["ref"] = 1;
Json::Value link_frame;
link_frame["ref"] = 2;

Json::Value video;
video["constraints"] = cons;
video["_ref"] = 1;

Json::Value find_video;
find_video["FindVideo"] = video;

tuple.append(find_video);

Json::Value fvideo;
fvideo["frameconstraints"] = false;
fvideo["_ref"] = 2;
fvideo["link"] = link_video;

Json::Value find_video_frame;
find_video_frame["FindVideo"] = fvideo;

tuple.append(find_video_frame);

Json::Value bvideo;
bvideo["metaconstraints"] = metacons;
bvideo["link"] = link_frame;

Json::Value find_video_bbox;
find_video_bbox["FindVideo"] = bvideo;

tuple.append(find_video_bbox);

return tuple;
}

std::string *Meta_Data::read_blob(std::string &fname) {
std::string video;
std::ifstream video_file(fname,
Expand Down

0 comments on commit fb5e262

Please sign in to comment.