Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

How to get live frames from a camera preview?? #2506

Closed
shreyakamoji96 opened this issue Sep 25, 2019 · 13 comments
Closed

How to get live frames from a camera preview?? #2506

shreyakamoji96 opened this issue Sep 25, 2019 · 13 comments
Labels
stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@shreyakamoji96
Copy link

I tried implementing this in my project to recognize fruits from camera preview in real-time using TensorFlow. Instead of grabbing the frames and converting it to jpeg format or base64 string and passing it to javascript, I grabbed the frames via TextureView.getBitmap() from CameraView and feed it to TensorFlow for image recognition and passed the results to Javascript. It's fast and could process frames in real-time. If you're going to convert the byte[] data from onFramePreview to other formats, it may take a while to pass it to javascript.

How to capture live frames in javascript

@ShaharyarMaroof
Copy link

Hey @shreyakamoji96 , can you please let me know how you achieved this? Can you please share the code to pass frames from live preview to tensorflow? Thanks.

@sibelius
Copy link
Collaborator

Check this #2505

@shreyakamoji96
Copy link
Author

Hey @shreyakamoji96 , can you please let me know how you achieved this? Can you please share the code to pass frames from live preview to tensorflow? Thanks.

I have just implemented camera live preview, not grabbing the live frames. Actually even I wanted the live frames that was the question. If you get any solution please let me know too. Thanks

@awaishere
Copy link

@shreyakamoji96 can you please tell me how did you implemented this camera live preview :/ ?

@stale
Copy link

stale bot commented Jan 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

@stale stale bot added the stale There has been a lack of activity on this issue and it may be closed soon. label Jan 18, 2020
@stale
Copy link

stale bot commented Jan 25, 2020

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

@stale stale bot closed this as completed Jan 25, 2020
@rafaelcavalcante
Copy link

@shreyakamoji96 can you please tell me how did you implemented this camera live preview :/ ?

Have you found any solution, @awaishere? I've opened an issue ( #2984 ) but still no response.

@awaishere
Copy link

Nope, i haven't found it yet.

@rafaelcavalcante
Copy link

Nope, i haven't found it yet.

I'm using this fork and taking pictures in a specific interval, then i use the taken images.

@AdarshJais
Copy link

Nope, i haven't found it yet.

Still ?

@klayverxd
Copy link

Nope, i haven't found it yet.

Still?

@wallride
Copy link

Still. :(

@shahnupur1901
Copy link

Still?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

9 participants