Weighted-Boxes-Fusion icon indicating copy to clipboard operation
Weighted-Boxes-Fusion copied to clipboard

Rotate Box

Open ZeKunZhang1998 opened this issue 5 years ago • 9 comments

Hello,How to use it in rotate boxes?

ZeKunZhang1998 avatar Sep 26 '20 03:09 ZeKunZhang1998

WBF doesn't support rotated boxes yet. It will be good if you provide some small example.

ZFTurbo avatar Sep 27 '20 09:09 ZFTurbo

WBF doesn't support rotated boxes yet. It will be good if you provide some small example. For the rotating box, if the algorithm can get the coordinates of the four corners of the bbox, it can still follow the traditional bbox method. Just when calculating the average coordinate point, change [x1,y1,x2,y2] to [x1,y1,x2,y2,x3,y3,x4,y4].

euminds avatar Nov 02 '20 02:11 euminds

Hi,I want to transform [x1,y1,x2,y2,x3,y3,x4,y4] to [x,y,w,h,theta], and use your WBF

ZeKunZhang1998 avatar Nov 02 '20 05:11 ZeKunZhang1998

Sorry, I still modify the code

------------------ 原始邮件 ------------------ 发件人: "ZhangZekun"<[email protected]>; 发送时间: 2020年11月2日(星期一) 中午1:27 收件人: "ZFTurbo/Weighted-Boxes-Fusion"<[email protected]>; 抄送: "戎锦涛"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [ZFTurbo/Weighted-Boxes-Fusion] Rotate Box (#20)

Hi,I want to transform [x1,y1,x2,y2,x3,y3,x4,y4] to [x,y,w,h,theta], and use your WBF

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

euminds avatar Nov 02 '20 05:11 euminds

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

ZeKunZhang1998 avatar Nov 02 '20 05:11 ZeKunZhang1998

Can you send me a code?  Our target detection method uses AerialDetection (https://github.com/dingjiansw101/AerialDetection).  The result obtained based on this method includes the category, the confidence score, and the coordinates of the four corners.

------------------ 原始邮件 ------------------ 发件人: "ZhangZekun"<[email protected]>; 发送时间: 2020年11月2日(星期一) 中午1:31 收件人: "ZFTurbo/Weighted-Boxes-Fusion"<[email protected]>; 抄送: "戎锦涛"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [ZFTurbo/Weighted-Boxes-Fusion] Rotate Box (#20)

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

euminds avatar Nov 02 '20 05:11 euminds

I have implement it , but is not perfect.How do you do that .I think,you should keep the sequence of [x1,y1,x2,y2,x3,y3,x4,y4] in all boxes the same. It is difficult.

Can you send me a WBF about sequence of [x1,y1,x2,y2,x3,y3,x4,y4] implemention?

euminds avatar Nov 02 '20 06:11 euminds

WBF doesn't support rotated boxes yet. It will be good if you provide some small example.

I tried to solve the problem of Rotate Boxes. There is no problem in debugging, but I am not sure whether the result is correct. So I hope the author can provide an e-mail address. I will provide the code. it is the result of Traditional WBF: 3 [[0.10666665 0.31666666 0.71333331 0.62 ] [0. 0.51 0.81 0.91 ] [0.04 0.56 0.84 0.92 ]] it is the result of Rotate Box WBF: 3 [[0.10666665 0.62 0.10666665 0.31666666 0.71333331 0.31666666 0.71333331 0.62 ] [0. 0.91 0. 0.51 0.81 0.51 0.81 0.91 ] [0.04 0.92 0.04 0.56 0.84 0.56 0.84 0.92 ]]

euminds avatar Nov 05 '20 02:11 euminds

Is this project realized now

Astesias avatar Jul 18 '22 16:07 Astesias