Author Topic: Link number to code  (Read 15253 times)

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Link number to code
« on: January 22, 2015, 03:37:20 AM »
I have a large number of photos tagged with the rider number e.g. '123', '234' etc.

I would like to link this number to the code generator in order to get the name, race group etc. so that number 234 becomes: 234, Bob Jane, New Your Marathon, Olympic Distance

Is this possible?

The photos are already tagged with number e.g. 234

Thanks
Niels

Offline Sven

  • Uber Member
  • ******
  • Posts: 1052
    • View Profile
Re: Link number to code
« Reply #1 on: January 22, 2015, 03:53:54 AM »
Hi Niels!
The feature you are looking for is "Codereplacement".

You need to have a look here for a description how it works: http://wiki.camerabits.com/en/index.php?title=Speeding_Up_Captioning

Sven
After 5 years of absence I restarted the photography.

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #2 on: January 22, 2015, 04:19:30 AM »
Hi Sven,

Thanks - I am familiar with the standard use of codereplacement and are using this all the time. I have however just started using a program that can tag the photos based on the BIB number that the program will identify on the photo. The program will add what it see e.g. '123' and place this code in the keyword field as '123'.

I would like to link '123' with the code replacement file e.g. '123' becomes 'name', 'club', 'event' or whatever I decide in the text file.

I assume that I will have to extract the IPTC field to a spread sheet and then link the numbers to the codereplacement file? e.g. as in a database.

The number recognition program that I have found is in beta test but seems to be working OK - check this link for more information. http://www.racenumbertagger.com/
 

Offline Sven

  • Uber Member
  • ******
  • Posts: 1052
    • View Profile
Re: Link number to code
« Reply #3 on: January 22, 2015, 04:21:48 AM »
Hmmmm...

Can you configure the program to add your codereplacement identifier to the beginning and end of the BIB number?
After 5 years of absence I restarted the photography.

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #4 on: January 22, 2015, 04:25:13 AM »
No - there is no room for modifications

Offline Sven

  • Uber Member
  • ******
  • Posts: 1052
    • View Profile
Re: Link number to code
« Reply #5 on: January 22, 2015, 04:28:44 AM »
If the BIB number is the only thing in the keyword field:
set up you CR file with BIB (TAB) the Rest You Need

and then put (assuming you CR identifier is "#") #{keywords}# into the caption field. This should do the trick.
After 5 years of absence I restarted the photography.

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #6 on: January 24, 2015, 01:26:47 PM »
Hi Sven - I have tested your suggestion and it works fine, however this is not what I need.

As the number is being 'placed' in the keyword field by another program, I cannot add the CR identifier. All I have is a number e.g. 123.

Is it possible to get CR to work without the identifier?

I guess I may have to take the IPTC data to an external editor or spreadsheet and make the link between the number (123) and the codereplacement UTC-8 text file?

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Link number to code
« Reply #7 on: January 24, 2015, 02:11:41 PM »
With Sven's solution, you need no CR identifier in the keyword that is entered. So I'm not sure what you mean...
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #8 on: January 24, 2015, 04:27:13 PM »
If I leave the delimiter box empty - PM will automatically revert the value to the standard delimiter (\). I assume that you want the delimiter box to be empty?

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #9 on: January 24, 2015, 04:50:21 PM »
These are my files:

1) Screen shot of CR settings
2) Text field with data

Hope this helps


[attachment deleted by admin]

Offline Sven

  • Uber Member
  • ******
  • Posts: 1052
    • View Profile
Re: Link number to code
« Reply #10 on: January 24, 2015, 10:36:02 PM »
Let the other program add the BIB number into the keywords field. Then just apply a "blank" IPTC stationary with only the following thext to the images and you have the information out of your CR file in the description / caption field or wherever you want to have it..

\{keywords}\

[attachment deleted by admin]
« Last Edit: January 24, 2015, 10:38:07 PM by Sven »
After 5 years of absence I restarted the photography.

Offline Juels

  • Newcomer
  • *
  • Posts: 18
    • View Profile
Re: Link number to code
« Reply #11 on: January 25, 2015, 01:07:36 PM »
Got it! Thanks very much - you have saved me many hours of tagging! Thanks.