340 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
119
views
How to solve issue with Vision framework in Swift showing too much background
I am working on a feature for a Photo Booth app in Swift to do background replacement using the Vision framework and AVFoundation. However, I am having an issue where the original background is ...
0
votes
0
answers
39
views
How to improve the concurrency capability of Vision library?
In IOS, when using the Vision library to extract feature vectors from images (using VNImageRequestHandler), it is not possible to process them in parallel on a large scale. A maximum of 2-3 can be ...
0
votes
1
answer
177
views
Vision face landmarks (DetectFaceLandmarksRequest) shifted on iOS 26 but correct on iOS 18 with same code and image
I'm using Vision framework (DetectFaceLandmarksRequest) with the same code and the same test image to detect face landmarks. On iOS 18 everything works as expected: detected face landmarks align with ...
2
votes
0
answers
138
views
How to compare two body poses detected with Vision’s VNDetectHumanBodyPoseRequest in Swift? [closed]
I’m working on an iOS app where I want to check if two poses are the same (e.g., matching a live yoga pose to a preset reference pose).
I use VNDetectHumanBodyPoseRequest to extract joint keypoints, ...
0
votes
0
answers
60
views
How to detect handwritten text from a PKCanvasView?
I am creating an iPad app where the user can write something using an Apple Pencil. PKCanvasView returns an image of that handwritten text. Please find that image as below:
I want to convert that ...
2
votes
1
answer
448
views
Text recognition with VNRecognizeTextRequest not working
Trying to implement text recognition using Vision Kit in my app but can't get text recognized. The input is using Apple Pencil or finger drawing on a PKCanvasView. Here's my code extracted into a ...
0
votes
0
answers
88
views
Assistance to obtain trajectories. VNDetectTrajectoriesRequest
I'm having a hard time obtaining the trajectory of an approaching ball. Ideally I would love to hear from someone who knows much more then I do about VNDetectTrajectoriesRequest. Feel free to email ...
0
votes
0
answers
51
views
Image Tracking in Unity PolySpatial not starting when deploying to device
I am developing an app using Image Tracking in Unity PolySpatial.
I'm using Unity 6000033f1 on Apple Silicon, XCode 16.2, and PolySpatial visionOS 2.1.2.
Image Tracking works in Unity's Play To ...
0
votes
1
answer
166
views
Extracting the Outline Path from an Image with a Transparent Background, Swift | SwiftUI
I'm using the Vision framework to obtain a masked image and an image with a transparent background. I want to extract the outline path of the image using contour detection.
Here’s the function I'm ...
0
votes
0
answers
133
views
How to render side-by-side stereo video?
I want to render a 3d/stereoscopic video in an Apple Vision Pro window using RealityKit/RealityView. The video is a left-right stereo. The straight forward approach would be to spawn a quad, and give ...
0
votes
1
answer
112
views
Vision Framework Causes EXC_BREAKPOINT Error in Xcode App Playground (.swiftpm) File
I’m trying to use the Vision framework in a Swift Playground to perform face detection on an image. The following code works perfectly when I run it in a regular Xcode project, but in an App ...
1
vote
0
answers
253
views
Crash inside of Vision framework during VNImageRequestHandler use
I've been dealing with a puzzling issue for some time now, and I’m hoping someone here might have insights or suggestions.
The Problem: We’re observing an occasional crash in our app that seems to ...
1
vote
0
answers
99
views
Swift Vision to detect box dimensions
I want to allow uses to measure box dimensions within an app.
On my iPhone camera I noticed I could measure an object by moving the camera along the object. How can I present a camera in SwiftUI that ...
1
vote
0
answers
108
views
Extracting face outline from a facial bounding box with the iOS vision framework
I'm trying to crop a full face outline (i.e face contour points + eye brow points only) from facial landmarks obtained from VNDetectFaceLandmarksRequest. I'm facing a problem translating normalized ...
0
votes
0
answers
86
views
Memory leak using pyobjc and Apple Vision VNRecognizeTextRequest
I'm using the Apple Vision library on a Mac to extract text from png images (about 10,000 images) using multiple processes with multiprocessing library in Python. But I found that the memory keeps ...