In this case we only need to double check the two needed values. Looking at the Python code you posted above, I see the code skips one or two chars: str(base64_picture)[2:]. That might be it.
1
st Edit:
I doubt that it matters, but just in case, the TIMESTAMP numerical value does not need quotation marks, otherwise it would be considered text.
I can't test, yet.
2
nd Edit:
It seems that api.credo.science is down.
3
rd Edit:
According to their
source code, for a detection to be visible it has to fulfill two conditions
1-frame_content is a "valid image":
frame_content = base64.b64decode(d['frame_content'])
visible = True
if (not frame_content) or (not validate_image(frame_content)):
visible = False
if visible:
if not r:
r = get_redis_connection(write=False)
2-timestamp is later than the user's "start_time":
start_time = r.zscore(cache.make_key('start_time'), request.user.id)
if start_time:
visible = d['timestamp'] > start_time
else:
visible = False
I think the tests do not fulfill the second condition. They do get stored, but they are not visible.
4
th Edit:
I tried again with a recent timestamp value:
var
dt: TDateTime;
ut: int64;
...
begin
dt := Now();
ut := (DateTimeToUnix(dt)-1)*1000+248;
passing it in the detection stream:
detection:=TStringStream.Create('{"detections": [{"frame_content": ......, "timestamp": '+intToStr(ut)+',....
It is visible, dated 2018-07-30.