bug or error in analyses? ver 1167 (Bug #116)


Added by red sea over 12 years ago. Updated over 12 years ago.


Status:Closed Start date:01/08/2013
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-

Description

when i used (in terminal):

auto-multiple-choice analyse --projet ./ ./scans/*

i got this error:


OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 3108
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:3108: error: (-5) Bad image header in function cvCloneImage

OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 3108
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:3108: error: (-5) Bad image header in function cvCloneImage

i don't know what is this error ?

regards


History

Updated by Alexis Bienvenüe over 12 years ago

Please post your scan.

Updated by Alexis Bienvenüe over 12 years ago

These scans seem to work with me... Can you send me the project directory, and the log file from debugging mode?

Updated by Alexis Bienvenüe over 12 years ago

You can get the debugging log creating a log file and then adding a --debug option to auto-multiple-choice, like:

touch /tmp/debug.log
auto-multiple-choice analyse --debug /tmp/debug.log --projet ./ ./scans/*

Updated by red sea over 12 years ago

this is the debug file:
http://www.gulfup.com/?P2UlcZ

Updated by Alexis Bienvenüe over 12 years ago

I don't see the reported error in the scan file. Please call analysis on a single problematic scan:

cp /dev/null /tmp/debug.log
auto-multiple-choice analyse --debug /tmp/debug.log --projet ./ ./scans/problematic-scan-file.tif

Updated by red sea over 12 years ago

http://www.gulfup.com/?Mw6Te5

no error messege when i analyse single tif file?!

Updated by Alexis Bienvenüe over 12 years ago

no error messege when i analyse single tif file?!

Perhaps the error was showing when trying to analyse PDF files (./scans/* selects all files, including PDF)? auto-multiple-choice analyse can't handle PDF files (you have to use auto-multiple-choice getimages first to convert PDF to bitmap format).

Updated by red sea over 12 years ago

i deleted all pdf files in scans folder,but i got the same error messege:

auto-multiple-choice analyse --projet ./ ./scans/*
OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 3108
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:3108: error: (-5) Bad image header in function cvCloneImage

OpenCV Error: Bad argument (Bad image header) in cvCloneImage, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp, line 3108
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:3108: error: (-5) Bad image header in function cvCloneImage

Page : +1/1/60+
Page : +3/1/58+
Page : +2/1/59+

Updated by Alexis Bienvenüe over 12 years ago

Please try to call the command with each single scan in turn, to find the problematic scan.

Updated by red sea over 12 years ago

ok,
1.tif ... no error

auto-multiple-choice analyse --projet ./ ./scans/1.tif
Page : +1/1/60+

2.tif ... no error

auto-multiple-choice analyse --projet ./ ./scans/2.tif
Page : +2/1/59+

3.tif ... no error

auto-multiple-choice analyse --projet ./ ./scans/3.tif
Page : +3/1/58+

Updated by red sea over 12 years ago

i changed the project, but i got the same problem, if i used :

./scans/*

the 2nd project..
http://im33.gulfup.com/7EVL1.tif

Updated by red sea over 12 years ago

and the problem in the terminal not in gui.

Updated by Alexis Bienvenüe over 12 years ago

Did you try

auto-multiple-choice analyse --projet ./ ./scans/*.tif

(to be sure only TIF files are selected)?

Updated by red sea over 12 years ago

Alexis Bienvenüe wrote:

Did you try

auto-multiple-choice analyse --projet ./ ./scans/*.tif

(to be sure only TIF files are selected)?

thanks, yes with *.tif was no error.

but i got this error:

when i used "--assoc assoc.xml" with (auto-multiple-choice association-auto) in terminal i got this msg : assoc unknown option.
when i used "--bareme scoring.xml" with (auto-multiple-choice prepare) in terminal i got this msg : bareme unknown option.

Updated by red sea over 12 years ago

the full code:

#!/bin/bash
# scaned all papers
notify-send 'برنامج التصحيح الآلي' 'بإسم الله نبدأ وبه نستعين' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg 
scanimage -b --batch-count=n --source ADF --format=tiff --mode Color --resolution 200 -x 210 -y 297
notify-send 'Auto Multiple Choice' 'تم المسح الضوئي للأوراق' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg 
# analyse in AMC
cd ..
auto-multiple-choice prepare --mode s --with xelatex --prefix ./ ./as.tex --data ./data/
auto-multiple-choice analyse --projet ./ ./scans/*.tif
notify-send 'برنامج التصحيح الآلي' 'تمت قراءة البيانات آليا' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice note --data ./data --seuil 0.6 --notemax 30 --grain 0.5 --arrondi s
notify-send 'برنامج التصحيح الآلي' 'تم حساب الدرجات' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice association-auto --data ./data --notes-id StudentNum --liste ./ph.csv --liste-key idn
notify-send 'برنامج التصحيح الآلي' 'تم الربط الآلي بالطلاب' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice annote --projet ./ --data ./data --fich-noms ph.csv
notify-send 'برنامج التصحيح الآلي' 'تمت طباعة النتائج على الأوراق جى بي جي' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice regroupe --with xelatex --projet ./ --sujet DOC-sujet.pdf --fich-noms ph.csv --tex-src as.tex --compose
notify-send 'برنامج التصحيح الآلي' 'تمت طباعة النتائج على الأوراق بي دي إف' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice export --data ./data \
    --module ods \
    --fich-noms ph.csv \
    --o ./exports/output-note.ods
notify-send 'برنامج التصحيح الآلي' 'تم تصدير النتائج لكلك' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
auto-multiple-choice export --data ./data \
    --module CSV \
    --fich-noms ph.csv \
    --o ./exports/output-note.csv
notify-send 'برنامج التصحيح الآلي' 'تم تصدير النتائج سي اس في' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg
notify-send 'برنامج التصحيح الآلي' 'تم بحمد الله التصحيح والرصد' --icon=/usr/share/auto-multiple-choice/icons/auto-multiple-choice.svg 

this script (sh) :
- scan papers: good
- compute marks : no

i don't know the problem ?!

Updated by Alexis Bienvenüe over 12 years ago

assoc unknown option.
bareme unknown option.

These options were dropped when switching to SQLite databases (version 1.1). See new syntax in the english documentation.

Updated by red sea over 12 years ago

thanks, please what is the wrong in the last script (comment 16) about compute marks ?

regard

Updated by Alexis Bienvenüe over 12 years ago

You must extract the scoring strategy with auto-multiple-choice prepare --mode b [...] befora marking with auto-multiple-choice note.

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Updated by red sea over 12 years ago

i think the problem is :
- i used a omr form (design with AMC - postcorrect) without any Question, and there are no command line to choose the the teacher paper (right answers)?

regards

Also available in: Atom PDF