draw a rectangle in keras draw_box
model = load_model("modelname.h5")
draw a rectangle in keras draw_box
model = load_model("modelname.h5")
draw a rectangle in keras draw_box
(_, Contours ,_) = cv2.findContours(Image,cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)
for area in Contours:
(x, y, w, h) = cv2.boundingRect(area)
ObjROI = Image[y : y+h, x : x+w]
p = model.predict(cv2.resize(ObjROI, (<size of CNN input>)))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us