{"id":18512022,"url":"https://github.com/mtrzc0/esp32-edge-detection","last_synced_at":"2026-04-20T10:32:17.229Z","repository":{"id":206794873,"uuid":"717718094","full_name":"mtrzc0/esp32-edge-detection","owner":"mtrzc0","description":"Project for PP RAI 2024","archived":false,"fork":false,"pushed_at":"2024-03-02T22:07:59.000Z","size":5552,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T11:44:17.216Z","etag":null,"topics":["ai","c","cpp","esp","esp32","freertos","tensor"],"latest_commit_sha":null,"homepage":"https://pp-rai.pl/en","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtrzc0.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-11-12T11:17:51.000Z","updated_at":"2024-08-18T10:24:37.000Z","dependencies_parsed_at":"2024-03-02T21:31:03.611Z","dependency_job_id":"616784a1-e7da-4c81-9669-f3911e28de6e","html_url":"https://github.com/mtrzc0/esp32-edge-detection","commit_stats":null,"previous_names":["mefjak000/esp32-cam-scanner","mtrzc0/esp32-edge-detection"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtrzc0/esp32-edge-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrzc0%2Fesp32-edge-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrzc0%2Fesp32-edge-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrzc0%2Fesp32-edge-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrzc0%2Fesp32-edge-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtrzc0","download_url":"https://codeload.github.com/mtrzc0/esp32-edge-detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtrzc0%2Fesp32-edge-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","c","cpp","esp","esp32","freertos","tensor"],"created_at":"2024-11-06T15:31:50.838Z","updated_at":"2026-04-20T10:32:17.207Z","avatar_url":"https://github.com/mtrzc0.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Project for PP RAI 2024\n\n# Core\n- [x] Event loop\n- [x] Wifi driver\n- [x] Cam driver\n- [x] Processing JPEG by edge detection algorithm \n- [x] Sending JPEG to Host\n- [x] Receiving JPEG from ESP32 via server.py\n\n### TODO\n- [ ] Fix error related to Torch ai model arch: `output_shape-\u003edata[shape_size] != dim_shape(1 != 0)\nNode STRIDED_SLICE (number 48f) failed to prepare with status 1`\n\n## Installation Steps for Edge Detection AI Model on ESP\n\nFollow the steps below to set up and run the edge detection AI model on ESP using ESP-IDF, TensorFlow, PIL, and Socket.\n### 1. Install ESP-IDF\n\nFollow the official ESP-IDF installation guide to set up the ESP-IDF development environment:\n\n```bash\n\ngit clone --recursive https://github.com/espressif/esp-idf.git\ncd esp-idf\n./install.sh\n```\n\n### 2. Install Python Packages\n\nInstall the required Python packages, including TensorFlow, PIL (Pillow), and Socket:\n\n```bash\n\npip install tensorflow pillow socket\n\n```\n### 3. Enable SPIRAM, AI model, setup wifi credentials\n\nRun the following command to configure the project using menuconfig:\n\n```bash\n\nidf.py menuconfig\n\n```\n\u003e Ensure WPA2 PSK for WiFi Connection\n\n### 4. Build, Flash, and Monitor\n\nBuild the project, flash it to the ESP, and monitor the output:\n\n```bash\n\nidf.py build flash monitor\n\n```\n### 5. Run Server\n\nFor capturing processed jpeg:\n\n```bash\n\npython3 server.py tensor\n\n```\nFor capturing raw jpeg:\n\n```bash\n\npython3 server.py jpeg\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrzc0%2Fesp32-edge-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtrzc0%2Fesp32-edge-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtrzc0%2Fesp32-edge-detection/lists"}