> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/video-sensing.md).

# Video Sensing

The Video & Detection Plug-in allows Kittenblock to use the webcam to produce various effects.

### Add the Video Sensing Extension

Open up the extension page.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/add.png)

Select Video Sensing.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam6.png)

New programming blocks will be added.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam1.png)

### Video Sensing

You can also use a USB webcam by enabling this option in settings.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam3.png)

We use this block to turn on or off the camera.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam2.png)

#### Face Detection

Example: Detecting a face and putting a mask on it.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam4.png)

Example: Tracking Facial Features

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam5.png)

#### Motion Detection

Example: Detecting movement

The threshold(0-100) determines how large the movement should be for the event to be triggered.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam7.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam10.gif)

Example: The direction of movement can also be obtained(-180\~180).

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam8.png)

Example: Obtaining the velocity of the object in move.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/cam9.png)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenbot-extensions/video-sensing.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.
