michalfaber / keras_Realtime_Multi-Person_Pose_Estimation

Keras version of Realtime Multi-Person Pose Estimation project
Other
780 stars 372 forks source link

I couldn't understand why we calculate distance this way #83

Open jaekyu-sim opened 6 years ago

jaekyu-sim commented 6 years ago

https://github.com/michalfaber/keras_Realtime_Multi-Person_Pose_Estimation/blob/195d4fe4386b19a50a5f0f0cbc64b340f811ab88/training/label_maps.py#L118

at Line 118, I couldn't understand the dist expression. why we have to multiply the vec_x and bex_y, vec_y and bec_x?

michalfaber commented 6 years ago

Hi @Jaekyu-Sim This expression is used to check 2 vectors similarity. For example for 2 vectors: vec1 = (x1, y1) vec2 = (x2, y2) If the equation x1y2 = x2y1 is satisfied, the vectors are parallel.