# 更改 darknet YOLO demo test 影片/照片的框線文字粗細 ## 更改 darknet 照片的框線文字粗細 darknet YOLO test jpg bbox more bold 1.open `darknet/src/image.c` 2.find line 457 3.==change code== `image label = get_label_v3(alphabet, labelstr, (im.h*.021));` ---> `(im.h*.021)` ---> `(im.h*.021)` 4.find line 376 5.==change code== `int width = im.h * .009;` ---> `int width = im.h * .012;` 6. cd to darknet 7.` make j -8` ## 更改 darknet 影片的框線粗細 darknet YOLO demo mp4 avi bbox more bold 1.open `darknet/src/image_opencv.cpp` 2.find line 913 3.==change code== `int width = std::max(1.0f, show_img->rows * .008f);` .008f-->.009f (more bold) 4.find line 961 5.==change code== `float const font_size = show_img->rows/ 1000.F;` --->`float const font_size = show_img->rows*1.2/ 1000.F;` 6. cd to darknet 7.` make j -8`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up