สร้างระบบตรวจจับความเสียหายแบบเรียลไทม์ด้วยกล้อง Line-Scan + AI (แนวทางนำไปใช้ได้หลายอุตสาหกรรม)

TL;DR

  • เหมาะกับการตรวจจับสิ่งที่เคลื่อนที่ เช่น ฟิล์ม กระดาษ สิ่งทอ ลวด ท่อ แผ่นเหล็ก ฯลฯ
  • เริ่มจากกำหนด: ระยะการมองเห็น (FOV), ขนาดตำหนิที่เล็กที่สุด, ความเร็วของสายพาน, ระยะทำงาน (WD)
  • เลือกเลนส์ให้ระยะทำงานและมุมมองครอบคลุมชิ้นงาน
  • ใช้ Encoder เพื่อล็อคอัตราส่วนพิกเซลให้เที่ยงตรง
  • Pipeline: กล้อง → ดึงภาพ → แบ่ง Tile → ปรับแต่ง → ตรวจจับ (CV/ML) → แจ้งเตือน/แสดงผล/เก็บข้อมูล
  • เริ่มที่ f-number ≈ f/5.6 เพื่อบาลานซ์ความลึกของภาพและความสว่าง

Continue reading "สร้างระบบตรวจจับความเสียหายแบบเรียลไทม์ด้วยกล้อง Line-Scan + AI (แนวทางนำไปใช้ได้หลายอุตสาหกรรม)"

Building a Real-Time Defect Detector with Line-Scan + ML (Reusable Playbook)

TL;DR

  • Use line-scan for moving/continuous stuff: film, foil, paper, textiles, wire, pipes, board edges, etc.
  • Decide early: field of view (FOV), smallest defect, speed, working distance (WD).
  • Lens: pick focal length so FOV at your WD matches product width; keep ≥3–5 px on the smallest defect.
  • Encoder on the motion path → square pixels and mm-accurate measurements.
  • Pipeline: camera → acquire → tile → preprocess → CV/ML → PLC/UI/logs. Start around f/5.6 (or f/8 if you need more depth of field).

Continue reading "Building a Real-Time Defect Detector with Line-Scan + ML (Reusable Playbook)"

วิธีอ่านซอร์สโค้ด: ตัวอย่างจาก Frappe Framework

การอ่านซอร์สโค้ดคือสุดยอดทักษะของนักพัฒนา
ไม่ว่าคุณจะต้องการ contribute โอเพนซอร์ส แก้บั๊ก หรือแค่อยากรู้ว่าระบบที่คุณใช้ทำงานอย่างไร “การอ่านและเข้าใจโค้ดขนาดใหญ่” คือทักษะสำคัญ

Continue reading "วิธีอ่านซอร์สโค้ด: ตัวอย่างจาก Frappe Framework"

Interface-Oriented Design:クリーンアーキテクチャの基礎

はじめに

現代のソフトウェア設計では、「変更に強く、保守しやすく、拡張可能」であることが重要です。
クリーンアーキテクチャ(Clean Architecture) は、その実現手法として広く使われています。
しかし、その力の源は「Interface-Oriented Design(インターフェース指向設計)」という考え方にあります。

Continue reading "Interface-Oriented Design:クリーンアーキテクチャの基礎"

Interface-Oriented Design: รากฐานของ Clean Architecture

บทนำ

หนึ่งในความท้าทายสำคัญของซอฟต์แวร์ยุคใหม่ คือการออกแบบระบบให้ยืดหยุ่น ดูแลง่าย และพร้อมรับการเปลี่ยนแปลง
Clean Architecture เป็นแนวทางยอดนิยมที่ช่วยให้บรรลุเป้าหมายนี้
แต่เบื้องหลังความสำเร็จของ Clean Architecture ก็คือหลักคิดสำคัญที่เรียกว่า
Interface-Oriented Design (IOD)

Continue reading "Interface-Oriented Design: รากฐานของ Clean Architecture"

Interface-Oriented Design: The Foundation of Clean Architecture

Introduction

Building software that survives change is one of the biggest challenges in engineering.
Clean Architecture is a popular solution, offering a way to organize code so the “core” business logic is independent of frameworks, databases, or user interfaces. But what truly enables this independence is a design mindset called Interface-Oriented Design (IOD).

Continue reading "Interface-Oriented Design: The Foundation of Clean Architecture"

アンチドローンシステムのすべて ─ アーキテクチャ・ハードウェア・ソフトウェア徹底解説

ドローンは世界を変革していますが、新たなリスクも増大しています。
重要施設やイベント、空港などの空域を不正なドローンから守るためには「アンチドローンシステム」が不可欠です。
本記事では、その構成、主要機能、使用可能なハードウェア・ソフトウェア、システム全体像をMermaid.jsで解説します。

Continue reading "アンチドローンシステムのすべて ─ アーキテクチャ・ハードウェア・ソフトウェア徹底解説"

เข้าใจระบบต่อต้านโดรน (Anti-Drone System) – สถาปัตยกรรม ฮาร์ดแวร์ และซอฟต์แวร์

โดรน กำลังเปลี่ยนโลก แต่นำมาซึ่งความเสี่ยงใหม่ๆ ด้วยเช่นกัน
การปกป้องพื้นที่สำคัญจากโดรนที่ไม่ได้รับอนุญาตหรือมีเจตนาร้ายจึงจำเป็นมาก
ระบบต่อต้านโดรน (Anti-Drone System) คือเทคโนโลยีที่ผสานเซ็นเซอร์ขั้นสูง AI และระบบรับมือ เพื่อรักษาความปลอดภัยบนท้องฟ้า

Continue reading "เข้าใจระบบต่อต้านโดรน (Anti-Drone System) – สถาปัตยกรรม ฮาร์ดแวร์ และซอฟต์แวร์"