opencv颜色分割
Back in the September of 2019, one of the first few tasks I took up after starting my higher studies, was to identify co-ordinates for some underwater buoys which led me to huge new domain of Computer Sciences namely Image Processing.
早在2019年9月,我就开始了高等学业后承担的头几个任务之一是为某些水下浮标确定坐标,这使我进入了计算机科学的新领域-即图像处理。
One of the most prominent names in this trade is OpenCV, a python library written for the sole purpose of taking up Computer Vision challenges.
在这个行业中最著名的名称之一是OpenCV,这是一个专门为应对计算机视觉挑战而编写的python库。
Of the several tasks like filtering, transforming, resizing and what not, segmentation is a rather important task that can be done using OpenCV which is a step towards advanced concepts like classification and detection. Segmentation is the task of dividing different objects in sections corresponding to either a same object type or color.
在诸如过滤,变换,调整大小之类的若干任务中,分段是一项相当重要的任务,可以使用OpenCV完成,这是朝着高级概念(如分类和检测)迈出的一步。 分割是将不同的对象划分为与相同对象类型或颜色相对应的部分的任务。
There are majorly 3 different types of segmentation in computer vision:-
计算机视觉中主要有3种不同的细分类型:
- Color Segmentation or Thresholding Segmentation 颜色分割或阈值分割
- Semantic Segmentation 语义分割
- Edge Detection 边缘检测
As suggested in the title I am going to be talking about color segmentation particularly using OpenCV. You might ask why use OpenCV a 21 year old library when we have tools like Caffe and Keras at our disposal.
如标题中所建议,我将谈论颜色分割,尤其是使用OpenCV颜色分割。 您可能会问,当我们拥有像Caffe和Keras这样的工具时,为什么要使用拥有21年历史的OpenCV库。
OpenCV however lagging in terms of accuracy is a much faster method as compared to the modern SOTA DL methods like Caffe and Keras.
但是,与Caffe和Keras等现代SOTA DL方法相比,OpenCV在准确性方面的落后是一个快得多的方法。
![Image for post](https://miro.medium.com/max/9999/1*1jX3JpgPFi4yv7DMPuvmYQ.jpeg)
This celerity of OpenCV doesn’t stop here, one of the most famous neural network framework also somewhat lags in terms of object detection namely Object detection using YOLOv3