{"id":21847033,"url":"https://github.com/duyet/opencv-car-detection","last_synced_at":"2025-04-14T13:33:09.484Z","repository":{"id":49324230,"uuid":"104086109","full_name":"duyet/opencv-car-detection","owner":"duyet","description":"OpenCV Python program for Vehicle detection","archived":false,"fork":false,"pushed_at":"2024-01-01T17:33:18.000Z","size":3738,"stargazers_count":28,"open_issues_count":2,"forks_count":52,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T02:45:27.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/duyet.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}},"created_at":"2017-09-19T14:31:32.000Z","updated_at":"2024-05-22T11:29:26.000Z","dependencies_parsed_at":"2022-08-29T23:10:20.294Z","dependency_job_id":null,"html_url":"https://github.com/duyet/opencv-car-detection","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/duyet%2Fopencv-car-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fopencv-car-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fopencv-car-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duyet%2Fopencv-car-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duyet","download_url":"https://codeload.github.com/duyet/opencv-car-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248888860,"owners_count":21178118,"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":[],"created_at":"2024-11-27T23:16:30.851Z","updated_at":"2025-04-14T13:33:09.442Z","avatar_url":"https://github.com/duyet.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencv-car-detection\nOpenCV Python program for Vehicle detection\n\n```python\nimport cv2\nfrom matplotlib import pyplot as plt\n\ncar_cascade = cv2.CascadeClassifier('cars.xml')\nimg = cv2.imread('car3.jpg', 1)\ngray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n\n# Detect cars\ncars = car_cascade.detectMultiScale(gray, 1.1, 1)\n\n# Draw border\nfor (x, y, w, h) in cars:\n    cv2.rectangle(img, (x,y), (x+w,y+h), (0,0,255), 2)\n    ncars = ncars + 1\n\n# Show image\nplt.figure(figsize=(10,20))\nplt.imshow(img)\n```\n\n## Demo\n\n![car2.jpg](car2.jpg)\n\n## Result\n\n![result_car2.png](result_car2.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fopencv-car-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduyet%2Fopencv-car-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduyet%2Fopencv-car-detection/lists"}