banner
月落星河Tsukistar

月落星河Tsukistar

浩瀚中的伟大,孤独间的渺小
github
twitter
youtube
bilibili
email

1, 2, rough draft!

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:
Conversion result
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:#

Generate directory and random file name:#

Preview:

Welcome screenWelcome screenMain screenMain screenConversion and saveConversion 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.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.