Skip to content

Commit

Permalink
Fix video input
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb committed May 27, 2024
1 parent 201469a commit 023fb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image_publisher/src/image_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ void ImagePublisher::doWork()
if (cap_.isOpened()) {
if (!cap_.read(image_)) {
cap_.set(cv::CAP_PROP_POS_FRAMES, 0);
image_flipped_ = false;
}
image_flipped_ = false;
}
if (flip_image_ && !image_flipped_) {
cv::flip(image_, image_, flip_value_);
Expand Down

0 comments on commit 023fb13

Please sign in to comment.