• 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.

     

  • 相关阅读:
    sping AOP核心思想及实现原理
    springmvc RequestMappingHandlerMapping初始化详解
    springmvc RequestMappingHandlerAdapter初始化详解
    POJ 3169 Layout
    POJ 3264
    POJ 3461 Oulipo
    二分图判定 POJ-2492
    最小生成树 prim算法
    初级BFS
    哈夫曼建树
  • 原文地址:https://www.cnblogs.com/ACPIE-liusiqi/p/10517559.html
Copyright © 2020-2023  润新知