ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.25k stars 9.72k forks source link

Apollo9.0摄像头Camera适配无data输出 #15437

Open Jacen0610 opened 5 months ago

Jacen0610 commented 5 months ago

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

Steps to reproduce the issue:

Supporting materials (screenshots, command lines, code/script snippets):

微信图片_20240618122253

daohu527 commented 5 months ago

@Jacen0610 Your question is a good one, thanks for your suggestion.

I want to clarify here that Apollo is currently an autonomous driving system for production environments, so it is more concerned with efficiency, speed and stability. In terms of ease of use, a third-party library or Python is the most convenient. But you know you can't have your cake and eat it too.

We will not avoid the problem. It is true that there are some problems with the data structure of the image processing of the perception module. For example, blob data overflows and crashes when the image size exceeds the requirement.

questions

Back to the question itself, you can explain your problem in detail so that you can better solve it. For example, how do you create a node to send a picture?

Jacen0610 commented 5 months ago

@Jacen0610 Your question is a good one, thanks for your suggestion.

I want to clarify here that Apollo is currently an autonomous driving system for production environments, so it is more concerned with efficiency, speed and stability. In terms of ease of use, a third-party library or Python is the most convenient. But you know you can't have your cake and eat it too.

We will not avoid the problem. It is true that there are some problems with the data structure of the image processing of the perception module. For example, blob data overflows and crashes when the image size exceeds the requirement.

questions

Back to the question itself, you can explain your problem in detail so that you can better solve it. For example, how do you create a node to send a picture?

I just want to know what sensor devices you recommend, such as what brand and model of camera and access method.

I only want to be able to run through all the modules according to your official tutorials, so I have no intention of modifying any code or adding any features.

Starting from this camera driver, I will buy a device you recommend to verify all the camera-related perception functions. So, please tell me what sensor to buy.

Jacen0610 commented 5 months ago

使用OpenCV读取摄像头后转成cyberRT的Image格式的消息后分辨率莫名其妙被改变,opencv打开的1920x1080变为1280x720。此问题导致perception_perception_camera_single_stage和perception_perception_camera_multi_stage的cudamemcpy复制gpu内存缺失。请问如何使用python将摄像头的数据正确转发到CyberRT上 微信图片_20240620101529

daohu527 commented 4 months ago

@Jacen0610 Please describe your startup steps in detail.

There are settings in the configuration to change the image size.

MambaWong commented 4 months ago

cap.set()设置宽高不知道有没有成功哦。 我之前也封装了OpenCV的VideoCapture,转Image之后,是可以正常工作的。