Skip to content

Commit

Permalink
fix: qr_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Feb 11, 2025
1 parent 7df5a1d commit 8a4fa99
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 35 deletions.
168 changes: 136 additions & 32 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/qr_reader_pc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ quircs = "0.10.2"
indicatif = "0.17.7"

[dependencies.opencv]
version = "0.88"
version = "0.93"
default-features = false
features = ["videoio", "imgproc", "highgui"]
2 changes: 0 additions & 2 deletions rust/qr_reader_pc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use indicatif::ProgressBar;
use qr_reader_phone::process_payload::{process_decoded_payload, InProgress, Ready};

use opencv::{
core::AlgorithmHint,
highgui,
imgproc::{cvt_color, COLOR_BGR2GRAY},
prelude::*,
Expand Down Expand Up @@ -129,7 +128,6 @@ fn camera_capture(camera: &mut videoio::VideoCapture, window: &str) -> Result<Gr
&mut ocv_gray_image,
COLOR_BGR2GRAY,
0,
AlgorithmHint::ALGO_HINT_DEFAULT,
)?;

for y in 0..ocv_gray_image.rows() {
Expand Down

0 comments on commit 8a4fa99

Please sign in to comment.