Skip to content

Fix: detection layer to be added in the main thread#9

Merged
daved01 merged 1 commit intodaved01:mainfrom
kadu-v:fix/boundingbox
Mar 3, 2024
Merged

Fix: detection layer to be added in the main thread#9
daved01 merged 1 commit intodaved01:mainfrom
kadu-v:fix/boundingbox

Conversation

@kadu-v
Copy link
Copy Markdown
Contributor

@kadu-v kadu-v commented Nov 19, 2023

Current application have the issue that bounding boxes are not displayed somoothly when the application is lounched.

Reason:
The reason of this issue is that the detection layer is added at other threads insted main thread.

How to fix:
addSublayer function is called at main thread using DispatchQueue.main.async.

@daved01 daved01 merged commit 2a12140 into daved01:main Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants