hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.32k stars 1.48k forks source link

如何高效处理用于训练haar分类器的阳极样本图片? #215

Closed revox0x closed 5 years ago

revox0x commented 5 years ago

我想训练一个分类器,但在处理阳极样本的图片上遇到了困难,通过手机采集图像之后,我不知道该如何精确地将目标样本按照25x45的像素比例裁剪出来,请问有高效的方法可以解决这个问题吗?

hamuchiwa commented 5 years ago

裁剪的时候固定好长宽比,分辨率先不用管,全部裁剪完之后,可以用photoshop批处理或者写几行代码改成统一的分辨率

在 2019年5月26日,15:15,revox0x notifications@github.com<mailto:notifications@github.com> 写道:

我想训练一个分类器,但在处理阳极样本的图片上遇到了困难,通过手机采集图像之后,我不知道该如何精确地将目标样本按照25x45的像素比例裁剪出来,请问有高效的方法可以解决这个问题吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/hamuchiwa/AutoRCCar/issues/215?email_source=notifications&email_token=ACE2T5NE24VL56M2NWUVLK3PXLOT5A5CNFSM4HPXJCFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GV5BTHQ, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACE2T5KD5UC4TH2SIKBFA4LPXLOT5ANCNFSM4HPXJCFA.

revox0x commented 5 years ago

感谢您的回复,我知道该怎么做了。