09 2021 档案
摘要:python paddleocr 增加识别速度的方法 切记长度不要超过960px 1 模型压缩 2 enable_mkldnn=True,use_tensorrt=True,use_angle_cls=False 3用GPU 注意 GPU要第二次识别才会加速
阅读全文
摘要:mysql 子查询少用 用了子查询 就没有索引了 。。。所以一般用缓存代替 或者其他方法代替
阅读全文
摘要:mysql 临时表代替in的方法 public function infengzhuang($ziduanstr = '', $table = '',$whereziduan='',$instr = '', $wherestr = '') { $haomiao = $this->get_millis
阅读全文
摘要:Create temporary table new_table_name1 (Select * from aa_copy_copy); mysql创建临时表不用创建临时表结构的方法
阅读全文
摘要:GPU版本比CPU版本复杂太多了 安装要耐得住性子啊 1 先安装个显卡驱动 打开看看 显卡驱动支持的cuda版本是多少 2 如果是10.1 那就去下个10.1 https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os
阅读全文
摘要:python获取颜色范围 img_src = Image.open('testluban.jpg') img_size=img_src.size; img_width=img_size[0]; img_height=img_size[1]; # 转换图片的模式为RGBA img_src = img_
阅读全文
摘要:paddleocr提高识别的方法 1用官方的完整模型包 ocr = PaddleOCR(use_angle_cls=True, lang="ch",det_model_dir="123/",rec_model_dir="321/") # need to run only once to downlo
阅读全文
摘要:python3安装pyqt5 一定要3.7安装 不然会报错 版本不兼容
阅读全文
摘要:yolov5安装教程 在anaconda环境下安装 新建个 yolov5文件夹 先下个yolov5 https://github.com/ultralytics/yolov5 ps:必须是英文路径 不能中文路径不然训练的时候识别不了 然后 pip install -r requirements.tx
阅读全文
摘要:python PaddleOCR安装方法 最好用python3.7 保证各个模块的兼容 要在anaconda环境下安装 1 http://www.cppcns.com/jiaoben/python/366474.html 里面走一遍 2 环境变量设置下 nvidia-smi 设置完必须重启anaco
阅读全文
摘要:python判断 射线是否与圆相交 # 以上是返回截距式方程的y=kx+b的k和b def GeneralEquation(first_x,first_y,second_x,second_y): A = second_y-first_y B = first_x-second_x C = second
阅读全文
摘要:python实现快捷键的方法 import pyautogui import time import keyboard import pyautogui as pag iscanzhixing=1; def test_a(): global iscanzhixing # 只能执行一次 if isca
阅读全文
摘要:PHP防止上传文件包含木马的方法 1 判断类型是不是图片(别用后缀名判断) $xiangmupath = $this->getxiangmupath(); $logo = $xiangmupath . '/images/1/12.jpg'; $imginfo = getimagesize($logo
阅读全文
摘要:svg放大缩小图片 <g transform="scale(1 1)"><animateTransform attributeName="transform" type="scale" values="1;1;1;1.2;1;1;1" dur="1.2s" repeatCount="indefini
阅读全文
摘要:svg点击效果不停的换图片 <div class="rich_media_content " id="js_content" style="visibility: visible;"> <section powered-by="yutustudio666" style="line-height: 0
阅读全文
摘要:svg点击出票效果 <section powered-by="yutustudio666" style="line-height: 0;overflow: hidden;pointer-events: none;" data-mpa-powered-by="yiban.io"> <section p
阅读全文
摘要:自定义svg添加到秀米的方法 添加到这个标签下就对了 ps:一定要先保存再添加 不然会消失
阅读全文
摘要:svg点击播放音乐 先微信后台添加音频 然后添加完把代码复制出来 <foreignObject x="0" y="50" width="100%" height="850"> <section style="opacity:0;transform: scale(50)translate(-924px
阅读全文
摘要:svg点击弹窗 <svg style="background-image: url(https://oss.knowway.cn/zhongliangct/hou2.jpg);background-repeat: no-repeat;background-size: 100% 100%;opacit
阅读全文
摘要:svg点击展开原理 <section style="line-height: 0;overflow:hidden;"> <section style="height:0;"><svg style="background-image: url(https://oss.knowway.cn/zhongl
阅读全文