{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-advanced-extract-classification-request-schema.json",
  "title": "AdvancedExtractClassificationRequest",
  "description": "Request to perform an AI document classification on a document",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-extract-api-openapi.yml#/components/schemas/AdvancedExtractClassificationRequest",
  "type": "object",
  "properties": {
    "InputFile": {
      "format": "byte",
      "description": "Input document file to perform the operation on as a byte array",
      "type": "string"
    },
    "Categories": {
      "description": "Possible categories for the document",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DocumentCategories"
      }
    },
    "Preprocessing": {
      "description": "Optional: Set the level of image pre-processing to enhance accuracy.  Possible values are 'Auto', 'SmoothEdges', 'SmoothEdgesPlus', 'Compatability' and 'None'.  Default is Auto.  Set to SmoothEdges to smooth harsh edges in the input image to enhance recognition accuracy.  Set to SmoothEdgesPlus to smooth harsh edges to a higher degree.  Set to Compatability for maximum PDF feature compatability.",
      "type": "string"
    },
    "ResultCrossCheck": {
      "description": "Optional: Set the level of output accuracy cross-checking to perform on the input.  Possible values are 'None', 'Advanced', 'Ultra' and 'Hyper'.  Default is None.  Ultra and Hyper will produce the highest accuracy but at the cost of longer processing times.",
      "type": "string"
    },
    "MaximumPagesProcessed": {
      "format": "int32",
      "description": "Optional: Limit the number of pages processed",
      "type": "integer"
    },
    "RotateImageDegrees": {
      "format": "double",
      "description": "Optional: Rotate the input image before recognition by the specified number of degrees; valid values range from -360 to +360.",
      "type": "number"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DocumentCategories": {
      "description": "Document category option",
      "type": "object",
      "properties": {
        "CategoryName": {
          "description": "Name of the classification",
          "type": "string"
        },
        "CategoryDescription": {
          "description": "Optional but recommended: Description of the classification in natural langugage",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}