Small corrections to Orbbec Astra cameras tutorial

This commit is contained in:
Igor Murzov
2020-12-23 13:01:25 +03:00
parent e982ad2284
commit 19ef9505e8
2 changed files with 21 additions and 17 deletions

View File

@@ -25,10 +25,10 @@ struct Frame
int main()
{
//! [Open streams]
// Open color stream
VideoCapture colorStream(CAP_V4L2);
// Open depth stream
VideoCapture depthStream(CAP_OPENNI2_ASTRA);
// Open color stream
VideoCapture colorStream(0, CAP_V4L2);
//! [Open streams]
// Check that stream has opened