MarkToolForParkingLotPoint开源项目

我要开发同款
匿名用户2021年11月23日
25阅读
所属分类、应用工具、科研计算工具
授权协议GPL-3.0 License

作品详情

MarkToolForParkingLotPoint

ThisisMATLABGUItoolformarkingparkinglotpointorsomethinglikethat.Thelatestversioncanbefoundathere:https://github.com/Teoge/MarkToolForParkingLotPoint

Requirement

MATLAB(Inwindows,pleasesetyourdisplaysettingto100%tofullydisplaytheGUI.)Forsmallscreeninnotebook,usethefigfileinfolder"SmallScreenUI"instead.(Replacethemain.figinrootfolderwiththemain.figin"SmallScrennUI")

Howtouse:1.ReadImage

Cloneordownloadthesource.

StartupMATLABandrunmain.m.Enterthefolderyourimagesin,oruse"ChooseFolder"buttontoselectfolder.Selectcorrectformatofyourimages,andclick"Read"button.Use"Previous"and"Next"button,orleftarrowkeyandrightarrowkeytonavigatethroughtheimages.

Theprogramwillreadimagesofcorrespondingformatinasequenceandthetotalnumberofimageswillbeshownbelowthe"read"button.Thefirstimagewillbeloadedautomatically.Thesequencenumberandnameofitwillbeshownbelowthefigure.

2.MarkMarks

Afteryouhaveloadedanimage,findparking-slotmarking-points.

Clickleftmousebuttononanimagetomarkmarks.Clickrightmousebuttononamarktodeleteit.Aftermarkingmarks,click"Save"buttonor"F"onthekeyboardtosavethemarkstofile.

Themarkconsistsofapoint,acircle,andanindexnumberattherightbottomcorner.Clickrightmousebuttoninsidethecircletodeletethemark.Themarkswillbesaveasa"mat"filewiththesamenameoftheimageinthesamefolder.RefertoMATLABdocumentationformoreinformationaboutoperating"mat"file.

3.MarkParkingSlots

Afteryouhavemarkedyourmarks,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.)JSON

Asimplefunctionmat2json.misprovidedincaseyouwanttoreadthelabelfilewithotherlanguage.

查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论