想要检测字母,有没有什么方法呢?除了模板匹配和特征点检测还有没有更灵活的呢
D
dxmn
@dxmn
0
声望
22
楼层
1188
资料浏览
0
粉丝
0
关注
dxmn 发布的帖子
-
在巡线的过程中同时录视频
sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.GRAYSCALE) # use grayscale. sensor.set_framesize(sensor.QQQVGA) # use QVGA for speed. 80 * 60 sensor.skip_frames(30) # Let new settings take affect. sensor.set_auto_gain(False) # must be turned off for color tracking sensor.set_auto_whitebal(False) clock = time.clock() while(True): m = mjpeg.Mjpeg("why.mjpeg") for i in range(700): clock.tick() m.add_frame(sensor.snapshot()) m.close(clock.fps()) img = sensor.snapshot() if Find_Line_ENABLE: All_Line = find_all_Line(img) Line_Info = line_info_process(All_Line) (Type,P0,P1,ang,flag) = RecognitionForm(ProcessImg(img),img) if Line_Info[0] == 0: img.draw_circle(Line_Info[1],Line_Info[2], 3, color = 200, thickness = 2, fill = False) if All_Line: for ii in All_Line: img.draw_line(ii.line()) green_led.on() red_led.on() pass if Find_ApriTag_ENABLE: (Type,P0,P1,ang) = Find_Apriltags(img) red_led.on() if Find_Circle_ENABLE: (Type,P0,P1,ang) = Find_Circle(img) green_led.on() print(Type,P0,P1,ang,flag) uart.write(UART_Send(Type,P0,P1,ang,flag))
为什么录视频的同时不能出现框框的东西呢