Skip to content

Commit

Permalink
Add some more information about the generated images
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 8, 2023
1 parent 6889690 commit db67e8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scan_to_paperless/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2>Jobs status</h2>
<tr>
<th data-sortable="true">Folder</th>
<th data-sortable="true">Status</th>
<th>Details</th>
<th data-events="operateDetails">Details</th>
</tr>
</thead>
<tbody>
Expand Down
8 changes: 7 additions & 1 deletion scan_to_paperless/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
<li>Edit the generated image, then remove the <a href="./{name}/REMOVE_TO_CONTINUE" target="_blank"><code>REMOVE_TO_CONTINUE</code></a> file.</li>
<li>Edit the <a href="./{name}/config.yaml" target="_blank"><code>config.yaml</code></a> file to change the parameters, then remove the generated files ({generated_images}) to force the regeneration.</li>
<li>Edit the source images ({source_images}) then remove the corresponding generated files ({generated_images}) to force the regeneration.</li>
</ul>></p><p class="read-more"><a href="javascript:void(0)" class="button">Read More</a></p></div>"""
</ul>>
</p>
<p>In th <a href="./{name}/source" target="_blank"><code>source</code></a> folder you can also find some images postfixed by <code>-skew-corrected</code> that the source image where the skew correction is applied.</p>
<p>In the <a href="./{name}/histogram" target="_blank"><code>histogram</code></a> folder yu can find tow histogram of the source images, one of them use a logarithm scale.</p>
<p>In the <a href="./{name}/crop" target="_blank"><code>crop</code></a> folder you can find the images with the detected block used by the automatic crop.</p>
<p>In the <a href="./{name}/skew" target="_blank"><code>skew</code></a> golder you can find some images that represent the the shew detection will be based on.</p>
<p class="read-more"><a href="javascript:void(0)" class="button">Read More</a></p></div>"""


class _Folder(NamedTuple):
Expand Down
Binary file modified tests/status/status.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db67e8b

Please # to comment.