今天测试突然好了,没有找到原因,貌似不太稳定
F
fip3
@fip3
0
声望
3
楼层
399
资料浏览
0
粉丝
0
关注
fip3 发布的帖子
-
RE: OpenMV4 Cam H7 Plus + 星瞳OpenMV4 Plus 3 RS485扩展板,错误,示例代码都不能运行
-
OpenMV4 Cam H7 Plus + 星瞳OpenMV4 Plus 3 RS485扩展板,错误,示例代码都不能运行
OpenMV4 Cam H7 Plus + 星瞳OpenMV4 Plus 3 RS485扩展板,modbus测试出现这个错误,无法运行
win10 64系统,IDE版本:2.6.0 -
二值化,边缘检测后,线段无法检测?
enable_lens_corr = False import sensor, image, time sensor.reset() # Reset and initialize the sensor. sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCALE) sensor.set_framesize(sensor.VGA) # Set frame size to QVGA (320x240) sensor.skip_frames(time = 2000) # Wait for settings take effect. clock = time.clock() # Create a clock object to track the FPS. sensor.set_auto_gain(False) # must be turned off for color tracking sensor.set_auto_whitebal(False) # must be turned off for color tracking while(True): clock.tick() # Update the FPS clock. img = sensor.snapshot() # Take a picture and return the image. img = img.binary([(255, 50)]) img.find_edges(image.EDGE_SIMPLE,threshold =(255, 255)) if enable_lens_corr: img.lens_corr(1.8) for l in img.find_line_segments(merge_distance = 0, max_theta_diff = 5): img.draw_line(l.line(),color = (255,0,0)) print(l)