{"id":20478620,"url":"https://github.com/runningdeveloper/image-rec-testing","last_synced_at":"2026-03-19T16:03:26.265Z","repository":{"id":42835549,"uuid":"264685914","full_name":"runningdeveloper/image-rec-testing","owner":"runningdeveloper","description":"run tensorflow continuously or sparingly? ","archived":false,"fork":false,"pushed_at":"2022-03-26T17:42:03.000Z","size":275,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T15:13:56.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/runningdeveloper.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}},"created_at":"2020-05-17T14:30:20.000Z","updated_at":"2023-03-07T15:48:28.000Z","dependencies_parsed_at":"2022-08-27T02:19:00.608Z","dependency_job_id":null,"html_url":"https://github.com/runningdeveloper/image-rec-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/runningdeveloper/image-rec-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runningdeveloper%2Fimage-rec-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runningdeveloper%2Fimage-rec-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runningdeveloper%2Fimage-rec-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runningdeveloper%2Fimage-rec-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runningdeveloper","download_url":"https://codeload.github.com/runningdeveloper/image-rec-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runningdeveloper%2Fimage-rec-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-15T15:38:31.621Z","updated_at":"2026-03-06T16:32:06.681Z","avatar_url":"https://github.com/runningdeveloper.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-rec-testing\n\n## Hypothesis \n\nDoing a tensoflow prediction on an image is a heavy task. Maybe I don't need to send every image to get a prediction. For a security camera or bird watching thing. Could I save battery, resources and etc without having to do predictions continously.\nThe idea is running this on a raspberry pi.\n\nLet me know if this is wrong. I'm making many assumptions and don't have a deep understanding of tensorflow.\n\n## TODO\n\n- [x] Make a simple image recognition script\n- [x] Do a performance test doing image recognition \n- [x] See if I can get an image diffing thing to work\n- [x] Do a performace test on the diffing function\n- [ ] Test the difference and see if this is an effective method\n- [ ] Get some averages over multiple tests\n- [ ] MVP doing a prediction with image diff included\n\n## How (So I remeber what I did)\n\n- Using the inspect function in node (https://nodejs.org/en/docs/guides/debugging-getting-started/)[https://nodejs.org/en/docs/guides/debugging-getting-started/]\n- When I run ```test:tensorflow``` I can then open up chrome and ```chrome://inspect/#devices``` to get the inspect view.\n- Then look at the profiler and memory stuff.\n- Having trouble running the profiler when the script runs and then quits. So going with a simple timing function for now.\n- Found the benny npm module that can do some test suites\n- Trying it for simple function calls and then a \"real\" world case reading images and doing prediction\n\n## Some Results\n\n### 17 May timing only test\n\nIgnoring loading the model - assuming this is done once.\n(macbook pro 2014 with lots of chrome tabs open)\n\nTensorflow\n- Reading the image from disk with fs 1.215ms\n- 364.802ms for a prediction on person1.jpg \n\nJimp image diff\n- 93.703ms reading image person1.jpg into a Jimp file from disk\n- 158.570ms for the diff option\n- 108.662ms for the distance option\n\nSo a bit quicker doing a diff and Jimp.distance seems to be quicker than Jimp.diff. Roughly 45% quicker I think.\n\n### 19 May using benny\n\ndiff-test\n- checking a diff vs tensorflow it matches the 17 May 42.86% slower cool!\n\ntwo-images\n- do a \"real\" example 2 different images do a prediction vs diff\n- checking a diff vs tensorflow when including reading files\n- tensorflow only 20% slower than diff so diff is not that much quicker\n\nStill not sure I'm testing the correct things. Maybe best idea would be to do a test on same video on a raspberry pi. Check cpu usage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunningdeveloper%2Fimage-rec-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunningdeveloper%2Fimage-rec-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunningdeveloper%2Fimage-rec-testing/lists"}