{"id":1459,"date":"2016-04-02T17:48:48","date_gmt":"2016-04-02T17:48:48","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1459"},"modified":"2022-02-03T11:24:34","modified_gmt":"2022-02-03T17:24:34","slug":"image-processing-detect-differences-flashing-frames","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/","title":{"rendered":"Image Processing to detect differences in flashing frames"},"content":{"rendered":"<p>I have a need to detect when a screen &#8220;stops changing&#8221; and that time will then be considered &#8220;done&#8221;. So first, the flashing is every 1 seconds, so if we average out frames in 2 seconds and use that &#8220;rolling averaged&#8221; frame vs. the subsequent rolling average (so 1 averaged frame later) and do some math to say &#8220;how much different&#8221; then we can look for when the changes stop and be happy we have an answer. So average 48 frames if you are using 24fps.<\/p>\n<p>Where to start? ImageMagick I think is a good place.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.imagemagick.org\/script\/compare.php\">compare function<\/a><\/li>\n<li>can it work on video so I don&#8217;t have to convert? <a href=\"http:\/\/www.imagemagick.org\/Usage\/formats\/#mpeg\">There seems to be hope<\/a>\n<ul>\n<li><a href=\"https:\/\/www.imagemagick.org\/discourse-server\/viewtopic.php?t=21190\">ffmpeg for avi to jpg (what I am using)<\/a><\/li>\n<\/ul>\n<\/li>\n<li><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have a need to detect when a screen &#8220;stops changing&#8221; and that time will then be considered &#8220;done&#8221;. So first, the flashing is every 1 seconds, so if we average out frames in 2 seconds and use that &#8220;rolling averaged&#8221; frame vs. the subsequent rolling average (so 1 averaged frame later) and do some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1459","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"I have a need to detect when a screen &#8220;stops changing&#8221; and that time will then be considered &#8220;done&#8221;. So first, the flashing is every 1 seconds, so if we average out frames in 2 seconds and use that &#8220;rolling averaged&#8221; frame vs. the subsequent rolling average (so 1 averaged frame later) and do some [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2016-04-02T17:48:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:34+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Image Processing to detect differences in flashing frames\",\"datePublished\":\"2016-04-02T17:48:48+00:00\",\"dateModified\":\"2022-02-03T17:24:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/\"},\"wordCount\":128,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/\",\"name\":\"Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2016-04-02T17:48:48+00:00\",\"dateModified\":\"2022-02-03T17:24:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/image-processing-detect-differences-flashing-frames\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Image Processing to detect differences in flashing frames\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/","og_locale":"en_US","og_type":"article","og_title":"Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.","og_description":"I have a need to detect when a screen &#8220;stops changing&#8221; and that time will then be considered &#8220;done&#8221;. So first, the flashing is every 1 seconds, so if we average out frames in 2 seconds and use that &#8220;rolling averaged&#8221; frame vs. the subsequent rolling average (so 1 averaged frame later) and do some [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2016-04-02T17:48:48+00:00","article_modified_time":"2022-02-03T17:24:34+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Image Processing to detect differences in flashing frames","datePublished":"2016-04-02T17:48:48+00:00","dateModified":"2022-02-03T17:24:34+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/"},"wordCount":128,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/","url":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/","name":"Image Processing to detect differences in flashing frames - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2016-04-02T17:48:48+00:00","dateModified":"2022-02-03T17:24:34+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/image-processing-detect-differences-flashing-frames\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Image Processing to detect differences in flashing frames"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1459"}],"version-history":[{"count":2,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1459\/revisions"}],"predecessor-version":[{"id":1461,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1459\/revisions\/1461"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}