{"id":31566935,"url":"https://github.com/Srikanth1511/Glass-Stream","last_synced_at":"2025-10-05T08:02:31.481Z","repository":{"id":315956499,"uuid":"1061356598","full_name":"Srikanth1511/Glass-Stream","owner":"Srikanth1511","description":"Google Glass XE camera streamer with url ","archived":false,"fork":false,"pushed_at":"2025-09-21T19:52:41.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-21T21:28:51.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Srikanth1511.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-21T18:40:21.000Z","updated_at":"2025-09-21T19:52:44.000Z","dependencies_parsed_at":"2025-09-21T21:28:53.948Z","dependency_job_id":"4194af9d-ba1d-42a1-9a6c-f1d629a7ee71","html_url":"https://github.com/Srikanth1511/Glass-Stream","commit_stats":null,"previous_names":["srikanth1511/glass-stream"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Srikanth1511/Glass-Stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Srikanth1511%2FGlass-Stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Srikanth1511%2FGlass-Stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Srikanth1511%2FGlass-Stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Srikanth1511%2FGlass-Stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Srikanth1511","download_url":"https://codeload.github.com/Srikanth1511/Glass-Stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Srikanth1511%2FGlass-Stream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278425644,"owners_count":25984733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"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":[],"created_at":"2025-10-05T08:01:21.279Z","updated_at":"2025-10-05T08:02:31.475Z","avatar_url":"https://github.com/Srikanth1511.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"\n# Glass XE → PC Minimal MJPEG Stream (and Viewer)\n\nThis bundle contains:\n- **android-glass-streamer/** — Android (KitKat/API 19) project to run on **Google Glass XE**.  \n  Opens the camera and serves MJPEG at `http://\u003cGLASS_IP\u003e:8080/stream.mjpeg`.\n- **MainActivity** shows the actual Glass IP/URL on screen.\n- **pc-viewer/** — Python OpenCV viewer that connects to the stream and shows live video.\n- **viewer_mediapipe.py** — Python + MediaPipe Hands viewer that overlays hand landmarks.\n\nRun with Glass IP arg in terminal:\n```bash\npython viewer_mediapipe.py --url http://\u003cGLASS_IP\u003e:8080/stream.mjpeg --stride 2\n````\n\n---\n\n## 1) Build \u0026 install on Glass (Android Studio)\n\n1. Open **Android Studio** → *Open an existing project* → select `android-glass-streamer`.\n2. Let it sync. (Keep `compileSdkVersion`/`targetSdkVersion` at **19**).\n3. Connect Glass over ADB (`adb devices` should show it).\n4. **Run** the `app` on Glass. (Or build + install manually):\n\n   ```bash\n   gradlew assembleDebug\n   adb install -r app/build/outputs/apk/debug/app-debug.apk\n   ```\n\n### Start/Stop streaming\n#### 1) From Glass Interface\n* On Glass, launch **GlassStream**.\n#### 2) Using cmd on windows from inside android platform tools folder to launch the app\n\n ```bash\nadb shell am start -W -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n com.srikanth.glassstream/.MainActivity\n```\n\n* Tap **Start Stream** → foreground service starts, streaming MJPEG.\n  The IP/URL is shown on screen (auto-detected).\n* Tap **Stop Stream** → service stops.\n---\n\n## 2) View on PC (Python)\n\n```bash\ncd pc-viewer\npython -m venv .venv\n# Windows\n.\\.venv\\Scripts\\activate\n# Linux/macOS\nsource .venv/bin/activate\n\npip install -r requirements.txt\npython viewer.py --url http://\u003cGLASS_IP\u003e:8080/stream.mjpeg\n```\n\n* Press **ESC** to quit.\n\n---\n\n## 3) Quick sanity check in a browser\n\nOn your PC:\n\n```\nhttp://\u003cGLASS_IP\u003e:8080/\n```\n\nYou should see a simple page with `\u003cimg\u003e` updating.\n\n---\n\n## 4) Find Glass IP\n\n* On Glass: **Settings → Device Info → Status → IP address**\n* Or from PC:\n\n  ```bash\n  adb shell ip addr show wlan0\n  ```\n\n---\n\n## 5) Debugging FPS \u0026 Frames with adb logcat\n\nStreamService logs frame capture/encode counts every \\~30–60 frames.\nOn PC, run:\n\n```bash\nadb logcat -s StreamService\n```\n\nTypical output:\n\n```\nI/StreamService( 2827): Captured frames: 300 (640x480)\nI/StreamService( 2827): Encoded JPEGs: 600 (320x240)\n```\n\nUse this to compare different preview sizes, JPEG quality, or stride settings.\n\n---\n\n## Notes\n\n* The app uses the **legacy Camera API** + a simple **ServerSocket MJPEG server** (works on API 19).\n* Recommended preview size: **640x480** (change in `StreamService.java`).\n* Lower JPEG quality (40–50) = higher FPS. Current JPEG quality:60. This can be found in currentJpeg (), line\n`yuv.compressToJpeg(new Rect(0, 0, previewW, previewH), 60, baos);`\n* Glass and PC must be on the same Wi-Fi; allow port **8080** through firewall.\n\n---\n\n## Which IDE?\n\n* **Android part** → use **Android Studio**\n* **Python viewers** → run from terminal; edit in VS Code, PyCharm, etc.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSrikanth1511%2FGlass-Stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSrikanth1511%2FGlass-Stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSrikanth1511%2FGlass-Stream/lists"}