老师为啥我使用streamlit模块时 报这个错误, 查看图片是正常的,
# _*_coding=utf-8 _*_ import streamlit as st import cv2 def get_long(): img1 = cv2.imread('./imgs/ctp1.png') img2 = cv2.imread('./imgs/ctp2.png') # 建立两个 st 控制的变量 min_value = st.slider('input min value', max_value=500) max_value = st.slider('input max value', max_value=800) # 边缘化图片 # Canny使用的滞后阈值,代阈值,高阈值 canny1 = cv2.Canny(img1, min_value, max_value) # 保存图片 # cv2.imwrite('./imgs/tstf.png', canny1) # 使用streamlit输出结果 st.image(canny1) st.write(canny1) canny2 = cv2.Canny(img2, min_value, max_value) st.image(canny2) st.write(canny2) if __name__ == '__main__': get_long()
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>魅族</title> <style> .box-header{ width: 100%; height: 680px; background: url("魅族images/444c6b0f-a71c-4e91-8c17-6745223228c5.jpg") no-repeat center ; background-size: cover; } .box-phone{ width: 100%; height: 450px; background: url("魅族images/a6c64f8f-6ab5-4a93-8139-2a893eb2a2a5.jpg") no-repeat center; background-size: cover; } .box-header-bottom{ width: 1262px; height: 277px; /*background: red;*/ } .box-top{ width: 25%; height: 100%; /*background: orange;*/ float: left; } .img1{ width: 130px; height: 130px; } .box-top>p:first-of-type,.phone-top-left>p:first-of-type,.phone-top-right>p:first-of-type,.phone-bottom-items>p:first-of-type{ font-size: 20px; font-weight: bold; width: 310px; height: 30px; } .box-top>p:last-child,.phone-top-left>p:first-of-type+p,.phone-top-right>p:first-of-type+p,.phone-bottom-items>p:last-of-type{ color: #999999; font-size: 14px; width: 310px; height: 21px; } .title{ text-align: center; font-weight: bold; font-size: 2em; } .box-phone-bottom{ width: 1262px; height: 1005px; } .box-phone-bottom-center{ width: 1230px; height:1220px; } .phone-top{ width:1230px; height: 610px; } .phone-bottom{ width: 1212px; height: 375px; } .phone-top-left,.phone-top-right{ width: 615px; height: 610px; float: left; } .phone-bottom-items{ width: 303px; height: 375px; float: left; } .img2{ width: 460px; height: 460px; } .price{ width: 71px; height: 33px; color: red; font-size: 28px; } .price1{ width: 14px; height: 21px; font-size: 12px } .img3{ width: 230px; height: 230px; } /*.img+p{ font-size: 20px; font-weight: bold; }*/ </style> </head> <body> <div class="box-header"> <a href="https://www.meizu.com/"> </a> </div> <div class="box-header-bottom"> <div class="box-top" align="center"> <img src="魅族images/5f896683-d2f2-487d-a296-722fc9e17f1e.png" alt="" class="img1"> <p>魅族 18</p> <p>立省900 + 12 期免息 + 赠手机壳</p> </div> <div class="box-top" align="center"> <img src="魅族images/5f896683-d2f2-487d-a296-722fc9e17f1e.png" alt="" class="img1"> <p>魅族 18</p> <p>立省900 + 12 期免息 + 赠手机壳</p> </div> <div class="box-top" align="center"> <img src="魅族images/5f896683-d2f2-487d-a296-722fc9e17f1e.png" alt="" class="img1"> <p>魅族 18</p> <p>立省900 + 12 期免息 + 赠手机壳</p> </div> <div class="box-top" align="center"> <img src="魅族images/5f896683-d2f2-487d-a296-722fc9e17f1e.png" alt="" class="img1"> <p>魅族 18</p> <p>立省900 + 12 期免息 + 赠手机壳</p> </div> </div> <h3 class="title">手机</h3> <div class="box-phone"> </div> <div class="box-phone-bottom"> <div class="box-phone-bottom-center"> <div class="phone-top" > <div class="phone-top-left" align="center"> <p>魅族 18</p> <p>限时领券至高立省900 | 赠手机壳</p> <p class="price"><span class="price1">¥</span>3999</p> <img src="魅族images/de87d38d-3785-4605-a211-71364ded123f.png" alt="" class="img2"> </div> <div class="phone-top-right" align="center"> <p>魅族 18</p> <p>限时领券至高立省900 | 赠手机壳</p> <p class="price"><span class="price1">¥</span>3999</p> <img src="魅族images/de87d38d-3785-4605-a211-71364ded123f.png" alt="" class="img2"> </div> </div> <div class="phone-bottom"> <div class="phone-bottom-items" align="center"> <img src="魅族images/Cgbj0F6zwMuANEeWAAw6yQFAJXM097.png" alt="" class="img3"> <p>魅族 17「AG梦幻独角兽」</p> <p>高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="price"><span class="price1">¥</span> 3699</p> </div> <div class="phone-bottom-items" align="center"> <img src="魅族images/Cgbj0F6zwMuANEeWAAw6yQFAJXM097.png" alt="" class="img3"> <p>魅族 17「AG梦幻独角兽」</p> <p>高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="price"><span class="price1">¥</span>3699</p> </div> <div class="phone-bottom-items" align="center"> <img src="魅族images/Cgbj0F6zwMuANEeWAAw6yQFAJXM097.png" alt="" class="img3"> <p>魅族 17「AG梦幻独角兽」</p> <p>高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="price"><span class="price1">¥</span> 3699</p> </div> <div class="phone-bottom-items" align="center"> <img src="魅族images/Cgbj0F6zwMuANEeWAAw6yQFAJXM097.png" alt="" class="img3"> <p>魅族 17「AG梦幻独角兽」</p> <p>高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="price"><span class="price1">¥</span> 3699</p> </div> </div> </div> </div> </body> </html>
老师,我写魅族官网写了一部分,为什么价格哪里class都一样,但是设置不出来同样的样式呢?
老师我这个打包一直都这样怎么回事呀,是镜像问题吗??还是其他的问题呀
使用PLSQL Deve第三方工具查询的时候语句与分好提示: ora00911 无效字符在Oracle自带的查询中可以使用分号,视频中显示也是有分号,查询成功, 是什么原因呢...
解决了之前的问题,但是有出现了新的问题,就是标题乱码。这是为什么呢?
请问这里为什么会报错啊
老师,我想问下,这个gcc到底是啥来的,为啥安装C语言编写的东西之前都要安装它,有点懵懂。
这个还是有点糊涂 优化前为啥只要密码正确 不管用户名再没在表里 都可以登录 而且 这个作比较的密码只能是第一个参数的密码
是不是 在优化前差寻所有的数据中
SimpleAuthenticationInfo
在while里循环的时候 第一次循环就找的了数据 并且这个数据就是表里的第一个数据 然后跳出了循环 与我们在
UsernamePasswordToken
里给定的数据进行比较 那位啥只看密码不看我们给定的账号呢???
a = 99**1000 pirnt(a)
老师,有个问题不明白,前面关于集合的初始化你是在无参构造器中给初始化好的,为什么在WebApp下不用构造器将数据初始化而是使用静态代码块来初始化呢,,想了解一下老师是怎么想的。
老师,我加上
db.session.add(user)
db.session.commit()
报一只长串代码,不写的话正常
这个没有配置的文件,是因为Mysql的版本的问题吗?
老师,我有点忘了@Reference和@Auowire的区别,然后网上搜索说是@Reference注入的是分布式中的远程服务对象,@Resource和@Autowired注入的是本地spring容器中的对象(引入相对较快),那这里意味着这些加了@Reference
注解的类是可以和被注入的类跑在不同服务器上嘛,以及idea在应该@Reference的地方使用@Autowire会报错无法找到类,这个又是因为项目中哪里的配置导致无法识别呀
为什么这个输入100的时候会是E难道不应该是A吗
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637