Post

Replies

Boosts

Views

Activity

How to convert VNRectangleObservation item to UIImage in SwiftUI
I was able to identify squares from a images using VNDetectRectanglesRequest. Now I want those rectangles to store as separate images (UIImage or cgImage). Below is what I tried. let rectanglesDetection = VNDetectRectanglesRequest { request, error in rectangles = request.results as! [VNRectangleObservation] rectangles.sort{$0.boundingBox.origin.y > $1.boundingBox.origin.y} for rectangle in rectangles { let rect = rectangle.boundingBox let imageRef = cgImage.cropping(to: rect) let image = UIImage(cgImage: imageRef!, scale: image!.scale, orientation: image!.imageOrientation) checkBoxImages.append(image) } Can anybody point out what's wrong or what should be the best approach?
1
0
851
Jan ’23
App Store Connect Operation Error
I am getting following error every time I'm validating my bundle. App Store Connect Operation Error. The bundle uses a bundle name or display name that is already taken. No matter I changed the Display Name or the Bundle Identifier, it always gives this error when I try to validate the archive from Organizer. Is there any limitation, for a personal developer to submit apps or creating Bundle IDs in developer portal? As an example, my most Bundle IDs created using following format. com.mypersonaldomain.applicationname That means most of my bundle IDs having "com.mypersonaldomain" part is common. Also, since this issue, now I have unwanted Bundle IDs in my developer portal which I cannot removed. Is there any way to get removed those as well?
1
0
945
Aug ’21