摘要: 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 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 来自于这里:基于OpenCV实现二值图细化,骨骼化并求出端点和交叉点_晴堂的博客-CSDN博客 我用python实现,但是一比一复刻改进版本已经找不到了,太远古了。下面这种方案是目前最好的,效果更好,有问题可以及时留言交流,看到了就回复 def LineMid(binary): binary[bin 阅读全文
posted @ 2023-08-30 13:12 cn_gzb 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 采用的树莓派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 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 遍历图片:关于Python 使用 numba 加速图像遍历_python 加速cv2代码_FlyDremever的博客-CSDN博客 python日记(二):密集计算加速(双重for循环为例)_python for循环加速_五月的echo的博客-CSDN博客 卷积时加速:python图像遍历优化的方 阅读全文
posted @ 2023-08-11 13:01 cn_gzb 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 环境搭建(亲测可用):(71条消息) python 安装pyspark_Python学习—PySpark环境搭建_please install python or specify the correct pytho_幸福右手牵的博客-CSDN博客 基本操作: pySpark在csv文件中的一些应用: 阅读全文
posted @ 2023-07-24 16:07 cn_gzb 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 如果想要在后台继续运行程序,你断开终端或者连接都还能继续运行的话,需要使用nohup nohup python file_name(z主程序,比如main.py) & 如果想要终止运行的话,需要找到对应的PID,然后kill掉。 jobs命令只看当前终端生效的,关闭终端后,在另一个终端jobs已经无 阅读全文
posted @ 2023-07-14 09:33 cn_gzb 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 参考过:树莓派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 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 安装: 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 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 好用的亮度拉伸: 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 阅读(57) 评论(0) 推荐(0) 编辑