Commit f6433257 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Python 3 compatibility with the legacy code

parent ea80e2fe
Pipeline #12363 passed with stages
in 9 minutes and 28 seconds
......@@ -12,7 +12,6 @@ def bbreg(boundingbox, reg):
# calibrate bouding boxes
if reg.shape[1] == 1:
print "reshape of reg"
pass # reshape of reg
w = boundingbox[:,2] - boundingbox[:,0] + 1
h = boundingbox[:,3] - boundingbox[:,1] + 1
......@@ -168,7 +167,7 @@ _tstart_stack = []
def tic():
_tstart_stack.append(time())
def toc(fmt="Elapsed: %s s"):
print fmt % (time()-_tstart_stack.pop())
print(fmt % (time()-_tstart_stack.pop()))
def detect_face(img, minsize, PNet, RNet, ONet, threshold, fastresize, factor):
......
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