{"id":15976771,"url":"https://github.com/tobybreckon/opencv-record-windows","last_synced_at":"2026-05-16T18:32:04.457Z","repository":{"id":152042007,"uuid":"93201964","full_name":"tobybreckon/opencv-record-windows","owner":"tobybreckon","description":"a header class file hack to automagically (intercept and) record OpenCV windows to a movie file with minimal code additions","archived":false,"fork":false,"pushed_at":"2020-08-18T23:26:30.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T10:39:46.969Z","etag":null,"topics":["opencv","opencv-library","opencv2","opencv3"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobybreckon.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":"2017-06-02T20:36:53.000Z","updated_at":"2022-03-01T23:46:41.000Z","dependencies_parsed_at":"2023-09-14T09:04:24.487Z","dependency_job_id":null,"html_url":"https://github.com/tobybreckon/opencv-record-windows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tobybreckon/opencv-record-windows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobybreckon%2Fopencv-record-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobybreckon%2Fopencv-record-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobybreckon%2Fopencv-record-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobybreckon%2Fopencv-record-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobybreckon","download_url":"https://codeload.github.com/tobybreckon/opencv-record-windows/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobybreckon%2Fopencv-record-windows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33114169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","opencv-library","opencv2","opencv3"],"created_at":"2024-10-07T22:40:54.685Z","updated_at":"2026-05-16T18:32:04.440Z","avatar_url":"https://github.com/tobybreckon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Record OpenCV Image Windows - Video Capture via HighGUI display windows _hack_\n\nRequires [OpenCV 2.x / 3.x](http://www.opencv.org).\nWorks with OpenCV C++ or (older) C style interface\n\n---\n\n### Overview:\n\n```\n// Record OpenCV Image Display Windows to a Movie File\n// a.ka. a Video Capture via HighGUI display windows hack\n\n// automatically records highGUI windows defined with either of:\n// namedWindow(), cvNamedWindow() provided all such windows\n// are updated in the \"main loop\" via imshow() or cvShowImage().\n\n// Use: just include this header before all your code **including** the opencv\n// header (#include \u003ccv.h\u003e, #include \u003copencv2/...\u003e) etc.\n\n// Windows not to be recorded (or that are not updated) can be black-listed\n// via cvNamedWindowBlackList(windowName) (C) or\n// via namedWindowBlackList(windowName) (C++). Put these **directly** after\n// the corresponding namedWindow() or cvNamedWindow() call\n\n// Copyright (c) 2014 Toby Breckon, toby.breckon@durham.ac.uk\n// School of Engineering and Computing Sciences, Durham University\n// License : LGPL - http://www.gnu.org/licenses/lgpl.html\n\n/*  Usage example (see test.cpp, for instance):\n\n\u003c ---- START/TOP OF FILE that includes main() / \"main display loop\"\n#include \"opencv_record_output.h\"\n\n\u003c ----- your regular code including all other headers\n#include ....\n.....\n.....\nnamedWindowBlackList(\"controls\"); // a window we don't want / cannot capture\n.....\ncvNamedWindowBlackList(\"controls\"); // as above but for OpenCV C interface\n.....\n\u003c ---- END OF FILE \"that's it, no other code changes needed.\n\nDefaults: output video is 1280x720 max. - see code below to change\n\n```\n---\n\n### Example usage:\n\n```\nSee test.cpp:\n#include \"opencv_record_output.h\"\n#include \"bilateral_filter.cpp\"\n```\n\nwhich inserts this header before a standard [bilateral filter example](https://github.com/tobybreckon/opencv-record-windows/blob/master/bilateral_filter.cpp) from this repository - [OpenCV C++ examples](https://github.com/tobybreckon/cpp-examples-ipcv).\n\n---\n### Background:\n\nOriginally developed to generate the video examples for the ebook version of:\n\n [Dictionary of Computer Vision and Image Processing](http://dx.doi.org/10.1002/9781119286462) (R.B. Fisher, T.P. Breckon, K. Dawson-Howe, A. Fitzgibbon, C. Robertson, E. Trucco, C.K.I. Williams), Wiley, 2014.\n [[Google Books](http://books.google.co.uk/books?id=TaEQAgAAQBAJ\u0026lpg=PP1\u0026dq=isbn%3A1118706811\u0026pg=PP1v=onepage\u0026q\u0026f=false)] [[doi](http://dx.doi.org/10.1002/9781119286462)]\n\n... based on the example computer vision and image processing code in my other [OpenCV C++ examples](https://github.com/tobybreckon/cpp-examples-ipcv)\nand  [OpenCV C examples](https://github.com/tobybreckon/c-examples-ipcv) repositories.\n\n---\n\n### Example:\n\nClick for YouTube video example recorded from this example applied to the [bilateral filter example](https://github.com/tobybreckon/opencv-record-windows/blob/master/bilateral_filter.cpp) shown on an old mobile phone video of an evening crossing of Hong Kong harbour [[Fisher / Breckon et al., 2014](http://dx.doi.org/10.1002/9781119286462)].\n\n[![Example Video](http://img.youtube.com/vi/dFWRmQP9Y-A/0.jpg)](http://www.youtube.com/watch?v=dFWRmQP9Y-A)\n\n---\n\n### Reference:\n\n[Dictionary of Computer Vision and Image Processing](http://dx.doi.org/10.1002/9781119286462) (R.B. Fisher, T.P. Breckon, K. Dawson-Howe, A. Fitzgibbon, C. Robertson, E. Trucco, C.K.I. Williams), Wiley, 2014.\n[[Google Books](http://books.google.co.uk/books?id=TaEQAgAAQBAJ\u0026lpg=PP1\u0026dq=isbn%3A1118706811\u0026pg=PP1v=onepage\u0026q\u0026f=false)] [[doi](http://dx.doi.org/10.1002/9781119286462)]\n\n```\n@Book{fisher14dictionary,\n  author =   {Fisher, R.B. and Breckon, T.P.\n              and Dawson-Howe, K. and Fitzgibbon, A.\n              and Robertson, C. and Trucco, E. and Williams, C.K.I.},\n  title = \t {Dictionary of Computer Vision and Image Processing},\n  publisher = \t {Wiley},\n  year = \t {2014},\n  edition =      {2nd},\n  isbn =         {9781119941866},\n  doi = \t {10.1002/9781119286462}\n}\n```\n---\n\n### How to build and run example:\n\n```\ngit clone https://github.com/tobybreckon/opencv-record-windows.git\ncd opencv-record-windows\ncmake .\nmake\n./test\n```\n---\n\nIf you find any bugs report them to me (or much better still - submit a pull request, please) - toby.breckon@durham.ac.uk\n\n_\"may the source be with you\"_ - anon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobybreckon%2Fopencv-record-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobybreckon%2Fopencv-record-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobybreckon%2Fopencv-record-windows/lists"}