创建 3D 重建项目
从多角度照片重建真实场景的 3D 模型。
基本信息
| 项目 | 值 |
|---|---|
| 方法 | POST |
| 路径 | /v2/aholo/project/create-3d-recon |
| 认证 | API Key |
| Content-Type | application/json |
Request
Query Param
| 参数 | 必须 | 类型 | 说明 |
|---|---|---|---|
appuid | ✅ | string | 第三方用户 ID |
Request Body
json
{
"projectName": "我的房间",
"cover": "https://cdn.aholo.ai/path/to/cover.jpg",
"accessLevel": 0,
"scene": "space",
"resources": [
{
"name": "angle1.jpg",
"type": 0,
"url": "https://cdn.aholo.ai/path/to/img1.jpg",
"meta": { "width": 1920, "height": 1080 }
},
{
"name": "angle2.jpg",
"type": 0,
"url": "https://cdn.aholo.ai/path/to/img2.jpg",
"meta": { "width": 1920, "height": 1080 }
}
]
}Body 参数说明
| 参数 | 必须 | 类型 | 说明 |
|---|---|---|---|
projectName | ✅ | string | 项目名称 |
cover | ❌ | string | 封面图 URL |
accessLevel | ❌ | int | 访问级别:0 公开,1 私有 |
scene | ✅ | string | 场景类型:model 物体,space 室内 |
resources | ✅ | array | 多角度照片列表 |
建议
3D 重建建议上传 5-20 张不同角度的照片,覆盖完整场景。
Example
bash
curl -X POST 'https://openapi.kujiale.com/v2/aholo/project/create-3d-recon?appuid=user123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"projectName": "我的房间",
"scene": "space",
"resources": [
{"name": "angle1.jpg", "type": 0, "url": "...", "meta": {"width": 1920, "height": 1080}},
{"name": "angle2.jpg", "type": 0, "url": "...", "meta": {"width": 1920, "height": 1080}}
]
}'python
import requests
payload = {
"projectName": "我的房间",
"scene": "space",
"resources": [
{"name": "angle1.jpg", "type": 0, "url": url1, "meta": {"width": 1920, "height": 1080}},
{"name": "angle2.jpg", "type": 0, "url": url2, "meta": {"width": 1920, "height": 1080}}
]
}
response = requests.post(
"https://openapi.kujiale.com/v2/aholo/project/create-3d-recon",
params={"appuid": "user123"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json=payload
)Response
json
{
"c": "0",
"d": "PROJECT_ID"
}场景类型
| Scene | 说明 | 建议 |
|---|---|---|
model | 单个物体 | 拍摄物体各角度 |
space | 室内空间 | 拍摄房间全景 |
下一步
轮询 获取项目信息 查询状态。