Skip to content

Commit ef65dd0

Browse files
author
Filippo Mutta
committed
Updated xlink
1 parent 74f5a3a commit ef65dd0

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

cmake/depthaiDependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ else()
176176
FetchContent_Declare(
177177
XLink
178178
GIT_REPOSITORY https://github.com/luxonis/XLink.git
179-
GIT_TAG 0e2e7d11f0f128c1363b1ac208fb09a363afb9d8
179+
GIT_TAG 8423b90465d9f91d8c3fd108bb8c18a7b27d8a3e
180180
)
181181

182182
FetchContent_MakeAvailable(

examples/cpp/Camera/camera_still_max_res.cpp

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,28 @@ int main() {
5151
if(imgHd == nullptr) continue;
5252

5353
cv::Mat frame = imgHd->getCvFrame();
54-
cv::imshow("video", frame);
55-
56-
int key = cv::waitKey(1);
57-
if(key == 'q') {
58-
break;
59-
}
60-
if(key == 'c') {
61-
// Send a trigger message to the Script node
62-
qTrigger->send(std::make_shared<dai::Buffer>());
63-
}
64-
65-
if(highestResQ->has()) {
66-
auto highresImg = highestResQ->get<dai::ImgFrame>();
67-
if(highresImg != nullptr) {
68-
cv::Mat frame = highresImg->getCvFrame();
69-
// Save the full image
70-
cv::imwrite("full_image.png", frame);
71-
}
72-
}
54+
55+
std::cout << "Got frame" << std::endl;
56+
// cv::imshow("video", frame);
57+
58+
// int key = cv::waitKey(1);
59+
// if(key == 'q') {
60+
// break;
61+
// }
62+
// if(key == 'c') {
63+
// // Send a trigger message to the Script node
64+
// qTrigger->send(std::make_shared<dai::Buffer>());
65+
// }
66+
67+
// if(highestResQ->has()) {
68+
// auto highresImg = highestResQ->get<dai::ImgFrame>();
69+
// if(highresImg != nullptr) {
70+
// cv::Mat frame = highresImg->getCvFrame();
71+
// // Save the full image
72+
// cv::imwrite("full_image.png", frame);
73+
// }
74+
// }
7375
}
7476

7577
return 0;
76-
}
78+
}

0 commit comments

Comments
 (0)