-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Camera rotation and App size #131
Comments
Does it occur on FaceDetection graph, or does it occur only InstantMotionGraph?
Please include only required calculators, models and assets and build it again.
In fact, it takes times to read model files from AssetBundle and save them to the device storage. |
Both |
I tried to erase everything except instant motion tracking, but application started to crash. I revert everything and after several experiments I find out that when we start Instant motion tracking as a first graph - application crashes but when I start another graph first and then I switch to Instant motion tracking- it works fine. Here are my crash logs: https://del.dog/ofignestaf.txt BTW, I still don't know how to fix rotated camera |
I did exactly this |
Please see WebCamTexture#videoRotationAngle (though it may be a bug of sample apps).
I suspect this issue is caused by google-ai-edge/mediapipe#1617 , which is not resolved yet.
Have you uninstalled all the resources first? |
What the minimum of an app size? Could we reach at least 40-50?
|
I don't know. I think it depends on the meaning of 'minimum' and your app. On the plugin side, you can reduce the size of native libraries and model files to be included to the app. To reduce the size of model files, simply include only required ones. |
For instance, our app's size is 38 mb now, how much heavier will it be if we plug in a minimum of Instant motion tracking? |
Please, need your anwser @homuler
|
Well, I don't know. |
Yes, it fixed camera rotation, but robot in instant motion tracking is still rotated, I don't know how to fix it |
Could you please tell me, is it possible to create smt like this: video_2021-05-11_20-48-30.mp4First, you can move the circle on your table and then you can link it to a special point. After this you can open a model and it'll be downloaded and model will appear in the circle. The circle should be as a GameObject. |
And I tried to find some sort of manual but I didn't find anything, maybe you know anything about it? @homuler |
@homuler We need to understand this, please answer |
This plugin not doing AR exactly what you want. Please check out ARkit, ArCore plugins |
If you only need that functionality. There is no reason to use this plugin. Just go with ARFoundation. It's official package maintain & dev by unity. |
For Portrait mode give 90 to MainCamera's z index of rotation. |
Fixed by #296 |
Hi! @Almazikman |
For the rotation, I was working on Mediapipe 0.8.4 at this commit for project stability reasons and this was how I approached the rotation issue on IOS and Android builds (Camera rotation was fine in editor). This solution may not apply to the newer version of the demo scenes.
|
I have some problems with the plugin:
First, It works fine on my linux, camera rotation is all right, but when I use my android I see that everything is 90 degree rotated, even the robot. Rotating a background plane has no effect, except my frontal camera (but the points and lines shows in incorrect positions, like camera image is still rotated). How to fix it?
Second, how can I decrease the size of application, I used stripping param when build, now it's 180 mb, but still too heavy. I wonder, how to decrease it gradually. I need only Instant motion tracking, nothing more. Maybe I can erase other functions somehow?
Third, it takes about 10 seconds to get android camera start but on linux it takes literally few milliseconds. How to decrease the starting time at least to 1-2 seconds?
The text was updated successfully, but these errors were encountered: