Giter Site home page Giter Site logo

play-with-opencv's Introduction

Play with OpenCV

Draft

What OpenCV can do?

  • Image Processing: Modify image
  • Video Analysis ?
  • Object Detection: [perception] Detect object (for one moment: image)
  • Object Tracking: [perception] Track object (for a series of moment: video)

What is used in our project?

  • Modify image
  • Detect object

What means Modify image?

  • 修改的范围

    • 修改粒度
      • 像素级任意图形:mask
        • 怎么找到这个任意图形
          • 对图像里的像素进行扫描,找到想要的像素集
        • 有人找到,交给你
          • sam model 可以给你
          • open cv 的 object detect 可以给你
      • 规则图形
        • rectangle
  • 修改像素值

    • 修改粒度
      • 整个范围,用一个颜色。
      • 每个像素,用一个颜色。
  • 维度

  • row range

  • col range

图像:

  • 2 维排列的像素,行列数 width * height。
  • 每个像素,对应一个像素值。通常是色值。

Mask:

  • mask 代表了,在一张固定尺寸的位图上的,一份像素级范围和颜色信息。
  • mask 在 open cv 里,以 cv.Mat 的形式存在

衍生规律

  • 只要范围粒度或者颜色粒度,有一个是像素级的,都必须用 mask 定义。

cv.Mat

  • 是一个 n 维数组。
  • 其元素为统一定义为一种类型。可选类型,最多为 4 个通道,即有 4 个数值组成的元素值,每个数值可以定义为 unsigned/signed * 8/16/32/64 bit 的数值。like CV_16SC3 or 16-bit signed 3-channel array。
  • 当它是一个 2 维数组,且元素为色值时,它就描述了一张图片。

cv.Scalar 是什么概念

  • 1~4 个数值,组成的元组
  • 用于描述元素值

roi 在 cv 里是什么概念?

  • 兴趣范围?

play-with-opencv's People

Contributors

amyfoxfn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.