Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Converting AVMetadataObject to AVMetadataMachineReadableCodeObject

$
0
0

I'm currently writing an app that can scan various types of barcodes. I've got my inputs and output set up and it's calling the DidOutputMetadataObjects on my delegate. When I ToString the AVMetadatObject that comes back, I get:

type "org.gs1.EAN-13", bounds { 0.5,0.2 0.0x0.7 }, corners { 0.5,1.0 0.5,1.0 0.5,0.2 0.5,0.2 }, time 1043428851375166, stringValue "0123456789104"

which is exactly what I would expect. However, I cannot cast the AVMetadataObject to AVMetadataMachineReadableCodeObject as the former is the parent of the later. I need to get an AVMetadataMachineReadableCodeObject so that I can get access to the stringValue property. Any suggestions? What is the appropriate way to obtain this information?

Thanks in advance.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>