Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the upper-left corner? #1

Open
xiaoshuguo750 opened this issue Apr 18, 2018 · 0 comments
Open

Where is the upper-left corner? #1

xiaoshuguo750 opened this issue Apr 18, 2018 · 0 comments

Comments

@xiaoshuguo750
Copy link

Hi!
Where is the upper-left corner?
34977556-f736ce08-fad5-11e7-9d2c-3d084671dfea
Does four vertex of pos Rectangular have a law,?such as clockwise, counterclockwise, I think these will affect the results of the function!
function:
def bboxes_to_grasps(bboxes):
box = tf.unstack(bboxes, axis=1)
x = (box[0] + (box[4] - box[0])/2) * 0.35
y = (box[1] + (box[5] - box[1])/2) * 0.47
tan = (box[3] -box[1]) / (box[2] -box[0]) *0.47/0.35
h = tf.sqrt(tf.pow((box[2] -box[0])*0.35, 2) + tf.pow((box[3] -box[1])*0.47, 2))
w = tf.sqrt(tf.pow((box[6] -box[0])*0.35, 2) + tf.pow((box[7] -box[1])*0.47, 2))
return x, y, tan, h, w

When the grab rectangle is tilted to the left or to the right, how does the upper left corner of the rectangle behave according to the above calculation formula?
抓取矩形朝左倾斜或朝右倾斜时,如果按照上述计算公式,矩形的左上角是怎么规定的呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant