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

how to detect in real time #3

Open
Serenagirl opened this issue Mar 1, 2019 · 3 comments
Open

how to detect in real time #3

Serenagirl opened this issue Mar 1, 2019 · 3 comments

Comments

@Serenagirl
Copy link

Serenagirl commented Mar 1, 2019

this can detect images ,but if it can detect videos in real time?And can you give me some advice?

@shaqian
Copy link
Owner

shaqian commented Mar 2, 2019

A problem with react-native is streaming large data between JS and native module will lock up the bridge. That's why the react-native-camera module does not support streaming at the moment. You can refer to the discussion here: react-native-camera/react-native-camera#135

One workaround I can think of is to combine react-native-camera and this library in one native module and directly feed image from camera to tflite using native code.

Thanks,
Qian

@mdcroce
Copy link

mdcroce commented Mar 10, 2019

@ShaharyarMaroof
Copy link

ShaharyarMaroof commented Sep 25, 2019

@mdcroce I used this library, but I am unable to get the image detection work with any other model other than the one provided in the article. I tried the starter PoseNet model provided on Tensorflow (link) and set the Output.json with the following array:
["nose",
"leftEye",
"rightEye",
"leftEar",
"rightEar",
"leftShoulder",
"rightShoulder",
"leftElbow",
"rightElbow",
"leftWrist",
"rightWrist",
"leftHip",
"rightHip",
"leftKnee",
"rightKnee",
"leftAnkle",
"rightAnkle"].

Any help in the matter will be appreciated. Thanks!

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

4 participants