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

Renderer input format #6

Open
Sudeeksha2308 opened this issue Jul 5, 2024 · 1 comment
Open

Renderer input format #6

Sudeeksha2308 opened this issue Jul 5, 2024 · 1 comment

Comments

@Sudeeksha2308
Copy link

I only want to use the Graphic Renderer from your pipeline. How should the typography .json format look like for the inference. Can you please provide more details on what keys should be present in the json file?

@bjtuln
Copy link

bjtuln commented Sep 2, 2024

I have generated examples for your reference:
{
"angle": [
-9.286449875947982e-15,
-9.286449875947982e-15,
-9.286449875947982e-15
],
"letter_spacing": [
25.6,
25.6,
3.4638958368304884e-14
],
"font_size": [
326.42683781590375,
326.42683781590375,
34.08895371565813
],
"text": [
"HELL",
"PRESIDENT",
"MEZ"
],
"width": [
0.6967922449111938,
0.6190618732396294,
0.20348270661358175
],
"height": [
0.31240726236639355,
0.31240726236639355,
0.0324459424470183
],
"left": [
0.13696749689001025,
0.18654085041546242,
0.39318807335460887
],
"top": [
0.39554983644343134,
0.39554983644343134,
0.5952026392962482
],
"font": [
47,
47,
1
],
"color": [
[
255.0,
255.0,
255.0
],
[
166.5625,
135.26315789473685,
107.5925925925926
],
[
237.68965517241378,
207.0,
192.0
]
],
"text_align": [
2,
2,
2
],
"capitalize": [
0,
0,
0
],
"line_height": [
0.9999999999999986,
0.9999999999999986,
0.9999999999999986
]
}

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

2 participants