Image number or name - General Discussion and Assistance - CHDK Forum

Image number or name

  • 5 Replies
  • 3476 Views
Image number or name
« on: 06 / January / 2019, 04:12:18 »
Advertisements
Hope someone can help.

I wish to write data about an image to a file, so that I can review it later in post.

I intend to use print_screen and I’m using Lua.

But how do I uniquely link the data to the image just taken.

After all I will have, potentially, up to a 100 or so images in any given session.

As I say, I hope someone can help.

Cheers

Garry

*

Offline c_joerg

  • *****
  • 1251
Re: Image number or name
« Reply #1 on: 06 / January / 2019, 05:00:32 »
I wish to write data about an image to a file, so that I can review it later in post.

'get_exp_count'
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd

Re: Image number or name
« Reply #2 on: 06 / January / 2019, 05:53:34 »
Yes I was aware of that, but I don’t think it explicitly references the image file name. Or does it.

Any other thought I’ve had is to time stamp things.

BTW the Lua documentation seems to imply accessing os_time, but I can see a Lua call to do that.

Thanks for responding.

Cheers

Garry

*

Offline c_joerg

  • *****
  • 1251
Re: Image number or name
« Reply #3 on: 06 / January / 2019, 06:12:14 »
Yes I was aware of that, but I don’t think it explicitly references the image file name. Or does it.
'get_exp_count' corresponds to number in filename
M100 100a, M3 121a, G9x II (1.00c), 2*G1x (101a,100e), S110 (103a), SX50 (100c), SX230 (101a), S45,
Flickr https://www.flickr.com/photos/136329431@N06/albums
YouTube https://www.youtube.com/channel/UCrTH0tHy9OYTVDzWIvXEMlw/videos?shelf_id=0&view=0&sort=dd


Re: Image number or name
« Reply #4 on: 06 / January / 2019, 06:13:46 »
Great: I'll look into that. Many thanks.

Re: Image number or name
« Reply #5 on: 06 / January / 2019, 15:02:57 »
Great: I'll look into that. Many thanks.
Hint:
Code: [Select]
filename = string.format('IMG_%04d.JPG', get_exp_count())
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal