随笔分类 -  比赛

电赛,中国机器人大赛
摘要:Openmv简明使用教程 写在前面 本教程主要目的是指明学习资源在哪,可以怎么学,不教具体怎么使用,因为没有什么教程比官网上的教程更详细了,希望大家看完这篇文章后,能对如何学习使用Openmv有一个清晰的认知。 一、Openmv介绍 ​ OpenMV 是一个开源,低成本,功能强大的 机器视觉模块。 阅读全文
posted @ 2023-11-07 14:43 ihuahua1415 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:Luby使用指南 1.开机 通电,当显示在boot界面的时候,长按正方形(深灰色)那个键,即可进入选择程序界面,此时再按一次正方形那个键,即可进入USB连接模式,此时用线将Luby和电脑连接起来。 当copy完程序后,点击一下圆的(蓝色)的那个按键,即可进入选程序界面,选择相应的程序,即可运行,每次 阅读全文
posted @ 2023-11-02 21:19 ihuahua1415 阅读(413) 评论(0) 推荐(0) 编辑
摘要:本教程将给出一种通用的,适用于arduino(uno和mega等)单片机的一个通信的教程,通过对例程的修改,可以做成任意的符合需求的代码,下面请看。 // 函数定义 String detectString_openmv(); int recv_order(); String detectString 阅读全文
posted @ 2023-10-30 15:47 ihuahua1415 阅读(45) 评论(0) 推荐(0) 编辑
摘要:uno // @Author : Hcm #include <SoftwareSerial.h> // 软串口 #include <LobotServoController.h> // 控制舵机 #include <OneButton.h> // 按钮库 #define KEY_START 9 // 阅读全文
posted @ 2023-10-17 17:59 ihuahua1415 阅读(6) 评论(0) 推荐(0) 编辑
摘要:mega // @Author : Hcm #include <LobotServoController.h> // 舵机板通信 #include <OneButton.h> // 按钮库 #include <String.h> // 处理字符串 // 时间都默认加了50 #define KEY_S 阅读全文
posted @ 2023-10-17 17:58 ihuahua1415 阅读(11) 评论(0) 推荐(0) 编辑
摘要:openmv import sensor, image, time, math from pyb import LED, millis, UART class RobotControl: flag = 0 # 代表是否使用更新的区域来进行下一次检测 def __init__(self): # 获取三 阅读全文
posted @ 2023-10-17 17:56 ihuahua1415 阅读(7) 评论(0) 推荐(0) 编辑
摘要:v831 import time, math from maix import nn, camera, display, image import serial class YOLOv2: def __init__(self, model_path, labels, anchors, net_in_ 阅读全文
posted @ 2023-10-17 17:54 ihuahua1415 阅读(7) 评论(0) 推荐(0) 编辑
摘要:opencv检测黑色轮廓: ~~~python import cv2 import numpy as np class ShapeDetector: def __init__(self, image_path): self.image_path = image_path self.img = cv2 阅读全文
posted @ 2023-08-08 23:37 ihuahua1415 阅读(374) 评论(0) 推荐(0) 编辑
摘要:openmv: ~~~python import sensor, image, time from pyb import LED, UART #import lcd import json, ustruct class Elecdesign(object): def __init__(self): 阅读全文
posted @ 2023-08-07 19:33 ihuahua1415 阅读(299) 评论(0) 推荐(0) 编辑
摘要:人形机器人全能赛openmv巡线代码 import sensor, image, time from pyb import LED, millis, UART from math import pi, isnan import lcd # PID类 class PID: _kp = _ki = _k 阅读全文
posted @ 2022-11-06 18:47 ihuahua1415 阅读(93) 评论(0) 推荐(0) 编辑
摘要:mega板和openmv通信例程 openmv import time from pyb import UART uart = UART(3,9600) # 注意波特率 while(True): uart.write("123"+"\n") time.sleep_ms(1000) a = uart. 阅读全文
posted @ 2022-11-06 18:44 ihuahua1415 阅读(52) 评论(0) 推荐(0) 编辑
摘要:生长算法和巡中线算法python实现代码示例(自用) import cv2 import time import numpy as np from math import pi, isnan # PID算法类 class PID(): _kp = _ki = _kd = _integrator = 阅读全文
posted @ 2022-11-06 18:41 ihuahua1415 阅读(112) 评论(0) 推荐(0) 编辑
摘要:测距 说明 识别的物体是乒乓球(规格应该是统一的吧), 硬件是K210,测距的函数经过拟合,在50cm范围内是准确的 如果使用起来不准确,可以打印代码中的LM, 然后去测数据,自己再拟合一个函数,代替调代码中的length = 1371.96686*Lm**(-1.06218) 代码 import 阅读全文
posted @ 2022-07-31 13:33 ihuahua1415 阅读(583) 评论(0) 推荐(0) 编辑
摘要:巡线功能模块 from maix import camera, display, gpio, pwm class FindLine(): def __init__(self): self.THRESHOLD = (4, 53, -99, 87, -72, 70) # 黑色 self.roi = [( 阅读全文
posted @ 2022-07-31 13:29 ihuahua1415 阅读(538) 评论(3) 推荐(0) 编辑
摘要:基础控制K210例程 1.1 使用屏幕和摄像头 例程 import sensor, lcd sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.run(1) senso 阅读全文
posted @ 2022-07-30 09:28 ihuahua1415 阅读(181) 评论(0) 推荐(0) 编辑
摘要:2.openmvAPI整理 2.1 cmath - 复数的数学函数 cos cmath.cos(z) 返回z的余弦。 exp cmath.exp(z) 返回z的指数。 log cmath.log(z) 返回z的自然对数。分支切割沿负实轴。 log10 cmath.log10(z) 返回z的以10为底 阅读全文
posted @ 2022-07-30 09:27 ihuahua1415 阅读(241) 评论(0) 推荐(0) 编辑

*/
点击右上角即可分享
微信分享提示