2020-02-07 14:21:59 +00:00
{% extends "nopaque.html.j2" %}
2020-08-24 12:21:16 +00:00
{% set main_class = 'ocr-color lighten' %}
2020-02-20 09:13:35 +00:00
2020-08-25 09:49:43 +00:00
{% block style_additions %}
main button, main .btn, main .btn-floating {background-color: {{ ocr_color_darken }};}
{% endblock %}
2019-07-19 11:28:17 +00:00
{% block page_content %}
2020-03-07 19:20:58 +00:00
<div class="col s12 m3 push-m9">
2020-08-24 12:21:16 +00:00
<div class="center-align">
2020-08-25 09:49:43 +00:00
<p class="hide-on-small-only"> </p>
<p class="hide-on-small-only"> </p>
<a class="btn-floating btn-large waves-effect waves-light" style="transform: scale(2);">
2020-08-24 12:21:16 +00:00
<i class="material-icons service" data-service="ocr"></i>
</a>
</div>
2020-03-07 19:20:58 +00:00
</div>
<div class="col s12 m9 pull-m3">
2020-08-24 12:21:16 +00:00
<div class="card" style="border-top: 10px solid {{ ocr_color_darken }};">
2020-03-02 09:42:25 +00:00
<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>
2020-02-18 14:31:10 +00:00
</div>
2019-07-19 13:15:49 +00:00
</div>
</div>
</div>
</div>
2020-03-02 13:19:54 +00:00
</div>
<div class="col s12">
2020-03-02 09:42:25 +00:00
<h3>Submit a job</h3>
<div class="card">
2020-04-16 07:40:38 +00:00
<form class="nopaque-submit-form" data-progress-modal="progress-modal">
2020-03-02 09:42:25 +00:00
<div class="card-content">
2020-04-17 09:04:09 +00:00
{{ add_job_form.hidden_tag() }}
2020-03-02 09:42:25 +00:00
<div class="row">
<div class="col s12 l4">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.title, data_length='32', material_icon='title') }}
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 l8">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.description, data_length='255', material_icon='description') }}
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 l5">
2020-08-24 12:21:16 +00:00
{{ M.render_field(add_job_form.files, accept='application/pdf', color=ocr_color_darken, placeholder='Choose your .pdf files') }}
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 l4">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.language, material_icon='language') }}
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 l3">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.version, material_icon='apps') }}
2020-03-02 09:42:25 +00:00
</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>
2020-02-27 15:26:04 +00:00
</div>
2020-03-02 09:42:25 +00:00
</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>
2019-09-24 10:03:24 +00:00
</div>
2020-03-02 09:42:25 +00:00
</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>
2020-02-27 15:26:04 +00:00
</div>
2020-03-02 09:42:25 +00:00
</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>
2019-09-12 14:00:48 +00:00
</div>
</div>
2020-03-02 09:42:25 +00:00
<!--
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>
-->
2019-08-01 06:22:17 +00:00
</div>
2020-03-02 09:42:25 +00:00
</div>
<div class="card-action right-align">
2020-08-24 12:21:16 +00:00
{{ M.render_field(add_job_form.submit, color=ocr_color_darken, material_icon='send') }}
2020-03-02 09:42:25 +00:00
</div>
</form>
2019-07-19 11:28:17 +00:00
</div>
</div>
2019-09-17 08:56:56 +00:00
<div id="progress-modal" class="modal">
<div class="modal-content">
2020-04-17 09:04:09 +00:00
<h4><i class="material-icons left">file_upload</i>Uploading files...</h4>
2019-09-17 08:56:56 +00:00
<div class="progress">
<div class="determinate" style="width: 0%"></div>
</div>
</div>
<div class="modal-footer">
2020-02-20 14:59:08 +00:00
<a href="#!" class="modal-close waves-effect waves-light btn red abort-request">Cancel</a>
2019-09-17 08:56:56 +00:00
</div>
</div>
2019-07-19 11:28:17 +00:00
{% endblock %}