caffe icon indicating copy to clipboard operation
caffe copied to clipboard

how to calculate the coordinates of bounding box

Open anguoyang opened this issue 9 years ago • 4 comments

hi all, could you please tell me how to calculate the coordinates of bounding boxes? it seems there is no description on: out << static_cast(d[3] * img.cols) << " "; out << static_cast(d[4] * img.rows) << " "; out << static_cast(d[5] * img.cols) << " "; out << static_cast(d[6] * img.rows) << std::endl;

and I assumed that d[3]/d[4] and d[5]/d[6] is point1(x1,y1) and point2(x2,y2) respectively, however, when i display the rectangles inside the image, it show me the incorrect rectangles.

anguoyang avatar Apr 11 '17 00:04 anguoyang

The box is xmin, ymin, xmax, ymax

weiliu89 avatar Apr 11 '17 15:04 weiliu89

@anguoyang I meet the same problem, how can I get the bbox coordinates in ssd_pascal_video.py?

Anhaoxu avatar May 17 '17 08:05 Anhaoxu

@weiliu89 hello, I have a big problem, when I resize the image into 150*150,the bounding box can track the target, but it can not cover the whole target,that means the bounding box is small and is about half of the target. Could you tell why?

liuleilizhi avatar Nov 09 '17 02:11 liuleilizhi

@anguoyang @Anhaoxu hello, the same question. I have a big problem, when I resize the image into 150*150,the bounding box can track the target, but it can not cover the whole target,that means the bounding box is small and is about half of the target. Could you tell why?

liuleilizhi avatar Nov 09 '17 02:11 liuleilizhi