Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpaper produces empty output #109

Open
pwoehrer opened this issue Mar 13, 2022 · 3 comments
Open

unpaper produces empty output #109

pwoehrer opened this issue Mar 13, 2022 · 3 comments

Comments

@pwoehrer
Copy link

pwoehrer commented Mar 13, 2022

System information

  • OS: Manjaro Linux 21.2.4
  • kernel: 5.15.25-1
  • ffmpeg: n.5.0
  • unpaper: 6.1

Input file

temp-01.ppm PPM 1237x1751 1237x1751+0+0 8-bit sRGB 6.19695MiB 0.010u 0:00.008

Additional information

The problem initially occurred when using ocrmypdf. I did some testing trying to run unpaper with the settings in the error message directly from the commandline and it produced an empty file.

Running without any of the options (just infile and outfile) yields the same result.

The temporary files created by unpaper are empty as well.

There is no error message, but the outputfile is empty (filesize is 0 bytes).

Messages

unpaper -vvvv --dpi 200.086207 --layout none --mask-scan-size 100 --no-border-align --no-mask-center --no-grayfilter --no-blackfilter --no-deskew temp-01.ppm temp-01-1.ppm

unpaper 6.1
License GPLv2: GNU GPL version 2.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

-------------------------------------------------------------------------------
Processing sheet #1: temp-01.ppm -> temp-01-1.ppm
loading file temp-01.ppm.
Input #0, ppm_pipe, from 'temp-01.ppm':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: ppm, rgb24, 1237x1751, 25 fps, 25 tbr, 25 tbn
Output #0, image2, to '_loaded_0.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_page0.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_before_center_page0.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_after_center_page0.pnm':
  Stream #0:0: Unknown: none
blackfilter DISABLED for all sheets.
noisefilter-intensity: 4
blurfilter-size: [100,100]
blurfilter-step: [50,50]
blurfilter-intensity: 0.010000
grayfilter DISABLED for all sheets.
mask points: 
mask-scan-direction: [horizontal]
mask-scan-size: [100,100]
mask-scan-depth: [-1,-1]
mask-scan-step: [5,5]
mask-scan-threshold: [0.100000,0.100000]
mask-scan-minimum: [100,100]
mask-scan-maximum: [-1,-1]
mask-color: 16777215
deskew-scan DISABLED for all sheets.
border-scan-direction: [vertical]
border-scan-size: [5,5]
border-scan-step: [5,5]
border-scan-threshold: [5,5]
border-align: []
border-margin: [0,0]
white-threshold: 0.900000
black-threshold: 0.330000
sheet-background: white ffffff
dpi: 200
input-files per sheet: 1
output-files per sheet: 1
input-file-sequence:  temp-01.ppm
output-file-sequence: temp-01-1.ppm

input-file for sheet 1: temp-01.ppm
output-file for sheet 1: temp-01-1.ppm
sheet size: 1237x1751
...
Output #0, image2, to '_before-stretch1.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_after-stretch1.pnm':
  Stream #0:0: Unknown: none
+ blackfilter DISABLED for sheet 1
Output #0, image2, to '_before-noisefilter1.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_after-noisefilter1.pnm':
  Stream #0:0: Unknown: none
noise-filter ... deleted 434 clusters.
Output #0, image2, to '_before-blurfilter1.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_after-blurfilter1.pnm':
  Stream #0:0: Unknown: none
blur-filter... deleted 0 pixels.
+ grayfilter DISABLED for sheet 1
+ deskewing DISABLED for sheet 1
+ auto-centering DISABLED for sheet 1
Output #0, image2, to '_before-border1.pnm':
  Stream #0:0: Unknown: none
Output #0, image2, to '_after-border1.pnm':
  Stream #0:0: Unknown: none
writing output.
@LarsKumbier
Copy link

Possible duplicate of #108

@pwoehrer
Copy link
Author

pwoehrer commented Mar 20, 2022

Update

Updating to Manjaro 21.2.5 did not fix the bug.

Unpaper version still: 6.1-8

@Flameeyes
Copy link
Collaborator

Can you please try with unpaper-7.0.0? (I just released it, so you may want to ask your distro maintainers to update.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants