gdfonda / Terminator-Vision

Code sample for Terminator Vision article on Building Apps for Windows: https://blogs.windows.com/buildingapps
60 stars 28 forks source link

black screen switching from “Calculation pending” and “Active Spatial Mapping” #6

Open einstyle opened 7 years ago

einstyle commented 7 years ago

Problem: When I run the app, I only get a black screen with the bottom text switching from “Calculation pending” and “Active Spatial Mapping”. I get a subscription key for Cognitive Services and insert it in the code (Hud.cs) and in the inspector.

How to solve this?

einstyle commented 7 years ago

@gdfonda the application arrive to ReadWords but no tags are displayed. the key is correct because I used it in another application. Analysis has only ***** with nothing . threat assessment too.

einstyle commented 7 years ago

textToRead is empty even if I have in front of my a paper with text

getwilde commented 7 years ago

I am seeing the same issue where the message alternates between "Active Spatial Mapping" and "Calculation pending", but Analysis and Threat Assessment never update. (Unlike OP, red tint "Thermal" is displaying properly)

I have subscribed to the Computer Vision API and entered my key in the Hud GameObject, "Subscription Key" field.

This is in latest Unity 5.6.1f1 with most recent build of HoloToolkit-Unity.

UPDATE: I found the problem. In Hud.cs, I needed to update the endpoints to match the one listed on my azure API subscription page. string _computerVisionEndpoint = "https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/analyze?visualFeatures=Tags,Faces"; string _ocrEndpoint = "https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/ocr";