---
# System prepended metadata

title: Latest Version

---

# Latest Version
v2(2020/5/13)
Share Folder: [Google Drive](https://drive.google.com/drive/folders/17DEbvTgzMKfGpYeO_vty7gRqX9hxCxz2?usp=sharing)
# Problems Found
1. Some images is too blur and the color is too light.
    * 125_貨![](https://i.imgur.com/Ao989VQ.jpg)
1. Some of the words are red, though I've adjusted some strict criteria to deal with these kind of images, the results are still not perfect enough.
    * 12661_玉![](https://i.imgur.com/fed3gvB.jpg)
    * 68264_玉![](https://i.imgur.com/uKgLzpV.jpg)

1. Can't completely clean the red line if the red lines are light.
    * 73_牙![](https://i.imgur.com/5Kyf5GR.jpg)
    * 119_阿![](https://i.imgur.com/q7OtmRt.jpg)
    * 122_偉![](https://i.imgur.com/f7zcq4w.jpg)


# Preprocessing workflow

1. Crop out the black blank in some of the images.
    ![](https://i.imgur.com/eKd3t0k.jpg) to ![](https://i.imgur.com/Xly6kQA.jpg)
    
1. Change the image into hsv channel, and generate a mask with red colors in the original image.
![](https://i.imgur.com/ol1j2Ko.jpg)

1. Make some adjustment on the mask to properly fit the red part of the original images.

1. Convert the original images into gray scale images, and use OTSU method to get binary images.
![](https://i.imgur.com/IAS9ABJ.jpg)

1. Use the mask to clean the binary images.
![](https://i.imgur.com/5phP86f.jpg)