python
Ross.Li
这个作者很懒,什么都没留下…
展开
-
树莓派ubuntu 20.10启动串口通讯
原文地址https://askubuntu.com/questions/1254376/enable-uart-communication-on-pi4-ubuntu-20-04原创 2021-05-30 10:10:16 · 316 阅读 · 0 评论 -
树莓派ubuntu系统20.10安装pigpio
树莓派ubuntu系统20.10安装pigpioIf the pigpio daemon is running it should be killed (sudo killall pigpiod) before make install and restarted afterwards (sudo pigpiod).The initial part of the make, the compilation of pigpio.c, takes 100 seconds on early model Pis原创 2021-05-26 15:35:18 · 765 阅读 · 0 评论 -
tensorflow/lite/micro/tools/make/Makefile:61: *** The TAGS command line option is no longer supporte
error:tensorflow/lite/micro/tools/make/Makefile:61: *** The TAGS command line option is no longer supported in the TFLM Makefile.解决方案参考:https://github.com/tensorflow/tensorflow/issues/46667原因:TAGS已经废弃,将这个删掉或者改成OPTIMIZED_KERNEL_DIR=cmsis_nnmake -f tensor转载 2021-04-22 15:33:18 · 409 阅读 · 0 评论 -
Python子类父类多线程理解class Producer(threading.Thread):
class Producer(threading.Thread): def __init__(self,data_queue,*args,**kwargs): super(Producer, self).__init__(*args,**kwargs) self.data_queue = data_queue``1.最近看到这段代码,记录一哈自己对这段代码的理解(当然请教了别人的),class producer 是建立了一个名字为Producer 的类,原创 2021-04-14 19:28:46 · 523 阅读 · 0 评论 -
关于detectMultiScale返回值为空元组的解决办法
关于detectMultiScale返回值为元组的解决办法1 网上纠错1 网上纠错完整代码:import osimport cv2def face_dateset(): cam = cv2.VideoCapture(0, cv2.CAP_DSHOW) cam.set(3, 640) # set video width cam.set(4, 480) # set video height i = 0 face_detector = cv2.Casca原创 2021-03-22 14:07:12 · 1537 阅读 · 1 评论 -
通过USB转TTL控制树莓派
通过串口控制树莓派安照网上教程配置好ttyAMA0安照网上教程配置好ttyAMA01,ls /dev -al 查看串口配置2 sudo anno /boot/config.txt,打开配置文件将serial0 配置成ttyAMA03 串口与电脑连接好USB转TTL数据线4 sudo rrboot在串口界面就可以登录了,输入pi ,密码这样就登录界面咯,可以在这个界面操作咯...原创 2021-03-17 21:06:10 · 577 阅读 · 0 评论 -
树莓派与pycharm远程连接报错:/usr/bin/python: can‘t open file ‘C:/Users/Administrator/PycharmProjects/pythonPro
树莓派与pycharm远程连接报错:/usr/bin/python: can’t open file ‘C:/Users/Administrator/PycharmProjects/pythonProject4/main.py’: [Errno 2] No such file or directory当远程连接报错的原因是:在树莓派的文件里面中找不到duoji.py这个项目来执行。在树莓派窗口搜索不存在。步骤1,打开python interpreter 看是否为空路径,如果为空则添加相应的路径。(任意找原创 2021-03-14 15:23:32 · 7836 阅读 · 0 评论 -
Python上手初体验
@[TOC]Python上手总结知识点基础1.注释行: 利用#进行注释2.字面常量:a数字:分为整数(integers)和浮点数(Floats);b字符串:可以用单引号(’)双引号(’’)和三引号(’’’ or “”")定义字符串,注意还可以同过format定义字符串,有时如果字符串中含有’时,python会对字符串开始和结束的位置感到困惑如(‘what’s your name’),这时需要用转义序列,变成(‘what’s your name’ or “what\'s your name” or原创 2021-03-10 15:14:35 · 244 阅读 · 1 评论