How to generate a QR Code model 2 on Adafruit Magtag? - adafruit

I purchased a Adafruit Magtag which is a board with an ESP32-S2 chipset and a 2.9" grayscale E-Ink display, I would like to generate a QR Code Model 2, but it does not appear the Magtag QR Code library supports this model of QR Code, or I am missing something.
Does anyone maybe have some suggestions or more experience, need a bit of a steer in the right direction, any help is greatly appreciated.

I may be wrong, but the main reason you might want to use Model 2 is that the QR code would be distorted on a curved surface. The E-ink display on the MagTag isn't curved. https://www.qrcode.com/en/codes/model12.html

Related

How to predict the QR scan result of the mobile camera?

Thanks to the help of Ohgodwhy, I realized that it is possible to use QR code for a advertising, too.(question) Just scanning code shows the banner with options of Open Browser and Install App, it's really amazing.
I really want to realize this. I want to do it in my vue project. The problem is that I am not sure about the preview content of the link of the QR code. I am just embedding the link. The scanned result might show the link and hopefully the preview of the link.
But I am not sure how it would look like. Preview of the link are different on different platforms. Can you help me how to guess the content that will be shown by the mobile device as the banner when it successfully scanned the QR code?

Change display properties of graphics in lithium theme

First of all thanks to the developers of blogdown. I just started my first blogdown-blog on github / netlify and it looks really nice.
There is one issue that I would like to change:
On mobile devices, graphics from R code chunks are displayed in a way that I can see only the left part of the graphics. Ideally, I would want to reduce the size of the graphics on mobile devices so they fit to the height and the width of the screen.
Is this possible? Where would introduce changes?
Here is the link to my blog: https://sbloggel.netlify.com/
(I have only the most minimal knowledge about web programming).
Thanks in advance for any advice or pointers to relevant resources to start learning and best greetings,
Sebastian
I just accidentally found a potential solution that is sufficient to me.
Most (maybe all) figures on my blog will be produced by R code chunks.
By specifying the 'out.width'-parameter in the code chunk that produces the figure, the size of the figure will be fitted to the screen size as far as I can see:
```{r out.width = "100%"}
plot(1:10)
```
Thanks nonetheless!

I want to add the spp algorithm to my program so that the input and output images don't have to be fixed

https://github.com/nickliqian/cnn_captcha
Here is the git address, which is the code I am using.
Hello, I have a verification code recognition program. Now I can model the model and verify the recognition result, but I can only fix the image size of the input and output. Now I want to add the spp(Spatial Pyramid Pooling) algorithm into my program. I have tried many times and can't solve it normally. Can you help me? Thank you.
https://github.com/nickliqian/cnn_captcha
Let the input and output pictures not be in fixed size

How to create a bitmap cropping control in WinJS

I want to create controls that lets the user decide crop area of a bitmap, in the common way, having four corners on the image. I saw that there is a sample C# app in the Microsoft site for this - http://www.microsoft.com/en-us/showcase/details.aspx?uuid=bef08d57-fa4d-4d9c-9080-6ee55b8623c0
But I cannot figure out how to do this strictly WinJS. Do I need to create custom controls - if so how? Any sample code will help a great deal.
I have an example in my codeSHOW project. It's the demo called Rx Crop. It uses Reactive Extensions (which are awesome by the way), but if you didn't want that dependency you could probably just use the example to figure out how to do it without.
BTW, the codeSHOW project has a bug and a usability issue currently. I have an update in certification. For now, just make sure you select the Rx Crop demo on the home screen and then click See the Code. If you hit See the Code with no demo selected it will crash.
Do me a favor and rate the app. Thanks.

Adaptive thresholding for scanned images

I would like to improve a number of images accquired with document scanning, does anybody have any VB sample code for dynamic thresholding to achieve a result something similar to the images shown at the bottom of the page;
http://www.datastor-ltd.co.uk/component/content/article/39-microfilm-scanning/104-the-benefits-of-scanning-in-greyscale
Have a look at Otsu's method. It's quite simple an easy to implement -- you should be able to transform Wikipedia's pseudo-code into VB in no time.
Otsu's method will give you a threshold (single value) -- you can then use that threshold to binarize the image. The thresholding code is also trivial.