# Camera Sensor Extension

```python
import sp

class CameraSensor_Plugin(sp.BaseCameraSensorObject):

    def __init__(self):
        sp.BaseCameraSensorObject.__init__(self)

if __name__ == "__main__":
	sp.registerPlugin(CameraSensor_Plugin)
```

<figure><img src="/files/pp088qUb05afhYXASvSd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Q09yTlbTSr2OzqgbKQOW" alt=""><figcaption></figcaption></figure>

## Main Class

The class name <mark style="color:orange;">**`CameraSensor_Plugin`**</mark> can be customized and also represent the name of your Plugin.

```python
class CameraSensor_Plugin(sp.BaseCameraSensorObject):
```

While **`(`sp.BaseCameraSensorObject`)`** can´t be renamed.&#x20;

## Initialization

Within your **Main Class** it´s necessary to define a function for the initialization:

```python
    def __init__(self):
        sp.BaseCameraSensorObject.__init__(self)
```

## Register

To register the plugin you need the following lines of code outside of your **Main Class**:

```python
if __name__ == "__main__":
	sp.registerPlugin(CameraSensor_Plugin)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stage-precision.gitbook.io/grid/extensions/extension-types/camera-sensor-extension.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
