ThisisMATLABGUItoolformarkingparkinglotpointorsomethinglikethat.Thelatestversioncanbefoundathere:https://github.com/Teoge/MarkToolForParkingLotPoint
RequirementMATLAB(Inwindows,pleasesetyourdisplaysettingto100%tofullydisplaytheGUI.)Forsmallscreeninnotebook,usethefigfileinfolder"SmallScreenUI"instead.(Replacethemain.figinrootfolderwiththemain.figin"SmallScrennUI")
Howtouse:1.ReadImageCloneordownloadthesource.
StartupMATLABandrunmain.m.Enterthefolderyourimagesin,oruse"ChooseFolder"buttontoselectfolder.Selectcorrectformatofyourimages,andclick"Read"button.Use"Previous"and"Next"button,orleftarrowkeyandrightarrowkeytonavigatethroughtheimages.Theprogramwillreadimagesofcorrespondingformatinasequenceandthetotalnumberofimageswillbeshownbelowthe"read"button.Thefirstimagewillbeloadedautomatically.Thesequencenumberandnameofitwillbeshownbelowthefigure.
2.MarkMarksAfteryouhaveloadedanimage,findparking-slotmarking-points.
Clickleftmousebuttononanimagetomarkmarks.Clickrightmousebuttononamarktodeleteit.Aftermarkingmarks,click"Save"buttonor"F"onthekeyboardtosavethemarkstofile.Themarkconsistsofapoint,acircle,andanindexnumberattherightbottomcorner.Clickrightmousebuttoninsidethecircletodeletethemark.Themarkswillbesaveasa"mat"filewiththesamenameoftheimageinthesamefolder.RefertoMATLABdocumentationformoreinformationaboutoperating"mat"file.
3.MarkParkingSlotsAfteryouhavemarkedyourmarks,fillthetableontherighttomarkparkingslots.
Findaparkingslotsintheimagewithtwomarkinhg-pointsyouhavemarked.Filltheindexnumbersoftwopointsinthefirstandsecondcolumninarow.Fillthetypenumberoftheparkingslotsaccordingtothetypeofparking-slotsandthesequenceyoufilltwopoints.Filltheangleofparkingslotsindegreeform.Forverticalslotsastype1,youshouldfillin90.Forslantedslotsastype2,youshouldfillinadegreelessthan90.Forslantedslotsastype3,youshouldfillinadegreemorethan90.Click"Save"buttonor"F"onthekeyboardtosavetheparkingslotstofile.Parkingslotsaredividedintothreetypes,whichisdefinedbyus.Type1refertotheright-angleparkingslots.Type2and3refertoslantedparkingslotsindifferentdirection.
Thefollowingimagesshowthreetypesofparkingslot.Foreachimage,themarking-pointonthelefthandsideshouldbethefirstpointyouenterinthetable.Themarking-pointontherighthandsideshouldbethesecondpointyouenterintheimage.
ParkingSlotType1ParkingSlotType2ParkingSlotType3AdvancedFunctionalityClickleftmousebuttonwithoutreleasingtodragamark.Usemousescrollwheeltozoneinandzoneoutofthefigure.Wheninthezoneinmode,useleftmousebuttontodragacrosstheimage,whiletheabilityofcreatingmarkswithleftmousebuttonisdisable.Press"W","A","S"and"D"keysonthekeyboardtofinetunethepositionoftheselectedmark.Theindexofselectedmarkwillbeshownontherightofimage.Bydefault,noneofthemarksisselected,andtheindexshouldbezero.Whenyouclickonamarkordragit,themarkwillbeselected.Whenyouzonein,ifselectedmarkisnotwithinthezoneinrangethenitwillbedeselect.Use"Q"and"E"onthekeyboardtoperform"Save"+"Previous"buttonfunctionand"Save"+"Next"buttonfunction.Use"TurntoPage"functiontofastindextocertainpage.Use"DELETE"buttontodeletecurrentimageandlabel.(Warning:thedeleteispermanent.)JSONAsimplefunctionmat2json.misprovidedincaseyouwanttoreadthelabelfilewithotherlanguage.
评论