{"id":20399361,"url":"https://github.com/dipghoshraj/virtual-pen","last_synced_at":"2025-04-12T13:22:24.733Z","repository":{"id":191713860,"uuid":"275650315","full_name":"dipghoshraj/virtual-pen","owner":"dipghoshraj","description":"virtual pen is a computer vision program to track object movement and draw line according the movement.","archived":false,"fork":false,"pushed_at":"2020-07-18T18:52:48.000Z","size":66,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T08:06:54.502Z","etag":null,"topics":["computer-vision","object-tracking","opencv","python","python3","virtual-pen"],"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/dipghoshraj.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}},"created_at":"2020-06-28T19:03:46.000Z","updated_at":"2024-08-20T08:57:42.000Z","dependencies_parsed_at":"2023-08-31T09:40:01.085Z","dependency_job_id":null,"html_url":"https://github.com/dipghoshraj/virtual-pen","commit_stats":null,"previous_names":["dipghoshraj/virtual-pen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipghoshraj%2Fvirtual-pen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipghoshraj%2Fvirtual-pen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipghoshraj%2Fvirtual-pen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipghoshraj%2Fvirtual-pen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipghoshraj","download_url":"https://codeload.github.com/dipghoshraj/virtual-pen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571958,"owners_count":21126548,"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":["computer-vision","object-tracking","opencv","python","python3","virtual-pen"],"created_at":"2024-11-15T04:28:42.807Z","updated_at":"2025-04-12T13:22:24.709Z","avatar_url":"https://github.com/dipghoshraj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VIRTUAL PEN\n[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)\n\nvirtual pen is a computer vision program to track object movement and draw line according the movement.\n\n  - Detecting pen and set colur of drawing\n  - Testing the objectdetection\n  - Draw your line\n\n\n#### Building for source\nFirst install all requirement file:\n```sh\n\u003e\u003e pip install -r requirement.txt\n```\n- for linux edit requirement.txt and chnage opencv version from 4.2.0.34 to 4.2.0.26 this will run smoothly on the linux and raspberry pi enviroment\n \n\n### Run the drawing code:\n\nStep 1 :  setup pen \n```sh\n$ python pensetup.py\n```\nStep 2 :  correct morphological operations to reduce noise in the video\n```sh\n$ python max_musk.py\n```\nStep 3 : Detect and track the colored object with contour detection\n```sh\n$ python pendecting.py\n```\nStep 4 : Draw the tracking object\n```sh\n$ python main.py\n```\n\n### Draw Instructions\n - Press button \"s\" to stop drawing lines \n - press button \"e\" for enable ereaser\n - press button \"p\" to enable pen\n\n### Todos\n - Need to fix a Wirper iuuse\n\n### NOTE :\n```\nIf you are want to use this on the raspberry pi then first setup opencv on raspberry pi \nwith open cv version 4.0.2.26 or and never go for leatest if you are not full sure\n\"A developer don't get tired of error and never take warnings seriously\" \nthis quote will help you if you are seting up this project on raspberry pi.\n```\n\nLicense\n----\n\nMIT\n\n\n**Free Software, Yeah it's fucking truth!**\n\nInspiration \n---\nhttps://www.learnopencv.com/creating-a-virtual-pen-and-eraser-with-opencv/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipghoshraj%2Fvirtual-pen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipghoshraj%2Fvirtual-pen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipghoshraj%2Fvirtual-pen/lists"}