![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
Happy and learning
奶思
展开
-
OpenCV 测试代码运行时间
首先需要加载包: import cv2 在需要测试初始节点插入以下代码: start_time = cv2.getTickCount() 在需要测试末尾节点插入以下代码: end_time = cv2.getTickCount() 最后打印代码时间: print((start_time - end_time)/cv2.getTickFrequency()) ...原创 2021-02-21 11:29:06 · 284 阅读 · 0 评论 -
定义类,AttributeError: ‘tuple‘ object has no attribute ‘extra_fb1‘ 报错及解决方案
最近在写OpenMV代码,自己定义类的时候出现了AttributeError: ‘tuple’ object has no attribute ‘extra_fb1’ 的错误 错误代码: class template: def __init__(self): self.extra_fb1 = sensor.alloc_extra_fb(sensor.width(),sensor.height(),sensor.GRAYSCALE) def up_date(img,roi,se原创 2021-02-14 22:41:54 · 3030 阅读 · 3 评论 -
树莓派4b VNC-Viewer 文件管理器闪退
最近树莓派出现文件管理器打开就闪退的情况 经查阅资料发现是由于树莓派在读写文件的时候异常掉电所致 树莓派关机最好使用命令进行关机 在这里插入代码片 ...原创 2020-04-03 11:07:27 · 627 阅读 · 0 评论