Answers for "draw a rectangle in keras draw_box"

0

draw a rectangle in keras draw_box

model = load_model("modelname.h5")
Posted by: Guest on May-23-2021
0

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>)))
Posted by: Guest on May-23-2021

Browse Popular Code Answers by Language