Issue with ShowText Node Displaying Text in Single Line After Connecting to Custom OCR Node in ComfyUI #6535
Closed
AhmedAlkhateb2010
started this conversation in
General
Replies: 2 comments
-
I'm not a developer, so I can't help you find the real cause. But is it possible that your node outputs a list of strings instead of a single string? Usually when the “Show Text” displays text this way, it means that it is given a list. Maybe you can test with |
Beta Was this translation helpful? Give feedback.
0 replies
-
You need to return string as a tuple data.
Instead of
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have developed a custom OCR (Optical Character Recognition) system where the workflow involves connecting the "Load Image" node to the OCR node and then to the "ShowText" node in ComfyUI. The setup works as expected, and the OCR node successfully extracts text from the input image. However, when the text is displayed in the "ShowText" node, each character appears on a new line. For example, if the OCR output is:
Hello World!
The "ShowText" node displays it as:
H
e
l
l
o
W
o
r
l
d
!
I verified the OCR node's output by logging the results in VSCode, and the text appears correctly formatted as a single string. However, in ComfyUI, the text is incorrectly rendered with each letter on a separate line.
This issue might be related to how the "ShowText" node is handling or interpreting the input from the OCR node. I suspect it could be related to formatting, line breaks, or unintended processing during node communication.
Could someone help identify the root cause or provide guidance on how to resolve this issue?
@mikaz177
@pratil
Beta Was this translation helpful? Give feedback.
All reactions