How to get the filters in VNDocumentCameraViewController without open a camara?

There are 4 filters in VNDocumentCameraViewController, "Color", "Grayscal", "Black & White", "Photo". Is there a way to apply the filters on UIImages directly without open a camara?

Hello,

I recommend that you take a look at the available Color Effect Filters in CoreImage. I can't guarantee that they are identical to the filters used in VNDocumentCameraViewController, but I do believe you can get something pretty similar.

For black and white, I'd suggest photoEffectMonoFilter.

For grayscale, photoEffectNoirFilter

How to get the filters in VNDocumentCameraViewController without open a camara?
 
 
Q