码迷,mamicode.com
首页 >  
搜索关键字:pil    ( 2160个结果)
static关键字 weak关键字
1、static关键字 static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart){ ...} 在函数前面加了一个static关键字,则该工程的其他文件中不能调用此函数,此函数只能在本文件中被调用。 2、weak关键字 /* ...
分类:其他好文   时间:2019-12-08 23:43:49    阅读次数:194
Ribbon负载均衡及Feign消费者调用服务
微服务调用Ribbon 简介 前面讲了eureka服务注册与发现,但是结合eureka集群的服务调用没讲。 这里的话 就要用到Ribbon,结合eureka,来实现服务的调用; Ribbon是Netflix发布的负载均衡器,它有助于控制HTTP和TCP的客户端的行为。为Ribbon配置服务提供者地址 ...
分类:其他好文   时间:2019-12-08 17:12:13    阅读次数:76
python3 内置函数
内置函数的作用: # abs() # 取绝对值,绝对路径 # all() # 判断可迭代对象(列表,集合等)的值是不是全部为ture # any() # 判断可迭代对象,任意一个为ture,则返回true。空列表也是false # ascii() # 把数据转换成字符串的形式 # # bin() # ...
分类:编程语言   时间:2019-12-08 15:43:51    阅读次数:85
go-爬图片
go语言爬取图片 注:动态加载出来的爬取不到,或怕取出来图片出错,代码中的网页是可以正常爬取的 go package main import ( "fmt" "io" "net/http" "os" "regexp" "strconv" _ "strings" ) func SaveImg(idx ...
分类:其他好文   时间:2019-12-07 14:45:44    阅读次数:105
torch 中各种图像格式转换
PIL:使用python自带图像处理库读取出来的图片格式 numpy:使用python opencv库读取出来的图片格式 tensor:pytorch中训练时所采取的向量格式(当然也可以说图片) PIL与Tensor相互转换 numpy 与 tensor相互转换 N张图片一起转换. 参考:https ...
分类:其他好文   时间:2019-12-07 01:16:57    阅读次数:161
看盘工具
from tkinter import * import urllib.request from PIL import Image, ImageTk import os,io,threading,time from tkinter import messagebox win=Tk() win.tit... ...
分类:其他好文   时间:2019-12-04 13:25:10    阅读次数:81
极验验证码缺口图片计算缺口位置
对两张图片的像素点做比较,当不同的时候返回当前点位 from PIL import Image img = Image.open('captcha1.png') img2 = Image.open('captcha2.png') print(img.size)#(258, 159) print(im ...
分类:其他好文   时间:2019-12-04 12:58:39    阅读次数:278
AI基础之展示
在训练完网络后,我们需要将需要识别的图片输入模型中并输出结果,下面是具体代码。 import torchfrom PIL import Imageimport torchvision.transforms as transdef testImage(): net = torch.load("mode ...
分类:其他好文   时间:2019-12-01 20:37:02    阅读次数:78
pytesseract文字识别
import pytesseract from PIL import Image im=Image.open('image.png') print(pytesseract.image_to_string(im))安装注意: 环境变量需要配置两处 1、path 2、TESSDATA_PREFIX初始路... ...
分类:其他好文   时间:2019-11-29 12:47:06    阅读次数:77
I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
遇到了这个问题,意思是你的 CPU 支持AVX AVX2 (可以加速CPU计算),但你安装的 TensorFlow 版本不支持 解决:1. 如果是初学者 或者 没有太大计算速度的需求,在开头加上这两行忽略这个提示即可import osos.environ['TF_CPP_MIN_LOG_LEVEL' ...
分类:其他好文   时间:2019-11-27 12:17:44    阅读次数:212
共2160条   上一页 1 ... 40 41 42 43 44 ... 216 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!