From 6b92e29403c264030fc5b2e23ca66d2c9bf7535e Mon Sep 17 00:00:00 2001 From: baiyfbupt Date: Wed, 20 Jun 2018 19:45:34 +0800 Subject: [PATCH] code clean --- fluid/face_detection/infer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fluid/face_detection/infer.py b/fluid/face_detection/infer.py index f72adeda..32aeeac7 100644 --- a/fluid/face_detection/infer.py +++ b/fluid/face_detection/infer.py @@ -3,7 +3,6 @@ import time import numpy as np import argparse import functools -import cv2 from PIL import Image from PIL import ImageDraw @@ -281,7 +280,7 @@ def infer(args, batch_size, data_args): f = open('./infer_results/' + image_class.encode('utf-8') + '/' + image_name.encode('utf-8')[:-4] + '.txt', 'w') - # write_to_txt(image_path, f, dets) + write_to_txt(image_path, f, dets) # draw_bounding_box_on_image(image_path, dets, args.confs_threshold) print "Done" -- GitLab