You are doing a great job brother, videos are detailed and full of information. Looking forward for some more new stuff that can be implemented, like Home made HUD.
@reho5081
2 жыл бұрын
Thank you, it's a great content 💯. True it was a challenge to follow with advanced topics e.g Threading but you delivered with very well.
@davdev793
Жыл бұрын
Really nice stuff, friend. Thanks!
@jan-lucakirchler9245
7 ай бұрын
Hey, great video, it works perfectly fine for me. Do you know a method to get the position of the qrcode with ZXing in order to place an object on or next to the QRcode that was recently scanned? Thanks in advance!
@firedragongamestudio
7 ай бұрын
Hi, well that's not possible out of the box. One thing you can do is to approximate the QR code world position and place an object there. The decode result object contains the positions of 3 corners of the QR code. When knowing how big the QR code is in real life and comparing it to the scanned one, you can check how far it "may" be away and place an object relative to the camera. Using image tracking would definitely save you the trouble to do that ;)
@jan-lucakirchler9245
7 ай бұрын
Allright, thanks! :) @@firedragongamestudio
@topefestus2193
Жыл бұрын
This is an amazing watch and truly helpful. Let's say I want to visualize the result of barcode reading on a plane with a text. How do you suggest I go about it?
@firedragongamestudio
Жыл бұрын
It's generally not possible to place smth in 3D with a 2D barcode (would Work with QR code), as the reader can't estimate size and distance. BUT when using UI elements in ScreenSpace you can use the ResultPoint x and y for placing your result as overlay :)
@topefestus2193
Жыл бұрын
@@firedragongamestudio Thank you for responding. I actually meant QR Code in my initial comment. 🤦♂ Would appreciate some little tips
@firedragongamestudio
Жыл бұрын
@@topefestus2193 basically the same as my answer before, but using x,y and z from ResultPoint :)
@kje081697
Жыл бұрын
Thank you so much for this helpful tutorial, great job. Follow up question, if I wanted to make a restart button is there any reason that the qr scanner would no longer recognize my qr codes?
@firedragongamestudio
Жыл бұрын
Hi, yes that may happen! You'll have to restart the QRCode reader as well.
@diegogb1999
6 ай бұрын
Whats the difference between the first method of UWP sample and the second one?
@firedragongamestudio
6 ай бұрын
You mean the ZXing WebcamTexture reading and the Microsoft sample? Mainly the way the QR code is recognised. While the ZXing framework relies on camera textures which is not performant at all, the Microsoft integration uses the IR and depth data, to define the QR code and its orientation, which is way better from a performance perspective.
@diegogb1999
6 ай бұрын
@@firedragongamestudio no, I mean the OpenXR script and the one for MRTK. Why would I use the MRTK one if it has more complexity (its like 5 scripts in the folder) and you cant read barcodes while the other one is only a simple script, can read both and both of them can be used on HoloLens
@firedragongamestudio
6 ай бұрын
@@diegogb1999 Ah ok sry, misunderstood your question. There shouldn't be any significant difference tbh. I think it depends, if you want to use QR code reading in an already existing MRTK project, it's easier to use already existing dependencies, without bringing in new ones. Same goes for OpenXR. ^^
@diegogb1999
6 ай бұрын
@@firedragongamestudio In the MRTK script (The one with a lot of scripts) I get this error: Exception: QR Code Empty Microsoft.MixedReality.SampleQRCodes.QRCode.Start () (at Assets/Scripts/final/QRCode.cs:33) and I assigned the QrCode prefab to the gameObject with the script.
@firedragongamestudio
6 ай бұрын
@@diegogb1999 Uhh... good question. I don't have a HL2 here for testing, but it seems that the reference is not working Oo
@miguelalonsofelipe8283
Жыл бұрын
Are you thinking about making a TCP stream server on Hololens with Unity? I have some ideas but I can't figure it out. I can share all of them with you (and also the code) and probably you know how to solve it! Great video and thanks for sharing!
@firedragongamestudio
Жыл бұрын
Hi, first of all thx and I'm currently not thinking about a project like that.
@miguelalonsofelipe8283
Жыл бұрын
@@firedragongamestudio No problem! Keep going with content like that! Thanks a lot
@firedragongamestudio
Жыл бұрын
@@miguelalonsofelipe8283 I don't know if you already solved your problem, but maybe this Unity package will help :) docs.unity3d.com/Packages/com.unity.renderstreaming@3.1/manual/tutorial.html
@yasmeenkhalil8318
Жыл бұрын
hello i have a question in the new version 23.1.1 in nity [SerializeField] private ARSessionOrigin sessionOrigin; givs me an error --->Severity Warning CS0618 'ARSessionOrigin' is obsolete: 'ARSessionOrigin has been deprecated. Use XROrigin instead.' Assembly-CSharp so i tried to use this in stid [SerializeField] private XROrigin xrOrigin; but the camera didn't work
@firedragongamestudio
Жыл бұрын
good point. i'll update the project within the next few days to 2022.3 and xrorigin
@whitetiana3022
Жыл бұрын
you leave out a few steps that you really should have covered for completeness sake. like adding the zxing DLL and the ARfoundation plugin and completely ignore the ARcameramanager.
@firedragongamestudio
Жыл бұрын
Good point, I should've gone into a more detailed explanation, how to setup from scratch. For future reference, ZXing setup is basically there (adding ZXing dll: 01:55 - 02:55) and adding ARFoundation can be found here: docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/manual/project-setup/project-setup.html
@99951rana
Жыл бұрын
thank you for the nice explanation. I am trying to implement it. However through my hololens 2 device I am seeing the new text but no camera is coming for the scan. please help
@firedragongamestudio
Жыл бұрын
check if your camera is running (white LED in front of the hololens).
@ananya-yx3vu
5 ай бұрын
hey, i wanted to scan barcodes pasted on objects and upon scanning , superimpose its 3d model on the object. how do u suggest i go about it ?
@firedragongamestudio
5 ай бұрын
Use image markers or QRCodes instead. Barcodes do not provide a spatial orientation, so it's not suited for that use case.
@mohanedmohsen8263
Жыл бұрын
hi am trying to reach fastest performance using ZXing with unity android/ios, and am only trying to read QR codes, i read somewhere that ZXing "Decode" function will try to find out the format first so it will test the same texture multiple times, trying to find out the format you trying to read, and it will be faster to set the format on the start, how ever i didn't find and example how to do that using unity. can you please show me how to set the target format to be only QR codes to get better performance ? and give me any tips you might know how to achieve the best performance for my condition (simply read only QR codes from android/ios back camera) thank you very much for the tutorial
@firedragongamestudio
Жыл бұрын
Hi, that's a very good question. Usually the first step for optimization would be to reduce the actual scanning to a bare minimum (toggleable, as mentioned in the video). The next step is the configuration of the BarcodeReader (as shown at 3:40). The IBarcodeReader interface (github.com/micjahn/ZXing.Net/blob/master/Source/lib/IBarcodeReader.cs) provides you multiple options, called DecoderOptions (github.com/micjahn/ZXing.Net/blob/master/Source/lib/common/DecodingOptions.cs). Within those there is an Option called "PossibleFormats" (line 172) which can be used to tell ZXing which kind of code you expect. 😃
@mohanedmohsen8263
Жыл бұрын
@@firedragongamestudio turned out ZXing was slow for me because I stretched the camera output image across the whole screen and used that texture to decode using the camera output correctly without stretching it to cover the whole screen it became as fast as any QR app out there how ever using the parameters you told me about and converting the image to grayscale and running it in thread and all the quick improvements i can think didn't make much difference but definitely improved it thanks for the answer
@Userjustdied616
Жыл бұрын
Sir I made an app with Zxing in unity. But my camera quality is very low than my usual camera. Do you know sir to make the camea quality good
@firedragongamestudio
Жыл бұрын
Depending on what target platform you wanna use, you can modify the camera properties. e.g WebcamTexture requestedWidth or requestedHeight - docs.unity3d.com/ScriptReference/WebCamTexture.html
@EkaitzGarcíaDurán
11 ай бұрын
Hi! Thanks for the example but using it in a proyect, I've the problem that everytime I start the hololens 2 application, the previously readed qr boxes are floating and what the lastly readed one contains is charged in the text. Do you know how to clean that info once closen the app or when opening it? In other words, do you know where that values are charged? I've been searching for it and I can't find it Thanks
@EkaitzGarcíaDurán
11 ай бұрын
I'm using the MrQrReaderSample in that proyect
@firedragongamestudio
11 ай бұрын
Hi, I don't have a HL2 atm, so I can just guess. But closing the app completely (meaning to close the floating application window on HL2 too) should usually reset all previously scanned QR code cubes. If that doesn't work, you can simply add a Destroy script to the prefab to either destroy them on app closure or after a countdown.
@EkaitzGarcíaDurán
11 ай бұрын
@@firedragongamestudio The thing is that the destroy in the QRCodesVisualizer doesn't work and the qrCodesObjebctsList doesn't clean itself and I don't know why
@EkaitzGarcíaDurán
11 ай бұрын
@@firedragongamestudio As I've seen, you have the same problem as me. Have you tried putting a second and third QR code? If you do it, the QRCode prefabas does not eliminate and there will be more and more prefabs floating and won't eliminate because the QRCodeWatcher_Removed doesn't detect the removed QR and won't eliminate anything. Could you help me with that please? Thanks
@Shika906
2 жыл бұрын
Thank you very much for this. I have attempted this in several different ways and each time I can only get it to work with QR codes (Android). All other formats do not work. Any idea why?
@Shika906
2 жыл бұрын
Solved my issue. If anyone has a similar problem try switching from portrait to landscape. Not sure why this is causing problems but it fixed it!!
@firedragongamestudio
2 жыл бұрын
Thank you for posting the fix for your issue :)
@gdd8305
Жыл бұрын
do you maybe know how to use it also in portait mode??
@Shika906
Жыл бұрын
@GD D It has been a little bit since I've touched my project but if I recall, there are rotation/angle variables. I'm guessing you can set them to 90 degrees.
@whitetiana3022
Жыл бұрын
my phone (android 10) isn't supported by AR foundation anymore (or rather google AR which is required doesn't support android 10) is there a way to implement this on android without using AR foundation?
@firedragongamestudio
Жыл бұрын
Yes, simply by using the Standalone samples on your phone, because WebcamDevice and WebcamTexture are supported on mobile platforms. You may have to change the code a little bit, to get the rear/front camera (e.g. docs.unity3d.com/ScriptReference/WebCamDevice-isFrontFacing.html ), but that should work in general.
@whitetiana3022
Жыл бұрын
@@firedragongamestudio Sorry... that page seems to be missing! The page you are looking for might have been renamed, moved, or deleted.
@firedragongamestudio
Жыл бұрын
@@whitetiana3022 Hi, sry my bad, copy paste error ^^ The link should be working now :)
@drippyhotdog852
Жыл бұрын
When i try and run the StandaloneSample with the StandaloneEasyReaderSample enabled i see a black screen instead of my webcam output. Is there a reason for this?
@firedragongamestudio
Жыл бұрын
Hi, just tried it again in Unity 2021.3.13f1 and it's working. Are you sure your webcam is working? There is no webcam selector in the old version, so if you have multiple cameras (even virtual cameras like when using OBS) it may be possible that the wrong one is selected. Pls check out the latest version of the Github repo, I just added device logging and a index selector to the StandaloneEasyReaderSample. Feel free to check the Unity docs for further info about WebCamTextures -> docs.unity3d.com/ScriptReference/WebCamTexture-devices.html
@drippyhotdog852
Жыл бұрын
@@firedragongamestudio Thank you so much! You diagnosed my problem right down to the OBS! One more question, how do I obtain the QR information (like the size of the QR code, its contents, its world coordinates in unity) to use in a script using Hololens? For example, if I wanted to make a sphere 2 units away from the location of the QR code, would that be possible?
@firedragongamestudio
Жыл бұрын
@@drippyhotdog852 For working with QR codes on Hololens2 pls use the Microsoft Mixed Reality QRCode sample - github.com/microsoft/MixedReality-QRCode-Sample Everything you want is available there 😃
@did3d523
3 ай бұрын
too complex I need simple open came ios WEBGL and use xzing to rear qrcode exemple
Пікірлер: 62