You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had problems with the InitConfig() function in OrbbecPipeline.cs - it doesn't work with only one profile (because the -1 in the for loop) and also throws a lot of senseless warnings about "missing" profiles. So I fixed and simplified it. Could maybe adjusted:
private void InitConfig()
{
config = new Config();
for (int i = 0; i < orbbecProfiles.Length; i++)
{
var streamProfile = FindProfile(orbbecProfiles[i], StreamType.OB_STREAM_COLOR);
if (streamProfile != null)
{
config.EnableStream(streamProfile);
break;
}
streamProfile = FindProfile(orbbecProfiles[i], StreamType.OB_STREAM_DEPTH);
if (streamProfile != null)
{
config.EnableStream(streamProfile);
break;
}
streamProfile = FindProfile(orbbecProfiles[i], StreamType.OB_STREAM_IR);
if (streamProfile != null)
{
config.EnableStream(streamProfile);
break;
}
streamProfile = FindProfile(orbbecProfiles[i], StreamType.OB_STREAM_IR_LEFT);
if (streamProfile != null)
{
config.EnableStream(streamProfile);
break;
}
streamProfile = FindProfile(orbbecProfiles[i], StreamType.OB_STREAM_IR_RIGHT);
if (streamProfile != null)
{
config.EnableStream(streamProfile);
break;
}
}
}
The text was updated successfully, but these errors were encountered:
I had problems with the InitConfig() function in OrbbecPipeline.cs - it doesn't work with only one profile (because the -1 in the for loop) and also throws a lot of senseless warnings about "missing" profiles. So I fixed and simplified it. Could maybe adjusted:
The text was updated successfully, but these errors were encountered: