Author

Topic: Snap QR image from screen and import as a wallet or send to address (Read 704 times)

newbie
Activity: 25
Merit: 0
What do you require of others who want to use your work in their own coins?

I don't require anything.  I implemented it for anyone to use.  Have fun with it Smiley

Claire
full member
Activity: 140
Merit: 100
Wow, this is a really great feature. Thanks for this work Claire. I am the developer of Hirocoin and would like to use your work.

What do you require of others who want to use your work in their own coins?
sr. member
Activity: 280
Merit: 250
Bitnation Development Team Member
Great idea! I'll have a play around with this for sure!
newbie
Activity: 4
Merit: 0
excellent project, very usefull!
newbie
Activity: 25
Merit: 0
I implemented a feature in a test coin to snap a region of your screen which contains a QR code.  This new dialog is used in two places:you can send coin to a snapped address or import a snapped private key as a wallet.  The snapped region is converted to an image and sent to a library to be decoded into a string.

To show you how it works, I made a short (3 minute) video where I demo the feature on Windows, Mac OS X (10.9.2), and Ubuntu:

http://youtu.be/5NCiHGIMB2c

The source code featured in the video is available here:

https://github.com/ClaireDuSoleil/Legocoin

This new feature uses the ZebraCrossing library.  This library was originally written in Java and ported to C++.    In order to decrease the size of the download and make some minor changes so it compiles properly on all three platforms, I made my own version:

https://github.com/ClaireDuSoleil/ZebraCrossing

ZebraCrossing is pretty easy to compile on all three platforms using cmake.  I didn't even create a VS project for it.  The batch file I wrote simply runs cmake to create the VS2013 project files and then runs msbuild to create the library.  This batch file is located in the build-helpers directory in the legocoin repository, along with batch files to build all the other dependencies in VS2013.  Please see the README in the MSVC folder for more information.

Other notes: the snap feature uses Qt5.  It will need some rework if you want to use Qt4.

If you happen to try this out and find any problems, please let me know.
Jump to: