-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Hello! Love the work you've done, but I am having issues trying to send frames from my mobile app to my flask backend over websockets.💭 #2815
Comments
Don't see any native code on your repo. Is that the repo for your frame processor plugin? If that is then you are doing it wrong, very wrong. There's an issue on how to start creating your own frame processor plugin(opened by me, a few days ago), take a look at that and fix your approach. |
On a side note, the actual idea of frame processor plugin is that you can pass a frame to native side, process that frame with native (Java/KT/Swift) code and return results to js side, in almost real time. So if you know nothing about Java/KT/Android then you could find yourself stranded in the middle of no where with no way out. |
Yeah the plugin code is mine. Everytime i compile, i get the following error: `> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
|
I also viewed the issues you created, I'm sorry to say that they created more confusion than providing clarity. I tried messing with the build.gradle files etc, but no luck. |
Sorry there's a typo in that name. It's called |
I updated the documentation. |
Despite the changes, and following the docs exactly (both automatic and manual creation of plugins), the app crashes at compile time. Im coding in VsCode and using the command line android tools. The app compiles flawlessly if i dont create my own plugin. In the same repo under the "another one" commit are all the files that are being used to create a plugin. I think the issue is arising from incomplete dependencies as the error states, are you sure we dont need to mention them in the build.gradle files? |
Hey - it sounds like you're not very familiar with native development, might be good to get a good foundation of how things work in native Android and iOS first, or at least how the build toolchains work. I'd recommend you to develop in Android Studio and Xcode, not VSCode. Android Studio also would've told you that you were probably trying to use |
Fair enough, is there a way to do a workaround instead of doing native development? I would rather very much be able to do this in javascript only. I tried using worklets, but to no avail. Just a pointer in the right direction would help, so that I dont spend hours pulling my hair over issues beyond my skills. |
Yea currently there is no alternative because this really isn't straight forward - there would need to be a native plugin that can properly upload those Frames to a server. A raw Frame in 4k can be 15 MB, at 60 FPS that's 900 MB per second. So a native plugin that compresses the Frames, then choose a slower FPS and lower resolution, then upload natively - that should work. |
A very trivial approach is to do That's what native plugins are for; they're faster, more efficient, can do stuff like good compression, etc. |
Alright, thanks for your help man. I guess I'll have to go with an entire video instead of frame by frame processing. Might add some burden to the backend, but should work. |
Question
So as the title says, I am having issues with managing and sending the frames over a socket connection to a server that will process the frames in a flask backend. I tried going through the old issues, and found that one of the solutions is to make your own plugin. So thats just what i tried doing. Followed the documentation available. But now im getting gradle errors, like
"XyzFrameProcessorPlugin.kt:3:28 Unresolved reference: frameprocessor".
Apparently all of them are these types of errors, starting from MainApplication.kt to the new plugins. I used the automatic plugin builder CLI.
For now, I just want to make a plugin successfully. I don't really care what it does (even if it just returns "cat" as the one in the documentation does), as once it starts functioning, I can adjust its behavior to my own needs.
I could share the repo if that helps.
https://github.com/HADO564/LipReading_Frontend_ReactNative/
What I tried
I tried using the steps mentioned in documentation. I dont know much about Java or Kotlin, but still, using the example plugin in the docs that just returns "cat", it throws the error during compile time, when kotlin or java is being compiled (in other words, the plugin). Some urgent help would be great.
VisionCamera Version
4.01
Additional information
The text was updated successfully, but these errors were encountered: