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

Video gets laggy on Safari for iOS #165

Open
romrz opened this issue Dec 14, 2018 · 1 comment
Open

Video gets laggy on Safari for iOS #165

romrz opened this issue Dec 14, 2018 · 1 comment

Comments

@romrz
Copy link

romrz commented Dec 14, 2018

The face tracking is choppy when recognizing the face and the camera stream freezes for a second and then gets very laggy for another second or two.

I'm getting some errors in my console when this happens:

(I got like 48 of this one each time the issue happens)

[Error] TypeError: The provided value is non-finite
	getImageData (clmtrackr.js:14703)
	track (clmtrackr.js:14703)
	(anonymous function) (clmtrackr.js:14592)
	(anonymous function)
[Error] TypeError: undefined is not an object (evaluating 'Aj[j]')
	inv (clmtrackr.js:823)
	track (clmtrackr.js:14807)
	(anonymous function) (clmtrackr.js:14592)
	(anonymous function)

I tried the example: https://www.auduno.com/clmtrackr/examples/clm_video.html in my iOS Safari browser and I get the same errors, but the camera stream doesn't freezes and the face recognition seems to work mostly fine.

The issue seems to happen when you move the camera somewhat fast or if you move out of the camera's field of view and the tracker does not recognizes the face.

I'm on an iPhone X with iOS 12.1 and Safari 12.1.
I'm using React and I thought this could be something related to this, but I have thoroughly tested it leaving just the minimum code in order for this to work and the issue is still there. And since this is also happening on the live example I don't think it's related to React

This issue seems related to this one: #163. However, I'm using the build from the latest commit on dev branch and my issue is still happening.

Any help will be much appreciated. Let me know if you need more information.

@romrz
Copy link
Author

romrz commented Dec 17, 2018

Apparently this issue (the video stream freezing for a bit) only happens in React because I've tested it with vanilla Javascript and the video is smooth.

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

1 participant