{"id":20992597,"url":"https://github.com/githubuseraccountamazing/vid2train","last_synced_at":"2026-04-25T11:35:33.652Z","repository":{"id":159548418,"uuid":"634702162","full_name":"GithubUserAccountAmazing/vid2train","owner":"GithubUserAccountAmazing","description":"A Tool for Extracting Images from a Video for Artificial Intelligence Training.","archived":false,"fork":false,"pushed_at":"2023-05-01T19:15:54.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T01:38:24.879Z","etag":null,"topics":["ai-training","cv2","image-dataset","image-manipulation","image-processing","image-recognition","pillow","stable-diffusion","torchvision","vid2train"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GithubUserAccountAmazing.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-01T00:38:43.000Z","updated_at":"2023-05-01T06:39:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b103fdc4-58ea-4447-968c-bd3c74f8952c","html_url":"https://github.com/GithubUserAccountAmazing/vid2train","commit_stats":null,"previous_names":["githubuseraccountamazing/vid2train"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GithubUserAccountAmazing/vid2train","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubUserAccountAmazing%2Fvid2train","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubUserAccountAmazing%2Fvid2train/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubUserAccountAmazing%2Fvid2train/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubUserAccountAmazing%2Fvid2train/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GithubUserAccountAmazing","download_url":"https://codeload.github.com/GithubUserAccountAmazing/vid2train/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GithubUserAccountAmazing%2Fvid2train/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["ai-training","cv2","image-dataset","image-manipulation","image-processing","image-recognition","pillow","stable-diffusion","torchvision","vid2train"],"created_at":"2024-11-19T07:11:43.790Z","updated_at":"2026-04-25T11:35:33.614Z","avatar_url":"https://github.com/GithubUserAccountAmazing.png","language":"Python","readme":"\u003ch1 align=\"center\"\u003evid2train\u003c/h1\u003e\n\n#### \u003cp align=\"center\"\u003eA Tool for Extracting Images from a Video for Artificial Intelligence Training.\u003c/p\u003e\u003cbr\u003e\n\nvid2train is a tool that enables users to create image datasets from video files for AI training purposes. It simplifies and streamlines the process of extracting and transforming frames from videos, which can otherwise be a tedious and error-prone task. \n\nvid2train provides the following features:\n\n- It supports any video file format as input and outputs a folder of images with unique names and timestamps.\n- It allows users to customize the image size in pixels, with a default value of 512x512.\n- It filters out images that are too dark or too bright, to improve the quality and diversity of the dataset.\n- It lets users adjust the extraction rate based on a frames per second (FPS) parameter, to influence the number and variety of images in the dataset.\n\n## Installation\n\nTo use vid2train, you need to have Python 3 installed on your system. You also need the following libraries: cv2, numpy, PIL, and torchvision.\n\n## Usage\n\n```\npython3 vid2train.py\n\noptional arguments:\n  -h, --help                  show this help message and exit\n  --input INPUT               Input video path.\n  --output OUTPUT             Output directory path.\n  --crop_size CROP_SIZE       Image crop size in px.                      \n  --bright_min BRIGHT_MIN     Minimum brightness level.\n  --bright_max BRIGHT_MAX     Maximum brightness level.                  \n  --fps FPS                   Images per second.\n```\n\nYou can also skip all the flags and enter your input video path when prompted. A new output folder with the same name as your video file + timestamp will be created and the default parameters will be applied:\n\n```\n- output: same directory as file named {filename}{timestamp}\n- crop_size: 512\n- bright_min: 20\n- bright_max: 236\n- fps: 1\n```\n\nThe program will then ask you to confirm your settings before proceeding with the extraction and transformation process. After, you will see a message indicating how many images were saved in the output directory. You can then use these images for your AI training purposes.\n\n## Feedback and support\n\nIf you have any issues, suggestions, or questions about this script, please feel free to [open an issue](https://github.com/richkmls/vid2train/issues).\n\n## Disclaimer\n\nThis script is provided \"as is\" without any warranty. The author is not responsible for any damage or loss caused by using this script. \nSee License for more info.\n\n## Citation\nTo acknowledge the use of vid2train in your research or project, please cite the following reference in your publications:\n\nRich K. MLS (2023). vid2train: A Software Tool for Extracting Images from a Video for Artificial Intelligence Training. GitHub repository. Available at: https://github.com/richkmls/vid2train\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubuseraccountamazing%2Fvid2train","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubuseraccountamazing%2Fvid2train","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubuseraccountamazing%2Fvid2train/lists"}