{"id":18060616,"url":"https://github.com/lschmid83/open-cv-examples","last_synced_at":"2025-04-05T12:22:51.859Z","repository":{"id":205260809,"uuid":"704486236","full_name":"lschmid83/Open-CV-Examples","owner":"lschmid83","description":"These are examples of computer vision work using Visual Studio, OpenCV and VC++. It includes a fully functional game of Pong controlled by coloured objects detected by a camera.","archived":false,"fork":false,"pushed_at":"2024-11-12T10:10:29.000Z","size":19649,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T23:37:40.834Z","etag":null,"topics":["algorithms","cpp","motion-detection","object-detection","object-tracking","object-tracking-based-on-color","open-cv","pong-game"],"latest_commit_sha":null,"homepage":"","language":"C++","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/lschmid83.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":"2023-10-13T11:09:23.000Z","updated_at":"2024-11-12T10:10:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca09e7b5-f482-4b46-a3ab-eaf6f16164d0","html_url":"https://github.com/lschmid83/Open-CV-Examples","commit_stats":null,"previous_names":["lschmid83/open-cv-examples"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lschmid83%2FOpen-CV-Examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lschmid83%2FOpen-CV-Examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lschmid83%2FOpen-CV-Examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lschmid83%2FOpen-CV-Examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lschmid83","download_url":"https://codeload.github.com/lschmid83/Open-CV-Examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247334064,"owners_count":20922135,"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":["algorithms","cpp","motion-detection","object-detection","object-tracking","object-tracking-based-on-color","open-cv","pong-game"],"created_at":"2024-10-31T04:09:57.653Z","updated_at":"2025-04-05T12:22:46.851Z","avatar_url":"https://github.com/lschmid83.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open CV Examples\n\nThese are examples of computer vision work using Visual Studio, OpenCV and VC++.\n\n* Object Detection\n* Camera Pong\n\n# Setting up OpenCV 2.1.0\n\nDownload the OpenCV 2.1.0 for Visual Studio Installer here:\n\n[OpenCV-2.1.0](https://drive.google.com/file/d/1jSO7ugMoLimJsyJjdkMbSc36Cxw1sDCq/view?usp=sharing)\n\nInstall it to a folder, say \"C:\\OpenCV2.1\\\". This readme will refer to this path as $openCVDir.\n\nIf you want to create a new VC++ project in Visual Studio which uses the libraries you will need to:\n\n1. Right click the Project Name in the Solution Explorer and select Properties\n2. Select VC++ Directories\n3. Click Include Directories -\u003e Edit\n   - Add \"$openCVDir\\include\\opencv\"\n4. Click Library Directories -\u003e Edit\n   - Add \"$openCVDir\\lib\"\n5. Click Source Directories -\u003e Edit -\u003e Add\n```\n$openCVDir\\src\\cv\n$openCVDir\\src\\cvaux\n$openCVDir\\src\\cxcore\n$openCVDir\\src\\highgui\n```\n\nIf the project doesn't build and there are unresolved external errors go back and setup the paths again.\n\nYou may have to change the build target to x86 to build the project.\n\n# Object Detection\n\nThis project simply demonstrates people tracking object detection in an .avi recorded video. The moving objects will be tracked with bounding boxes and the x,y coordinates in the video frame displayed.\n\nFirst you will need to download the example .avi file here:\n\n[camera.avi](https://drive.google.com/file/d/1431a-mrQY5g9dcfeTn_L41vZ0kRMB58S/view?usp=sharing)\n\nPlace this file in the source code folder.\n\nHere is an example screenshot of the motion detection application running:\n\n\u003cimg src='https://drive.google.com/uc?id=1q2FKvb97Oiunq8uggx57KrwAlfbjMix-' width='640'\u003e\n\n# Camera Pong\n\nCamera Pong is a table tennis game controlled by detecting moving red and blue coloured objects in front of a webcam using computer vision algorithms.\n\nThe game involves hitting a ball back and forth across the screen using paddles which can be moved vertically across the screen. If the opponent fails to return the ball and it goes out of play the player who hit the ball earns a point.  \n\nIn one player mode the computer opponent will try and return the ball. The game also supports two players mode with one player controlling the left paddle with a red object and the second player controlling the right paddle with a blue object. \n\nHere is an example screenshot of the game:\n\n\u003cimg src='https://drive.google.com/uc?id=1-Wat7diBBqBp2Jd95npxnjkPU_4WoMXe' width='640'\u003e\n\n# Issues\n\nMy webcam is not detected? \n\nThis problem can occur if you have more than one imaging device installed. \n\n- Check your camera is connected to the computer and not in use in another program\n- Edit settings.ini using Notepad and change the CameraID value from 0 to 1\n\nThe red or blue object is not detected by the camera?\n\n- Lower the red or blue threshold value by moving the slider left \n- Use an object with a deeper red or blue colour\n- Adjust the webcam focus and calibrate settings \n\nWhen you run the project make sure to target the x86 platform to avoid errors.\n\n# Note\n\nYou may need to change the Build Configuration to Debug and x86 Platform for the project to build.\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flschmid83%2Fopen-cv-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flschmid83%2Fopen-cv-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flschmid83%2Fopen-cv-examples/lists"}