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

faceCaptureStateDidChange not calling with state == cameraStopped #20

Open
CallumAbele-LKWD opened this issue Aug 7, 2023 · 0 comments

Comments

@CallumAbele-LKWD
Copy link

CallumAbele-LKWD commented Aug 7, 2023

I have an issue with the Sample project, when I call

faceCaptureViewController.stopCamera()' the FaceCaptureViewDelegatefunctionfaceCaptureStateDidChangeis not called with the correctFaceCaptureState`

It is called with the .cameraReady state and not .cameraStopped To workaround this I have had to introduce my own flag to keep track of when I call the camera stop function but this is not an ideal solution.

I have added logging to the start and stop camera functions and logged the enum passed to faceCaptureStateDidChange

//Initialising ViewController

CameraViewController::startCamera CameraViewController::faceCaptureStateDidChange To Value %d 0 CameraViewController::startFaceAnalysis CameraViewController::faceCaptureStateDidChange To Value %d 2

//Calling Stop

CameraViewController::stopCamera CameraViewController::faceCaptureStateDidChange To Value %d 0

As you can see after calling stop camera the enum is set to 0 .cameraReady and not 1 .cameraStopped

Could this be investigated as soon as possible please

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