Add initReslution
This commit is contained in:
@@ -51,8 +51,8 @@ int main(int argc, char *argv[]) {
|
||||
// device->RunOptionAction(Option::ERASE_CHIP);
|
||||
|
||||
std::size_t left_count = 0;
|
||||
device->SetStreamRequest(
|
||||
Resolution::RES_1280x400, Format::BGR888, FrameRate::RATE_30_FPS);
|
||||
device->InitResolution(Resolution::RES_1280x400);
|
||||
device->SetStreamRequest(Format::BGR888, FrameRate::RATE_30_FPS);
|
||||
device->SetStreamCallback(
|
||||
Stream::LEFT, [&left_count](const device::StreamData &data) {
|
||||
CHECK_NOTNULL(data.img);
|
||||
|
||||
Reference in New Issue
Block a user