nopaque/app/templates/services/ocr.html.j2
2020-02-24 09:27:02 +01:00

211 lines
8.9 KiB
Django/Jinja

{% extends "nopaque.html.j2" %}
{% set title = '<i class="material-icons left service" data-service="ocr" style="font-size: inherit;"></i>Optical Character Recognition' %}
{% block page_content %}
<div class="col s12 m9 l10">
<div class="col s12">
<div class="card">
<div class="card-content">
<div class="row">
<div class="col s12 m6">
<span class="card-title"><i class="left material-icons">layers</i>Eingabe von Bilddaten</span>
<p>Über ein Auftragsformular können Bilddaten in Form von PDF-Dateien hochgeladen werden.</p>
</div>
<div class="col s12 hide-on-med-and-up">&nbsp;</div>
<div class="col s12 m6">
<span class="card-title"><i class="left material-icons">layers</i>Optische Zeichenerkennung</span>
<p>Die optische Zeichenerkennung erfolgt in der Recheninfrastruktur der Plattform.</p>
</div>
<div class="col s12">&nbsp;</div>
<div class="col s12 m6">
<span class="card-title"><i class="left material-icons">layers</i>Fehlerkorrektur</span>
<p>Je nach Qualität der Eingabedaten kann es zu Fehlern kommen, die korrigiert werden sollten.</p>
</div>
<div class="col s12 hide-on-med-and-up">&nbsp;</div>
<div class="col s12 m6">
<span class="card-title"><i class="left material-icons">layers</i>Weiterverarbeitung</span>
<p>Die Textdaten können weiterverarbeitet<a class="tooltipped" data-position="top" data-tooltip="Zum Beispiel durch die hier angebotene linguistische Datenverarbeitung."><sup>[*]</sup></a> oder in dieser Form bereits genutzt<a class="tooltipped" data-position="top" data-tooltip="Zum Beispiel mit dem Programm &quot;AntConc&quot;."><sup>[*]</sup></a> werden.</p>
</div>
</div>
</div>
</div>
</div>
<div class="col s12">
<h3>Submit a job</h3>
<div class="card">
<form class="nopaque-job-form" data-progress-modal="progress-modal">
<div class="card-content">
{{ add_job_form.hidden_tag() }}
<div class="row">
<div class="col s12 m4">
<div class="input-field">
<i class="material-icons prefix">title</i>
{{ add_job_form.title(class="validate", data_length='32') }}
{{ add_job_form.title.label }}
{% for error in add_job_form.title.errors %}
<span class="helper-text red-text">{{ error }}</span>
{% endfor %}
</div>
</div>
<div class="col s12 m8">
<div class="input-field">
<i class="material-icons prefix">description</i>
{{ add_job_form.description(class="validate", data_length='255') }}
{{ add_job_form.description.label }}
{% for error in add_job_form.description.errors %}
<span class="helper-text red-text">{{ error }}</span>
{% endfor %}
</div>
</div>
<div class="col s12 m5">
<div class="file-field input-field">
<div class="btn">
<span>{{ add_job_form.files.label.text }}</span>
{{ add_job_form.files(accept='application/pdf, image/tiff') }}
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
{% for error in add_job_form.files.errors %}
<span class="helper-text red-text">{{ error }}</span>
{% endfor %}
</div>
</div>
<div class="col s12 m4">
<div class="input-field">
<i class="material-icons prefix">language</i>
{{ add_job_form.language(class="validate") }}
{{ add_job_form.language.label }}
{% for error in add_job_form.language.errors %}
<span class="helper-text red-text">{{ error }}</span>
{% endfor %}
</div>
</div>
<div class="col s12 m3">
<div class="input-field">
<i class="material-icons prefix">apps</i>
{{ add_job_form.version(class="validate") }}
{{ add_job_form.version.label }}
{% for error in add_job_form.version.errors %}
<span class="helper-text red-text">{{ error }}</span>
{% endfor %}
</div>
</div>
<div class="col s12"><p>&nbsp;</div>
<div class="col s12 m4">
<div class="row">
<div class="col s9">
<span class="card-title">Page range (N.a.)</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempora invidunt ut</p>
<div class="row valign-wrapper">
<div class="col s5">
<div class="input-field">
<input id="first-page" type="text" class="validate" value="0">
<label for="first-page">From start</label>
</div>
</div>
<div class="col s2">
<p>&ndash;</p>
</div>
<div class="col s5">
<div class="input-field">
<input id="last-page" type="text" class="validate" value="0">
<label for="last-page">Before end</label>
</div>
</div>
</div>
</div>
<div class="col s3">
<div class="switch">
<label>
<input type="checkbox" disabled>
<span class="lever"></span>
</label>
</div>
</div>
</div>
</div>
<div class="col s12 m4">
<div class="row">
<div class="col s9">
<span class="card-title">Page split (N.a.)</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempora invidunt ut</p>
<p class="range-field">
<input type="range" id="page-split" min="30" max="70" value="0">
</p>
</div>
<div class="col s3">
<div class="switch">
<label>
<input type="checkbox" disabled>
<span class="lever"></span>
</label>
</div>
</div>
</div>
</div>
<div class="col s12 m4">
<div class="row">
<div class="col s9">
<span class="card-title">Page rotation (N.a.)</span>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempora invidunt ut</p>
<p class="range-field">
<input type="range" id="page-rotation" min="0" max="360" value="0">
</p>
</div>
<div class="col s3">
<div class="switch">
<label>
<input type="checkbox" disabled>
<span class="lever"></span>
</label>
</div>
</div>
</div>
</div>
<div class="col s12"></div>
<div class="col s12 m4">
<div class="row">
<div class="col s9">
<span class="card-title">Binarization</span>
<p class="light">Based on a brightness threshold pixels are converted to either black or white. It's usefull to reduce noise in images. (<b>long duration</b>)</p>
</div>
<div class="col s3">
<div class="switch">
<label>
{{ add_job_form.binarization() }}
<span class="lever"></span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-action right-align">
{{ macros.submit_button(add_job_form.submit) }}
</div>
</form>
</div>
</div>
</div>
<div class="col hide-on-small-only m3 l2">
{% include 'services/roadmap.html.j2' %}
</div>
<div id="progress-modal" class="modal">
<div class="modal-content">
<h4><i class="material-icons left">file_upload</i>Uploading files for <span class="title"></span></h4>
<div class="progress">
<div class="determinate" style="width: 0%"></div>
</div>
</div>
<div class="modal-footer">
<a href="#!" class="modal-close waves-effect waves-light btn red abort-request">Cancel</a>
</div>
</div>
{% endblock %}