mirror of https://github.com/davisking/dlib.git
Made the upsampling conditional on the image not being huge already.
This commit is contained in:
parent
766c46b5cf
commit
fee64827b7
|
@ -88,7 +88,7 @@ int main(int argc, char** argv) try
|
||||||
|
|
||||||
// Upsampling the image will allow us to detect smaller faces but will cause the
|
// Upsampling the image will allow us to detect smaller faces but will cause the
|
||||||
// program to use more RAM and run longer.
|
// program to use more RAM and run longer.
|
||||||
pyramid_up(img);
|
while(img.size() < 1800*1800)
|
||||||
pyramid_up(img);
|
pyramid_up(img);
|
||||||
|
|
||||||
// Note that you can process a bunch of images in a std::vector at once and it runs
|
// Note that you can process a bunch of images in a std::vector at once and it runs
|
||||||
|
|
Loading…
Reference in New Issue