{"id":19879544,"url":"https://github.com/pvlbzn/avgframe","last_synced_at":"2026-04-16T00:31:44.649Z","repository":{"id":260192359,"uuid":"94540551","full_name":"pvlbzn/avgframe","owner":"pvlbzn","description":"Reverse of a time lapse videos. Map video to one image.","archived":false,"fork":false,"pushed_at":"2017-06-18T11:03:14.000Z","size":46371,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T02:41:40.733Z","etag":null,"topics":["opencv","video-processing"],"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/pvlbzn.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":"2017-06-16T12:11:23.000Z","updated_at":"2017-06-18T00:46:49.000Z","dependencies_parsed_at":"2024-10-30T03:52:26.922Z","dependency_job_id":null,"html_url":"https://github.com/pvlbzn/avgframe","commit_stats":null,"previous_names":["pvlbzn/avgframe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pvlbzn/avgframe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Favgframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Favgframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Favgframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Favgframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvlbzn","download_url":"https://codeload.github.com/pvlbzn/avgframe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Favgframe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["opencv","video-processing"],"created_at":"2024-11-12T17:08:48.270Z","updated_at":"2026-04-16T00:31:44.582Z","avatar_url":"https://github.com/pvlbzn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Average Frame\n\nProduce one frame from a sequence of frames such that resulting\nframe represents an average of a sequence.\n\n\n## Algorithm\n\n\u003cimg src=\"https://latex.codecogs.com/gif.latex?\\dpi{120}\u0026space;\\large\u0026space;(\\sum_{i=1}^{|\u0026space;\\,\u0026space;\\chi|\u0026space;\\,\u0026space;}\u0026space;\\chi_i)\u0026space;\\;\u0026space;/\u0026space;\\;\u0026space;|\\,\u0026space;\\chi\\,\u0026space;|\" title=\"\\large (\\sum_{i=1}^{| \\, \\chi| \\, } \\chi_i) \\; / \\; |\\, \\chi\\, |\" /\u003e\n\n\u003cimg src=\"https://latex.codecogs.com/gif.latex?\\dpi{120}\u0026space;\\large\u0026space;\\chi\u0026space;=\u0026space;\\left\u0026space;\\{\u0026space;x_1,\u0026space;x_2,\u0026space;...\u0026space;,\u0026space;x_n\\right\u0026space;\\}\u0026space;|\u0026space;x_i\u0026space;\\in\u0026space;\\mathbb{R}^m^^\\times\u0026space;n\" title=\"\\large \\chi = \\left \\{ x_1, x_2, ... , x_n\\right \\} | x_i \\in \\mathbb{R}^m^^\\times n\" /\u003e\n\nWhere _X_ is a set of frames, x is a particular frame.\n\n\n## Usage\n\nFrom terminal:\n\n```\npython3 path/to/video/file.mp4 frames_to_skip frames_to_grab\n```\n\nFrom REPL:\n\n```\nfrom src import averanger as a\n\n# Path to your video file\npath = 'data/video.mp4'\n\n# Frames to skip\nskip = 2000\n\n# Frames to grab\ngrab = 25\n\na.averengify(path, skip, grab)\n```\n\n\n## Outcomes\n\nThere is no one unique recipe besides basic video analysis. General rules are the following:\n\n* The more video is centered on some object and more this object 'still' the bigger grab value can be taken\n\n* The more video intense (change of the background, absence of central or 'still' object) the smaller grab value should be\n\n\n#### 170 Frames, Still\n\n![170 frames](https://github.com/pvlbzn/avgframe/raw/master/outcomes/sum.jpeg\n \"170 frames\")\n\n\n#### 5 frames, Action\n\n![5 frames](https://github.com/pvlbzn/avgframe/raw/master/outcomes/5.jpeg \"5 frames\")\n\n\n#### 10 frames, Action\n\n![10 frames](https://github.com/pvlbzn/avgframe/raw/master/outcomes/10.jpeg \"10 frames\")\n\n\n#### 25 frames, Action\n\n![25 frames](https://github.com/pvlbzn/avgframe/raw/master/outcomes/25.jpeg \"25 frames\")\n\n\n#### 50 frames, Action\n\n![50 frames](https://github.com/pvlbzn/avgframe/raw/master/outcomes/50.jpeg \"50 frames\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Favgframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvlbzn%2Favgframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Favgframe/lists"}