Commit c49ee7d7 authored by Marc Duez's avatar Marc Duez
Browse files

main.cpp : vidjil produce sample field in json output

parent 78440e65
......@@ -1462,12 +1462,25 @@ int main (int argc, char **argv)
JsonArray json_timestamp;
JsonArray jsonSortedWindows = windowsStorage->sortedWindowsToJsonArray(json_data_segment,
JsonList *json_samples;
json_samples=new JsonList();
json_samples->add("number", "1");
JsonArray json_original_names;
json_samples->add("original_names", json_original_names);
JsonArray json_order;
json_samples->add("order", json_order);
json->add("vidjil_json_version", VIDJIL_JSON_VERSION);
json->add("samples", *json_samples);
json->add("timestamp", json_timestamp);
json->add("commandline", stream_cmdline.str());// TODO: escape "s in argv
json->add("segmentation_info", stream_segmentation_info.str());
......@@ -1479,7 +1492,7 @@ int main (int argc, char **argv)
json->add("windows", jsonSortedWindows);
//Added edges in the json output file
json->add("links", jsonLevenshtein);
//json->add("links", jsonLevenshtein);
out_json << json->toString();
delete index ;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment