{"id":19756319,"url":"https://github.com/shibatch/rectdetect","last_synced_at":"2025-04-30T11:33:24.464Z","repository":{"id":201897941,"uuid":"161743955","full_name":"shibatch/rectdetect","owner":"shibatch","description":"Realtime rectangle detector with GPGPU","archived":false,"fork":false,"pushed_at":"2021-01-31T13:59:13.000Z","size":62,"stargazers_count":60,"open_issues_count":2,"forks_count":20,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-06T01:41:16.313Z","etag":null,"topics":["computer-vision","gpgpu","image-processing","opencl","opencv","polyline","rectangle-detection","video"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=HpaY0HOomAI","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shibatch.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}},"created_at":"2018-12-14T06:50:58.000Z","updated_at":"2025-01-19T17:17:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"950cc15c-ecb8-499f-9aac-0e6c25f46d82","html_url":"https://github.com/shibatch/rectdetect","commit_stats":null,"previous_names":["shibatch/rectdetect"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibatch%2Frectdetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibatch%2Frectdetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibatch%2Frectdetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shibatch%2Frectdetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shibatch","download_url":"https://codeload.github.com/shibatch/rectdetect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251691612,"owners_count":21628356,"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","gpgpu","image-processing","opencl","opencv","polyline","rectangle-detection","video"],"created_at":"2024-11-12T03:15:35.015Z","updated_at":"2025-04-30T11:33:24.081Z","avatar_url":"https://github.com/shibatch.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rectangle Detector\n\nThis is a demo program for a method for realtime rectangle detection from an image. This program detects ALL rectangular shapes viewed from 3D perspective in real time, utilizing a GPU. The program is purely rule-based.\n\n# Download\n\nSource code and compiled binary can be downloaded from https://github.com/shibatch/rectdetect/releases\n\n# Movies\n\nSee the following youtube videos to see some results.\n\n* https://www.youtube.com/watch?v=HpaY0HOomAI\n* https://www.youtube.com/watch?v=BLJEYui0XcY\n\n# Running demo programs\n\nYou need to set up OpenCL runtime in order to run the programs. A CPU device should work, but it is pretty slow.\n\nThe following programs will be built.\n\n### rect\n\nThis is a program for detecting rectangles in a still image.\n\n```\nUsage : ./rect \u003cimage file name\u003e [device number] [output file name]\n```\n\nAvailable OpenCL devices and their numbers are displayed if you execute the program without any arguments.\n\n### poly\n\nThis is a program for converting edges in the image to polyline. The result is written to output.png.\n\n```\nUsage : ./poly \u003cimage file name\u003e [device number]\n```\n\n\n### vidrect\n\nThis is a program for detecting rectangles from a video.\n\n```\nUsage : ./vidrect [device number] [input video file] [output video file] [Horizontal AOV]\n```\n\nYou can use camera as input. In that case, specify the camera by cam:\u003ccam id\u003e,\u003cwidth\u003e,\u003cheight\u003e as an input.\nOutput can be displayed on an window by specifying - as an output.\n\nThe following command line captures the video from the first camera in 1280x720 resolution and output is shown in the window.\n```\n./vidrect 0 cam:0,1280,720 - 72\n```\n\nThe following command line captures the video from input.mpg and output to output.mpg.\n```\n./vidrect 0 input.mpg output.mpg 72\n```\n\n\n### vidpoly\n\nThis is a program for converting edges in the video to polyline.\n\n\n# Build\n\nPlease use cmake to build the program.\n\n```sh\n$ cd rectdetect-X.XX\n$ mkdir build\n$ cd build\n$ cmake ..\n$ make\n```\n\n```sh\nD:\\rectdetect-X.XX\u003e mkdir build \u0026 cd build\nD:\\rectdetect-X.XX\u003e cmake -G\"Visual Studio 15 2017 Win64\" ..\nD:\\rectdetect-X.XX\u003e cmake --build . --config Release\n```\n\nIn order to build the program with Microsoft Visual Studio, you need to edit the CMakeLists.txt.\n\n# License\n\nThis software is distributed under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibatch%2Frectdetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshibatch%2Frectdetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshibatch%2Frectdetect/lists"}