How to extract the rating from a picture programatically?

Comments

6 comments

  • Sebastian Szyszka

    Have you considered syncing the metadata to sidecar files and extracting the information from there? Building a workflow around that would give you the added benefit of being able to use any application that works with XMPs, making the workflow more portable. Downside is that syncing metadata for that many images in C1 is slow.

    1
    Comment actions Permalink
  • SFA

    I think you would need to put this request through the Phase One Support channel rather than Capture One if you are looking for a feature request solution.

    0
    Comment actions Permalink
  • William Gallery

    Sebastian,

    What sidecar file are you referring to? I export the files with the rating as tif files and there are no other files with a similar name created.

    I have looked at the EXIF and IPTC metadata for the images and there is no reference to a "Rating". Possibly it is stored as a private tif tag but I cannot find any documentation for it.

    0
    Comment actions Permalink
  • EtMRS

    William,

    Yes the rating is in the TIF file !

    In process Recipe, verify that "rating and color tag" (metadata tab) is selected (none by default !) and process.

    I use exiftool to export metadata from tif to a text format : exiftool -G1 -a -u -r -w .txt *.tif

    And, in the txt file I have XMP-xmp parameter for rating (numeric: 0,1,2..5)

    Tip : with exiftool, export metadata (all or rating only) in JSON format : it's easy for you and your computer !

    Hope that help.

    0
    Comment actions Permalink
  • Quigley Micheal

    Hi im working on a program that will open an image and then extract the metadata from it How do i extract metadata using python ?

     

    Kroger Feed

    0
    Comment actions Permalink
  • EtMRS

    Micheal,

    Extract metadata from picture can be very hard if you do it from scratch : So many metadata, a lot of type (XMP, IPTC, Exif, Maker specific....), some are coded like the lens...

    So, I suggest you to use a third program like exiftool. Why ?

    - very good maintained (case new camera, new lens....

    - available in all platform like Windoze, OSX or Linux

    - Free

    - work fine with python (look on internet on "python exiftool" and you shall see some good example to extract metadata.

    Don't forget that metadata can be inside you picture (like export in CO1) or in XMP sidecar (like RAW in CO1).

    Hope that help. 

    0
    Comment actions Permalink

Please sign in to leave a comment.