mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
173 lines
6.3 KiB
Django/Jinja
173 lines
6.3 KiB
Django/Jinja
{% extends "nopaque.html.j2" %}
|
||
|
||
{% set headline = '<i class="material-icons left service" data-service="ocr" style="font-size: inherit;"></i>Optical Character Recognition' %}
|
||
|
||
{% block page_content %}
|
||
<div class="col s12 m3 push-m9">
|
||
{% include 'services/roadmap.html.j2' %}
|
||
</div>
|
||
|
||
<div class="col s12 m9 pull-m3">
|
||
<div class="card">
|
||
<div class="card-content">
|
||
<div class="row">
|
||
<div class="col s12">
|
||
<div class="card-panel z-depth-0">
|
||
<span class="card-title"><i class="left material-icons">layers</i>OCR</span>
|
||
<p>In this process, nopaque converts your image data – like photos or scans – into text data. This step enables you to proceed with the computational analysis of your documents.</p>
|
||
</div>
|
||
</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">
|
||
{{ add_job_form.hidden_tag() }}
|
||
<div class="card-content">
|
||
<div class="row">
|
||
<div class="col s12 l4">
|
||
<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 l8">
|
||
<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 l5">
|
||
<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 l4">
|
||
<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 l3">
|
||
<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">
|
||
<span class="card-title">Preprocessing</span>
|
||
</div>
|
||
<div class="col s9">
|
||
<p>{{ add_job_form.binarization.label.text }}</p>
|
||
<p class="light">Based on a brightness threshold pixels are converted into either black or white. It is useful to reduce noise in images. (<b>longer duration</b>)</p>
|
||
</div>
|
||
<div class="col s3 right-align">
|
||
<div class="switch">
|
||
<label>
|
||
{{ add_job_form.binarization() }}
|
||
<span class="lever"></span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s12 divider"></div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s9">
|
||
<p>Page range</p>
|
||
<p class="light"></p>
|
||
</div>
|
||
<div class="col s3 right-align">
|
||
<div class="switch">
|
||
<label>
|
||
<input disabled type="checkbox">
|
||
<span class="lever"></span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s12 divider"></div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s9">
|
||
<p>Page rotation</p>
|
||
<p class="light"></p>
|
||
</div>
|
||
<div class="col s3 right-align">
|
||
<div class="switch">
|
||
<label>
|
||
<input disabled type="checkbox">
|
||
<span class="lever"></span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s12 divider"></div>
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s9">
|
||
<p>Page split</p>
|
||
<p class="light"></p>
|
||
</div>
|
||
<div class="col s3 right-align">
|
||
<div class="switch">
|
||
<label>
|
||
<input disabled type="checkbox">
|
||
<span class="lever"></span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<!--
|
||
Seperate each setting with the following
|
||
<div class="col s12"><p> </p></div>
|
||
<div class="col s12 divider"></div>
|
||
<div class="col s12"><p> </p></div>
|
||
-->
|
||
</div>
|
||
</div>
|
||
<div class="card-action right-align">
|
||
{{ macros.submit_button(add_job_form.submit) }}
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</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 %}
|