How to deal with misaligned pages?

Asked by Cyril

Hi again Adam.
After playing around with XAMPP on Windows, I did manage to figure out the Docker method to setup queXF and wow its such a breeze and worked liked a charm. I think you should mention that on the website as well. Such an easy way to setup the installation. I have few concerns (sorry),
I got queXF latest running.
1. When scanning, certain pages seems bit rotated or included, the page isn't distorted but just get misaligned. Does queXF rotate the image when the markers are detected?
2. When using the queXML generated file with banding, I usually import the vanilla PDF then import banding and verify if the boxes are properly aligned and they usually are but does the scanned forms get properly matched? I noticed our scanner sometimes scales down the image so the form need to be scaled 103% (according to Photoshop) to match the queXML generated PDF.
3. When the forms are imported, do I have to go through all the forms and verify to save the data? I noticed even if the potential answers are detected when I go to verify, they do not appear on the unverified spreadsheet.

Thanks Adam, sorry for the trouble again.

Question information

Language:
English Edit question
Status:
Solved
For:
queXF Edit question
Assignee:
No assignee Edit question
Solved by:
Cyril
Solved:
Last query:
Last reply:
Revision history for this message
Adam Zammit (adamzammit) said :
#1

Hi Cyril,

Glad you got the Docker version running - I will update the website to reflect that as an installation option.

To reply to your points:

1. queXF will rotate the boxes when it detects the edges - please use the "Page setup" function to make sure that the edges will be detected when scanned. For some forms it appears you have to choose "Enable page setup" then "Disable page setup" to reset the page edge detection process.

2. Yes you should use the vanilla PDF with the banding file. The scanned forms should be autoMINmatically aligned based on the corner edges

3. You do need to verify the forms one by one to get the data. Data should appear in the unverified section though. If it doesn't - you may need to adjust the config.inc.php file with new SINGLE_CHOICE_MIN_FILLED and SINGLE_CHOICE_MAX_FILLED values to match your scan settings.

Adam

Revision history for this message
Cyril (thari69-gmail) said :
#2

Hi Adam,

1. I will try with this method to reset and fit the pages. Do I have to do this before or after I import the scans?

2. Which would be the best fit for the fitting? The boxes or the lines? (the page boarder markers)

3. I tried to edit the config.inc.php file and it kept on crashing for me after I edited it on docker. I get the error,
Fatal error: Allowed memory size of 402653184 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/config.default.php on line 89

Even after reseting the line of the variables for the ones you've mentioned, the image kept crashing and the only way to fix was reinstalling the image.

Revision history for this message
Cyril (thari69-gmail) said :
#3

Hi, just wanted to let you know,

3. I tried to edit the config.inc.php file and it kept on crashing for me after I edited it on docker. I get the error,
Fatal error: Allowed memory size of 402653184 bytes exhausted (tried to allocate 4096 bytes) in /var/www/html/config.default.php on line 89

Fixed this by changing the parameters through Kitematic itself instead of editing the config file through the Docker CLI.

All the issues were fixed and now analyzing like a charm. Thanks for your help and opensourcing this Adam.