1 | initial version |
In line findContours I had to change img_mask to ~img_mask, to invert colors, since black is the target color for boundingRect,
im2, contours, hierarchy = cv2.findContours(~img_mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Thanks for the help mcclintic_!!
2 | No.2 Revision |
In line findContours I had to change img_mask to ~img_mask, ~img_mask
, to invert colors, since black is the target color for boundingRect,
im2, contours, hierarchy = cv2.findContours(~img_mask, cv2.RETR_TREE, Thanks for the help mcclintic_!!
3 | No.3 Revision |
In line findContours I had to change img_mask to ~img_mask
, to invert colors, since black is the target color for boundingRect,
im2, contours, hierarchy = cv2.findContours(~img_mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Thanks for the help mcclintic_!!
4 | No.4 Revision |
In line findContours I had to change img_mask to ~img_mask
, to invert colors, since black white is the target color for boundingRect,
im2, contours, hierarchy =
cv2.findContours(~img_mask, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
Thanks for the help mcclintic_!!