--seuil-coche threshold does not exist?

Added by Nhu Le over 11 years ago

I am trying to use a lower value for this option. However, when I run the command

auto-multiple-choice analyse --no-multiple --seuil-coche 0.09 --tol-marque 0.2,0.2 --prop 0.8 --bw-threshold 0.6 --progression-id analyse --progression 1 --n-procs 0 --data /home/nle/MC-Projects/dhcd2/data --projet /home/nle/MC-Projects/dhcd2/ --cr /home/nle/MC-Projects/dhcd2/cr --liste-fichiers files_to_scan.txt --no-ignore-red

The output:
Unknown option: seuil-coche
OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /builddir/build/BUILD/OpenCV-2.3.1/modules/core/src/array.cpp, line 3108
terminate called after throwing an instance of 'cv::Exception'
  what():  /builddir/build/BUILD/OpenCV-2.3.1/modules/core/src/array.cpp:3108: error: (-5) Bad image header in function cvCloneImage

In the GUI, I specified the threshold to be 0.09 as well but I don't see that reflected anywhere in the command. Does it get passed to the command as executable parameters or by some other mean?


Replies (4)

RE: --seuil-coche threshold does not exist? - Added by Alexis Bienvenüe over 11 years ago

--seuil-coche is an old option that has been dropped. AMC-analyse now only measures the darkness ratio of each box on the scan. It is not AMC-analyse that is responsible to say if a box is considered as being ticked or not, but AMC-note.
The OpenCV error tells you that OpenCV couldn't read your scan file. Is this a standard raster image? OpenCV can't read PDF files, for example.

RE: --seuil-coche threshold does not exist? - Added by Nhu Le over 11 years ago

If I remove the seuil-coche then there would be no error and everything works. I guess opencv probably thinks the option is the file to be process or something???

RE: --seuil-coche threshold does not exist? - Added by Nhu Le over 11 years ago

That option is still in the documentation so may be we should remove that reference.

RE: --seuil-coche threshold does not exist? - Added by Alexis Bienvenüe over 11 years ago

I guess opencv probably thinks the option is the file to be process or something???

That can be the problem. Requesting a debugging log would confirm that.

That option is still in the documentation so may be we should remove that reference.

Yes! I updated the documentation in revision r1358.

(1-4/4)