上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 36 下一页
摘要: # 代码如下,没有优化(只实现) >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 阅读(288) 评论(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 阅读(43) 评论(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 阅读(361) 评论(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 阅读(284) 评论(0) 推荐(0) 编辑
摘要: # 一个0到1的案例 后续会继续补充 > 环境python3.8.10 ## First - github下载项目:https://github.com/ultralytics/yolov5/tree/master - cd yolov5, pip install -r requirements.t 阅读全文
posted @ 2023-08-22 10:25 __username 阅读(181) 评论(0) 推荐(0) 编辑
摘要: # 环境python3.11 闪退 # 解决方案 降低python版本 我用的py3.8,解决闪退问题 阅读全文
posted @ 2023-08-21 16:42 __username 阅读(43) 评论(0) 推荐(0) 编辑
摘要: # download他人项目-创建虚拟环境 1. 这是别人的项目 ![](https://img2023.cnblogs.com/blog/3005444/202308/3005444-20230819230502809-1321066083.png) 2. 打开pycahrm的终端,创建虚拟环境 阅读全文
posted @ 2023-08-19 23:14 __username 阅读(11) 评论(0) 推荐(0) 编辑
摘要: # 效果 ![](https://img2023.cnblogs.com/blog/3005444/202308/3005444-20230819174404343-1933435526.png) # 代码 ```python import tkinter as tk from tkinter im 阅读全文
posted @ 2023-08-19 17:44 __username 阅读(50) 评论(0) 推荐(0) 编辑
摘要: # TK 在Tkinter中,`anchor`属性用于决定控件在其分配的空间内的对齐方式或锚点。它定义了控件在其容器(例如窗口或框架)中的位置,当控件被分配比其自身大小更大的空间时,该属性可以用来确定控件在该空间内的位置。 `anchor`属性的值是一个字符串,它可以是以下之一: - `"n"`:北 阅读全文
posted @ 2023-08-18 17:53 __username 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 常用的`tkinter`控件的列表: 1. **Label(标签)**:用于显示文本或图像。 2. **Button(按钮)**:用于触发操作,比如点击按钮执行某个功能。 3. **Entry(输入框)**:用于接收用户输入的文本。 4. **Text(文本框)**:用于显示和编辑多行文本。 5. 阅读全文
posted @ 2023-08-16 23:26 __username 阅读(7) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 36 下一页

本文作者:DIVMonster

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

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