2024-07-29 11:43:52 +08:00

57 lines
2.8 KiB
HTML

{% extends "main_base.html" %}
{% block title%}Result|COVID-19 Detector{% endblock %}
{% block mycontent%}
<section class="page-header">
</section><!-- /.page-header -->
<section class="faq-one faq-one__faq-page" id="res_xray">
<div class="container">
<div class="block-title" style="margin-top: 50px;">
<h3>输入X光胸片</h3>
</div><!-- /.block-title -->
<div class="row">
<div class="col-lg-5" style="padding-bottom: 40px">
<img src="{{ url_for('static', filename='images/upload_img/' ~current_user.id ~ '/upload_chest.jpg')}}" height="480px" width="480px"
style="margin-top: -20px;margin-left: -50px;" alt="">
</div>
<div class="col-lg-7">
<div class="row" style="margin-top: -20px">
<h3 class="col-lg-7" style="font-weight: bold;">预测类别:{{pred_type}}</h3>
{%if pred_type=='COVID-19'%}
<a class="col-lg-3" href="{{ url_for('detect.sev_xray') }}">
<button type="button" class="btn btn-primary">严重性估计</button>
</a>
{%else%}
{%if current_user.role_id==1%}
<a class="col-lg-3" href="{{ url_for('user.my_patient',docid=current_user.id) }}">
<button type="button" class="btn btn-primary">反馈病患</button>
</a>
{%else%}
<a class="col-lg-3" href="{{ url_for('main.index') }}">
<button type="button" class="btn btn-primary">返回首页</button>
</a>
{%endif%}
{%endif%}
</div>
<h4 style="display: inline-block;">正常:{{pred_normal}}&nbsp;</h4>
<h4 style="display: inline-block;">普通肺炎:{{pred_pneu}}&nbsp;</h4>
<h4 style="display: inline-block;">新冠肺炎:{{pred_covid}}&nbsp;</h4>
<div class="row">
<div class="col-lg-12" style="margin-bottom: 10px;">
<p style="margin-bottom: 0;">在测试集上的阳性预测率</p>
<img src="{{ url_for('static', filename='images/ppv_xray.png')}}" height="160px" width="700px"
alt="">
</div>
</div>
<div class="row">
<div class="col-lg-12">
<p style="margin-bottom: 0;">在测试集上的灵敏度</p>
<img src="{{ url_for('static', filename='images/sens_xray.png')}}" height="160px" width="700px"
alt="">
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}