Ask Your Question

Revision history [back]

IMREAD Not working with windows form

I wanna do what I believe should be simple, but it's giving me a headache. I have a windows form that takes a picture from an external camera. The process works like this:

  • Click button on form
  • Send command camera to take JPEG image.
  • Load JPEG using IMREAD
  • Do some face detection
  • Save to new JPEG with face detection rectangle around face
  • Display pic on windows form

This works perfectly if I only do it ONCE. So let's say I try to take another pic, It won't work. Though the JPEG from the camera has been replaced by a new picture, it will not read it and therefore it will not update the new file. Any idea why this may be happening? any suggestions?

click to hide/show revision 2
retagged

updated 2014-03-31 01:47:40 -0600

berak gravatar image

IMREAD Not working with windows form

I wanna do what I believe should be simple, but it's giving me a headache. I have a windows form that takes a picture from an external camera. The process works like this:

  • Click button on form
  • Send command camera to take JPEG image.
  • Load JPEG using IMREAD
  • Do some face detection
  • Save to new JPEG with face detection rectangle around face
  • Display pic on windows form

This works perfectly if I only do it ONCE. So let's say I try to take another pic, It won't work. Though the JPEG from the camera has been replaced by a new picture, it will not read it and therefore it will not update the new file. Any idea why this may be happening? any suggestions?