# Beta 功能

Beta 功能是新 DepthAI 节点和功能的暂存区。它们使我们能够在公共 API 仍在演进时更早地提供支持。

Beta 标签反映的是 API 稳定性，而非实现质量。这些节点旨在用于实际应用程序和部署，但您应该预料到在 API 成熟过程中界面会进行更新。

> **Beta API 稳定性**
> Beta API 可能会在不事先通知的情况下发生变化。如果您在部署的系统中使用它们，请计划固定您的 DepthAI 版本，并在功能成熟时进行小的集成更新。

## 平台行为

 * Beta 节点在 [RVC4](/hardware/platform/rvc/rvc4.md) 上原生运行
 * 在 [RVC2](/hardware/platform/rvc/rvc2.md) 上，相同的 Beta 节点在主机上运行
 * 大多数 Beta 解析器目前都有 Python 和 C++ 示例，因此您可以快速评估当前的 Beta 表面

## 示例

`depthai-core` 中当前的 `main` 分支 Beta 示例包括：

 * `Classification_parser`：将情感识别输出解析为带标签的类别预测。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/classification_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/classification_parser.cpp)
 * `Classification_sequence_parser`：解析序列分类输出以进行 OCR
   风格的文本识别。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/classification_sequence_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/classification_sequence_parser.cpp)
 * `Embeddings_parser`：解析嵌入向量以进行相似性和检索工作流。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/embeddings_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/embeddings_parser.cpp)
 * `Fastsam_parser`：将 FastSAM
   分割输出解析为叠加的掩码视图。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/fastsam_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/fastsam_parser.cpp)
 * `Hrnet_parser`：将 HRNet
   姿态输出解析为关键点和骨架边缘。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/hrnet_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/hrnet_parser.cpp)
 * `Image_output_parser`：将生成图像的网络输出解析为可显示的帧。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/image_output_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/image_output_parser.cpp)
 * `Img_detections_filter`：在下游处理之前按置信度过滤 `ImgDetections`
   消息。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/img_detections_filter.py)
 * `Keypoint_parser`：将人脸地标关键点解析为连接的叠加点。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/keypoint_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/keypoint_parser.cpp)
 * `Lane_detection_parser`：将车道检测输出解析为输入帧上的车道叠加。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/lane_detection_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/lane_detection_parser.cpp)
 * `Map_output_parser`：将密集地图输出解析为归一化的热图可视化。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/map_output_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/map_output_parser.cpp)
 * `Mlsd_parser`：将 MLSD 线段输出解析为线叠加。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/mlsd_parser.py)
   | [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/mlsd_parser.cpp)
 * `Mp_palm_detection_parser`：将 MediaPipe
   手掌检测解析为旋转的边界框。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/mp_palm_detection_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/mp_palm_detection_parser.cpp)
 * `Pp_text_detection_parser`：将 Paddle
   文本检测输出解析为文本区域多边形。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/pp_text_detection_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/pp_text_detection_parser.cpp)
 * `scrfd_parser`：解析 SCRFD
   人脸检测和地标。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/scrfd_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/scrfd_parser.cpp)
 * `superanimal_parser`：将 SuperAnimal
   关键点解析为动物姿态骨架叠加。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/superanimal_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/superanimal_parser.cpp)
 * `yunet_parser`：解析 YuNet
   人脸检测和地标。[Python](https://github.com/luxonis/depthai-core/blob/main/examples/python/Beta/yunet_parser.py) |
   [C++](https://github.com/luxonis/depthai-core/blob/main/examples/cpp/Beta/yunet_parser.cpp)

## 示例用法

在 Python 中，通过 `dai.beta.node` 访问 Beta 节点。

```python
parserNode = pipeline.create(dai.beta.node.ClassificationParser).build(
    neuralNetwork.out,
    modelArchive,
)
```
