Post

Replies

Boosts

Views

Activity

Multiple instances of VNSequenceRequestHandler
Hi everyone! I'm implementing a multithreaded approach on text recognition through Vision's VNSequenceRequestHandler and VNRecognizeTextRequest. I've created multiple threads (let's use 3 for example) and created 3 instances of VNSequenceRequestHandler for each thread. My AVSession sends me sample buffers (60 per second) and I'm trying to handle them one by one in 3 different threads. These threads constantly trying to consume sample buffers from my temporary sample buffer queue (1 to 3 sample buffers are in queue, they got deleted after handling). Sample buffers are not shared between these threads - one sample buffer is only for one thread's VNSequenceRequestHandler. For each performRequests operation I create a new VNRecognizeTextRequest. By this I was trying to increase count of sample buffers handled per second. But what I found out is no matter how many threads I've created (1 or 3), the speed is always about 10 fps (iPhone 13 Pro). When I use 1 thread, only one instance of VNSequenceRequestHandler is created and used. In this case the [requestHandler performRequests:@[request] onCMSampleBuffer:sampleBuffer error:&error] takes about 100-150ms. When I use 3 threads, each instance of VNSequenceRequestHandler takes up to 600ms to handle the request with [requestHandler performRequests:@[request] onCMSampleBuffer:sampleBuffer error:&error]. When I have 2 threads, the average time is about 300-400ms. Does it mean that the VNSequenceRequestHandler inside of a Vision framework share some buffer's or request's queue so they're not able to work separately? Or maybe some single core of a GPU is used for detection? I saw in the debug session window that the VNSequenceRequestHandler creates separate concurrent dispatch queues for handling the requests (for 2 instances 2 queues created), which in my opinion should not block the resources that much causing requests execution time grow 2 times. Any ideas what causing the problem?
1
0
735
Jun ’23
Can I add App Clip to the App
Can I add App Clip to the App if its minimum supported version lower than iOS 14? Lets suppose I have an App that has minimum support version as iOS 13. If I make App Clip target that supports iOS 14, will I be able to upload it to the AppStore? And will it work in scenarios like if some user has iOS 14 and has the Main App installed and he tries to open the App Clip from the banner from some website?
0
0
441
Feb ’22
Account deletion within apps required
Hello! We noticed some changes in app development policies about account deletion. Its placed here: https://developer.apple.com/news/?id=mdkbobfo So, it says that we can INITIATE account deletion. But what confuses us is the title. It says "require". And keeping in mind that with ATT policy on Apple's guideline where it says that the ATT is needed for IDFA collection and personal data collection, we got rejected for collecting only basic users data (only events without binding em to constant user ids), we want to make it clear - can we JUST INITIATE the account deletion? Just send user to our Support Team where the user could just place the request for account deletion and remove it with our STeam. According to this publication: https://www.engadget.com/apple-app-store-ios-developers-delete-account-report-193119525.html, we can JUST INITIATE. But with ATT case we got wrong representation of the requirement. Also we want to know what is appropriate time for completing the deletion request: one week, two or a month? Thank you in advance for your answers, Apple Engineer! :) P.S. About ATT rejection: we had a call with Apple's engineer who explained us main points why they did it, so we had to turn the analytics fully off. The points were really good and user loyal.
6
0
5.1k
Oct ’21
App Clips Max Storage Size (AppGroupFolder) after install
Is there any restriction of size of the application group folder that I can use while interacting with App Clip? For example, I would want to make photos or download bunch of images through the App Clip and later I want to access all of them in the Main App. Will they be kept there when I install the App (assume I'll use App Clip frequently so it won't get deleted by the system after the month of not doing anything)?
2
0
775
Mar ’21