rbanfield commited on
Commit
a1be92c
·
1 Parent(s): 9372a3c
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ def run(input_image):
12
  cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
13
  p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
14
  j = json.loads(p.stdout.read().decode("utf-8"))
 
15
  i = Image.open(output_image_filename)
16
 
17
  return i, j
 
12
  cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
13
  p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
14
  j = json.loads(p.stdout.read().decode("utf-8"))
15
+ print(j)
16
  i = Image.open(output_image_filename)
17
 
18
  return i, j