No video

.NET MAUI Barcode & QR Code Scanning Like a PRO!

  Рет қаралды 18,463

James Montemagno

James Montemagno

Күн бұрын

It has never been easier to scan for barcodes and QR codes in your .NET MAUI application with Zxing.Net.Maui! This awesome NuGet package enables you to embed a barcode reader control anywhere in your .NET MAUI app and scan barcodes for iOS and Android. You can even generate barcodes in your app as well!
Links:
Zxing.Net.Maui on GitHub: github.com/Red...
Another Barcode scanning library: github.com/afr...
Permissions Video: • Check and Request Perm...
Chapters:
00:00 - Intro & What is Zxing.Net.Maui?
01:30 - Installing NuGet & Configuring Zxing.Net.Maui
03:05 - Configuring Permissions for Scanning
04:25 - Adding and Configuring Barcode Reader Control
07:50 - Handling Barcode Detection
11:00 - Wrap-up
Using links I provide I may receive a commission if you buy something which helps support the channel.
Join this channel to get access to perks:
/ @jamesmontemagno
👕 Buy some swag! - jamesmontemagn...
☕️ Buy me a coffee - www.buymeacoff...
Follow:
👨‍💻 GitHub: github.com/jam...
🦜 Twitter: / jamesmontemagno
📄 Website: www.montemagno...
📰 Newsletter: newsletter.mon...
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: cleclothingco....
What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: / bcez1onhiqx
My Setup:
📷 Canon M50 Mark II - amzn.to/3P8R7lp
💡 Nanoleaf Elements Lights - amzn.to/3umwJVW
🎙 Blue Spark Microphone - amzn.to/3qgtYkq
🎙 Blue Pop Filter - amzn.to/3jEWM3r
🤳 Rode Microphone Arm - amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones - amzn.to/372jxta
📲 Stream Deck - amzn.to/373Uk1n
🖱 MX Master 2S Mouse - amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard - amzn.to/3aUP4y9
#dotnetmaui #dotnet #visualstudio #barcode #qrcode

Пікірлер: 75
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
Zxing.Net.MAUI is only one of the multiple libraries out there for barcode scanning. Looking for something using Vision & ML Kit: github.com/afriscic/BarcodeScanning.Native.Maui or github.com/JimmyPun610/BarcodeScanner.Mobile
@victorerzikoff1203
@victorerzikoff1203 6 ай бұрын
What's wrong with you? Nasic thing like Collectionviews are still broken, and you guys talk about Barcode scanning!
@atinagarwal8114
@atinagarwal8114 4 ай бұрын
Hi James.. how can we use this on native .net7/8 IOS apps? this doesnt seem to work for them.. could u kindly provide an example please.
@paulphillips3783
@paulphillips3783 8 ай бұрын
Thanks James. These videos are invaluable. Please keep them coming. I tried Maui earlier on and was it was missing so much functionality (which was to be expected as it was new) - seeing these advances builds hope back into the project. Time for another revisit :D Happy holidays!
@Ezekialify
@Ezekialify 8 ай бұрын
Good, it's out of prerelease now! I implemented "0.3.0-preview.1" in a project before and it was missing so much that was already in Xamarin. I do wish it allowed for more customization with the creation of QR Codes such as icons, but happy we at least have something.
@zoiobnu
@zoiobnu 8 ай бұрын
And don't forget. On xamarin we don't need to put a View on our page, we just need a method thats create all screens dynamic.
@DesarrolloNetArquitecturaAdmin
@DesarrolloNetArquitecturaAdmin Ай бұрын
thanks men, i just update my xamarin app to maui, this is so helpfull
@PawnDracula
@PawnDracula 7 ай бұрын
You're a big help man, keep up the good work!
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
Glad to help!
@marcellobassiato5333
@marcellobassiato5333 4 ай бұрын
Thank you James. Really useful video, as usual. I'm the only one experiencing really poor reading performances with 1D barcodes and zxing package?
@user-bu9uj3yq1i
@user-bu9uj3yq1i 8 ай бұрын
Good work, and about bluetooth scanning and comunication
@charliebrownsabstractmind
@charliebrownsabstractmind 8 ай бұрын
Great video James. Can you do a video of sending data/images to a wireless printer?
@rushas
@rushas 8 ай бұрын
Lovely! I assume that binding the barcode value to MVVM property is pretty straight forward
@JamesMontemagno
@JamesMontemagno 8 ай бұрын
Any of the properties you could on the options of course and then probably an event to command if needed for when something is scanned.
@habiuskorpus9329
@habiuskorpus9329 5 ай бұрын
Did you ever manage to implement this? I'm struggling migrating the code behind to MVVM
@AkshayKumarSharma-d9n
@AkshayKumarSharma-d9n Ай бұрын
Hi James, not able to detect qr code on some specific devices. Could you please suggest any work around or any solution. The camera view just scans the qr code but not proceeds further.
@dennyfiguerres447
@dennyfiguerres447 3 ай бұрын
this *almost* works on Android but has bugs and needs work. the github has not been updated in months. i can scan one code but if i close the page and then return it is broken. folks are trying to help fix it but the repo owner seems to not be checking it out or updating it.
@velsenger
@velsenger 5 ай бұрын
Thanks for the video James, it's a great content. I have a question, Is it possible to use 2 Formats with the same scanner? For example I'd like to use a scanner and I want to read QRCodes and Code39. Is it Possible?
@cesarcarvajal9483
@cesarcarvajal9483 5 ай бұрын
I have problems if the device has more than 1 rear camera
@annraoi
@annraoi 5 ай бұрын
I am experiencing an issue with my iPhone 15 Pro. Although the camera loads, it fails to detect anything. However, when I tested it on an iPad mini, it worked perfectly fine. The breakpoints do not get triggered when on the BarcodeReader_OnBarcodesDetected, indicating that it has not been detected when running on the iPhone.
@flrcml69
@flrcml69 Ай бұрын
Hi James. How to implement this control to combine with Entry control and activate it only when focus is on Entry? For Example Entry product code with barcode ean 13 and request result is the description of product on a label the my app? Thanks
@christianwyss8789
@christianwyss8789 8 ай бұрын
Danke!
@gerardmark9971
@gerardmark9971 7 ай бұрын
Thanks as always, James. Would you know of a way I can detect a Barcode/QRCode from a photo with .net Maui?
@user-mk9tv3by4n
@user-mk9tv3by4n 8 ай бұрын
very useful!thx
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
You're welcome!
@xxThemoritzxx
@xxThemoritzxx 8 ай бұрын
nice video. what about the MLKit from Google doing this? and complete OCR Scanning? e.g. scanning text from images. greetings
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
Something like: github.com/afriscic/BarcodeScanning.Native.Maui would work too
@xxThemoritzxx
@xxThemoritzxx 7 ай бұрын
@@JamesMontemagno thanks for the answer. Does the textrecognition function from the MLKit work too?
@jaredmatarodriguez8716
@jaredmatarodriguez8716 7 ай бұрын
I developed a Maui application and used it as Window Machine. My app uses scanned barcode input from a zebra scanner, but, in order to get enter or return command working I had to configure the scanner with a second of delay, otherwise it will get null as the entry value. As far as I know, there is no other solution to this. My question is, if I use my app in a mobile device using the camera as a reader, Will it trigger properly the return command?
@DanRasmussen72
@DanRasmussen72 8 ай бұрын
Great video! (Again) A video on how to fix the iOS keyboard hiding entry controls in Maui would be nice
@JamesMontemagno
@JamesMontemagno 8 ай бұрын
I know there were lots of fixes in .NET 8… anything specific?
@DanRasmussen72
@DanRasmussen72 8 ай бұрын
@@JamesMontemagnoYa, hang on... I'm still on 7, I'll have a go at 8 after new years
@jaimestuardo4655
@jaimestuardo4655 6 ай бұрын
Hello..... that control is only for .NET 7 as I saw, right? So I used finally CameraView control which uses ZXing internally. By I have performance issues. It is slow to detect barcodes. Is there a way to increase performance? For example, by ziooming in the camera. Regards Jaime
@neiwarecruz3519
@neiwarecruz3519 8 ай бұрын
Thanks!! Great Content
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
You're welcome!
@TheMFMLive
@TheMFMLive 3 ай бұрын
Hi, I would like to know can I access finger print authentication in Maui application for android and ios
@lemonlearner7315
@lemonlearner7315 3 ай бұрын
guys, could you use this library using mvvm? can you share your implementation?
@robertkadar2060
@robertkadar2060 3 ай бұрын
I am fairly new in this field, so I apologise in advance for the question. When you run the emulation test, what kind of setting do you use for the camera? Did you link the camera from your physical device to the emulated one in the android device manager?
@JamesMontemagno
@JamesMontemagno 3 ай бұрын
Physical device has to be used
@christianzaragoza7575
@christianzaragoza7575 3 ай бұрын
@@JamesMontemagno Gracias por todos tus aportes, lo estaba utilizando en .net7 y funcionaba genial, en .net8 no reconoce los QR (probé en varios dispositivos físicos), habra alguna solucion para esto? Muchas gracias.
@rahulsalokhe200
@rahulsalokhe200 8 ай бұрын
❤ do you know any plugin for infrared sensor? to use in just like tv remote app
@user-mk9tv3by4n
@user-mk9tv3by4n 8 ай бұрын
What is your outlook on the future of .NET MAUI? Will the .NET MAUI project be abandoned by Microsoft?
@rustykoenig3566
@rustykoenig3566 7 ай бұрын
YES! It WILL be abandoned by Microsoft in the future... just like everything else in the past. But wait... that goes for pretty much ANYTHING... When everyone rode horses as their universal transportation solution... somebody built the automobile and for a time everyone riding horses laughed at the rare auto going down the dirt roads as they easily got stuck in the mud... slow, clucky and even sometimes when they got on their horse and started to ride off, the one in the auto had to get out and fiddle with the thing to even get it STARTED and READY to "ride off". But as time went on, more and more autos filled the rugged streets and roads and advancements in them started to happen and more of them showed up and now they start passing the people riding the outdated horses but people still clung to the horse. And then a time came when those on horseback just got in the way of the auto driving people and the autos were passing the hroses on the road and laughing at the slow, clunky, mind of their transportation that just got in the way. Now apply this story to .NET MAUI and the company that manufactures it :)
@mauraocpt9586
@mauraocpt9586 6 ай бұрын
Thanks James, useful
@FahadKhan-fq4zw
@FahadKhan-fq4zw 6 ай бұрын
Could you please let me know which copilot you are using. Thanks a lot.
@JamesMontemagno
@JamesMontemagno 6 ай бұрын
GitHub Copilot
@sreshtanallareddy8169
@sreshtanallareddy8169 5 ай бұрын
Thanks for the example, Can i know this will work for iOS devices. As I tried it didn't work for me
@JamesMontemagno
@JamesMontemagno 5 ай бұрын
absolutely!
@muhammedyasir345
@muhammedyasir345 5 ай бұрын
how to multiple format
@Quebster
@Quebster 8 ай бұрын
Have you actually tried it on any iPhone with 3+ lenses? It doesn’t focus up close and makes it very difficult to scan barcodes.
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
I haven't, but would be worth openign an issue on github or loking at github.com/afriscic/BarcodeScanning.Native.Maui perhaps too
@backyardbirder4941
@backyardbirder4941 5 ай бұрын
I was trying to get Zxing to work with .net 8 but could not. It looks like you were able to install with a .net 8 project. Can you explain how? Thanks...
@JamesMontemagno
@JamesMontemagno 5 ай бұрын
Take a look at the project and make sure you have the correct nuget package
@NiteshKumar-km3to
@NiteshKumar-km3to 7 ай бұрын
Thanks james but the thing is the barcode scanner is not working for android 13 devices please guide me how to resolve this
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
My app I showed in the video was running on Android 13... seems to work for me.
@DJone4one
@DJone4one 5 ай бұрын
I also had a mistake. AMM001 or something, an SDK version that was incompatible with some other version. In the Android manifest file, after the camera (Required permissions) has been activated, the minimu and target android version must be set. At minimum I have android 11 for target I have 13. The build process was successful. And then the app is also started in the emulator.
@tinylittleanj2
@tinylittleanj2 8 ай бұрын
Can you test this with the emulator or do you need an actual android phone to get the camera? Or does the windows emulator activate the computer webcam?
@mmillennial
@mmillennial 7 ай бұрын
You can use the Android emulator to simulate a camera in a little 3D world, and you can put custom images on the walls.
@tinylittleanj2
@tinylittleanj2 7 ай бұрын
@@mmillennial thanks. I'll check it out
@YarnellCrew
@YarnellCrew 8 ай бұрын
Can you add more then one format of barcode at a time, or can you only pick one?
@JamesMontemagno
@JamesMontemagno 7 ай бұрын
You can pick multiple. There is even an All option
@cesarcarvajal9483
@cesarcarvajal9483 5 ай бұрын
@@JamesMontemagno What would be the option for all?
@matthewbartholomew8624
@matthewbartholomew8624 5 ай бұрын
@@JamesMontemagno Is there an option for customization though? From what I can see, there are preset enums for All, 1-dimensional, and 2-dimensional, but what if we want to use a custom subset?
@jasonbond8730
@jasonbond8730 22 күн бұрын
My head hurt trying to control the size of the scanner.
@mikenazers96
@mikenazers96 8 ай бұрын
Does not support WinUI. :(
@zoiobnu
@zoiobnu 8 ай бұрын
You don't show anything about barcode, but instead just for QrCode.
@JamesMontemagno
@JamesMontemagno 8 ай бұрын
Same code, as I showed it is just the type of barcode you are scanning for
Starting .NET MAUI Development in 2024 - What You Need To Know
35:18
James Montemagno
Рет қаралды 63 М.
Dependency Injection with .NET MAUI Explained! Full Beginner's Guide
19:18
Harley Quinn lost the Joker forever!!!#Harley Quinn #joker
00:19
Harley Quinn with the Joker
Рет қаралды 27 МЛН
Logo Matching Challenge with Alfredo Larin Family! 👍
00:36
BigSchool
Рет қаралды 15 МЛН
Дай лучше сестре 🤗 #aminkavitaminka #aminokka #сестра
00:15
Аминка Витаминка
Рет қаралды 532 М.
Barcode Scanning with Google Vision and ML Kit in .NET MAUI
16:12
Gerald Versluis
Рет қаралды 14 М.
Material Design & Free Controls for .NET MAUI with UraniumUI
16:30
Gerald Versluis
Рет қаралды 16 М.
.NET MAUI Signature Pad Complete Guide
15:06
James Montemagno
Рет қаралды 6 М.
Barcode Scanner in .NET MAUI with ZXing.Net.Maui
15:23
Gerald Versluis
Рет қаралды 35 М.