Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpectatorView occurred a compile error [Calibration.sln] #294

Open
psytgm opened this issue Jul 11, 2018 · 1 comment
Open

SpectatorView occurred a compile error [Calibration.sln] #294

psytgm opened this issue Jul 11, 2018 · 1 comment

Comments

@psytgm
Copy link

psytgm commented Jul 11, 2018

I have a camera "Canon EOS 700D", and a HDMI capture box "AVerMediaGC550".
I want to overlay the video stream form the camera with my Holograms.

Firstly, I have installed the driver of HDMI capture box, and install the driver and application.
Therefore, I guess the video stream from camera should be successfully captured by my PC.

And then, I also make some code changes as the websites has mentioned.

  1. Compositor\SharedHeaders\compositorConstant.h

    #define USE_OPENCV TRUE

    make the value for the #define USE_OPENCV to be TRUE and others to be FALSE
    the information was found in the Tested Capture Cards section in the website [Link]

  2. about the openCV
    (1)I had better to download and install OpenCV 3.4.1
    (2)if not, I need to update the #pragma comment(lib, "%LIB_NAME") in OpenCVFrameProvider.h and
    CalibrationApp.h to reference the updated lib number.
    (3)Do not use OpenCV 2.x.

  3. the information can be found in the **software **section in the website [Link]
    the **Dependencies.props **has change the path.

  4. the file of stdafx.h also concerned.
    The HOLOLENS_USER and HOLOLENS_PW was exactly the same as my HoloLens username and password.

There is one other thing bother me a lot.
As the website said, specifically in the Code Changes section, it said that

In OpenCVFrameProvider.h, change CAMERA_ID to be the index of the capture device you are using.

But, how do I access the index of the capture device?
Was the Camera_ID needed, or the capture card ID needed?

Anyway, the compile process just go though to show a whole blank screen.

Is there anyone ever resolve the problem, and give me a help?
thanks!

@psytgm
Copy link
Author

psytgm commented Jul 13, 2018

After struggling these days, I further found some information.

  1. the CAMERA_ID problem seem to be solved through a trick.
    The default value of the CAMERA_ID 0 was set for the webcam embedded in my Notebook. After I unplug the webcam, then the default camera should turn to be the camera of the Canon EOS 700D.

(ps. I can successfully build up a Calibration.exe)

  1. About the software requirement.
    As the website said [https://github.com/Microsoft/MixedRealityCompanionKit/tree/master/SpectatorView], the VS2017 has to install three components further, inclusive of
    (1)Universal Windows Platform development
    (2)Desktop development with C++
    (3)Game development with C++

  2. In addition, the following component was also required.
    Windows Media Feature Pack
    Only required for Windows N or KN editions.

The most important thing is that I was stuck with the installation step.

Because the windows version was 1803 (OS build 17134.165)
002

I downloaded the last one which is called Media Feature Pack for Windows N (April 2018)
001

And then, I double-click the downloaded file "Windows_MediaFeaturePack_x64_1803". But, it showed a message box.
And told me that "The update was not appropriate for my computer".
003

Now, I am not sure....

  1. Whether any installation steps was operated in a wrong way?
    or
  2. Maybe what I can do is to wait for the further updates?

Any suggestions?

(ps. sorry about some Chinese words appeared on the message box. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant