error: excess elements in scalar initializer
LPPPerceptionInput * input = {.frames=myFrames,
.vehicle_infos ={.size=1,.item=&myItem},
.det_op={.target_parking_spot_id=0,.stage=LPPParkingStage::LPP_PARKING_STAGE_UNKNOWN}
};
LPPStatus detect_result = LPP_Detect(mPerceptionHandle, input, &perception_results);
input变量搞错了,应该是个结构体,并非指针,正确写法,记录下!!!
LPPPerceptionInput input = {.frames=myFrames,
.vehicle_infos ={.size=1,.item=&myItem},
.det_op={.target_parking_spot_id=0,.stage=LPPParkingStage::LPP_PARKING_STAGE_UNKNOWN}
};
LPPStatus detect_result = LPP_Detect(mPerceptionHandle, &input, &perception_results);