let handler = VNImageRequestHandler(ciImage: ciImage, orientation: .up)
let objOfAVVisionRectangleRequest = AVVisionRectangleRequest(avInputImage: ciImage, currentProcessCompletion: completion)
try handler.perform([self.objOfAVVisionRectangleRequest])
After perform request it will return error VNDetectorOption_OriginatingRequestSpecifier required option was not found" UserInfo={NSLocalizedDescription=The VNDetectorOption_OriginatingRequestSpecifier
Not getting let observations = request.results as? [VNRectangleObservation] result for rectangleObservation. Only in iOS15.