regulaforensics / DocumentReader-iOS

iOS Framework for reading and validation of identification documents
56 stars 15 forks source link

DocumentReaderGraphicResult doesn't return an image for a .gf_Portrait path. #32

Closed bugrym closed 4 years ago

bugrym commented 4 years ago

Test your demo project and my own with ur SDK and didn't get a portrait image, at the same time it works well in ur app from App Store. Every time I get a nil value. Try to get the portrait image in that way: if let portraitImage = result.getGraphicFieldImageByType(fieldType: .gf_Portrait) { self.portraitImage = portraitImage }

the same try with a document image and everything is fine: if let documentImage = result.getGraphicFieldImageByType(fieldType: .gf_DocumentImage) { self.portraitImage = documentImage }

How can I handle this issue? best regards

vyakimchik commented 4 years ago

Hello. What scenario do you use? Please remember that it can't be received in scenarios like Mrz, Locate and so on.

bugrym commented 4 years ago

Thank a lot! It was the key point, cuz I had a "Mrz" scenario while I needed a "FullProcess" instead.