gpt4 book ai didi

opencv - 使用 Haar Cascade 的正负图像的大小

转载 作者:太空宇宙 更新时间:2023-11-03 21:46:47 24 4
gpt4 key购买 nike

大家好,我有一个关于 haartraining 的问题!好吧,我有 3000 张 640x480 大小的正图和负图,我想知道如果我必须裁剪成更小的尺寸,如 24x24 或者当我设置 -w 和 -h 参数时createsample 图像将被调整大小??

最佳答案

opencv_createsamples 实用程序用于增加正样本的数量。因此,大量的正图像是从具有来自负图像集的背景的正数据集创建的,旋转图像等。

因此正图像被缩放到创建样本图像时指定的 (w,h)。

The only care to be taken is that the ratio of width and height must be proportional to that of the positive images for decent results.

关于opencv - 使用 Haar Cascade 的正负图像的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21915021/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com