上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 35 下一页
摘要: # opencv > 图像 RGB > > opencv读取的格式是BGR ## 基本用法 ### 读取图片 ```python import cv2 img = cv2.imread(r'C:\Users\Administrator\Pictures\951c76ee-469e-4084-96db 阅读全文
posted @ 2023-08-27 11:54 __username 阅读(6) 评论(0) 推荐(0) 编辑
摘要: # demo ```python import base64 from io import BytesIO from PIL import Image import cv2 def img_base64(): img = cv2.imread('2.png') # 确保 '2.png' 位于相同目录 阅读全文
posted @ 2023-08-25 22:22 __username 阅读(26) 评论(0) 推荐(0) 编辑
摘要: # ocr 文字识别 服务 利用百度开源模型:地址:https://github.com/PaddlePaddle/PaddleHub/tree/develop/modules/image/text_recognition/chinese_ocr_db_crnn_mobile # 一个开发web服务 阅读全文
posted @ 2023-08-24 18:54 __username 阅读(26) 评论(0) 推荐(0) 编辑
摘要: # 问题截图 > 前面有一个问题,error:说是找不到文件,在公司没写博客,没截图 ![](https://img2023.cnblogs.com/blog/3005444/202308/3005444-20230823195457027-1789797198.png) # 解决方法 把进入ana 阅读全文
posted @ 2023-08-23 19:57 __username 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # 地址 https://docs.opencv.org/4.x/db/deb/tutorial_display_image.html 阅读全文
posted @ 2023-08-23 16:03 __username 阅读(3) 评论(0) 推荐(0) 编辑
摘要: # 链接 https://github.com/PaddlePaddle/PaddleHub/tree/develop/modules/image/text_recognition/chinese_ocr_db_crnn_mobile 阅读全文
posted @ 2023-08-23 14:42 __username 阅读(9) 评论(0) 推荐(0) 编辑
摘要: # 代码如下,没有优化(只实现) >test2_trans.py ```python import torch import cv2 from PIL import Image from io import BytesIO import os pt_path = r'E:\Code\Python\y 阅读全文
posted @ 2023-08-23 10:55 __username 阅读(261) 评论(0) 推荐(0) 编辑
摘要: # demo ```python from flask import Flask, render_template, request, jsonify app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def index() 阅读全文
posted @ 2023-08-22 20:20 __username 阅读(37) 评论(0) 推荐(0) 编辑
摘要: # demo ```python import torch import cv2 from PIL import Image # pt_path = r'E:\Code\Python\YoLov5\yolov5\yolov5s.pt' pt_path = r'E:\Code\Python\yolov 阅读全文
posted @ 2023-08-22 16:19 __username 阅读(321) 评论(0) 推荐(0) 编辑
摘要: # demo ## 图片转base64 ```python def image_to_base64(image_path): import base64 with open(image_path, "rb") as image_file: image_data = image_file.read() 阅读全文
posted @ 2023-08-22 16:13 __username 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 35 下一页

本文作者:DIVMonster

本文链接:https://www.cnblogs.com/guangzan/p/12886111.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。