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

react-native/pose-detection example is not working #7952

Open
rutledmj opened this issue Sep 12, 2023 · 3 comments
Open

react-native/pose-detection example is not working #7952

rutledmj opened this issue Sep 12, 2023 · 3 comments

Comments

@rutledmj
Copy link

rutledmj commented Sep 12, 2023

I have been trying to get this example to work:

react-native/pose-detection

But the handleCamerStream here never fires:


<TensorCamera
          ref={cameraRef}
          style={styles.camera}
          autorender={AUTO_RENDER}
          type={cameraType}
          // tensor related props
          resizeWidth={getOutputTensorWidth()}
          resizeHeight={getOutputTensorHeight()}
          resizeDepth={3}
          rotation={getTextureRotationAngleInDegrees()}
          onReady={handleCameraStream}
        />
@gaikwadrahul8
Copy link
Contributor

gaikwadrahul8 commented Sep 14, 2023

Hi, @rutledmj

Thank you for bringing this issue to our attention and I tried to replicate the same issue from my end, and tfjs-examples/react-native/pose-detection tfjs-example yarn and yarn start commands are working as expected and it's showing the QR code to scan with the help of Expo Go application but it's throwing below error message for me

Uncaught Error:java.net.ConnectException: Failed to connect to /127.0.0.1:19500 so May I know are you also getting the same error message which I mentioned above or in your case it's working fine but it's showing output with low FPS ?

If you're getting different error message then please share error output to investigate this issue further. Thank you!

@rutledmj
Copy link
Author

Hi @gaikwadrahul8

When I scan the QR code the app launches and hangs. Expo Go says it's taking longer than expected and nothing else occurs.

When I try to run the code via Expo Snack, the app launches and the camera works but handleCameraStream is never invoked.

@gaikwadrahul8
Copy link
Contributor

gaikwadrahul8 commented Sep 19, 2023

Hi, @rutledmj

Thank you for your findings and observations which will help us to investigate this issue further and resolve soon, we will update you soon. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants