294 lines
8.3 KiB
HTML
294 lines
8.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<link rel="icon" type="image/x-icon" href="static/favicon.ico">
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Результаты анализа DICOM</title>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
body {
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
background: white;
|
|
color: #333;
|
|
padding: 25px;
|
|
text-align: center;
|
|
border-bottom: 2px solid #eee;
|
|
}
|
|
|
|
.logo-container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
margin: 0 auto 20px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.logo {
|
|
max-width: 200px;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 24px;
|
|
margin-bottom: 10px;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.header p {
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.content {
|
|
padding: 25px;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 30px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.logo {
|
|
max-width: 150px;
|
|
}
|
|
}
|
|
|
|
.result-card {
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.result-card h3 {
|
|
color: #2c3e50;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #5ac6c8;
|
|
}
|
|
|
|
.probability-display {
|
|
text-align: center;
|
|
padding: 20px;
|
|
background: white;
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.probability-value {
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.probability-label {
|
|
font-size: 18px;
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.pathology-badge {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.pathology-yes {
|
|
background: linear-gradient(135deg, #c182b9 0%, #e74c3c 100%);
|
|
color: white;
|
|
}
|
|
|
|
.pathology-no {
|
|
background: linear-gradient(135deg, #5ac6c8 0%, #2ecc71 100%);
|
|
color: white;
|
|
}
|
|
|
|
.report-section {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.report-section h3 {
|
|
color: #2c3e50;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.report-content {
|
|
line-height: 1.6;
|
|
color: #34495e;
|
|
}
|
|
|
|
.conclusion {
|
|
background: #e8fcfb;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #5ac6c8;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.image-container {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.dicom-image {
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.properties-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.properties-table th, .properties-table td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.properties-table th {
|
|
background-color: #f2f2f2;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px 25px;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: opacity 0.3s;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #c182b9 0%, #5ac6c8 100%);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: #f8f9fa;
|
|
color: #2c3e50;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #e9ecef;
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
background: #2c3e50;
|
|
color: white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<div class="logo-container">
|
|
<img src="static/logo.png" alt="Логотип" class="logo">
|
|
</div>
|
|
<h1>Результаты анализа DICOM файла</h1>
|
|
<p>Анализ завершен. Ниже представлены результаты.</p>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div>
|
|
<div class="probability-display">
|
|
<div class="probability-label">Вероятность патологии</div>
|
|
<div class="probability-value">{{ prediction.overall_probability }}%</div>
|
|
<div class="pathology-badge {{ 'pathology-yes' if prediction.is_pathology else 'pathology-no' }}">
|
|
{{ 'Обнаружена патология' if prediction.is_pathology else 'Патология не обнаружена' }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="image-container">
|
|
<img src="static/{{ prediction.image }}" alt="Результат" class="dicom-image">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<div class="report-section">
|
|
<h3>Отчет анализа</h3>
|
|
<div class="report-content">
|
|
{{ prediction.report }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="conclusion">
|
|
<h3>Заключение</h3>
|
|
<p>{{ prediction.conclusion }}</p>
|
|
</div>
|
|
|
|
<div class="result-card">
|
|
<h3>Доп. информация</h3>
|
|
<table class="properties-table">
|
|
{% for key, value in prediction.properties.items() %}
|
|
<tr>
|
|
<th>{{ key }}</th>
|
|
<td>{{ value }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<a href="/upload-study" class="btn btn-primary">Новый анализ</a>
|
|
<a href="/download/{{prediction.image.replace('.png', '.zip')}}" class="btn btn-secondary">Сохранить DCM отчеты</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>Результаты анализа сгенерированы автоматически. В исследовательских целях.</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |