Smart Glass Companion uses the Iristick SDK Examples code The app includes an embedded HTTP server which serves the camera sources as video stream. It provides trackpad features to enable zoom, auto-focus and flash-light as well as from the app via buttons or touchscreen interaction. Overall, the app provides the basis to access the camera simply from a computer in the same network.
An showcase of the prototype can be viewed on YouTube by clicking on the image or here https://youtu.be/meil9QvhVjo:
- Start App
- Navigate to Camera
- Open Browser with http://phone-ip:8080
- Single Tap trigger an autofocus
- Swiping zooms forth and back by factor 2
- Double tap activates the LED
- Pinch to zoom, pan to move and tap to autofocus on the previews to interact with the cameras
- The http server will be stopped when the preview screen is left, app is minimized or closed
- Only on connection with the browser is possible Hint: If somebody cannot connect because of a unknown connection left open e.g. tab or other browser, the best solution is to go back to exit the camera preview, which closes existing connections, reopen the preview and try to reconnect.
- Java and Android SDK
- Iristick SDK
- Sun's Httpserver
- MJPEG stream capabilities from HTTP protocol
- ReentrantLock to handle concurrent access of image frames because image capture rate and http stream rate happen asynchronously
- https://developer.iristick.com/1.3.2/getting-started/development-environment/
adb -d tcpip 5555
adb connect 10.0.0.10:5555
- https://iristick.com/uploads/files/IRI-spec-sheet-Iristick.G2-92021-US-industry_2021-10-27-085217_smgt.pdf
- https://de.wikipedia.org/wiki/Bildaufl%C3%B6sungen_in_der_Digitalfotografie
- Camera 0 16MP 4:3 4619×3464
- Camera 1 5MP 4:3 2582×1936
- Display 428 × 240
- https://developer.iristick.com/1.3.2/iristick-sdk-1.3.2.zip
- https://medium.com/hacktive-devs/creating-a-local-http-server-on-android-49831fbad9ca
- http://www.java2s.com/Code/Jar/h/Downloadhttp221jar.htm
- https://github.com/FriesW/java-mjpeg-streamer/blob/master/Java/src/com/github/friesw/mjpegstreamer/MjpegStreamer.java
- https://github.com/joshdickson/MJPG-Server/blob/master/src/mpegtest/MJPG.java
- http://mjpeg.sanford.io/count.mjpeg
- Increase version code in
AndroidManifest.xml
if needed - Open Android Studio and select
Build -> Generate Signed Bundle / APK -> Android App Bundle
and follow next steps - Locate apk under generated
release
folder
- Code changes are licensed under BSD mentioned in LICENSE.md file (https://opensource.org/licenses/BSD-3-Clause)