hello im having problems with the facedetect filter in opencv,  soon as I press capture it exits to desktop.

most of the other filters seem to be working  but havn't tried them all yet.

 

 

 

GroG

11 years 3 months ago

Hi mkeen85 and Welcome,

I just tested it and it appears to be working for me - although I'm on Windows 64, camera would be different too.  The fact that it works with other filters is promising - most give the symptoms of no video feed at all.  

Thanks for attaching the log and jvm dump.  In the future you can use the NoWorky to quickly send a myrobotlab.log file - I'll get an email notification.

http://myrobotlab.org/content/helpful-myrobotlab-tips-and-tricks-0#noWorky

First thing I can think of is making sure the classfier file is in the correct location.

Go to the directory of where you installed MyRobotLab (MRL), there should be a directory called haarcascades and a file in it called haarcascade_frontalface_alt.xml.

That would be the first thing to verify.

 

Try also using pyramid down filter first (maybe a couple times) - this will reduce the size of the image which I've have had issues with in the past.

thanks for te kind welcome

and in future i will use the noworky.

i've just looked in the directory and there was no file called haarcascade_frontalface_alt.xml.

only hogcascade_pedestrians.xml

can you download the latest again, unzip it and re-install the OpenCV service?

I wonder if the install of the OpenCV service was interrupted in some way.

Let us know, good luck :)

hmm.. ok windows 7 but both are 32 bit.. I have a windows 64 bit and Linux 32... mebbe I can track down a windows 32 bit.

You tried to pyramid down - and that did not work either?

beetlejuice

11 years 3 months ago

Hello, i've the same problem . All openCv filters work fine except " Face detect " . It close MyRobotLab .

Same issue with " Pyramid down " ...

 

Windows 7 32 , laptop webcam .

GroG

11 years 3 months ago

Hmmm.. So this is the result I get running the current MRL version with a local avi file .

It WORKS ! :)

Good that it works, but bad in that it did not help me figure out what is causing your problems.

Let's look at the differences - I'm running Windows XP SP3

Looking at myrobotlab.log I have this

70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.name [Java HotSpot(TM) Client VM]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.version [23.21-b01]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.vendor [Oracle Corporation]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.version [23.21-b01]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.vendor [1.7.0_21-b11]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.home [C:\Java\jre7]
70   [main] INFO  class org.myrobotlab.framework.Service  - os.version [5.1]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.class.path [libraries/jar/autocomplete.jar;libraries/jar/ivy.jar;libraries/jar/javacpp.jar;libraries/jar/javacv-windows-x86.jar;libraries/jar/javacv.jar;libraries/jar/jgraphx.jar;libraries/jar/jna.jar;libraries/jar/jython.jar;libraries/jar/log4j-1.2.14.jar;libraries/jar/myrobotlab.jar;libraries/jar/rsyntaxtextarea.jar;libraries/jar/simple-xml-2.5.3.jar;libraries/jar/slf4j-api-1.6.1.jar;libraries/jar/slf4j-log4j12-1.6.1.jar;libraries/jar/x86.64.windows/*;libraries/jar/x86.32.windows/*;]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.library.path [libraries/native/x86.32.windows;libraries/native/x86.64.windows]
70   [main] INFO  class org.myrobotlab.framework.Service  - user.dir [C:\Documents and Settings\gperry\mrlTest\myrobotlab.1543.20130709.1336]
70   [main] INFO  class org.myrobotlab.framework.Service  - total mem [15] Mb
70   [main] INFO  class org.myrobotlab.framework.Service  - total free [11] Mb
 
Which means 15 Mb - is enough to run this file on this operating system without running out of memory.
 
The next test I would recommend is beetlejuice and you try it on a local file instead of a camera.

GroG

11 years 3 months ago

Here is a famous JPEG ...   well, I can try loading Windows 7 on a 32 bit virtual machine..  it might take me a while to find Windows 7.. but I'll begin looking ..  very strange..  You don't have other versions of OpenCV on your computer do you?  You could find out by searching for opencv_core* on your computer... Also, what version are you currently running ?  The version I tested on the XP 32 bit vm is - 1543.20130709.1336

beetlejuice

11 years 3 months ago

Ok, i've tried, with a picture ( lena.jpg ), a movie, and an other webcam ( external this time ) , but still the same result : MRL close

I've OpenCv installed on my laptop for use it with visual studio C++ . And the path is set for it in system paths .

I've also tried to run MRL with " windows XP SP2 compatibility mode ", but it don't run frown

mkeen85

11 years 3 months ago

Hi I don't have any other opencv on my system .

I was on MRL1543.20130709.1336 but just edged to 1545.20130710.2311.

 

pauloSouza

11 years 2 months ago

I had this error message:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x6d6b6d70, pid=1016, tid=4716
#
# JRE version: 7.0_25-b17
# Java VM: Java HotSpot(TM) Client VM (23.25-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [opencv_objdetect243.dll+0x26d70]  cvSetImagesForHaarClassifierCascade+0x18e0
#
Solution:
1- Make a backup of "\haarcascades\haarcascade_frontalface_alt.xml"
2- Rename the "\haarcascades\haarcascade_frontalface_alt2.xml" to "\haarcascades\haarcascade_frontalface_alt.xml"
3- Done.

GroG

11 years 2 months ago

Thanks for the log .. and um... 
It appears there is a definite trend ...  I'm starting to believe that this might be a "x86 32bit windows issue"

And this would be an issue of the build versus any other part...

Sooooooo...  what I would like to do is upgrade the OpenCV to 2.4.5 - I think I know of a complete set of working OpenCV binaries which should possibly alleviate this problem...

Ok, I'll start working on it... and soon it will be WORKY !

GroG

11 years 2 months ago

In reply to by pauloSouza

GREAT FIX PAULO !

Ok, now I'd like to know a little of the details.  You have switched Haarcascades, which are the results of "training".  I don't understand why it would be specific to some Intel processors.  I could understand it be a bad data file .. but it should have crashed my machine as well, if that was the case...

Hmmm... still a mystery.

Added Haar select now - build 1597 -  Should allow you to try alll the different files easily .. while capturing..

Tell me how it goes...http://myrobotlab.org/content/haar-cascades

beetlejuice

11 years 2 months ago

Solution:
1- Make a backup of "\haarcascades\haarcascade_frontalface_alt.xml"
2- Rename the "\haarcascades\haarcascade_frontalface_alt2.xml" to "\haarcascades\haarcascade_frontalface_alt.xml"
3- Done.
This worked for me too . Face detect is ok now, thx