Skip to content

baeckgoo/hololens-2-x

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

hololens-2-x

This project is based on https://github.com/microsoft/HoloLens2ForCV/.
The project uses the POST method in HTTP request to obtain sensor data stream from HoloLens2 to the server.
(2021-08-09 Updated) Currently, RGB(PV) and Long Throw Depth(DLT) stream is supported. Other research mode sensor stream will be updated soon.

HttpServer

Requirements

  • flask
  • opencv-python
  • numpy

Set server IP and Port Number

The last line in app.py

app.run(host='192.168.0.3', port=5000)

Hololens2StreamClient

Preparation

Bulid the project the first time

https://docs.microsoft.com/en-us/windows/mixed-reality/develop/platform-capabilities-and-apis/using-visual-studio?tabs=hl2

  • Connect Hololens2 to Desktop with USB
  • Hololens2
    • Settings > Update & Security > For developers > Device discovery > Pair
    • Leave the Settings app at the PIN popup until you enter the PIN into Visual Studio during your first deployment.
  • Desktop
    • Open the project with Visual Studio.
    • Choose the ARM64 configuration option and select Device in the deployment target drop-down menu.
    • Start Debugging, you'll be prompted for a PIN.

Start the server and hololens2 app - Hololens2StreamClient

  • Server
    > python app.py
    
     * Running on http://192.168.0.3:5000/ (Press CTRL+C to quit)
     * Serving Flask app 'app' (lazy loading)
     * Environment: production
       WARNING: This is a development server. Do not use it in a production deployment.
       Use a production WSGI server instead.
     * Debug mode: off
  • Hololens2StreamClient
    • Select yes for permission request
    • Press the Start button.

Acknowledgment

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (No.2019-0-01270, WISE AR UI/UX Platform Development for Smartglasses)
This project is based on https://github.com/microsoft/HoloLens2ForCV/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 53.5%
  • C++ 44.6%
  • HLSL 1.7%
  • Python 0.2%