Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Mar 2 '13

berak gravatar image

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers )
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit) yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.multiDetect() or similar is what they want there!
click to hide/show revision 2
No.2 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers )) might sound obvious, but the sad story here is, that only 5% of all devs that believe in the idea, implement the actual check ...
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit) yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.multiDetect() or similar is what they want there!
click to hide/show revision 3
No.3 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers ) )

    might sound overly obvious, but the sad story here is, is:

    that
    • only 5% of all devs devs, that believe in the idea, actually implement the actual check ...
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit) yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.multiDetect() or similar is what they want there!

click to hide/show revision 4
No.4 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers )

    might sound overly obvious, but the sad story here is:

    • only 5% of all devs, that believe in the general idea, only 5% actually implement the check ...
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit) 8bit)

    yes, you'll want a color version around for drawing things into, into,

    but make sure, the img you pass to cascade.multiDetect() or similar is what they want there! grayscale

click to hide/show revision 5
No.5 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers )

    might sound overly obvious, but the sad story here is:

    • of all devs, that believe in the general idea, only 5% actually implement the check ...
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit)

    yes, you'll want a color version around for drawing things into,

    into, but make sure, the img you pass to cascade.multiDetect() cascade.detectMultiScale() or similar is actually grayscale

click to hide/show revision 6
No.6 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers )

    ) might sound overly obvious, but the sad story here is:

    • of all devs, that believe in the general idea, only 5% actually implement the check ...
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit)

    yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.detectMultiScale() or similar is actually grayscale

click to hide/show revision 7
No.7 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers ) might sound overly obvious, but the sad story here is:

    • of all devs, that believe in the general idea, only 5% actually implement the check ... if ( ! detect.load("cascade.xml") ) explode();
  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit)

    yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.detectMultiScale() or similar is actually grayscale

click to hide/show revision 8
No.8 Revision

the 2 main reasons i found, why this might fail are:

  • the cascade file was not found ( see all the other comments / answers ) might sound overly obvious, but the sad story here is:

    • of all devs, that believe in the general idea, only 5% actually implement the check ...

      if ( ! detect.load("cascade.xml") ) explode();

  • the image you supply to the actual detection is invalid(!) or not grayscale (1channel, 8bit)

    yes, you'll want a color version around for drawing things into, but make sure, the img you pass to cascade.detectMultiScale() or similar is actually grayscale