Apr-27-2018, 11:29 AM
Hey, this is my python code
Thank u for ur help
if shape == "rectangle": x,y,w,h = cv2.boundingRect(c) cv2.rectangle(image,(x,y),(x+w,y+h),(0,255,0),0) from string import Template from string import Template def main(): cordinates=[] cordinates.append(dict(abscisse=x,ordonee=y,width=w,height=h)) t=Template(""" x: $abscisse y: $ordonee w: $width h: $height """) print ' Rectangle:' print(" {") for data in cordinates: print (t.substitute(data)) print(" }") if __name__=="__main__": main()and I'm not sure how to extract/generate a .qml file from it!
Thank u for ur help