Commit 807f5e33 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10055 from mabdullahrafique:patch-1

parents 11330b92 c180047b
......@@ -55,7 +55,7 @@ def main():
if not (16 <= h <= 64 and w <= 1.2*h):
continue
pad = max(h-w, 0)
x, w = x-pad/2, w+pad
x, w = x - (pad // 2), w + pad
cv2.rectangle(frame, (x, y), (x+w, y+h), (0, 255, 0))
bin_roi = bin[y:,x:][:h,:w]
......@@ -98,3 +98,4 @@ def main():
if __name__ == '__main__':
main()
cv2.destroyAllWindows()
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