Hello, I'm using the ARSessionDelegate function:
func session(_ session: ARSession, didUpdate frame: ARFrame)
to extract an HD Image
let hdframe = try? await session.captureHighResolutionFrame().capturedImage
which I am later on use to detect text on the image using VN. I'm using the HD picture, because the text bits I'm looking for can be very tiny.
let requestHandler = VNImageRequestHandler(cgImage: image)//, orientation: .up, options: [:])
let textRequest = VNRecognizeTextRequest()
let vnRequests = [textRequest]
try requestHandler.perform(vnRequests)
My issue is that, each time a captured HD image is extracted from the AR Scene, a shutter sound is played. I'm aware that shutter sounds are important for privacy, but I'm doing this in a very high frequency, which means that my app is currently unusable, when not muted.
My two questions are:
- Is there any way to disable the sound in this case?
- Is there a better way to constantly scan the AR video stream for text than this approach?