Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't display boxes on IOS Safari #6

Open
Busterfake opened this issue Dec 13, 2023 · 3 comments
Open

Can't display boxes on IOS Safari #6

Busterfake opened this issue Dec 13, 2023 · 3 comments

Comments

@Busterfake
Copy link

Hello, I've been trying to make this webapp work on mobile devices. It works pretty fine with Android devices (on some devices the live detection is a bit slow) but on Iphones it doesn't work at all. I found out that the live recognition is actually working but behind the camera flow. The camera is in foreground and the boxes in the background which causes the boxes to be invisible.

IMG_1443
IMG_1442

Is there any fix for that ?

Thank you !

@Hyuto
Copy link
Owner

Hyuto commented Dec 14, 2023

Hello,

I think live detection performance depend to the device component (CPU/GPU). You may experience slow detection on low end android devices, but on high end it's pretty fast.

I don't work on Iphones so haven't face this issue before. Can you specify more detail on device you use and what browser you use, and maybe the log of the browser so we can get more information of this issue.

@Busterfake
Copy link
Author

Hello,

Yes that's what i supposed also, even if I find it still kinda slow on some high end devices like the One Plus Nord 2 5G. I compared the performances between the webapp and a built app mobile on the same model (yolov5n) and it's much faster on the app. Maybe it's because the use of the GPU is not the same for an app and for the browser web.

The bug occurs on all Iphones devices (at least all the ones i tried: Iphone 14 pro and Iphone 15 pro with latetest IOS). It seems to happen on all the browsers too. I tried with the basic Safari browser and with Brave browser. The most likely issue is that the camera comes as a pop up in front of the boxes and the boxes are set in the background, making them invisible behind the camera.

@Hyuto
Copy link
Owner

Hyuto commented Dec 15, 2023

Well you can't compare the web and app version, even using the same model will not close the gap of performance. App version is low level so performance is peak and optimal, while web version is using browser engine to load and processing the model so performance is not optimal and slow. Well that's the cons if you bring ML model right to the edge of browser, but the pros is easy to develop, you can use JS with your favorite UI web framework and not stuck with (Java or Swift), and it's cross platform. Well that sound odds because we discussing issue on IOS but not happening in Android.

I don't use Iphone nor have ones (can't afford it XD) so I can't trace the issue right away.

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

No branches or pull requests

2 participants