使用手册 - Medulla:相机使用方法 Camera Data Access Guide:修订间差异
| (未显示同一用户的3个中间版本) | |||
| 第18行: | 第18行: | ||
Load <code>USBCamera.dll</code> to see the name of the USB device, for example, <code>USB_Camera_9850</code>. | Load <code>USBCamera.dll</code> to see the name of the USB device, for example, <code>USB_Camera_9850</code>. | ||
加载<code>USBCamera.dll</code>以查看USB设备的名称,例如<code>USB_Camera_9850</code>。 | 加载<code>USBCamera.dll</code>以查看USB设备的名称,例如<code>USB_Camera_9850</code>。<gallery widths="800" heights="300"> | ||
文件:75e18bb9d5352ee053b0d265e3f69a1b .png | |||
</gallery><gallery widths="800" heights="500"> | |||
文件:39743d9aec058ae86198c545812917ec .png | |||
</gallery> | |||
=== 4.Viewing the Camera Stream / 查看摄像头流 === | === 4.Viewing the Camera Stream / 查看摄像头流 === | ||
Click "view" to see the camera stream in Medulla. | Click "view" to see the camera stream in Medulla. | ||
| 第27行: | 第31行: | ||
Run <code>ClumsyConsole.exe</code>, click "车辆配置", "选择驱动", and select <code>SteerWheel_c.dll</code>. | Run <code>ClumsyConsole.exe</code>, click "车辆配置", "选择驱动", and select <code>SteerWheel_c.dll</code>. | ||
运行<code>ClumsyConsole.exe</code>,点击"车辆配置","选择驱动",并选择<code>SteerWheel_c.dll</code>。 | 运行<code>ClumsyConsole.exe</code>,点击"车辆配置","选择驱动",并选择<code>SteerWheel_c.dll</code>。<gallery widths="800" heights="500"> | ||
文件:5.png | |||
</gallery> | |||
=== 6.Adding Camera to Vehicle Layout / 将摄像头添加到车辆布局 === | === 6.Adding Camera to Vehicle Layout / 将摄像头添加到车辆布局 === | ||
Click "查看/编辑车体布局", "添加", "下视摄像头". Then, click in the panel to add a camera component. | Click "查看/编辑车体布局", "添加", "下视摄像头". Then, click in the panel to add a camera component. | ||
点击"查看/编辑车体布局","添加","下视摄像头"。然后,在面板中点击以添加摄像头组件。 | 点击"查看/编辑车体布局","添加","下视摄像头"。然后,在面板中点击以添加摄像头组件。<gallery widths="800" heights="500"> | ||
文件:6.1.png | |||
文件:6.2.png | |||
</gallery> | |||
=== 7.Configuring the Camera Component / 配置摄像头组件 === | === 7.Configuring the Camera Component / 配置摄像头组件 === | ||
In the properties panel, double-click the name field, and enter "usbcam", matching the name in <code>startup.iocmd</code>. | In the properties panel, double-click the name field, and enter "usbcam", matching the name in <code>startup.iocmd</code>. | ||
| 第59行: | 第68行: | ||
点击测试摄像头在主面板上显示位图。这展示了如何以编程方式从usbcamera组件访问位图文件(第25至52行)。 | 点击测试摄像头在主面板上显示位图。这展示了如何以编程方式从usbcamera组件访问位图文件(第25至52行)。 | ||
[[文件:10.1.png]] | [[文件:10.1.png]] | ||
After retrieving the bitmap, convert it to the desired format and process it with OpenCV or other libraries. | After retrieving the bitmap, convert it to the desired format and process it with OpenCV or other libraries. | ||
获取位图后,将其转换为所需格式,并使用OpenCV或其他库进行处理。 | 获取位图后,将其转换为所需格式,并使用OpenCV或其他库进行处理。<gallery widths="800" heights="500"> | ||
文件:10.2.png | |||
</gallery> | |||
2023年11月16日 (四) 14:16的最新版本
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用于捕获、记录和回放各种数据类型。
2.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或其他库进行处理。




