zoukankan      html  css  js  c++  java
  • opencv函数解析

    1.rectangle(...)
    rectangle(img, pt1, pt2, color[, thickness[, lineType[, shift]]]) -> img
    . @brief Draws a simple, thick, or filled up-right rectangle.
    .
    . The function cv::rectangle draws a rectangle outline or a filled rectangle whose two opposite corners
    . are pt1 and pt2.
    .
    . @param img Image.
    . @param pt1 Vertex of the rectangle.
    . @param pt2 Vertex of the rectangle opposite to pt1 .
    . @param color Rectangle color or brightness (grayscale image).
    . @param thickness Thickness of lines that make up the rectangle. Negative values, like #FILLED,
    . mean that the function has to draw a filled rectangle.
    . @param lineType Type of the line. See #LineTypes
    . @param shift Number of fractional bits in the point coordinates.

    2.putText(...)

    putText(img, text, org, fontFace, fontScale, color[, thickness[, lineType[, bottomLeftOrigin]]]) -> img
    . @brief Draws a text string.
    .
    . The function cv::putText renders the specified text string in the image. Symbols that cannot be rendered
    . using the specified font are replaced by question marks. See #getTextSize for a text rendering code
    . example.
    .
    . @param img Image.
    . @param text Text string to be drawn.
    . @param org Bottom-left corner of the text string in the image.
    . @param fontFace Font type, see #HersheyFonts.
    . @param fontScale Font scale factor that is multiplied by the font-specific base size.
    . @param color Text color.
    . @param thickness Thickness of the lines used to draw a text.
    . @param lineType Line type. See #LineTypes
    . @param bottomLeftOrigin When true, the image data origin is at the bottom-left corner. Otherwise,
    . it is at the top-left corner.

    3.

     

  • 相关阅读:
    Testlink1.9.17使用方法( 第三章 初始配置[配置用户、产品] )
    Testlink1.9.17使用方法(第二章 登录&汉化设置)
    Testlink1.9.17使用方法(第一章 前言)
    TestLink-Windows安装教程
    Linux-Redmine安装方法
    怎么使用Fiddler进行抓包
    配置ADB到Windows环境变量
    Android获取定位权限,获取设备所在的经纬度
    Paint.FontMetrics
    Bitmap上下合成图片
  • 原文地址:https://www.cnblogs.com/ACPIE-liusiqi/p/10517559.html
Copyright © 2011-2022 走看看