Questions tagged [image-generation]

111 questions
3
votes
2 answers

How can I generate images of basic figures with Perl?

I am using jalava library as a diagram drawing tool. It displays figures as images in order to maintain compatibility with majority of browsers. When diagram block is being resized a request is being made and new gif image is generated and send to…
jonny
  • 1,326
  • 9
  • 44
  • 62
3
votes
2 answers

Get all frames of Video IOS 6

I would like to get all frames of a Video in iOS6 into NSArray. I use this code: -(void) getAllImagesFromVideo { imagesArray = [[NSMutableArray alloc] init]; times = [[NSMutableArray alloc] init]; for (Float64 i = 0; i < 15; i += 0.033) //…
Javi Campaña
  • 1,481
  • 1
  • 22
  • 30
3
votes
1 answer

AVAssetImageGenerator not generating Image from Video url

I am using AVAssetImageGenerator for generating the thumbnail images for video play buttons. When i pass server video url to generate image it is retuning null. AVAsset *asset = [AVAsset assetWithURL:url]; AVAssetImageGenerator…
Madhu
  • 994
  • 1
  • 12
  • 33
3
votes
1 answer

.toDataURL() from Safari to PHP is rendering full white image (not drawn area)

Summary: Say I draw a white smiley face with a canvas element in a browser. When I generate an image string to POST to the PHP server from this canvas via js/ajax (with toDataUrl('image/png') ) in Safari, the image created on the server with PHP…
Doug Johnson
  • 473
  • 4
  • 11
2
votes
1 answer

PHP Using imagegrabscreen

How could I use imagegrabscreen to get a thumbnail image and a full size image of a specific website. I was thinking that I could have an array that I feed the wanted uri's into but I am a bit stuck on how I would set the wxh of the image I need to…
Jess McKenzie
  • 8,345
  • 27
  • 100
  • 170
2
votes
2 answers

Why can the "Wave Function Collapse" algorithm fail?

I have written a few implementations of Wave Function Collapse based on the README of this repo. My understanding is that the state of each position during the computation is a superposition (set) of tiles that could be placed there, and still…
nph
  • 83
  • 5
2
votes
1 answer

How can I track the loss of a DCGAN

I'm following this https://www.tensorflow.org/tutorials/generative/dcgan#the_discriminator but i'm using my own pictures. I wanted someway to look at loss, accuracy, and/or anything else that might be useful to look at in order to optimize the…
2
votes
0 answers

Crop letters from a single image and create a dataset

Above image has handwritten hindi / deavanagari letters all on a single image. Task is to Prepare a dataset from the given assignment.jpg image using image processing tools Idon't have clarity whether i can use photoshop editing tools like…
2
votes
0 answers

Reverse transformations ImageDataGenerator Keras

I am looking into reversing the transformations that ImageDataGenerator performs on my input image. I am able to get the transformations performed along with the values of the transformations. Is there a way I can use these values to reverse the…
user782400
  • 1,617
  • 7
  • 30
  • 51
2
votes
4 answers

Generating an image with data fields using Java

How would you generate an JPG image file containing data fields that are stored and updated within a database table? The image would then be regenerated every hour or so reflecting the latest values within the database table. You would start with a…
Kevin
  • 956
  • 3
  • 11
  • 24
2
votes
1 answer

GAN Training: Cannot calculate inception score because of Tensor.set_shape error

I need to calculate the inception score for generated images in my trained GAN. I'm referring to the code in this OpenAI repository. However, I am getting an error near the end of _init_inception function. The error is ValueError: Tensor._shape…
alpaca
  • 1,211
  • 13
  • 23
2
votes
1 answer

generative adversarial network generating image with some random pixels

I am trying to generate images using Generative Adversarial Networks(GANs) on CelebA aligned data set with each image resized to 64*64 in .jpeg format. My network definition is like this def my_discriminator(input_var= None): net =…
2
votes
4 answers

Library to generate Images with pixels

I'm looking for a Library that allows me to generate an Image via pixel information, in this style(dummyfunction): /* coord_x = X coordinate coord_y = Y coordinate red = red part of RGB green = green part of RGB blue = blue part of…
user350814
2
votes
1 answer

Python:Generate a variable inside a for loop

I am trying to generate and save an image with a new name for each loop.Is this possible in python with a for loop?Or should I try a different approach? For i in range(x,y) i=str(i) p= img(i).save(s+i+j,) i=int('i') i=i+1
Ka_Papa
  • 137
  • 9
2
votes
4 answers

PHP create image to display email address?

Using PHP: How can I create an image to display an email address (to help reduce spam)? Meaning, if I want to display "joe@example.com" on my web page, since crawlers can easily find that text - I want to display the email address as an image that…
Teddkl
  • 21
  • 1
  • 2