Skip to content

Commit

Permalink
Merge branch 'fix/xcode16-build' into fix/password-intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
ERussel committed Feb 5, 2025
2 parents 18c384e + 88bee47 commit 8f4999e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/qr_reader_pc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use qr_reader_phone::process_payload::{process_decoded_payload, InProgress, Read
use opencv::{
highgui,
imgproc::{cvt_color, COLOR_BGR2GRAY},
core::AlgorithmHint,
prelude::*,
videoio,
videoio::{CAP_PROP_FRAME_HEIGHT, CAP_PROP_FRAME_WIDTH},
Expand Down Expand Up @@ -123,7 +124,7 @@ fn camera_capture(camera: &mut videoio::VideoCapture, window: &str) -> Result<Gr
let mut image: GrayImage = ImageBuffer::new(DEFAULT_WIDTH, DEFAULT_HEIGHT);
let mut ocv_gray_image = Mat::default();

cvt_color(&frame, &mut ocv_gray_image, COLOR_BGR2GRAY, 0)?;
cvt_color(&frame, &mut ocv_gray_image, COLOR_BGR2GRAY, 0, AlgorithmHint::ALGO_HINT_DEFAULT)?;

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

0 comments on commit 8f4999e

Please sign in to comment.