Questions tagged [text2image]

18 questions
88
votes
6 answers

With ImageMagick, how can you see all available fonts?

ImageMagick can draw text into a picture in a given font, how can I see all available fonts for my system?
flybywire
  • 261,858
  • 191
  • 397
  • 503
3
votes
0 answers

List All System's Fonts Tesseract OCR Text2Image

i am using tesseract OCR on windows 10, i was able till now to create .box and .tif files for one font at a time, but when i try to make fontslist as described on the github website it doesn't work, giving me the warning WARNING: Could not find a…
ibr
  • 319
  • 1
  • 5
  • 19
3
votes
2 answers

Tesseract: text2image not found (Mac OS X)

After dozens of hurdles solved, this one (or two) finally stopped me... So I'm trying to train Tesseract 3.04 for specific font and I've completed couple of .box files with over 800 characters each. Then I've created .tr files and now I'm ready to…
1
vote
2 answers

How to implement Text2Image with CNNs and Transposed CNNs

I wanna implement text2image neural networks like the image below: Please see the image using CNNs and Transposed CNNs with Embedding layer import torch from torch import nn Input text : text = "A cat wearing glasses and playing the guitar " #…
Mohammed
  • 346
  • 1
  • 12
1
vote
1 answer

Tesseract text2image segmentation fault: 11

In El capitan When i am apply text2image in tesseract training, the text2image give segmentation fault: 11 error. I am applying this command: text2image --text=training_text.txt --outputbase=eng.TimesNewRomanBold.exp0 --font='Times New Roman Bold'…
1
vote
1 answer

Why are my last words being cut off?

I'm using imagettftext and imageTTFBbox to convert strings to images of strings. For example, this string below This planet has — or rather had — a problem, which was this: most of the people living on it were unhappy for pretty much all of the…
Huey
  • 5,110
  • 6
  • 32
  • 44
1
vote
2 answers

tesseract ocr works terrible on ios (7)

I don't know if something is wrong with me or tesseract library but it works terrible. Tesseract* tesseract = [[Tesseract alloc] initWithDataPath:@"tessdata" language:@"eng"]; [tesseract…
onivi
  • 1,348
  • 3
  • 17
  • 25
1
vote
2 answers

ImageMagick: are fonts platform independent

Are fonts in ImageMagick system dependent, or do they come inside ImageMagick and can be equally used in any platform.
flybywire
  • 261,858
  • 191
  • 397
  • 503
0
votes
0 answers

HTTP Error on running ControlNet in Google Colab

So, I'm installing stable diffusion with google colab Copy of fast_stable_diffusion_AUTOMATIC1111.ipynb - Colaboratory (google.com) and then running ControlNet (All 21GB), I'm getting this error message: HTTPError Traceback (most recent call last)…
0
votes
1 answer

Diffusion Stable, can you use a url as part of the text to image feature?

I run stable diffusion locally, and run the txt2image with commands like: python3.8 scripts/txt2image.py --prompt "Joe Rogan eating a donut next to Elon Musk" I highly doubt that it has been trained to use Joe Rogan, Elon Musk, and donuts. However,…
0
votes
2 answers

C# flood fill but with threshold allowing similar colors?

Using an image-generation AI I'm getting centered objects on a dark background. My goal is to convert all pixels outside this object to transparent. I figured a good-enough approach would be to flood-fill from all 4 corners using a fuzzy threshold,…
Philipp Lenssen
  • 8,818
  • 13
  • 56
  • 77
0
votes
1 answer

Unity connecting to Dall-E API when using image param?

How would one use the Dall-E text-to-image API's image and mask parameters in Unity C#? For background, something like the following works for the other parameters like prompt (full code on GitHub): string apiMode = "generations"; string apiUrl =…
Philipp Lenssen
  • 8,818
  • 13
  • 56
  • 77
0
votes
1 answer

Error using text2image Font Exocet Light failed with 223518 hits = 99.94% when trying to build image file using Diablo 2 font

I am running tesseract on windows 11 using the command prompt. The text file is my training data. Words that I want to turn into images. The output is the next step in the Tesseract process for training my font. I am saying find fonts but I only…
0
votes
8 answers

Tools for displaying text, powerpoint style, in linux

I have a problem where I need a way to display a repeating series of "images" on a computer monitor. Specifically, given a series of text files, I'd like a way to display the contents of said files on a screen in a way much like a powerpoint…
Will Mc
  • 244
  • 2
  • 9
0
votes
4 answers

Is there any free php code that transform text into a nice logo?

I would like to have a php function that can take text as the input and generate a nice logo (image) with that text. It would be nice to have a flexibility in the style of the logo (color, shadow, shape, size and so on). Can anybody recommend…
Roman
  • 124,451
  • 167
  • 349
  • 456
1
2