Skip to content

Commit

Permalink
fix: 修复locator处理窄图片错误
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoerWu committed Feb 13, 2025
1 parent cb053ba commit 043dfaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ pub fn locate(image: &BGRImage) -> Vec<i32> {
lst = -1;
}
}
if lst != -1 {
result.push(lst);
result.push(height as i32);
}

result
}
Expand Down

0 comments on commit 043dfaa

Please sign in to comment.