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.

     

  • 相关阅读:
    URL编码及解码
    Javascript解析URL
    为什么在JavaScript中0.1+0.2不等于0.3?
    void 0 与 undefined
    Windows7、Windows10下把Git Bash Here 添加到右键菜单(ContextMenu)
    [菜鸟]C++创建类对象时(无参)后不加括号与加括号的区别
    git常用命令
    git 出错及解决
    Vim升华之树形目录插件NERDTree安装图解
    rails.vim环境安装(ubuntu)
  • 原文地址:https://www.cnblogs.com/ACPIE-liusiqi/p/10517559.html
Copyright © 2011-2022 走看看