# Print schema of image_df # Note the label column based on the label=[0,1] within the file structure image_df.printSchema()
root
|-- image: struct (nullable = true)
| |-- origin: string (nullable = true)
| |-- height: integer (nullable = true)
| |-- width: integer (nullable = true)
| |-- nChannels: integer (nullable = true)
| |-- mode: integer (nullable = true)
| |-- data: binary (nullable = true)
|-- label: integer (nullable = true)
Image Data Source Sample
This sample notebook illustrates how to use the image data source.
Attribution
The source of these images are from video reenactment of a fight scene by CAVIAR members – EC Funded CAVIAR project/IST 2001 37540. The code used to generate these images can be found at Identify Suspicious Behavior in Video with Databricks Runtime for Machine Learning.
Last refresh: Never