{"id":20842051,"url":"https://github.com/iago-suarez/elsed","last_synced_at":"2025-04-06T16:15:55.536Z","repository":{"id":44174485,"uuid":"393373503","full_name":"iago-suarez/ELSED","owner":"iago-suarez","description":"ELSED: Enhanced Line SEgment Drawing","archived":false,"fork":false,"pushed_at":"2024-05-21T01:29:48.000Z","size":2036,"stargazers_count":270,"open_issues_count":6,"forks_count":53,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-04T08:02:34.414Z","etag":null,"topics":["computer-vision","image-processing","line-segment-detector","local-features"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iago-suarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-08-06T12:42:05.000Z","updated_at":"2025-04-03T16:26:28.000Z","dependencies_parsed_at":"2025-01-14T11:10:20.093Z","dependency_job_id":"a3208341-765f-4123-9ca1-82835b9b1175","html_url":"https://github.com/iago-suarez/ELSED","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iago-suarez%2FELSED","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iago-suarez%2FELSED/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iago-suarez%2FELSED/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iago-suarez%2FELSED/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iago-suarez","download_url":"https://codeload.github.com/iago-suarez/ELSED/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509238,"owners_count":20950232,"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","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","image-processing","line-segment-detector","local-features"],"created_at":"2024-11-18T01:22:53.647Z","updated_at":"2025-04-06T16:15:55.469Z","avatar_url":"https://github.com/iago-suarez.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Graffter Banner](images/banner.jpg)\n# ELSED: Enhanced Line SEgment Drawing\n\n\n[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/iago-suarez/ELSED/blob/main/Python_ELSED.ipynb) [![arXiv](https://img.shields.io/badge/arXiv-2108.03144-b31b1b.svg?style=plastic)](https://arxiv.org/abs/2108.03144)  [![Project Page](https://badgen.net/badge/color/project/green?icon=awesome\u0026label)](https://iago-suarez.com/ELSED)\n\n\nThis repository contains the source code of [**ELSED: Enhanced Line SEgment Drawing**](https://doi.org/10.1016/j.patcog.2022.108619) the fastest line segment detector in the literature. It is ideal for resource-limited devices like drones of smartphones. Visit the [**Project Webpage**](https://iago-suarez.com/ELSED) to try it online!\n\n![Graffter header image](images/header.jpg)\n\n## Dependencies\nThe code depends on OpenCV (tested with version 4.1.1).\n\u003cdetails\u003e \n\u003csummary\u003eTo install OpenCV ... \u003c/summary\u003e In Ubuntu 18.04 compile it from sources with the following instructions:\n\n```shell script\n# Install dependencies (Ubuntu 18.04)\nsudo apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev\n# Download source code\ngit clone https://github.com/opencv/opencv.git --branch 4.1.1 --depth 1\n# Create build directory\ncd opencv \u0026\u0026 mkdir build \u0026\u0026 cd build\n# Generate makefiles, compile and install\ncmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..\nmake -j\nsudo make install\n```\n\u003c/details\u003e\n\n### Using ELSED from python\n\nTo install the python wrappers you just have to run:\n```\nsudo apt-get install libopencv-dev\npip install setuptools\npip install git+https://github.com/iago-suarez/ELSED.git\n```\n\nAnd you can start playing with it:\n```python\nimport pyelsed\nimport cv2\n\nimg = cv2.imread('my_favourite_img.jpg', cv2.IMREAD_GRAYSCALE)\nsegments, scores = pyelsed.detect(img)\n```\n\n### Using ELSED from C++\n\nThe code contains a demo detecting large and short line segments in one image.\nThe code can be compiled with Cmake:\n\n```shell script\nmkdir build \u0026\u0026 cd build\ncmake .. \u0026\u0026 make\n./elsed_main\n```\n\nThe result for the provided image should be:\n```\n******************************************************\n******************* ELSED main demo ******************\n******************************************************\nELSED detected: 305 (large) segments\nELSED detected: 391 (short) segments\n```\n\n### Cite\n\n```bibtex\n@article{suarez2022elsed,\n      title={ELSED: Enhanced Line SEgment Drawing}, \n      author={Iago Suárez and José M. Buenaposada and Luis Baumela},\n      journal = {Pattern Recognition},\n      volume = {127},\n      pages = {108619},\n      year = {2022},\n      issn = {0031-3203},\n      doi = {https://doi.org/10.1016/j.patcog.2022.108619},\n      url = {https://www.sciencedirect.com/science/article/pii/S0031320322001005}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiago-suarez%2Felsed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiago-suarez%2Felsed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiago-suarez%2Felsed/lists"}