摘要: Django4.0已经弃用url了 # 修改路径:django项目文件下的urls.py from django.urls import path from django.contrib import admin urlpatterns = [ path(r'admin/', admin.site. 阅读全文
posted @ 2022-02-15 14:58 xjspyx 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-02-15 10:43 xjspyx 阅读(3) 评论(0) 推荐(0) 编辑
摘要: n_samples = xs.shape[0] with tf.Session() as sess: # 记得初始化所有变量 sess.run(tf.global_variables_initializer()) writer = tf.summary.FileWriter('./graphs/li 阅读全文
posted @ 2022-02-15 10:43 xjspyx 阅读(97) 评论(0) 推荐(0) 编辑
摘要: void cvtColor( InputArray src, OutputArray dst, int code, int dstCn = 0 ); 功能:颜色空间转换 参数: src:原图 dst:保存转换后的图 dstCn:转换方式 阅读全文
posted @ 2022-02-15 10:35 xjspyx 阅读(16) 评论(0) 推荐(0) 编辑
摘要: double threshold( InputArray src, OutputArray dst, double thresh, double maxval, int type ); 功能:图像的二值化,就是将图像上的像素点的灰度值设置为 0 或 255,也就是将整个图像呈现出明 显的只有黑和白的 阅读全文
posted @ 2022-02-15 10:35 xjspyx 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #迭代总轮次 n_epochs = 30 with tf.Session() as sess: # 在Tensorboard里可以看到图的结构 writer = tf.summary.FileWriter('./graphs/logistic_reg', sess.graph) start_time 阅读全文
posted @ 2022-02-15 10:10 xjspyx 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python3 import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["runoobdb"] mycol = mydb["sites"] 阅读全文
posted @ 2022-02-15 10:10 xjspyx 阅读(14) 评论(0) 推荐(0) 编辑