You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{% extends 'index.html' %}
{% load static %}
{% block content %}
< div class = "container-fluid pt-4 px-4" >
< div class = "row g-4" >
< div class = "col-sm-12 col-xl-6" style = "width: 100%" >
< div class = "bg-secondary text-center rounded p-4" >
< div class = "d-flex align-items-center justify-content-between mb-4" >
< h6 class = "mb-0" > 原图片< / h6 >
< / div >
< img src = "{% static 'img/e_rode_yuan.png' %}" style = "width: 30%" >
< / div >
< / div >
< form method = "post" >
{% csrf_token %}
< button type = "submit" class = "btn btn-outline-primary m-2" style = "width: 100%" >
点击开始进行开运算
< / button >
< / form >
< div class = "col-sm-12 col-xl-6" style = "width: 100%" >
< div class = "bg-secondary text-center rounded p-4" >
< div class = "d-flex align-items-center justify-content-center mb-4" >
< button type = "button" class = "btn btn-outline-info m-2" > 使用一个5x5的交叉型结构元( 核心在几何中心) 对二值图片src进行开运算,结果:< / button >
< / div >
{% if open %}
< img src = "data:image/jpg;base64,{{ open }}" class = "border border-info" style = "width: 30%" >
{% else %}
< div style = "width: 100%;height: 188px;display: flex;align-content: center;align-items: center;justify-items: center;justify-content: center" >
< div > 暂时还未有输出图片< / div >
< / div >
{% endif %}
< / div >
< / div >
< / div >
< / div >
{% endblock %}
{% block js %}
{% endblock %}