会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
G.Z.Bing
博客园
首页
新随笔
联系
订阅
管理
2024年5月14日
xml替换内容 python
摘要: def change_one_xml(xml_path, xml_dw, update_content): # 打开xml文档 doc = ET.parse(xml_path) root = doc.getroot() # 查找修改路劲 sub1 = root.find(xml_dw) # 修改标签
阅读全文
posted @ 2024-05-14 14:32 cn_gzb
阅读(60)
评论(0)
推荐(0)
2023年8月30日
opencv提取骨架细化python
摘要: 来自于这里:基于OpenCV实现二值图细化,骨骼化并求出端点和交叉点_晴堂的博客-CSDN博客 我用python实现,但是一比一复刻改进版本已经找不到了,太远古了。下面这种方案是目前最好的,效果更好,有问题可以及时留言交流,看到了就回复 def LineMid(binary): binary[bin
阅读全文
posted @ 2023-08-30 13:12 cn_gzb
阅读(606)
评论(0)
推荐(0)
2023年8月18日
树莓派连接蓝牙遥控,控制播放音乐
摘要: 采用的树莓派zerow,根据按键切换音乐 #!/usr/bin/env python # -*- coding: utf-8 -*- # [NEW] Device EC:22:05:15:24:0D RMT-EC220515240D import time from bluepy.btle impo
阅读全文
posted @ 2023-08-18 09:15 cn_gzb
阅读(188)
评论(0)
推荐(0)
2023年8月11日
图像处理,加速
摘要: 遍历图片:关于Python 使用 numba 加速图像遍历_python 加速cv2代码_FlyDremever的博客-CSDN博客 python日记(二):密集计算加速(双重for循环为例)_python for循环加速_五月的echo的博客-CSDN博客 卷积时加速:python图像遍历优化的方
阅读全文
posted @ 2023-08-11 13:01 cn_gzb
阅读(49)
评论(0)
推荐(0)
2023年7月24日
pyspark数据分析常用操作
摘要: 环境搭建(亲测可用):(71条消息) python 安装pyspark_Python学习—PySpark环境搭建_please install python or specify the correct pytho_幸福右手牵的博客-CSDN博客 基本操作: pySpark在csv文件中的一些应用:
阅读全文
posted @ 2023-07-24 16:07 cn_gzb
阅读(99)
评论(0)
推荐(0)
2023年7月14日
ubuntu 后台运行程序
摘要: 如果想要在后台继续运行程序,你断开终端或者连接都还能继续运行的话,需要使用nohup nohup python file_name(z主程序,比如main.py) & 如果想要终止运行的话,需要找到对应的PID,然后kill掉。 jobs命令只看当前终端生效的,关闭终端后,在另一个终端jobs已经无
阅读全文
posted @ 2023-07-14 09:33 cn_gzb
阅读(251)
评论(0)
推荐(0)
2023年3月17日
点集从上到下,从左到右进行Z字型排序(C++与python实现,自写)
摘要: C++实现: void PointDisgus(vector<Point>& Points) { Point t; int n = Points.size(); int i, j; vector<Point> OutPoints; vector<Point> Points_ = Points; st
阅读全文
posted @ 2023-03-17 10:42 cn_gzb
阅读(227)
评论(0)
推荐(0)
2023年3月14日
树莓派 zero w配置C++ opencv csi 摄像头
摘要: 参考过:树莓派zero w无显示器配置wifi和ssh - 简书 (jianshu.com) 经过一天半的摸索,踩过了很多坑,这里记录一下 1、系统网站:https://www.raspberrypi.org/downloads/raspberry-pi-os/ 由于zero w 性能不太行,我下载
阅读全文
posted @ 2023-03-14 11:01 cn_gzb
阅读(618)
评论(0)
推荐(0)
2023年3月9日
记录一下linux系统(树莓派4B)编译C++版opencv
摘要: 安装: https://blog.csdn.net/NeoZng/article/details/126065521 装完后: 查看头文件和库文件目录:pkg-config --libs opencv4 pkg-config --cflags opencv4 查看OpenCV版本 pkg-confi
阅读全文
posted @ 2023-03-09 20:31 cn_gzb
阅读(227)
评论(0)
推荐(0)
2022年5月6日
好用的亮度增强(轮子)
摘要: 好用的亮度拉伸: import cv2 import numpy as np import os def zmMinFilterGray(src, r=7): '''最小值滤波,r是滤波器半径''' '''if r <= 0: return src h, w = src.shape[:2] I =
阅读全文
posted @ 2022-05-06 15:56 cn_gzb
阅读(70)
评论(0)
推荐(0)
下一页
公告