Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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!

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!

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!

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

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

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

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

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