VisionKit enhancement: provide option to set default color mode for VNDocumentCameraViewController

Originator:jkirsakmens
Number:rdar://FB7734488 Date Originated:2020-06-12
Status:Open Resolved:
Product:VisionKit Product Version:
Classification:Suggestion Reproducible:
 
Please provide a descriptive title for your feedback:
VisionKit enhancement: provide option to set default color mode for VNDocumentCameraViewController

What type of feedback are you reporting?
Suggestion

Description
Please provide convenience initialized (or property on instance) to pre-select color mode for VNDocumentCameraScan instance so that on camera presentation preffered color mode is automatically selected according to use case - e.g. for scanning documents grayscale mode would be preselected and would also save disk space on user device.

Example (as convenience initializer):
VNDocumentCameraViewController  *documentScanController = [[VNDocumentCameraViewController alloc] initWithColorMode:VNDocumentCameraColorModeGrayscale];


Alternative (as instance property):
VNDocumentCameraViewController  *documentScanController = [[VNDocumentCameraViewController alloc] init];
documentScanController.colorMode = VNDocumentCameraColorModeGraycale;

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!