Teoge / DMPR-PS

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

How to generate the json file? #2

Open nyg2017 opened 4 years ago

nyg2017 commented 4 years ago

Thanks for your work! I wonder to know how to generate the json label file? I notice that the marks parameters in json label files are added 2 value relative to the .mat label file. What are those parameters mean and how to calculate this extra parameters? Looking forward for your response.

Teoge commented 4 years ago

The label files are first generated using the directional_point branch of my labeling tool MarkToolForParkingLotPoint, and then converted to json format using mat2json.m.

The directional_point branch labels an additional point for each marking-point. The additional two values in a "marks" label are the location of this point. Together with the first two values in a "marks" label, they indicate the orientation of a marking-point.