- 博客(6)
- 收藏
- 关注
原创 This application failed to start because it could not find or load the Qtplatform plugin “windows“
搜了好多添加环境变量还有该路径的,最弱智的一种情况也可能像我一样pycharm开了新的项目却用的默认的都没装pyqt的虚拟环境,所以换个虚拟环境哈哈哈,我好蠢,笑死
2022-03-01 18:41:43
192
原创 2021-08TypeError: array() takes from 1 to 2 positional arguments but 3 were given
# 展示数据def im_convert(tensor): '''展示数据''' image = tensor.to("cpu").clone().detach() image = image.numpy().squeeze() image = image.transpose(1,2,0) image = image * np.array(0.229,0.224,0.225) + np.array((0.485, 0.456, 0.406).
2021-08-07 17:42:01
11772
原创 Tensor‘ object has no attribute ‘numpy‘处理方法
if batch_idx % 100 == 0: net.eval() val_rights = [] for (data, target) in test_loader: output = net(data) right = accuracy(output, target) print(type(right)) ...
2021-08-06 15:14:01
5513
原创 关于使用opencv进行文本识别并进行字母数字的框定
作为小白的我学会了使用opencv进行文本的识别和框定,很开心!from PIL import Imageimport pytesseractimport cv2 as cv##inputting and show initial imageimg = cv.imread("D:\LAB\Tesseract\mur.png")cv.namedWindow("Image")cv.imshow("Image", img)cv.waitKey(0)cv.destroyAllWindows
2021-05-14 11:24:42
679
原创 from PIL import Image import pytesseract text = pytesseract.image_to_string(Image.open(r‘D:\LAB\Tes
pytesseract.pytesseract.TesseractNotFoundError: D:\\LAB\\Tesseract-OCR\\tesseract.exe is not installed or it's not in your PATH.我在下载完tesseract-ocr后想要识别图片中的文本信息时,不知道为什么总是报这个错误,看到网上其他地方都说进入pytesseract.py的源码进行更改,改为tesseract_cmd = r'D:\LAB\Tesseract\Tesse
2021-05-12 14:15:03
492
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人