v1.6.0

v1.6.0 เพิ่มโมดูล Time-of-Flight (tof) image.find_displacement() (FFT phase-correlation optical flow) API pooling ของภาพ sensor.set_windowing() และตัวเลือกการค้นหาของ image.find_template() ขณะนี้ find_template() บังคับใช้ ROI — โปรดอ่านการเปลี่ยนแปลงที่ไม่เข้ากันด้านล่าง

ไฮไลต์

  • โมดูล tof — รองรับเซนเซอร์วัดระยะทาง Time-of-Flight

  • image.find_displacement() — FFT phase-correlation (optical flow)

  • Poolingmidpoint_pool() / mean_pool() และตัวแปรแบบ pooled

  • sensor.set_windowing() — sensor windowing / binning พร้อมขนาดเฟรมความละเอียดต่ำใหม่

  • find_template() — เพิ่มตัวเลือก step / search (SEARCH_EX / SEARCH_DS) / roi

  • ไม่เข้ากัน: ขณะนี้ image.find_template() บังคับใช้ ROI ที่ถูกต้อง — ดูการเปลี่ยนแปลงที่ไม่เข้ากัน

ฟีเจอร์ใหม่

  • tof — เพิ่มโมดูล Time-of-Flight พร้อม tof.init() / tof.deinit() / tof.read_frame() / tof.draw_frame() / tof.write_reg() (รองรับ I2C ToF sensor)

  • image.find_displacement() — เพิ่ม FFT phase-correlation displacement (พร้อม subpixel และค่าคุณภาพของผล) พร้อมตัวอย่าง optical flow

  • Pooling — เพิ่ม Image.midpoint_pool() / midpoint_pooled() / mean_pool() / mean_pooled()

  • sensor.set_windowing((x, y, w, h)) — sensor windowing/binning พร้อมขนาดเฟรมใหม่ sensor.B40x30 / B64x32 / B64x64 สำหรับ optical flow

  • image.find_template() — เพิ่มอาร์กิวเมนต์คีย์เวิร์ด step, search (ค่าเริ่มต้น image.SEARCH_EX / image.SEARCH_DS สำหรับการค้นหาแบบ diamond เร็ว) และ roi

  • Image.copy_to_fb() — คัดลอกภาพไปยังบัฟเฟอร์เฟรม (พร้อมออฟเซ็ต (x, y) ที่เลือกได้) และตัวอย่าง copy2fb.py

การเปลี่ยนแปลงและปรับปรุงอื่นๆ

  • การค้นหา diamond ของ find_template() ปรับปรุงขั้นตอนอย่างแม่นยำมากขึ้น (แม่นยำขึ้น แต่ช้าลง) binning เปิดใช้งานอัตโนมัติสำหรับขนาดเฟรมที่เกิน VGA บน OpenMV 2 auto zoom/scale ถูกปิดใช้งานที่ VGA บน OV7725

การแก้ไขบัก

  • แก้ไขการคำนวณ integral-image และ integral-image-square (ส่งผลต่อความแม่นยำของ Haar / feature / template-matching) 1D/2D FFT และ phase-correlation และ in-place pooling ที่ปรับขนาดบัฟเฟอร์เฟรม

การรองรับฮาร์ดแวร์และบอร์ด

  • เซนเซอร์วัดระยะทาง Time-of-Flight (ToF) ผ่าน I2C

  • ขนาดเฟรมความละเอียดต่ำใหม่ (B40x30 / B64x32 / B64x64) สำหรับ optical flow

การเปลี่ยนแปลง API ที่ไม่เข้ากัน

การเปลี่ยนแปลง API ที่ผู้ใช้มองเห็นได้ระหว่าง v1.5.0 และ v1.6.0 ขอบเขต: Python C-modules ใน modules/ และ Python libraries ใน scripts/libraries/

การเปลี่ยนแปลงที่ไม่เข้ากันคือการเปลี่ยน พฤติกรรม (API เดิม แต่ผลลัพธ์ต่างกัน) — ตรวจสอบสคริปต์ที่ได้รับผลกระทบอีกครั้ง แต่ละ hash ของ commit เชื่อมโยงไปยัง diff บน GitHub

image.find_template() บังคับใช้ ROI (พฤติกรรม)

ขณะนี้ image.find_template() ตรวจสอบบริเวณที่สนใจและ raises ("Region of interest is bigger than image!") เมื่อ ROI ไม่มีหรือใหญ่เกินไป หรือเล็กกว่า template ส่ง roi=(x, y, w, h) ที่ถูกต้องซึ่งมีขนาดอย่างน้อยเท่ากับ template และอยู่ภายในภาพ

Commits: a25e0c162

รายการตรวจสอบการย้าย

ส่ง roi ที่ถูกต้อง (≥ ขนาด template ภายในภาพ) ให้กับ image.find_template() (การเปลี่ยนแปลง find_template) สคริปต์อื่นๆ ทั้งหมดทำงานได้โดยไม่มีการเปลี่ยนแปลง