浏览代码

macOS Python for Unity

/pyrception-integration
leopoldo-zugasti 3 年前
当前提交
31abd228
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 2
      com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs
  2. 11
      com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/preview.py

2
com.unity.perception/Editor/Pyrception/PyrceptionInstaller.cs


ExitCode = cmd.ExitCode;
if (ExitCode != 0)
{
UnityEngine.Debug.LogError($"Error - {ExitCode} - Failed to execute: {command} - {/*cmd.StandardError.ReadToEnd()*/output}");
UnityEngine.Debug.LogError($"Error - {ExitCode} - Failed to execute: {command} - {cmd.StandardError.ReadToEnd()}");
}
cmd.Close();

11
com.unity.perception/Editor/Pyrception/pyrception-utils/pyrception_utils/preview.py


image_draw.text(
(box[0], box[1]), class_name, font=font, fill=colors[class_name]
)
st.subheader(header)
st.markdown(description)
st.image(image, use_column_width=True)
#st.subheader(header)
#st.markdown(description)
#st.image(image, use_column_width=True)
return image
def draw_image_with_semantic_segmentation(
image: Image,

image = draw_image_with_semantic_segmentation(
image, dataset.metadata.image_size[0], dataset.metadata.image_size[1], segmentation, "Semantic Segmentation Preview", ""
)
draw_image_with_boxes(
image = draw_image_with_boxes(
st.image(image, use_column_width=True)
def preview_app(args):

正在加载...
取消
保存