Skip to content

GetField15Python

anna-dodd edited this page Jun 3, 2015 · 1 revision
field = record.header['fileDateTime']  # the lookup is case insensitive, so filedatetime would also work
fieldStr = str(field)  # same as field.getString()
fieldLen = field.getLength()

#this demonstrates getting the nbpp of the first image
nbpp = record.getImages()[0].subheader['nbpp']  #could've also used numBitsPerPixel
Clone this wiki locally