{"id":15588996,"url":"https://github.com/leonardodalcin/cvbootstrap","last_synced_at":"2025-08-17T01:33:36.038Z","repository":{"id":101747333,"uuid":"147687057","full_name":"leonardodalcin/cvbootstrap","owner":"leonardodalcin","description":"Computer Vision Bootstrap for Raspberry Pi","archived":false,"fork":false,"pushed_at":"2018-09-06T14:46:11.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T09:31:33.341Z","etag":null,"topics":["computer-vision","opencv","python","raspberrypi"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/leonardodalcin.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":"2018-09-06T14:33:50.000Z","updated_at":"2018-09-06T14:46:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bcb4827-f780-4386-ac18-56562afd4d2e","html_url":"https://github.com/leonardodalcin/cvbootstrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonardodalcin/cvbootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardodalcin%2Fcvbootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardodalcin%2Fcvbootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardodalcin%2Fcvbootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardodalcin%2Fcvbootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardodalcin","download_url":"https://codeload.github.com/leonardodalcin/cvbootstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardodalcin%2Fcvbootstrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796219,"owners_count":24647319,"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-08-16T02:00:11.002Z","response_time":91,"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","opencv","python","raspberrypi"],"created_at":"2024-10-02T23:00:27.899Z","updated_at":"2025-08-17T01:33:36.015Z","avatar_url":"https://github.com/leonardodalcin.png","language":"Python","readme":"\n# Computer Vision Bootstrap for Raspberry Pi\n\nThis is a default environment for computer vision applications written in Python. It wraps OpenCV and PiCamera for a quick start into into image analysis.\n\n##### IMPORTANT -  This package is under construction, feel free to contribuite, open issues or contact.\n\n### Prerequisites\n\n* PiCamera\n* OpenCV\n* Matplotlib\n\n### Usage Example\n```Python\nfrom Camera import Camera\nfrom Image import Image\nfrom IO import IO\nfrom IO import Servo\nIO = IO()\nCamera = Camera()\npanServo = Servo(pin = 19)\npanServo.rotate(dutyCycle = 7.5)\nimg = Image(Camera.takePhoto())\nimg.rotate(180)\nimg.save()\n```\n\n### Documentation\nThe documentation pattern is: \n- Class\n  - __init__ | Class constructor\n  - Methods\n\nClasses:\n- Camera\n  - __init__() | This class is a singleton\n  - takePhoto() | Returns an OpenCV formatted image\n  - togglePreview() | Opens a window for camera image previewing\n- Image\n  - __init__(image, path) | If a path is inputed as parameter it loads the image from the path. Image parameter is an OpenCV image array pattern. This class is a singleton\n  - show() | Plots a image for image previewing\n  - save() | Saves the photo in a folder named with the current date (31/12/2018) named with the hour (21:15:24) with the extension .png\n  - rotate(degrees) | Rotates an image \n- IO\n  - __init__() | Setup the GPIO board, should be instanciated before other IO classes \n- Servo\n  - __init__(pin) | Instanciates the servo on the pin passed as parameter\n  - rotate(dutyCycle) | Rotates the servo to the according dutyCycle\n- Input\n  - __init__(pin, name, function) | If signal is received on pin it will trigger the function passed as parameter\n- OutputClock\n  - __init__(pin, name, frequency) | Instanciates the OutputClock on the pin passed as parameter with a certain frequency. This sends a square wave to simulate external input signals.\n  - stop() | Stops the signal.\n\n## Authors\n\n* [**Leonardo Dalcin**](https://github.com/leonardodalcin) - *Initial work*\n\nSee also the list of [contributors](https://github.com/leonardodalcin/cvbootstrap/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardodalcin%2Fcvbootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardodalcin%2Fcvbootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardodalcin%2Fcvbootstrap/lists"}