<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by nantawat srisuwong on Medium]]></title>
        <description><![CDATA[Stories by nantawat srisuwong on Medium]]></description>
        <link>https://medium.com/@nantawat23308?source=rss-5c879982e377------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NtQ_EYPo9TFN5jFN</url>
            <title>Stories by nantawat srisuwong on Medium</title>
            <link>https://medium.com/@nantawat23308?source=rss-5c879982e377------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:27:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nantawat23308/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[License Plate Recognition System]]></title>
            <link>https://medium.com/@nantawat23308/license-plate-recognition-system-4979e6584321?source=rss-5c879982e377------2</link>
            <guid isPermaLink="false">https://medium.com/p/4979e6584321</guid>
            <category><![CDATA[yolo]]></category>
            <category><![CDATA[license-plate-recognition]]></category>
            <dc:creator><![CDATA[nantawat srisuwong]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 10:40:16 GMT</pubDate>
            <atom:updated>2026-02-25T10:41:12.312Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this article, I’ll walk you through a <strong>complete license plate recognition system</strong> that combines:</p><ul><li><strong>YOLOv26 for vehicle detection</strong></li><li><strong>Custom-trained YOLOv26 for plate detection</strong></li><li><strong>PaddleOCR for text recognition</strong></li></ul><h3>System Architecture: A 3-Stage Pipeline</h3><p>Our system works in four distinct stages:</p><pre>Input Image<br>    ↓<br>[Stage 1: Car Detection]     ← YOLOv26 COCO Pre-trained<br>    ↓<br>[Stage 2: Plate Detection]    ← Custom-Trained YOLOv26<br>    ↓<br>[Stage 3: Text Recognition]   ← PaddleOCR<br>    ↓<br>Output: Annotated Image</pre><h3>Stage 1: Vehicle Detection</h3><p>We use YOLOv26 (Nano variant) pre-trained on COCO dataset to detect vehicles:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mAXMy82WJQmqx8M9fpp1Ug.png" /></figure><p>Instead of detecting plates across the entire image (which is slow and inaccurate), we first identify vehicles. This reduces the search space and improves accuracy.</p><p><strong>Model Details:</strong></p><ul><li>Model: YOLOv26 Nano</li><li>Weights: COCO Pre-trained</li><li>Detects: Cars, motorcycles, buses, trucks</li></ul><h3>Stage 2: Plate Detection</h3><p>We crop each detected vehicle and run plate detection on that region:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*IWkWS8Msm-adzgTNWmp1Fg.png" /></figure><p>A critical insight: running detection on cropped regions is:</p><ul><li><strong>Faster</strong> — Smaller images process quicker</li><li><strong>More accurate</strong> — Model learns contextual information</li><li><strong>Fewer false positives</strong> — No random plate-like objects detected</li></ul><p><strong>The offset trick:</strong> When we detect plates in the cropped image at position (50, 30), but the crop started at (100, 50) in the original image, we need to convert:</p><pre>Original Position = Cropped Position + Offset<br>(150, 80) = (50, 30) + (100, 50)</pre><p>This automatic conversion ensures all bounding boxes align perfectly with the original image.</p><p><strong>Model Details:</strong></p><ul><li>Model: Custom-trained YOLOv26</li><li>Weights: best.pt (trained on license plate dataset)</li></ul><h3>Stage 3: Text Recognition</h3><p>PaddleOCR recognizes the actual text on the plate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*SgLCNnFnaosAx4WoiTXhFw.png" /></figure><p><strong>Why PaddleOCR?</strong> It supports:</p><ul><li>80+ languages (including Thai)</li><li>High accuracy on license plates</li><li>Built-in language models (no retraining needed)</li><li>Fast inference</li></ul><p><strong>Features:</strong></p><ul><li>Thai/English/Multi-language</li><li>Character-level confidence scores</li><li>Bounding boxes for each character</li><li>Auto-downloaded models</li></ul><p>source: <a href="https://github.com/nantawat23308/plate_recognition.git">https://github.com/nantawat23308/plate_recognition.git</a></p><h3>Resources</h3><ul><li><strong>YOLOv8 Documentation:</strong> <a href="https://docs.ultralytics.com/">https://docs.ultralytics.com/</a></li><li><strong>PaddleOCR GitHub:</strong> <a href="https://github.com/PaddlePaddle/PaddleOCR">https://github.com/PaddlePaddle/PaddleOCR</a></li><li><strong>OpenCV Tutorials:</strong> <a href="https://docs.opencv.org/">https://docs.opencv.org/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4979e6584321" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Engineering]]></title>
            <link>https://medium.com/@nantawat23308/feature-engineering-e07dcff2465a?source=rss-5c879982e377------2</link>
            <guid isPermaLink="false">https://medium.com/p/e07dcff2465a</guid>
            <category><![CDATA[feature-transformation]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[feature-extraction]]></category>
            <category><![CDATA[feature-selection]]></category>
            <dc:creator><![CDATA[nantawat srisuwong]]></dc:creator>
            <pubDate>Tue, 19 Nov 2024 08:37:59 GMT</pubDate>
            <atom:updated>2024-11-19T08:37:59.378Z</atom:updated>
            <content:encoded><![CDATA[<h3>Feature Selection</h3><p>คือกระบวนการในการเลือก feature ที่จะใช้เป็น predictor variable สำหรับ Model. การที่เรามี Dataset ที่ใหญ่และมี Feature ที่เยอะไม่ใช้ว่าทุก Feature จะสำคัญสำหรับ Model การที่เราจะใช้ ทุก Feature ไม่ได้ส่งผลให้ Model performance ดีมากขึ้นขนาดนั้น หรือบางทีอาจจะเป็นผลเสียต่อ Performance ของ Model ให้แย่ลง โดยการเพิ่มความซับซ้อนให้และ Noise ให้กับ Model</p><ul><li>Predictive feature ที่มีข้อมูลที่สำคัญในการใช้ทำนายได้ด้วยตัวของมันเอง</li><li>Interactive feature ที่ไม่มีความสำคัญในการใช้ทำนายด้วยตัวของมันเอง แต่สามารถใช้ร่วมกับ Feature อื่นทำให้สามารถใช้ในการทำนายได้</li><li>Irrelevant feature ที่ไม่มีข้อมูลที่สำคัญในการใช้ทำนายเลย</li></ul><p>Feature ที่เราใช้ในการทำนาย อาจจะเป็น Redundant Feature ที่มีความ High Correlated กับ Feature อื่น ทำให้การใช้ Feature ที่มีความสัมพันธ์กันนี้ไม่ได้เพิ่มข้อมูลที่สำคัญให้กับ Model สิ่งที่ควรหารคือ Predictive กับ Interactive features และเอา Irrelevant Feature และ Redundant Feature ออก</p><p>โดยปกติแล้วเราสามารถใช้ Statistical Methodologies เพื่อตัวสินใจว่า Feature ไหนควรเก็บไว้และ Feature ไหนควรเอาออก เราสามารถ Ranking ผ่าน model feature หลังจากที่เรานำ Model ไปเทรนแล้วและดูว่า Feature ที่สำคัญของ Model คืออะไรบ้างและเก็บไปใช้ในการทำนายแค่ Top a% ของทั้งหมด</p><h3>Feature Transformation</h3><p>คือการนำ feature ที่มีอยู่ใน Dataset มาปรับให้เหมาะสม เพื่อใช้สำหรับการฝึก Model</p><ol><li>Log normalization บาง Model ไม่เหมาะกับการรับมือกับ Continuous Data ที่มีความเบ้ซ้ายหรือเบ้ขวาได้(skewed distributions) วิธีการก็คือการนำ Feature มาใช้ ผ่านการ Transform ด้วย Logarithm ซึ่งจะช่วยทำให้ความเบ้ของ Distribution น้อยลง</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*k9ojBDBO-OkiYtKA4GHpUg.png" /><figcaption>Skew Distribution Feature</figcaption></figure><figure><img alt="continuous distribution" src="https://cdn-images-1.medium.com/max/320/1*PeNKfJvwqP-C5VyNMogE8g.png" /><figcaption>continuous distribution</figcaption></figure><p>2. Scaling คือการปรับช่วงของค่าใน feature โดยใช้การ normalize การ scaling จะช่วยป้องกันไม่ให้ sample ที่มีค่าสูงมากๆ มีผลมากกว่า sample ที่มีค่าต่ำกว่า ซึ่งทุก sample ควรมีความสำคัญพอๆกัน</p><ul><li>Normalization (eg. <strong>MinMaxScaller</strong>) แปลงข้อมูลให้อยู่ในช่วงค่าใหม่ ช่วง [0, 1] ค่าที่น้อยที่สุดจะเป็น 0 ค่าที่มากที่สุดจะเป็น 1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*XR9ltjv7otZUbTTI6x8iAA.png" /><figcaption>MinMaxScaller</figcaption></figure><ul><li>Standardization (e.g., <strong>StandardScaler</strong>) แปลงแต่ละค่าใน feature ให้มีค่าเฉลี่ย(Mean) เป็น 0 และส่วนเบี่ยงเบนมาตรฐาน(SD) เป็น 1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*npe97wA-OH39P6oumxprcg.png" /><figcaption>StandardScaler</figcaption></figure><p>3. Encoding คือขั้นตอนการ convert categorical data ไปเป็น numerical data โดยปกติแล้ว Machine Learning ไม่สามารถเข้าใจข้อมูลหรือความหมายจากตัวอักษรได้ Encoding คือการแปลงข้อมูลตัวอักษร เป็น ตัวเลข เพื่อนำมากระทำการทางคณิตศาสตร์ได้ โดยปกติแล้วจะมี tools ที่นำเอามาใช้บ่อยๆ คือ padas.get_dummy() และ OneHotEncoder() และปกติเราจะทำการ drop 1 columns จากการ transform เพื่อป้องกันการ Redundant Information จาก Dataset.</p><p>และ เราจะเห็น Dataset บางที Feature จะเก็บมาเป็นตัวเลขเช่น ชื่อกลุ่ม ตัวเลขเหล่านี้จะมี Datatype เป็น int ตัวเลขเหล่านี้ไม่ได้มีค่าทางคณิตศาสตร์ว่า กลุ่ม 1 &gt; กลุ่ม 2 แต่อย่างใด จึงควรทำการ Convert Column นี้เป็น str และ Encode เป็น Binary Columns หรือ Convert โดยใช้การแปลง type ของ Column เป็น Categorical</p><p>Encoding ที่ใช้กับช้อมูลที่เป็น discrete หรือ ordinal data เช่น อุณหภูมิ เรียกว่า ordinal encoding</p><h3>Feature Extraction</h3><p>เกี่ยวข้องกับการสร้าง feature ใหม่จาก feature ที่มีอยู่แล้ว เป้าหมายคือการสร้าง feature ให้ข้อมูลน้ำหนักในการทำนายเพิ่มมากขึ้น feature สามารถสร้างจาก หลายๆ variable ได้การจะหา feature ที่สำคัญต้องการลองหลายๆ อย่างถึงจะหาข้อมูลที่ดีและทำให้ model มีความโดดเด่นได้</p><p><a href="https://www.coursera.org/learn/the-nuts-and-bolts-of-machine-learning">https://www.coursera.org/learn/the-nuts-and-bolts-of-machine-learning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e07dcff2465a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>