{"id":20581799,"url":"https://github.com/wardbenjamin/mtrack2","last_synced_at":"2026-04-16T16:32:37.869Z","repository":{"id":76197435,"uuid":"133671012","full_name":"WardBenjamin/MTrack2","owner":"WardBenjamin","description":"Real-time visual object tracking and graphing in Python (AP Physics C Final Project 2018)","archived":false,"fork":false,"pushed_at":"2018-05-31T13:32:35.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-09T00:24:30.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/WardBenjamin.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}},"created_at":"2018-05-16T13:37:42.000Z","updated_at":"2018-06-01T01:03:52.000Z","dependencies_parsed_at":"2023-03-05T21:00:40.540Z","dependency_job_id":null,"html_url":"https://github.com/WardBenjamin/MTrack2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WardBenjamin/MTrack2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBenjamin%2FMTrack2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBenjamin%2FMTrack2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBenjamin%2FMTrack2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBenjamin%2FMTrack2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WardBenjamin","download_url":"https://codeload.github.com/WardBenjamin/MTrack2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBenjamin%2FMTrack2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31894997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-16T06:31:15.063Z","updated_at":"2026-04-16T16:32:37.832Z","avatar_url":"https://github.com/WardBenjamin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MTrack2\n\n##### Authors: Benjamin Ward, Shaun Wu\n###### Thank you to Dr. Travis Axtell and Zachary Perkins\n\nReal-time visual object tracking and graphing in Python\n\nA simple implementation of object tracking can be achieved via color tracking, where a specific color value from a still image or camera feed can be isolated, and the (x, y) pixel position of the contour can be logged. Through definition of a scale and two axes, and therefore an origin, the object can be tracked on a real plane with extreme accuracy, assuming the same shape is presented to the camera throughout. To increase detection accuracy, the source image is blurred, then converted from RGB (or a variant, such as BGR) to HSV, meaning that the color information is presented as a Hue, Saturation, Value pair instead of Red/Blue/Green. The image is then thresholded with a color mask (over a range, since HSV is still somewhat light-level-dependent), eroded, and dilated to reduce error from small color patches before contour search.\n\n## Reference\n\nMiki. “Python Opencv Color Tracking.” Stack Overflow, Stack Exchange, 16 July 2015, stackoverflow.com/questions/31460267/python-opencv-color-tracking.\n\nRyan. “OpenCV Object Tracking by Colour Detection in Python.” The Codacus, The Codacus, 13 Aug. 2017, thecodacus.com/opencv-object-tracking-colour-detection-python/.\n\n“OpenCV: Image Thresholding.” OpenCV: Core Functionality, OpenCV, 23 Feb. 2018, docs.opencv.org/3.4.1/d0/de1/group__core.html.\n\nJohn Canny. A computational approach to edge detection. Pattern Analysis and Machine Intelligence, IEEE Transactions on, (6):679–698, 1986.\n\n“OpenCV: Changing Colorspaces.” OpenCV: Core Functionality, 23 Feb. 2018, docs.opencv.org/3.4/df/d9d/tutorial_py_colorspaces.html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbenjamin%2Fmtrack2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwardbenjamin%2Fmtrack2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbenjamin%2Fmtrack2/lists"}