{"id":17548858,"url":"https://github.com/bradmontgomery/python-laser-tracker","last_synced_at":"2025-04-24T02:08:23.439Z","repository":{"id":4651604,"uuid":"5797141","full_name":"bradmontgomery/python-laser-tracker","owner":"bradmontgomery","description":"A simple laser tracker using Python and OpenCV.","archived":false,"fork":false,"pushed_at":"2019-09-01T19:46:23.000Z","size":35,"stargazers_count":83,"open_issues_count":4,"forks_count":37,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-24T02:08:17.676Z","etag":null,"topics":["opencv","python"],"latest_commit_sha":null,"homepage":"","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/bradmontgomery.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-13T15:57:44.000Z","updated_at":"2025-02-26T08:10:20.000Z","dependencies_parsed_at":"2022-07-05T13:04:32.636Z","dependency_job_id":null,"html_url":"https://github.com/bradmontgomery/python-laser-tracker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fpython-laser-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fpython-laser-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fpython-laser-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradmontgomery%2Fpython-laser-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradmontgomery","download_url":"https://codeload.github.com/bradmontgomery/python-laser-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546081,"owners_count":21448260,"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":["opencv","python"],"created_at":"2024-10-21T02:45:16.826Z","updated_at":"2025-04-24T02:08:23.421Z","avatar_url":"https://github.com/bradmontgomery.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"python laser tracker\n====================\n\nThis is a OpenCV application that applies filters in order to track specific HSV ranges. By default, it tracks a red laser pointer, but it is modular and you can track about whatever you want.\n\n\nRequirments\n-----------\n\nThis requires Python2 and the Python wrapper for OpenCV.\nIt was tested on GNU/Linux distributions and Mac OS X.\n\nUsage\n-----\nRun ``python laser_tracker/laser_tracker.py -h`` for help on the available command-line parameters.\n\n\nRange for each HSV components:\n    -   hue: [0, 180]\n    -   saturation: [0, 255]\n    -   value: [0, 255]\n\nAbout the code\n--------------\nThe code performs the following steps, and displays the results in several windows. The general idea is to:\n\n1. Grab the video frame.\n2. Convert it to HSV\n3. Split the frame into individual components (separate images for H, S, and V)\n4. Apply a threshold to each compenent (hopefully keeping just the dot from the laser)\n5. Perform an AND operation on the 3 images (which \"should\" cut down on false positives)\n6. Display the result.\n\nThe filtering part is done using successive `thresholding \u003chttp://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html?highlight=threshold#threshold\u003e`_\n\n.. image:: img/filtering.png\n\nLicense\n-------\n\nThis code is MIT-licensed. You can basically do whatever you want with it.\n\n\nContributing\n------------\n\nAny suggestions, bug reports, or pull requests are welcome! If there's\nsomething I should be doing differently, here, feel free to open an Issue and\nlet me know.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmontgomery%2Fpython-laser-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradmontgomery%2Fpython-laser-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradmontgomery%2Fpython-laser-tracker/lists"}