for my object detection model yolo i have annotation xml file with the bounding box coordinates (ymin, xmin, ymax, xmax) but don't have height and width information how can i calculate them or if there is a python script to extract them
Say Rah for object detection you are only provided with min and max values. you have to multiply them with the height and width of your input image. Even in case of RCNN height and width are not mentioned in annotation file.
the script will be like; maybe it give you some clue
A good tool for image analysis is Matlab. You can use the size() function: [the Length, width] = size(binary Image); The first return argument, the Length, is the number of rows (the height), and the second output argument, width, is the number of columns .