---
Product: Aspose.3D
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/python/gltfformatdetector
---

# GltfFormatDetector

## Overview

`GltfFormatDetector` is a class in Aspose.3D FOSS for Python.
Inherits from: `FormatDetector`.

GltfFormatDetector.detect(stream, file_name) returns a FileFormat value that identifies the format of the supplied data.

This class declares 3 methods for GltfFormatDetector objects in Python programs.
Available methods include: `__init__`, `detect`.
Public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Calls __init__ on this GltfFormatDetector instance. |
| `detect(stream: 'io._IOBase', file_name: str)` → `'FileFormat'` | Determines the FileFormat of the provided stream, optionally using the file name |
| `detect(stream, file_name: str)` → `'FileFormat'` | **Not implemented in the FOSS edition — throws at runtime.** Calls detect(stream, file_name) on this GltfFormatDetector instance. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)