QR Code is not recognized by ZXing - qr-code

I've noticed that this qr-code is not recognized by the current version. I downloaded it from the wikipedia page about qr-codes. https://en.wikipedia.org/wiki/QR_code its v25. I did test it in the online zxing decoder found here: https://zxing.org/w/decode.jspx
The Zbar app does not recognize it either. But apps like 'DataMatrix scanner' do without problems.
Is this a bug?

ZXing only supports up to v20 QR code at mobile client, you can find from the source codes, I attach the codes as follows:
protected static final int MAX_MODULES = 97; // support up to version 20 for mobile clients

Related

How do I extract a jpeg's EXIF thumbnail using ImageSharp?

I am trying to extract thumbnails from source jpegs and save them to the file system, using the C# ImageSharp library. I see there is some mention of it in the intellisense for the component:
SixLabors.ImageSharp.Image.Metadata.ExifProfile.CreateThumbnail()
...but I can't seem to find any documentation for it or examples to call it correctly.
I did find this:
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
//method code:
Image<TPixel> thumbnail = image.Metadata.ExifProfile.CreateThumbnail<TPixel>();
https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Metadata.Profiles.Exif.ExifProfile.html
...but I need to find where the TPixel type is to get it to work. VisualStudio doesn't recognize it and I can't seem to find a namespace or use it correctly:
"The type or namespace name 'TPixel' could not be found (are you missing a using directive or an assembly reference?)"
Legacy Windows .NET Framework could do this for System.Drawing.Image.Image.GetThumbnailImage() and it worked pretty well.
EDIT: Using tocsoft's answer, I changed the code to:
if (image.Metadata.ExifProfile != null)
{
Image<Rgba32> thumbnail = image.Metadata.ExifProfile.CreateThumbnail<Rgba32>();
thumbnail.Save(thumbnailPath, encoder);
}
...however, the image.Metadata.ExifProfile is null, which is unexpected since I know these source images have EXIF data.
EDIT: Actually, it's working now. Success! Thank you!
TPixel would be any of the pixel formats in the SixLabors.ImageSharp.PixelFormats namespace. But unless you are planning on interoperating with other systems that require the pixel data layed out in memory in specific ways you will likely just want to use Rgba32
Image<Rgba32> thumbnail = image.Metadata.ExifProfile.CreateThumbnail<Rgba32>();

How can we get the list of bluetooth enabled devices in Xamarin forms application?

I have followed the following URL : https://github.com/aritchie/bluetoothle
But I didn't get that much clarity, is there anyway to get he solution a bit easily ? I just need the list of devices and RSSI....
I'm using plugin from https://github.com/xabre/xamarin-bluetooth-le. To scan the list of devices:
adapter.DeviceDiscovered += (s,a) => deviceList.Add(a.Device);
await adapter.StartScanningForDevicesAsync();
There is also a sample app in the plugin source code for reference.

Android view client does not show id for some screens

I m using android view client to find id using the command "java -jar androidviewclient-3.0.0.jar dump",it is showing id for some screens but on some screens thre error is "UnicodeEncodeError: 'ascii' codec can't encode characters in position 58-60: or inal not in range(128)" can anyone explain me what is the problem??
Give the latest AndroidviewClient release (https://github.com/dtmilano/AndroidViewClient/releases/tag/v3.1.2) a try. UTF-8 support is constantly improving.

How to use ReportingCloud in asp.net web site?

Recently I have started to work with SSRS and found ReportingCloud. It says
ReportingCloud provides an open source quality implementation
as an extension of the RDL specification
I haven't found any tutorial/documentation on how to use it in sourceforge or via google search.
Can anyone give an walk-through/example on How to use ReportingCloud?
There is one partial example available at http://sourceforge.net/projects/reportingcloud/forums/forum/1116661/topic/4571059.
The example takes an existing RDL file, parses and executes it and then places the HTML output into an asp.net Literal Control for display in the browser.
That code snippet is repeated here:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("C:\MyFolder\MyReport.rdl");
RDLParser rdlp = new RDLParser(xmlDoc.OuterXml);
rdlp.Parse();
MemoryStreamGen ms = new MemoryStreamGen();
ProcessReport pr = new ProcessReport(rdlp.Report, ms);
pr.Run(null, OutputPresentationType.ASPHTML);
// Dump memory stream (HTML Text) to an out-of-box ASPX Literal control
this.LiteralReportHtml.Text = ms.GetText();
To do this you'll need a reference to ReportingCloud.Engine.
I'm not sure exactly what your bigger goals are but I'd like to draw your attention to another open source project on GitHub called My-FyiReporting https://github.com/majorsilence/My-FyiReporting
Just like ReportingCloud, My-FyiReporting is a fork of FyiReporting (which has gone dormant).
The big difference as far as you are concerned is that My-FyiReporting has ASP.NET samples and an ASP.NET user control link. This might be the fast way to get to what you need.
File ORIGINALPROJECT.TXT from ReportingCloud says:
The ReportingCloud is a fork from the original project fyiReporting
4.1 (http://www.fyireporting.com).
File readme.md from My-FyiReporting says:
My-FyiReporting is a fork of fyiReporting. I cannot stress this
enough. This is a FORK. The main purpose is to make sure that I have a
copy of fyiReporting since that project seems to be dead.

QR code zxing java

Is there any way of setting error correction level while generating QR Code using ZXING JAR file...
Just like this site http://www.racoindustries.com/barcodegenerator/2d/qr-code.aspx.
If you mean you are using QRCodeWriter, set hint EncodeHintType.ERROR_CORRECTION to ErrorCorrectionLevel you want and pass the hints into the encode() method.

Resources