{"id":21236004,"url":"https://github.com/lddl/goparking","last_synced_at":"2025-07-29T08:06:13.800Z","repository":{"id":98202816,"uuid":"145384418","full_name":"LdDl/goparking","owner":"LdDl","description":"This project is targeted to detect which parking lot (actually any user defined polygon) are occupied by any object.","archived":false,"fork":false,"pushed_at":"2018-08-30T05:46:49.000Z","size":18264,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T21:56:55.252Z","etag":null,"topics":["computer-vision","gocv","opencv","parking-lot","vehicle-detection"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LdDl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-08-20T07:49:10.000Z","updated_at":"2024-03-04T20:35:16.000Z","dependencies_parsed_at":"2023-05-18T14:01:56.451Z","dependency_job_id":null,"html_url":"https://github.com/LdDl/goparking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LdDl/goparking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgoparking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgoparking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgoparking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgoparking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LdDl","download_url":"https://codeload.github.com/LdDl/goparking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgoparking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652570,"owners_count":24122093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","gocv","opencv","parking-lot","vehicle-detection"],"created_at":"2024-11-21T00:05:41.449Z","updated_at":"2025-07-29T08:06:13.790Z","avatar_url":"https://github.com/LdDl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goparking\r\nThis project is targeted to detect which parking lot (actually any user defined polygon) are occupied by any object.\u003c/br\u003e\r\nIt uses good computer vision package GoCV (see https://github.com/hybridgroup/gocv) as bindings to Opencv 3.x (https://github.com/opencv/opencv)\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Support](#support)\r\n- [Thanks](#thanks)\r\n\r\n## Installation\r\n\r\nAs it uses GoCV, first of all you have to install it. Please see steps described here https://gocv.io/getting-started/.\u003c/br\u003e\r\n\r\nIf you successfully installed everything (GoCV, OpenCV, OpenCV-contrib), then you good to go. Just install it via `get`:\r\n\r\n```go\r\ngo get github.com/LdDl/goparking\r\n```\r\n\r\n## Usage\r\n\r\n- Build\u003c/br\u003e\r\nGo to $GOPATH/src/LdDl/goparking folder.\u003c/br\u003e\r\nOpen terminal in that folder and type:\r\n```go\r\ngo build main.go\r\n```\r\n\r\n- Configuration\u003c/br\u003e\r\nOpen example.json file in main project folder and edit fields to fit your needs.\r\n```js\r\n{\r\n  // videoType - type of input. It can be either local file or web-service (\"url\") or connected camera to your PC (\"device\")\r\n  \"videoType\": \"url\",\r\n  // videoSource - link to your video. If your videoType is \"device\", then just provide number of that device: for example \"0\"\r\n  \"videoSource\": \"/datasets/parkinglot_1_480p.mp4\",\r\n  // imageResizing - parameter to scale your image (for fast proccessing or other needs). In example it is same as input.\r\n  \"imageResizing\": [\r\n    854,\r\n    480\r\n  ],\r\n  // showImage - display image or not\r\n  \"showImage\": true,\r\n  // laplacian - parameter for Laplace Operator (https://en.wikipedia.org/wiki/Laplace_operator)\r\n  // Please see https://docs.opencv.org/3.4.0/d5/db5/tutorial_laplace_operator.html\r\n  // While playng with \"imageResizing\" you have to change this parameter too to get good results.\r\n  \"laplacian\": 2.0,\r\n  // areas - array of parking lots.\r\n  // each area has ID (string) and set of coordinates.\r\n  // There are no setMouseCallback() in GoCV package (see https://github.com/hybridgroup/gocv/issues/211), \r\n  // so I can not implement good \"GUI\" for extracting clicked points on image.\r\n  // For extracting needed points you need to use some 3-d party applications like Paint (Windows) or KolourPaint (Linux).\r\n  \"areas\": [\r\n    {\r\n      \"id\": \"1t_lot\",\r\n      \"coords\": [\r\n        [\r\n          368,\r\n          329\r\n        ],\r\n        [\r\n          410,\r\n          328\r\n        ],\r\n        [\r\n          437,\r\n          350\r\n        ],\r\n        [\r\n          387,\r\n          353\r\n        ]\r\n      ]\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n- Run\u003c/br\u003e\r\nFor Linux:\r\n```cmd\r\n./main -cfg=example.json\r\n```\r\nFor Windows:\r\n```cmd\r\nmain.exe -cfg=example.json\r\n```\r\n- Enjoy\r\n![-](https://raw.githubusercontent.com/LdDl/goparking/master/datasets/output/im1.png)\r\n![-](https://raw.githubusercontent.com/LdDl/goparking/master/datasets/output/im2.png)\r\n![-](https://raw.githubusercontent.com/LdDl/goparking/master/datasets/output/im3.png)\r\n![-](https://raw.githubusercontent.com/LdDl/goparking/master/datasets/output/im4.png)\r\n![-](https://raw.githubusercontent.com/LdDl/goparking/master/datasets/output/im5.png)\r\n\r\n## Support\r\n\r\nIf you have troubles please [open an issue](https://github.com/LdDl/goparking/issues/new).\r\n\r\n## Thanks\r\nBig thanks to creators and developers of [GoCV](https://gocv.io/) for providing bindings to OpenCV \u003c/br\u003e\r\nAnd thanks to this [project](https://github.com/eladj/detectParking) for algorithm template.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddl%2Fgoparking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flddl%2Fgoparking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddl%2Fgoparking/lists"}