DrawIO常用模版

其他 - 编辑绘图

泳道图

多级审批流程

<mxGraphModel dx="1298" dy="744" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1100" pageHeight="850" background="#ffffff" math="0" shadow="0">
  <root>
    <mxCell id="0" />
    <mxCell id="1" parent="0" />
    <mxCell id="77e6c97f196da883-1" value="&lt;font style=&quot;font-size: 14px&quot;&gt;2023年度职级评审流程图&lt;/font&gt;" style="swimlane;html=1;childLayout=stackLayout;startSize=20;rounded=0;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="1" vertex="1">
      <mxGeometry x="70" y="38" width="910" height="272" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-3" value="直接主管" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="40" value="&lt;span style=&quot;font-size: 12px;&quot;&gt;员工晋升结果同步主管,视情况安排与员工沟通&lt;/span&gt;" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=12;align=center;" parent="77e6c97f196da883-3" vertex="1">
      <mxGeometry x="20" y="172" width="90" height="58" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-11" value="提报直接下属" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-3" vertex="1">
      <mxGeometry x="20" y="30" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="27" value="填写提报理由&lt;br&gt;收集评估反馈" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-3" vertex="1">
      <mxGeometry x="20" y="102" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-4" value="隔级主管" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="130" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-12" value="审核隔级下属" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-4" vertex="1">
      <mxGeometry x="20" y="30" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-39" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=none;startArrow=none;startFill=0;startSize=5;endArrow=classicThin;endFill=1;endSize=5;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontFamily=Verdana;fontSize=8" parent="77e6c97f196da883-1" edge="1">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="670" y="690" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="77e6c97f196da883-40" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=none;startArrow=none;startFill=0;startSize=5;endArrow=classicThin;endFill=1;endSize=5;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontFamily=Verdana;fontSize=8" parent="77e6c97f196da883-1" edge="1">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="830" y="690" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="107ba76e4e335f99-5" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=none;startArrow=none;startFill=0;startSize=5;endArrow=classicThin;endFill=1;endSize=5;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontFamily=Verdana;fontSize=8" parent="77e6c97f196da883-1" edge="1">
      <mxGeometry relative="1" as="geometry">
        <Array as="points">
          <mxPoint x="80" y="650" />
          <mxPoint x="490" y="650" />
          <mxPoint x="490" y="610" />
        </Array>
        <mxPoint x="510" y="610" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="107ba76e4e335f99-6" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=none;startArrow=none;startFill=0;startSize=5;endArrow=classicThin;endFill=1;endSize=5;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontFamily=Verdana;fontSize=8" parent="77e6c97f196da883-1" edge="1">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="510" y="610" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="77e6c97f196da883-2" value="BG运营管理员" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="260" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-8" value="发布提名结果" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-2" vertex="1">
      <mxGeometry x="20" y="30" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-5" value="HRBP" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="390" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-36" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;labelBackgroundColor=none;startArrow=none;startFill=0;startSize=5;endArrow=classicThin;endFill=1;endSize=5;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontFamily=Verdana;fontSize=8" parent="77e6c97f196da883-5" edge="1">
      <mxGeometry relative="1" as="geometry">
        <mxPoint x="80" y="640" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="29" value="安排晋升讨论、邀请参会人" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-5" vertex="1">
      <mxGeometry x="20" y="102" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-6" value="晋升讨论会参会人" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="520" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="30" value="&lt;span style=&quot;font-size: 11px&quot;&gt;参会人参与讨论、表态&lt;/span&gt;" style="rounded=1;whiteSpace=wrap;html=1;shadow=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=8;align=center;" parent="77e6c97f196da883-6" vertex="1">
      <mxGeometry x="20" y="102" width="90" height="40" as="geometry" />
    </mxCell>
    <mxCell id="77e6c97f196da883-7" value="晋升讨论会负责人" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="650" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="17" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="77e6c97f196da883-1" source="77e6c97f196da883-11" target="77e6c97f196da883-12" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="490" y="370" as="sourcePoint" />
        <mxPoint x="540" y="320" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="12" value="CEO/CEO-1负责人" style="swimlane;html=1;startSize=20;" parent="77e6c97f196da883-1" vertex="1">
      <mxGeometry x="780" y="20" width="130" height="252" as="geometry" />
    </mxCell>
    <mxCell id="37" value="&lt;span style=&quot;font-family: &amp;#34;verdana&amp;#34; ; font-size: 11px&quot;&gt;讨论会负责人形成决策建议,并按汇报线逐级向上校准提交&lt;/span&gt;" style="rounded=1;whiteSpace=wrap;html=1;" parent="12" vertex="1">
      <mxGeometry x="-85" y="103" width="170" height="40" as="geometry" />
    </mxCell>
    <mxCell id="42" value="" style="endArrow=classic;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="77e6c97f196da883-1" source="37" target="40" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="845" y="254" as="sourcePoint" />
        <mxPoint x="780" y="310.72" as="targetPoint" />
        <Array as="points">
          <mxPoint x="780" y="192" />
          <mxPoint x="780" y="221" />
        </Array>
      </mxGeometry>
    </mxCell>
    <mxCell id="43" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="77e6c97f196da883-1" source="77e6c97f196da883-12" target="77e6c97f196da883-8" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="120" y="80" as="sourcePoint" />
        <mxPoint x="160" y="80" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="45" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" parent="77e6c97f196da883-1" source="27" target="29" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="250" y="80" as="sourcePoint" />
        <mxPoint x="290" y="80" as="targetPoint" />
        <Array as="points" />
      </mxGeometry>
    </mxCell>
    <mxCell id="31" value="" style="endArrow=classic;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="77e6c97f196da883-1" source="29" target="30" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="500" y="170" as="sourcePoint" />
        <mxPoint x="530" y="169.66" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="34" value="" style="endArrow=classic;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="77e6c97f196da883-1" source="30" target="37" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="630" y="169.76" as="sourcePoint" />
        <mxPoint x="670" y="169.76" as="targetPoint" />
      </mxGeometry>
    </mxCell>
    <mxCell id="46" value="" style="endArrow=classic;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="77e6c97f196da883-1" source="77e6c97f196da883-8" target="27" edge="1">
      <mxGeometry width="50" height="50" relative="1" as="geometry">
        <mxPoint x="120" y="152" as="sourcePoint" />
        <mxPoint x="420" y="152" as="targetPoint" />
        <Array as="points">
          <mxPoint x="325" y="102" />
          <mxPoint x="65" y="102" />
        </Array>
      </mxGeometry>
    </mxCell>
  </root>
</mxGraphModel>
  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在ROS中使用OpenCV进行模板匹配,可以通过以下步骤实现: 1. 安装OpenCV库:在ROS中使用OpenCV,需要先安装OpenCV库。可以使用以下命令在终端中安装: ``` sudo apt-get install ros-<distro>-opencv* ``` 其中,\<distro\>代表ROS版本,比如ROS Kinetic、ROS Melodic等。 2. 编写代码:创建一个ROS节点,并在其中使用OpenCV库进行模板匹配。可以使用以下代码作为参考: ```python import rospy import cv2 # 订阅图像话题 def callback(img_msg): try: # 将ROS图像消息转换为OpenCV图像 cv_image = cv2.imgmsg_to_cv2(img_msg, "bgr8") # 读取模板 template = cv2.imread("template.png", 0) # 进行模板匹配 res = cv2.matchTemplate(cv_image, template, cv2.TM_CCOEFF_NORMED) # 获取匹配结果 min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(res) # 在原图中绘制匹配结果 cv2.rectangle(cv_image, max_loc, (max_loc[0]+template.shape[1], max_loc[1]+template.shape[0]), (0, 0, 255), 2) # 显示匹配结果 cv2.imshow("Result", cv_image) cv2.waitKey(1) except CvBridgeError as e: print(e) # 创建ROS节点 rospy.init_node("template_matching") # 创建图像订阅者 image_sub = rospy.Subscriber("/camera/image_raw", Image, callback) # 进入主循环 rospy.spin() ``` 在上述代码中,首先通过订阅ROS图像话题获取图像,然后读取模板,并使用`cv2.matchTemplate()`函数进行模板匹配。最后,通过绘制矩形框的方式在原图中显示匹配结果。 3. 运行代码:在终端中运行ROS节点,启动相机节点并发布图像话题。可以使用以下命令启动相机节点: ``` roslaunch <camera_package> <camera.launch> ``` 其中,\<camera_package\>代表相机驱动包的名称,比如usb_cam、raspicam等。 然后,使用以下命令运行ROS节点: ``` rosrun <package_name> template_matching.py ``` 其中,\<package_name\>代表ROS包的名称,可以根据自己的需要进行修改。 以上就是在ROS中使用OpenCV进行模板匹配的基本步骤。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值