You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great code. I am implementing some human face sticker use case and want to set the sticker width to the detected human face width.
Defalut pikachu sticker has a original size 256256, but apperas larger in the screen. I test this in Nexus 6p with a screen size 14402560. Pikachu apperas to occupy 1/3 of the screen width.
How this defalut width is set to 1/3 of the screen width? And how to set the entity's width according to screen pixel width?
Thanks!
The text was updated successfully, but these errors were encountered:
@flankechenEntity scale is relative to its parent size. You can control the Entity size with the scale param (see Layer.java) class. Just set it to the one you need. scale == 1.0 means Entities biggest side will be the same as parent smallest side (meaning it will fit the parent).
Thanks for the great code. I am implementing some human face sticker use case and want to set the sticker width to the detected human face width.
Defalut pikachu sticker has a original size 256256, but apperas larger in the screen. I test this in Nexus 6p with a screen size 14402560. Pikachu apperas to occupy 1/3 of the screen width.
How this defalut width is set to 1/3 of the screen width? And how to set the entity's width according to screen pixel width?
Thanks!
The text was updated successfully, but these errors were encountered: