导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. 3sbx
    3. 帖子
    3
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    3sbx 创建的帖子

    • 3

      追踪小车里,让小车固定一定范围寻找目标,加入pyb.delay之后相机也延迟了怎么解决
      OpenMV Cam • • 3sbx

      5
      0
      赞同
      5
      楼层
      2117
      浏览

      # Blob Detection Example # # This example shows off how to use the find_blobs function to find color # blobs in the image. This example in particular looks for dark green objects. import sensor, image, time, pyb import car from pid import PID # You may need to tweak the above settings for tracking green things... # Select an area in the Framebuffer to copy the color settings. led = pyb.LED(3) led.on() time.sleep_ms(150) led.off() time.sleep_ms(100) led.on() time.sleep_ms(150) led.off() time.sleep_ms(100) led.on() time.sleep_ms(150) led.off() sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # use RGB565. sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed. sensor.skip_frames(50) # Let new settings take affect. sensor.set_auto_whitebal(False) # turn this off. clock = time.clock() # Tracks FPS. # For color tracking to work really well you should ideally be in a very, very, # very, controlled enviroment where the lighting is constant... green_threshold = (22, 85, -66, -28, -29, 65) #green_threshold = (0, 16, 12, 33, -1, 24) size_threshold = 2000 x_pid = PID(p=0.5, i=1, imax=0) h_pid = PID(p=0.03, i=0.1, imax=0) def find_max(blobs): max_size=0 for blob in blobs: if blob[2]*blob[3] > max_size: max_blob=blob max_size = blob[2]*blob[3] return max_blob while(True): clock.tick() # Track elapsed milliseconds between snapshots(). img = sensor.snapshot() # Take a picture and return the image. blobs = img.find_blobs([green_threshold]) if blobs: last_time = pyb.millis() max_blob = find_max(blobs) x_error = max_blob[5]-img.width()/2 h_error = max_blob[2]*max_blob[3]-size_threshold print("x error: ", x_error) ''' for b in blobs: # Draw a rect around the blob. img.draw_rectangle(b[0:4]) # rect img.draw_cross(b[5], b[6]) # cx, cy ''' img.draw_rectangle(max_blob[0:4]) # rect img.draw_cross(max_blob[5], max_blob[6]) # cx, cya x_output=x_pid.get_pid(x_error,1) h_output=h_pid.get_pid(h_error,1) print("h_output",h_output) car.run(-h_output-x_output,-h_output+x_output) else: if pyb.elapsed_millis(last_time) % 2000 > 1000: car.run(10,0) else car.run(-10,0) 思路就是不用while 用if,然后每次找到色块后更新时间。
    • 3

      追踪小车里,如何让小车固定一个角度寻找目标,比如90度,而不是转圈?
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1325
      浏览

      你不能控制角度,因为没有角度传感器。 你只能能控制它的时间,比如向左转了1秒没找到就回头转1秒。
    • 3

      请问一下追踪小车car.py里,run(left_speed, right_speed)中,相对应的电机角速度是多少?
      OpenMV Cam • • 3sbx

      5
      0
      赞同
      5
      楼层
      2216
      浏览

      @3sbx 厂家没有给我这个参数。
    • 3

      在官方视频教程中,OpenMV追其他物体的小车,追踪Apriltag的确定是可以实现的?
      OpenMV Cam • • 3sbx

      4
      0
      赞同
      4
      楼层
      2734
      浏览

      @3sbx 那你就不要用面积来判断,用z_translation来判断。那个视频是提供一个思路。 https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.apriltag.apriltag.z_translation
    • 3

      怎么用内测AI软件训练FOMO?
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1196
      浏览

      @3sbx FOMO是edge impulse制作的,是非公开的。FOMO只能在edge impulse上训练。
    • 3

      内测AI软件 怎么用 哪里有教程?一直没找到教程
      OpenMV Cam • • 3sbx

      4
      0
      赞同
      4
      楼层
      1893
      浏览

      S

      @kidswong999 期待正式版,等了很久,请问什么时候发布?
    • 3

      如何解决openmv追踪Apritag标记时,Apritag标记稍微移动快一点就丢失目标.
      OpenMV Cam • • 3sbx

      4
      0
      赞同
      4
      楼层
      1808
      浏览

      @3sbx 可能是运动的时候拖影。 缓解办法:加光照,这样曝光时间小,会减小拖影。 解决办法:换成全局曝光的摄像头模组。https://singtown.com/product/50303/global-shutter-camera-module/
    • 3

      是否可以将yolo模型通过edge impulse转化部署在OpenMV4 H7 Plus上使用?
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1441
      浏览

      @3sbx yolo,ssd都不可能在OpenMV上使用,模型太大了,放不下,而且很多op用不了。 FOMO是edge impulse专门做的精简的模型。
    • 3

      目前openmv有没有FOMO的实践案例,教程
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1331
      浏览

      @3sbx 在edge impulse上标注和训练就行了,流程都差不多。 最近会出视频。
    • 3

      追踪物体的云台中,是否可以在追踪到物体后,让物体保持在镜头视野的居中位置.
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1241
      浏览

      @3sbx 本来就是这样的,一直让物体在中心。
    • 3

      星瞳AI VISION软件内测群二维码过期
      OpenMV Cam • • 3sbx

      4
      0
      赞同
      4
      楼层
      2087
      浏览

      @6uis 我又更新了一下,我尽量一个月内发布正式版。
    • 3

      支持yolov5,TensorFlow Lite,目标识别模型?
      OpenMV Cam • • 3sbx

      2
      0
      赞同
      2
      楼层
      1787
      浏览

      1,不支持yolov5,因为yolov5太大了,即使是tiny版本也在OpenMV上用不了。 2,支持tensorflow lite,但是只支持有限的OP。所以SSD也是用不了。 3,edge impulse上支持FOMO目标点检测(只有目标位置,没有目标大小),可以在OpenMV4 H7 Plus上使用。https://docs.edgeimpulse.com/docs/tutorials/detect-objects-using-fomo