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.

     

  • 相关阅读:
    【PAT】B1041 考试座位号(15 分)
    【PAT】B1042 字符统计(20 分)
    【PAT】B1044 火星数字(20 分)
    LeetCode 3Sum Closest
    一定要做的事(备忘)
    LeetCode Integer to Roman
    Container With Most Water
    LeetCode ZigZag Conversion
    LeetCode 5 最长回文子串 Manacher线性算法
    LeetCode Longest Substring Without Repeating Characters
  • 原文地址:https://www.cnblogs.com/ACPIE-liusiqi/p/10517559.html
Copyright © 2011-2022 走看看