Git Product home page Git Product logo

Comments (8)

ermig1979 avatar ermig1979 commented on May 18, 2024

Hello. Could you give me size of scan window of cascade that you use to.

from simd.

sunjunlishi avatar sunjunlishi commented on May 18, 2024

my train isSize(64,16) ,is it? Scan window cv::Size(80,20) to cv::Size(520,130));

from simd.

szad670401 avatar szad670401 commented on May 18, 2024

It is exactly that the square window is very fast such as 5050 。but i use it for some detection such as for pedestrian or license plate , which windows size is not square (e.g 6416 )is not so fast。

from simd.

ermig1979 avatar ermig1979 commented on May 18, 2024

If you use minimal size = cv::Size(60,60) and cascade window size = cv::Size(20,20) then the algorithm can reduce input image in 3 times (from 640x480 to 213x160) and process this small image. In second case the algorithm can reduce image only 1.25 times (relation between minimal size cv::Size(80,20) and cascade window size cv::Size(64,16)). So the algorithm need to process image of 512x384. The relation of areas (512x384)/(213x160) = 5.7. So it is not surprising that second case is slow.

P.S. OpenCV algorithm has the same behavior.

from simd.

sunjunlishi avatar sunjunlishi commented on May 18, 2024

oh i see,the training size(20,20) and my training Size(64,16) is important. is it?
it added the minimum scan size to determine the processing speed .thank you very much,and to trouble you

from simd.

ermig1979 avatar ermig1979 commented on May 18, 2024

The algorithm builds pyramid of scaled images with step which is setted by paramemter scaleFactor. Algorithm can skip the level, if window size is lesser or greater then minimal or maximal searched size (scaled to corresponding level). The main time is used to process low levels of the pyramid. So the parameter of minimal object size, cacade window size and scaleFactor have predominant influence to performance of the algorithm.

from simd.

sunjunlishi avatar sunjunlishi commented on May 18, 2024

oh ,ye scaleFactor 1.2; I understand thoroughly that the road far away is far away . thanks very much.

from simd.

sunjunlishi avatar sunjunlishi commented on May 18, 2024

Both rectangular and square, the speed is 2-3 times higher than the opencv ,your are great.

from simd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.