当前位置: 首页 > news >正文

齐齐哈尔城市建设档案馆网站全国村级网站建设

齐齐哈尔城市建设档案馆网站,全国村级网站建设,o2o平台有哪些行业,wordpress 注册不了编辑#xff1a;OAK中国 首发#xff1a;oakchina.cn 喜欢的话#xff0c;请多多#x1f44d;⭐️✍ 内容可能会不定期更新#xff0c;官网内容都是最新的#xff0c;请查看首发地址链接。 ▌前言 Hello#xff0c;大家好#xff0c;这里是OAK中国#xff0c;我是助手… 编辑OAK中国 首发oakchina.cn 喜欢的话请多多⭐️✍ 内容可能会不定期更新官网内容都是最新的请查看首发地址链接。 ▌前言 Hello大家好这里是OAK中国我是助手君。 最近朋友们有几条共性的问题比如 为啥检测框在深度图位置不对啊能不能将本地视频流作为输入啊能不能加上测距啊 这篇博客总结了所有这些问题的参考代码欢迎三连食用~ 使用 oak 的 LEFTRIGHT 和 RGB 相机和视频流VIDEO进行 YOLO 检测 ▌RGB 使用 RGB 相机作为输入源 ... camRgb pipeline.create(dai.node.ColorCamera) detectionNetwork pipeline.create(dai.node.YoloDetectionNetwork) ... camRgb.setPreviewSize(W, H) ... camRgb.preview.link(detectionNetwork.input) ...详见yolov6-rgb.py ▌RGB DEPTH 使用 RGB 相机作为输入源并附加深度信息 ... camRgb pipeline.create(dai.node.ColorCamera) spatialDetectionNetwork pipeline.create(dai.node.YoloSpatialDetectionNetwork) monoLeft pipeline.create(dai.node.MonoCamera) monoRight pipeline.create(dai.node.MonoCamera) stereo pipeline.create(dai.node.StereoDepth) ... camRgb.setPreviewSize(W, H) ... monoLeft.setBoardSocket(dai.CameraBoardSocket.LEFT) monoRight.setBoardSocket(dai.CameraBoardSocket.RIGHT) ... # 将深度图与 RGB 相机的视角对齐在其上进行推理 stereo.setDepthAlign(dai.CameraBoardSocket.RGB) stereo.setOutputSize(monoLeft.getResolutionWidth(), monoLeft.getResolutionHeight()) ... monoLeft.out.link(stereo.left) monoRight.out.link(stereo.right)camRgb.preview.link(spatialDetectionNetwork.input) stereo.depth.link(spatialDetectionNetwork.inputDepth) ...详见yolov6-rgb-spatial.py ▌RIGHT 使用 RIGHT 相机作为输入源 ... monoRight pipeline.create(dai.node.MonoCamera) detectionNetwork pipeline.create(dai.node.YoloDetectionNetwork) imageManip pipeline.create(dai.node.ImageManip) ... monoRight.setBoardSocket(dai.CameraBoardSocket.RIGHT) ... # NN 模型需要 BGR 输入。默认情况下 ImageManip 输出类型与输入相同在本例中为灰色 imageManip.initialConfig.setFrameType(dai.ImgFrame.Type.BGR888p) imageManip.initialConfig.setResize(W, H) imageManip.setMaxOutputFrameSize(W * H * 3) ... monoRight.out.link(imageManip.inputImage) imageManip.out.link(detectionNetwork.input) ...详见yolov6-right.py ▌RIGHT DEPTH 使用 RIGHT 相机作为输入源并附加深度信息 ... monoLeft pipeline.create(dai.node.MonoCamera) monoRight pipeline.create(dai.node.MonoCamera) spatialDetectionNetwork pipeline.create(dai.node.YoloSpatialDetectionNetwork) stereo pipeline.create(dai.node.StereoDepth) imageManip pipeline.create(dai.node.ImageManip) ... monoLeft.setBoardSocket(dai.CameraBoardSocket.LEFT) monoRight.setBoardSocket(dai.CameraBoardSocket.RIGHT) ... # NN 模型需要 BGR 输入。默认情况下 ImageManip 输出类型与输入相同在本例中为灰色 imageManip.initialConfig.setFrameType(dai.ImgFrame.Type.BGR888p) imageManip.initialConfig.setResize(W, H) imageManip.setMaxOutputFrameSize(W * H * 3) ... # 将深度图与 RIGHT 相机的视角对齐在其上进行推理 stereo.setDepthAlign(dai.RawStereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_RIGHT ) stereo.setOutputSize(monoLeft.getResolutionWidth(), monoLeft.getResolutionHeight()) ... monoLeft.out.link(stereo.left) monoRight.out.link(stereo.right)imageManip.out.link(spatialDetectionNetwork.input)stereo.rectifiedRight.link(imageManip.inputImage) stereo.depth.link(spatialDetectionNetwork.inputDepth) ...详见yolov6-right-spatial.py ▌LEFT 使用 LEFT 相机作为输入源 ... monoLeft pipeline.create(dai.node.MonoCamera) detectionNetwork pipeline.create(dai.node.YoloDetectionNetwork) imageManip pipeline.create(dai.node.ImageManip) ... monoLeft.setBoardSocket(dai.CameraBoardSocket.LEFT) ... # NN 模型需要 BGR 输入。默认情况下 ImageManip 输出类型与输入相同在本例中为灰色 imageManip.initialConfig.setFrameType(dai.ImgFrame.Type.BGR888p) imageManip.initialConfig.setResize(W, H) imageManip.setMaxOutputFrameSize(W * H * 3) ... monoLeft.out.link(imageManip.inputImage) imageManip.out.link(detectionNetwork.input) ...详见yolov6-left.py ▌LEFT DEPTH 使用 LEFT 相机作为输入源并附加深度信息 ... monoLeft pipeline.create(dai.node.MonoCamera) monoRight pipeline.create(dai.node.MonoCamera) spatialDetectionNetwork pipeline.create(dai.node.YoloSpatialDetectionNetwork) stereo pipeline.create(dai.node.StereoDepth) imageManip pipeline.create(dai.node.ImageManip) ... monoLeft.setBoardSocket(dai.CameraBoardSocket.LEFT) monoRight.setBoardSocket(dai.CameraBoardSocket.RIGHT) ... # NN 模型需要 BGR 输入。默认情况下 ImageManip 输出类型与输入相同在本例中为灰色 imageManip.initialConfig.setFrameType(dai.ImgFrame.Type.BGR888p) imageManip.initialConfig.setResize(W, H) imageManip.setMaxOutputFrameSize(W * H * 3) ... # 将深度图与 LEFT 相机的视角对齐在其上进行推理 stereo.setDepthAlign(dai.RawStereoDepthConfig.AlgorithmControl.DepthAlign.RECTIFIED_LEFT ) stereo.setOutputSize(monoLeft.getResolutionWidth(), monoLeft.getResolutionHeight()) ... monoLeft.out.link(stereo.left) monoRight.out.link(stereo.right) ​ imageManip.out.link(spatialDetectionNetwork.input) ​ stereo.rectifiedLeft.link(imageManip.inputImage) stereo.depth.link(spatialDetectionNetwork.inputDepth) ...详见yolov6-left-spatial.py ▌VIDEO 使用 VIDEO 作为输入源 ... xinFrame pipeline.create(dai.node.XLinkIn) detectionNetwork pipeline.create(dai.node.YoloDetectionNetwork) ... xinFrame.setStreamName(inFrame) ... xinFrame.out.link(detectionNetwork.input) ... # 输入队列将用于将视频帧发送到设备。 inFrameQueue device.getInputQueue(nameinFrame) ... img dai.ImgFrame() img.setData(to_planar(frame, (W, H))) img.setTimestamp(monotonic()) img.setWidth(W) img.setHeight(H) inFrameQueue.send(img) ...详见yolov6-video.py ▌参考资料 https://docs.oakchina.cn/en/latest/ https://www.oakchina.cn/selection-guide/ OAK中国 | OpenCV AI Kit在中国区的官方代理商和技术服务商 | 追踪AI技术和产品新动态 戳「关注」获取最新资讯↗↗
http://www.dnsts.com.cn/news/182830.html

相关文章:

  • 国外html5模板网站wordpress都是不安全模块
  • 什么是电子商务网站推广最新猪价
  • 宿迁网站网站建设网站三大要素是什么意思
  • 服务器上怎么做网站网站平台开发要注意什么问题
  • 建设银行网站为什么登不上网页设计素材表格
  • 互动网站建设angularjs 做电商网站
  • 做简历的网站viso网站设计的目的
  • dede 网站建设模板长沙公众号开发
  • 餐馆网站怎么做自己创建网站怎么赚钱
  • 网站栏目怎么做301定向做网站图片多少钱
  • 浙江网站制作公司wordpress如何换图片不显示
  • 大型网站 建设意义wordpress的栏目页关键词怎么设置
  • wordpress云建站系统网站开发毕业设计文档
  • 泉州网站排名优化加大整合力度网站集约建设
  • 网站与网页设计教程企业网站建设技术
  • 免费自己制作网站方法c语言开发工具
  • 门户网站推广优势cad精品课网站建设
  • php网站开发费用成全高清免费观看mv
  • 推荐个好看的网站小企业网站建设系统哪个好
  • 苏州网站建设 凡仕臣网络seo网站快排
  • 农产品网站建设投标书好看的网站设计网站
  • 做期权关注哪个网站新闻软文怎么写
  • 门户网站盈利模式wordpress主动提交
  • 营销型网站公司教育网站模板
  • 网站怎么提高权重最好的产品网站建设
  • 东莞好的网站建设效果江门网站制作培训
  • 做性视频网站有哪些设计接单网站大全
  • 电商网站建设的意义wordpress it
  • 常德营销型网站建设鱼台网站建设
  • 网页制作与网站建设文档廊坊市固安县建设局网站