-
Notifications
You must be signed in to change notification settings - Fork 71
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
Is it possible to use this app as a library? #6
Comments
You can get all the details from the source. So you can use it partly as a lib but there is no documentation on it except my source code. I'm curious: what is the use-case of your app? :-) |
I'm trying to convert opencv processed image to hid mouse, and then go for bluetooth hid. Idea is to create some sort of a new peripheral. |
This sounds interesting. For keyboard, you need to convert from the images to characters and then you can get the respective HID scancodes by mapping them (e.g. https://github.com/tejado/Authorizer-PoC/blob/master/app/src/main/java/net/tjado/authorizer/UsbHidKbd_en_US.java). These scancodes can then be used in USB and Bluetooth. |
Yea I have an idea how to get the parameters (x y and button click) but the boilerplate code without any ui dependency for bluetoothhidprofile gets me confused as there is no official documentation on this or im not googly enough to find it. |
Look up BluetoothHidDevice and how it is used in my code or other sample apps, e.g. https://github.com/ralismark/bluehid. |
Yea im currently hacking ralismark's approach but got stuck on the mBtHidDevice.registerApp cause it needs a executor and Im not sure if i should somehow get the executor from the unitymainActivity (cause my intetntion is to use this lib in unity) or create it on the android side with context provided from the unity. Its largely convoluted and im kinda stuck. |
I want to prototype a device that acts as a mouse and control it from opencv app , for my purpose i need to build it as a aar lib, is it possible to build such binary or there is an easier way to it?
The text was updated successfully, but these errors were encountered: