摘要:
n_samples = xs.shape[0] with tf.Session() as sess: # 记得初始化所有变量 sess.run(tf.global_variables_initializer()) writer = tf.summary.FileWriter('./graphs/li 阅读全文
摘要:
void cvtColor( InputArray src, OutputArray dst, int code, int dstCn = 0 ); 功能:颜色空间转换 参数: src:原图 dst:保存转换后的图 dstCn:转换方式 阅读全文
摘要:
double threshold( InputArray src, OutputArray dst, double thresh, double maxval, int type ); 功能:图像的二值化,就是将图像上的像素点的灰度值设置为 0 或 255,也就是将整个图像呈现出明 显的只有黑和白的 阅读全文
摘要:
#迭代总轮次 n_epochs = 30 with tf.Session() as sess: # 在Tensorboard里可以看到图的结构 writer = tf.summary.FileWriter('./graphs/logistic_reg', sess.graph) start_time 阅读全文
摘要:
#!/usr/bin/python3 import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["runoobdb"] mycol = mydb["sites"] 阅读全文