Jump to content

SDK C Samples (9.0.3) not displaying any images from cameras


Alexis_G

Recommended Posts

Greetings,

I don't know if you can help me to understand what is happening with those samples, the OpenCV windows are not showing any data coming from the cameras, they are just creating the Mat objects full of zeros.  I also can see the pointers of both distorted_frame_*, but somehow is not "pulling" the data from that memory location. So far, I am able to get Pose, camera parameters and so on...

 

To verify the hardware, I already built the Unity samples and its working fine.

 

Thanks in advance.

 

 

2020-02-12-090942.jpg

2020-02-12-091109.jpg

 

@Daniel_Y @Jad

Link to comment
Share on other sites

[Update]

 

I've been playing with the debugger a little bit yesterday at night and it shows that the GetModuleData method does not returns the data for the given pointers (data: '/0'). Please reply, using the Unity version really reduces my flexibility using the SDK resources.

 

Thanks in advance.

Link to comment
Share on other sites

Thanks for replaying, HTC VIVE PRO, here are the logs...

Please be aware of the following references:

- 2/19/2020 10:50 AM (Unity) ~1.5 min -> SUCCESSFUL TEST

- 2/19/2020 10:53 AM (C SDK  9.0.3, Camera Control) ~1.5min -> FAILED TEST

Hopefully these can give you a good hint to solve this problem.

 

Thanks in advance!!!

HTC_LOGS.zip

Link to comment
Share on other sites

Hi Alexis,

I am sorry for omitting in sample code.

It should add an instruction for copy data from GPU.

You can resolve this problem by calling

ViveSR_SetParameterBool( ID_PASSTHROUGH, ViveSR::PassThrough::Param::DISTORT_GPU_TO_CPU_ENABLE, true);

after

ViveSR_InitialModule(ID_PASSTHROUGH);

We are going to fix this issue in next version.

Thank you for reporting the issue.

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

The solution mentioned above works nicely but contains typos, 

Correct is 

ViveSR_SetParameterBool( ID_SEETHROUGH, ViveSR::SeeThrough::Param::DISTORT_GPU_TO_CPU_ENABLE, true);

after 

ViveSR_InitialModule(ID_SEETHROUGH);

 

  • Like 2
Link to comment
Share on other sites

  • 2 months later...
On 2/25/2020 at 8:20 AM, wenjiec_shen said:

We are going to fix this issue in next version.

The aforementioned workaround fixed this for me as well.

@wenjiec_shen When are you guys planning to release the next version? It's been three months since you posted the workaround. For new customers--such as myself--this bug makes it seem that the SRWorks SDK is broken altogether (the example programs don't show any camera input at all).

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...