Recently, I have been working on an Android app using OpenCV for visible light positioning. While identifying contours, I accidentally used a QR code image from my phone as a sample for testing and found that the lines were very clear, just like the image below:
Isn't this a line draft? Maybe I can create an app that can convert images into line drafts with just one click. It might come in handy in the future and would be convenient for drawing enthusiasts as well.
So, I made a copy of my project for visible light positioning, changed the package name, logo, and background image, and then redesigned the UI. I also added a feature to save the image by long-pressing it. After various tests and debugging, I successfully created a stable version in just two days. Finally, I released the app and the project on my Gitee repository.
Key parts of the code:#
Save image:#
Refresh media gallery:#
Generate directory and random file name:#
Preview:
Welcome screen | Main screen | Conversion and save |
Since I only used the ARM architecture of the OpenCV library, it runs smoothly on both Redmi Note 1 and Xiaomi 6X. Therefore, I believe it supports almost all Android smartphones, but compatibility with Android tablets is still unknown.