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

Android support #10

Open
victordiaz opened this issue Jan 12, 2016 · 15 comments
Open

Android support #10

victordiaz opened this issue Jan 12, 2016 · 15 comments

Comments

@victordiaz
Copy link

It would be awesome to use mobile devices for fast prototyping purposes. How difficult would it be to port it?

@mkalten
Copy link
Owner

mkalten commented Jan 14, 2016

Hello Victor, thanks for getting back to me on the topic!
Basically you'll need to follow these steps to support a new platform:

  • portvideo is actually now a separate project, which can be found in ext/portvideo
  • create a new android folder, for all the platform specific code
  • create a SportVideo example project (a simple video viewer, see any other platform)
  • for android you will need to use the native SDK and use the according SDL2 library for the GUI
  • implement a single subclass of a CameraEngine (see the other platforms for the quite simple API)
  • make sure your SportVideo project behaves as it should regarding camera configuration etc.
  • in case you want to avoid SDL2, you can also implement a subclass of the UserInterface
  • when everything works, you can create an equivalent android project for reacTIVision
  • although the rest of the code should then compile fine, you may need to add some platform specific #ifdefs

I hope that helps for the start,
maybe we can have a chat on the topic elsewhere ...

@simone27zero1
Copy link

hello to everybody...mkalten i ask you a specific about your comment: all steps you descrive in your post, must i do on my phone or on my pc and after send them on my phone?

@mkalten
Copy link
Owner

mkalten commented May 8, 2017

Hello @simone27zero1, the steps we describe above actually refer to the development process which is necessary to provide Android support through PortVideo in the future. Unfortunately this process has not started yet, therefore neither the current nor the upcoming reacTIVision 1.6 won't be available for Android yet. Nevertheless the plan to port reacTIVision to mobile phone platforms still is interesting, although probably I'll start with the iOS port first, since this seems easier than Android.

@simone27zero1
Copy link

mkalten...then isn't it possible download reactivision for androind?

@mkalten
Copy link
Owner

mkalten commented May 8, 2017

no, currently we have ports for Windows, MacOS and Linux only

@simone27zero1
Copy link

pity that is not there! but i have another question: can i use the camera of mobile phone to read the marker and send the ID of marker to processing with the TUIO library? beacuse i download processing for android and the libraries...

@mkalten
Copy link
Owner

mkalten commented May 8, 2017

If you want to try TUIO on Android, you can use TuioDroid for multi-touch interaction:
https://github.com/TobiasSchwirten/tuiodroid

While reacTIVision is not available for Android, I am also not aware of any other application,
which would provide fiducial marker tracking through TUIO on this platform ...

@simone27zero1
Copy link

thanks a lot! now i download it and try to do that i would like to do... thanks again for the help you gave me

@simone27zero1
Copy link

hello! Always about reactiviosion topic on the mobil phone, if instead of using reactivision, that doesn't exist on the mobil phone, used the camera of phone and through the app TUIODroid send camera data to processing? i hope do it!

@mkalten
Copy link
Owner

mkalten commented May 9, 2017

I am sorry to destroy your imagination, but this doesn't work as you think. I'd suggest that you read a bit into the topic, since it seems that you are a bit on the wrong track here ...

@simone27zero1
Copy link

okok nothing, thanks anyway

@sonicdebris
Copy link

Hello, I hacked together an android app. The current status of my work is at:
https://github.com/sonicdebris/reacTIVision/tree/reactivision-android

The app is very basic, all settings are to be set in the code, there's no UI feedback except for the processed image, but it does manage to send data from the phone to the TuioDemo client reference implementation on a PC.

@mkalten if this is interesting for you I could open a pull request once I have cleaned up things a bit and added at least some in-app settings.

@RomualdMashup
Copy link

@sonicdebris Wahoo, this look amazing ! Thank you for sharing.

@sonicdebris
Copy link

sonicdebris commented Sep 17, 2019

@RomualdMashup ahah you're welcome! It's still very rough, there's no calibration and setting the destination IP requires a restart. I plan to make it nicer (and add support for front-facing camera and flash), in the meanwhile let me know you happen to try it!

@morusa
Copy link

morusa commented Feb 26, 2020

hi @sonicdebris

I am tested your android app on several devices but it does not correctly identify the symbols.
Is it configured to identify the amoeba set?
How can I change the resolution of the camera?

thanks for sharing your work :)

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

6 participants