Skip to content

Commit 82bd389

Browse files
authored
fix warnings (#3330)
1 parent 110ae09 commit 82bd389

File tree

3 files changed

+2
-3
lines changed
  • demos

3 files changed

+2
-3
lines changed

demos/interactive_face_detection_demo/cpp_gapi/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ int main(int argc, char *argv[]) {
431431
std::shared_ptr<ImagesCapture> cap = openImagesCapture(FLAGS_i, FLAGS_loop);
432432
const auto tmp = cap->read();
433433
cap.reset();
434-
cv::Size frame_size = cv::Size{tmp.cols, tmp.rows};
435434
cap = openImagesCapture(FLAGS_i, FLAGS_loop, read_type::safe, 0, FLAGS_limit);
436435
/** ---------------- The execution part ---------------- **/
437436
stream.setSource<custom::CommonCapSrc>(cap);

demos/pedestrian_tracker_demo/cpp/src/tracker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void PedestrianTracker::SolveAssignmentProblem(
245245

246246
size_t i = 0;
247247
for (size_t id : track_ids) {
248-
if (res[i] < (int)detections.size()) {
248+
if (res[i] < detections.size()) {
249249
matches->emplace(id, res[i], 1 - dissimilarity.at<float>(i, res[i]));
250250
} else {
251251
unmatched_tracks->insert(id);

demos/text_detection_demo/cpp/include/cnn.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class Cnn {
3030
const std::string m_deviceName;
3131
ov::Core& m_core;
3232
cv::Size m_new_input_resolution;
33+
bool use_auto_resize;
3334
int m_channels;
3435
cv::Size m_input_size;
3536
std::string m_input_name;
@@ -40,5 +41,4 @@ class Cnn {
4041

4142
double m_time_elapsed;
4243
size_t m_ncalls;
43-
bool use_auto_resize;
4444
};

0 commit comments

Comments
 (0)