Commit bd80274b authored by Baptiste CHOCOT's avatar Baptiste CHOCOT
Browse files

add a instance in sysout from time to time

parent 910547cf
Pipeline #228748 passed with stage
in 24 seconds
......@@ -21,14 +21,23 @@ vid = sys.argv[1]
system_cache_dir = sys.argv[2]
out_dict = {}
activities = []
vid_name = vid.split('/')[-1]
out_dict['filesProcessed'] = [vid_name]
random_fail = random.random() < 1/3
out_dict['activities'] = activities
out_dict['activities'] = [] if random_fail else [{
"activity": "person_opens_facility_door",
"activityID": random.randint(1, 1000000000),
"presenceConf": random.random(),
"alertFrame": 1234,
"localization": {
"vid_name": {
"1234": 1,
"2345": 0
}
}
}]
out_dict['processingReport'] = {
"siteSpecific": {},
"fileStatuses": {
......
Markdown is supported
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