Teoge / DMPR-PS

DMPR-PS: A Novel Approach for Parking-Slot Detection Using Directional Marking-Point Regression
GNU General Public License v3.0
209 stars 48 forks source link

On concern of threshold in config file #40

Open BaophanN opened 1 month ago

BaophanN commented 1 month ago

Dear author, you defined the below threshold:

SQUARED_DISTANCE_THRESH = 0.000277778  # 10 pixel in 600*600 image
DIRECTION_ANGLE_THRESH = 0.5235987755982988  # 30 degree in rad

VSLOT_MIN_DIST = 0.044771278151623496
VSLOT_MAX_DIST = 0.1099427457599304
HSLOT_MIN_DIST = 0.15057789144568634
HSLOT_MAX_DIST = 0.44449496544202816

SHORT_SEPARATOR_LENGTH = 0.199519231
LONG_SEPARATOR_LENGTH = 0.46875

I understand that SQUARED_DISTANCE_THRESH = 0.000277778 = (10x10) / (600x600) means the smallest distance for 2 points to be distinguishable is 0.000277778. I want to know that how the remaining numbers are computed? Where does VSLOT_MIN_DIST = 0.044771278151623496 come from? Thank you

Teoge commented 1 month ago

Some of them collected from the ground truth data. For example, https://github.com/Teoge/DMPR-PS/blob/master/collect_thresholds.py collects the range of marking point distances, separator angles and bridge angles. Some of them are decided manually based on some prior knowledge.