sync
This commit is contained in:
parent
e026554f41
commit
c94fec9d97
@ -180,16 +180,16 @@ class yoloserv(object):
|
||||
return '{ "status":0, "remark":"OK", "data":{} }'
|
||||
|
||||
status = self.facematcher.load(dev1, dev2, img1, img2)
|
||||
if not status:
|
||||
return '{ "status":777242, "remark":"face loading failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (self.facematcher.errstr)
|
||||
if status is not None:
|
||||
return '{ "status":777242, "remark":"face loading failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (status)
|
||||
|
||||
status = self.facematcher.get_faces()
|
||||
if not status:
|
||||
return '{ "status":777245, "remark":"face finding failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (self.facematcher.errstr)
|
||||
if status is not None:
|
||||
return '{ "status":777245, "remark":"face finding failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (status)
|
||||
|
||||
status = self.facematcher.compute_scores()
|
||||
if not status:
|
||||
return '{ "status":777243, "remark":"face scoring failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (self.facematch.errstr)
|
||||
if status is not None:
|
||||
return '{ "status":777243, "remark":"face scoring failed", "guilty_param":"facematch", "guilty_value":"%s" }' % (status)
|
||||
|
||||
jsonstr = self.facematcher.get_scores()
|
||||
return '{ "status":0, "remark":"OK", "data":%s }' % (jsonstr)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user