การวัดความยาวข้าวโพดฝักอ่อนด้วยการเข้ารหัสแบบรันเลนท์และวิธีถดถอยแบบทำซ้ำ

Main Article Content

อมรฤทธิ์ พุทธิพิพัฒน์ขจร

Abstract

บทคัดย่อ

งานวิจัยนี้มีวัตถุประสงค์เพื่อวัดความยาวข้าวโพดฝักอ่อนโดยกระบวนการถ่ายภาพ ซึ่งลักษณะของข้าวโพดฝักอ่อนที่ปรากฏในภาพจะถูกจัดวางอย่างสุ่มและมีจำนวนมากกว่าหนึ่งฝักต่อภาพ ด้วยวิธีการเข้ารหัสแบบรันเลนท์และวิธีถดถอยแบบทำซ้ำ ซึ่งประกอบไปด้วย 3 ขั้นตอน คือ การสร้างอุปกรณ์รับภาพซึ่งจะถูกกำหนดสภาพแวดล้อม เช่น ความสว่าง ความสูงของกล้อง ให้สัมพันธ์กับการสอบเทียบขนาดของวัตถุจริงกับวัตถุที่ปรากฏบนภาพ ขั้นตอนถัดมาเป็นการแยกองค์ประกอบของภาพออกเป็นส่วน ๆ ด้วยวิธีการเข้ารหัสแบบรันเลนท์ และขั้นตอนสุดท้ายเป็นการวัดความยาวข้าวโพดฝักอ่อนโดยใช้วิธีถดถอยแบบทำซ้ำเพื่อประมาณการหมุนของภาพ จากการทดสอบพบว่าวิธีที่นำเสนอสามารถวัดความยาวของข้าวโพดฝักอ่อนได้อย่างแม่นยำเฉลี่ยถึง 98.93 % และสามารถนำไปพัฒนาเป็นเครื่องมือและช่วยลดต้นทุนในการผลิตได้

คำสำคัญ : ข้าวโพดฝักอ่อน; ประมวลผลภาพ; เข้ารหัสแบบรันเลนท์; ถดถอยแบบทำซ้ำ

 

Abstract

This research aims to measure the length of baby corn by using image processing technique including the run-length encoding and the iterative regression method. The method consists of 3 phases. The first one is acquire an image from the video input device (camera) by setting the environment of the camera such as the brightness and the height of the camera to get the relationship between size of real object and size of the object in the image. The second one is to segment the image by using the run-length encoding method and the last one is to rotate the segmented image by using the iterative algorithm based on regression estimation which is proposed in this research. The experiments shown that the proposed method can measure the length of baby corn with the accuracy up to 98.93 % and it could be developed to use for industry and may help reduce the production costs.

Keywords: baby corn; image processing; run-length encoding; iterative regression

Article Details

Section
Engineering and Architecture