使用手册 - Medulla:相机使用方法 Camera Data Access Guide:修订间差异

来自MDCS wiki
跳到导航 跳到搜索
第41行: 第41行:
点击"查看/编辑车体布局","添加","下视摄像头"。然后,在面板中点击以添加摄像头组件。<gallery>
点击"查看/编辑车体布局","添加","下视摄像头"。然后,在面板中点击以添加摄像头组件。<gallery>
文件:6.1.png
文件:6.1.png
</gallery><gallery>
文件:6.2.png
</gallery>
</gallery>


第47行: 第49行:


在属性面板中,双击名称字段,并输入"usbcam",与<code>startup.iocmd</code>中的名称相匹配。
在属性面板中,双击名称字段,并输入"usbcam",与<code>startup.iocmd</code>中的名称相匹配。
[[文件:7.png|缩略图]]




第53行: 第56行:


选择动作面板并双击捕捉,使Clumsy能够开始通过共享内存从Medulla读取字节。
选择动作面板并双击捕捉,使Clumsy能够开始通过共享内存从Medulla读取字节。
[[文件:8.png|缩略图]]


=== 9.Saving the Configuration / 保存配置 ===
=== 9.Saving the Configuration / 保存配置 ===
第58行: 第62行:


点击保存配置以保存从步骤6到8的所有配置。
点击保存配置以保存从步骤6到8的所有配置。
[[文件:9.png|缩略图]]


=== 10.Testing the Camera / 测试摄像头 ===
=== 10.Testing the Camera / 测试摄像头 ===
Click 测试摄像头 to show the Bitmap on the main panel. This demonstrates accessing a bitmap file from a usbcamera component programmatically (lines 25 to 52). After retrieving the bitmap, convert it to the desired format and process it with OpenCV or other libraries.
Click 测试摄像头 to show the Bitmap on the main panel. This demonstrates accessing a bitmap file from a usbcamera component programmatically (lines 25 to 52).


点击测试摄像头在主面板上显示位图。这展示了如何以编程方式从usbcamera组件访问位图文件(第25至52行)。获取位图后,将其转换为所需格式,并使用OpenCV或其他库进行处理。
点击测试摄像头在主面板上显示位图。这展示了如何以编程方式从usbcamera组件访问位图文件(第25至52行)。
[[文件:10.1.png|缩略图]]
[[文件:10.2.png|缩略图]]
 
 
After retrieving the bitmap, convert it to the desired format and process it with OpenCV or other libraries.
 
获取位图后,将其转换为所需格式,并使用OpenCV或其他库进行处理。

2023年11月16日 (四) 14:02的版本

Ntroduction / 引言

  • This demo shows how to access camera data in MDCS using Medulla.
  • 此演示展示了如何使用Medulla在MDCS中访问摄像头数据。

1.Using Medulla / 使用Medulla

Medulla is used to capture, record, and replay various data types.

Medulla用于捕获、记录和回放各种数据类型。

Loading the USB Camera / 加载USB摄像头

In startup.iocmd, add commands to load USBCamera.dll from the plugins folder.

startup.iocmd中,添加命令从插件文件夹加载USBCamera.dll

3.Identifying the USB Device / 识别USB设备

Load USBCamera.dll to see the name of the USB device, for example, USB_Camera_9850.

加载USBCamera.dll以查看USB设备的名称,例如USB_Camera_9850

4.Viewing the Camera Stream / 查看摄像头流

Click "view" to see the camera stream in Medulla.

点击"查看"以在Medulla中查看摄像头流。

5.Setting up ClumsyConsole / 设置ClumsyConsole

Run ClumsyConsole.exe, click "车辆配置", "选择驱动", and select SteerWheel_c.dll.

运行ClumsyConsole.exe,点击"车辆配置","选择驱动",并选择SteerWheel_c.dll

6.Adding Camera to Vehicle Layout / 将摄像头添加到车辆布局

Click "查看/编辑车体布局", "添加", "下视摄像头". Then, click in the panel to add a camera component.

点击"查看/编辑车体布局","添加","下视摄像头"。然后,在面板中点击以添加摄像头组件。

7.Configuring the Camera Component / 配置摄像头组件

In the properties panel, double-click the name field, and enter "usbcam", matching the name in startup.iocmd.

在属性面板中,双击名称字段,并输入"usbcam",与startup.iocmd中的名称相匹配。


8.Configuring ClumsyConsole / 配置ClumsyConsole

Choose the 动作 panel and double-click 捕捉 so Clumsy can start reading bytes from Medulla through shared memory.

选择动作面板并双击捕捉,使Clumsy能够开始通过共享内存从Medulla读取字节。

9.Saving the Configuration / 保存配置

Click 保存配置 to save all the configurations from steps 6 to 8.

点击保存配置以保存从步骤6到8的所有配置。

10.Testing the Camera / 测试摄像头

Click 测试摄像头 to show the Bitmap on the main panel. This demonstrates accessing a bitmap file from a usbcamera component programmatically (lines 25 to 52).

点击测试摄像头在主面板上显示位图。这展示了如何以编程方式从usbcamera组件访问位图文件(第25至52行)。


After retrieving the bitmap, convert it to the desired format and process it with OpenCV or other libraries.

获取位图后,将其转换为所需格式,并使用OpenCV或其他库进行处理。