Produce with following steps:
paperkey --output-type raw < /tmp/mykey.gpg \
> /tmp/mykey.paperkey
dmtxwrite -e 8 /tmp/mykey.paperkey > /tmp/mykey.paperkey.png
To reassemble, scan to JPG and then:
gpg2 --import /tmp/mykey.pub.asc
gpg2 --export > /tmp/pubring.gpg # To handle GPG 2.1 keyring format change
convert /tmp/mykey.jpg -colors 2 /tmp/mykey.paperkey.png
dmtxread /tmp/mykey.paperkey.png | \
paperkey --pubring /tmp/pubring.gpg > mykey.gpg