资讯 社区 文档 控制台
技术能力
语音技术
文字识别
人脸与人体
图像技术
语言与知识
视频技术
AR与VR
数据智能
场景方案
部署方案
行业应用
智能教育
智能医疗
智能零售
智能工业
企业服务
智能政务
信息服务
智能园区

实时跟踪

Targets

此类描述targets json 字段

Fields
targets ARKit
ARKit 模型节点属性配置
targets pitch_min
使用空间坐标系放置的情况下,模型的最小俯角
targets pitch_max
使用空间坐标系放置的情况下,模型的最大俯角
targets distance
模型在空间中的深度信息
targets id
slam 模型唯一标识符
targets pitch_angle
使用空间坐标系放置的情况下,模型的俯仰角
targets place_type
模型放置坐标系类型
targets position
使用屏幕坐标系放置模型时的屏幕坐标位置
targets slam_model
slam 模型节点属性配置
targets path
paddle模型文件所在的路径
targets type
paddle模型的类型
targets width
传入paddle模型的图像的宽
targets height
传入paddle模型的图像的高
targets fg_thres
图像分割的前景阈值
targets bg_thres
图像分割的后景阈值
targets node_name
图像分割后的图像名称
targets r_mean,g_mean,b_mean,r_scale,g_scale,b_scale
算法针对不同场景对paddle模型进行调优的参数
targets path
paddle模型文件所在的路径(旧版本配置,百度APP10.7.5后不推荐使用)
Public methods
targets PaddleDemo()
paddle模型相关参数配置示例

PaddleDemo()

paddle模型相关参数配置。如项目中未使用手势识别能力,不要配置该选项,否则会带来不必要的性能损耗。
在一个paddle_config中,type不能重复。 sample: "paddle_config":[ { "path":"models/paddle/gesture.paddle", "type":"1", "width":160, "height":160 }, { "path":"models/paddle/bgs.paddle", "type":"2", "width":128, "height":128, "fg_thres":0.7, "bg_thres":0.3, "node_name":"face", "r_mean":0, "g_mean":0, "b_mean":0, "r_scale":1, "g_scale":1, "b_scale":1 } ]

path

version 155

paddle模型文件所在的路径。

   sample:
    "path":"models/paddle/gesture.paddle"
    

type

version 155

paddle模型的类型。1:手势识别;2:图像分割

sample:
"type":"1"

width

version 155

传入paddle模型的图像的宽,整数

sample:
"width":128

height

version 155

传入paddle模型的图像的高,整数

sample:
"height":128

fg_thres

version 155

type为"2"的情况下有效,图像分割的前景阈值

sample:
"fg_thres":0.7

bg_thres

version 155

type为"2"的情况下有效,图像分割的后景阈值

sample:
"bg_thres":0.3

node_name

version 155

type为"2"的情况下有效。图像分割后的图像,绑定到simple_scene.json中plane节点的名称

sample:
"node_name":"face"

r_mean,g_mean,b_mean,r_scale,g_scale,b_scale

version 155

算法针对不同场景对paddle模型进行调优的参数,r_meam、g_mean、b_mean范围[0 - 255],r_scale、g_scale、b_scale范围[0 - 1.0]

sample:
    "r_mean":0,
    "g_mean":0,
    "b_mean":0,
    "r_scale":1,
    "g_scale":1,
    "b_scale":1
    

Paddle model

paddle 模型相关参数配置(旧版本配置,百度APP10.7.5后不推荐使用),如项目中未使用手势识别能力,不要配置该选项,否则会带来不必要的性能损耗

sample:
"paddle_model":{
		"path":"models/paddle/gesture.paddle"
		}
		

path

version 120

paddle模型文件所在的路径,仅仅手势的paddle可用

sample:
"path":"models/paddle/gesture.paddle"
		  

ARKit

version 25

ARKit 模型节点属性配置

sample:
"ARKit":{
"pitch_min": "-60.0",
"pitch_max": "-10.0"
 }

pitch_min

version 25

使用空间坐标系放置的情况下,模型的最小俯角,-90度——0度,手机正面平行地面放置,俯角为-90度

sample:
"ARKit":{
"pitch_min": "-60.0",
"pitch_max": "-10.0"
 }

pitch_max

version 25

使用空间坐标系放置的情况下,模型的最大俯角,0度——90度,手机背面平行地面放置,俯角为90度

sample:
"ARKit":{
"pitch_min": "-60.0",
"pitch_max": "-10.0"
 }

distance

version 23

模型在空间中的深度信息

sample:
"slam_model":
{
   "id":"slam_test",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}

id

version 23

slam 模型唯一标识符,不可重复

sample:
"slam_model":
{
   "id":"slam_test",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}

pitch_angle

version 23

使用空间坐标系放置的情况下,模型的俯仰角,0-90度,模型在上方,-90-0度,模型在下方

sample:
"slam_model":
{
   "id":"slam_test",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}

place_type

version 23

模型放置坐标系类型,1为空间坐标系,0为屏幕坐标系。使用1的情况下,position 配置不起作用,使用0的情况下,pitch_angle配置不起作用

sample:
"slam_model":
{
   "id":"bear",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}

position

version 23

使用屏幕坐标系放置模型时的屏幕坐标位置。x为横坐标,取值为0-1;y 为纵坐标,取值为0-1

sample:
"slam_model":
{
   "id":"slam_test",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}

slam_model

version 23

slam模型节点属性配置

sample:
"slam_model":
{
   "id":"slam_test",
   "place_type":0,
   "position":"0.5,0.5",
   "distance":1000,
   "pitch_angle":-90
}version
上一篇
滤镜
下一篇
相机控制