Skip to content

Commit

Permalink
update run_test and run_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
MulongXie committed Jul 6, 2021
1 parent 5b2e7a9 commit 1e343b0
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 3 deletions.
Binary file modified detect_compo/__pycache__/ip_region_proposal.cpython-35.pyc
Binary file not shown.
3 changes: 1 addition & 2 deletions detect_compo/ip_region_proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def compo_detection(input_img_path, output_root, uied_params,

# *** Step 1 *** pre-processing: read img -> get binary map
org, grey = pre.read_img(input_img_path, resize_by_height)
binary = pre.binarization(org, grad_min=int(uied_params['min-grad']), show=show, wait_key=wai_key)
binary = pre.binarization(org, grad_min=int(uied_params['min-grad']))

# *** Step 2 *** element detection
det.rm_line(binary, show=show, wait_key=wai_key)
Expand Down Expand Up @@ -115,4 +115,3 @@ def compo_detection(input_img_path, output_root, uied_params,
file.save_corners_json(pjoin(ip_root, name + '.json'), uicompos)
file.save_corners_json(pjoin(output_root, 'compo.json'), uicompos)
print("[Compo Detection Completed in %.3f s] %s" % (time.clock() - start, input_img_path))
if show: cv2.destroyAllWindows()
Binary file not shown.
Binary file modified detect_compo/lib_ip/__pycache__/ip_detection.cpython-35.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion detect_compo/lib_ip/ip_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def is_valid_line(line):
binary[start_row: end_row] = 0

if show:
cv2.imshow('no-line', binary)
cv2.imshow('no-line binary', binary)
if wait_key is not None:
cv2.waitKey(wait_key)

Expand Down

0 comments on commit 1e343b0

Please sign in to comment.