Skip to main content
1-Visitor
April 13, 2021
Question

How to get the camera picture with HoloLens?

  • April 13, 2021
  • 2 replies
  • 4008 views

Hi All,

I refer to this article. It can run successfully on mobile devices.

https://community.ptc.com/t5/Vuforia-Studio/Transferring-an-image-to-twx/m-p/703693

Now, I created a 3D Eyewear project and take picture to test it.
The preview can successfully save the picture, but it fails on HoloLens.

 

Below is my Experience Service log:

::ffff:192.168.2.102 - - [2021-04-09T01:27:41.470Z] "POST /Thingworx/Things/TestRepository/Services/SaveText HTTP/1.1" 401 0 "http://192.168.2.101:2019/ExperienceService/content/projects/test/index.html?expId=1" "Mozilla/5.0 (Windows NT 10.0; WebView/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763" 4 ms 192.168.2.101:2019 441428 [2021-04-09T01:27:41.466Z] - ms - ms - ms - ms
::ffff:192.168.2.102 - - [2021-04-09T01:27:41.471Z] "POST /Thingworx/Things/TestRepository/Services/SaveImage HTTP/1.1" 401 0 "http://192.168.2.101:2019/ExperienceService/content/projects/test/index.html?expId=1" "Mozilla/5.0 (Windows NT 10.0; WebView/3.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763" 10 ms 192.168.2.101:2019 441424 [2021-04-09T01:27:41.461Z] - ms - ms - ms - ms

 

How can I set permissions or other?

26E0A7F3-3921-4363-BF2D-E615F16C9AB4.png

2 replies

16-Pearl
April 14, 2021

for hololens

try

$scope.app.L = () => {
...
}
Yoyo1-VisitorAuthor
1-Visitor
April 14, 2021

I tried, it has the same problem.

16-Pearl
April 19, 2021

Have you tried the solution mentioned in the post https://community.ptc.com/t5/Vuforia-Studio/Transferring-an-image-to-twx/m-p/703693 ?

 

In your attachment, there is only one funciton $scope.L .

 

Nevertheless in the solution, there are

$scope.app.runMyTWXService = function() {...}
$scope.SaveImageToTwxRepository = function(path, content) {...}
$scope.app.takePictureEvent= function() {...}

Which works with the Hololens I have.

 

Yoyo1-VisitorAuthor
1-Visitor
May 25, 2021

I try to use Thingworx 9.1, but it failed.

17-Peridot
May 27, 2021

@Yoyo Please share the Experience Service log file, ThingWorx Application log and Vuforia log file to track the issue