added clangd to dirs, fixed a name bug

This commit is contained in:
2025-11-05 11:32:53 +01:00
parent ffbd3ce7ae
commit 93c3d54483
60 changed files with 2 additions and 1268 deletions

View File

@@ -30,7 +30,7 @@ int calc_th(Mat img, float fg_ratio = 0.1f){
int main(){
Mat img = imread("../scanned3.png", IMREAD_GRAYSCALE);
int th = calc_th(img, 0.1f);
imshow("t", img);
Mat mask;
if(th != -1){
threshold(img, mask, th, 255, THRESH_BINARY);