Git Product home page Git Product logo

object_segmentation's Introduction

Object Segmentation

Object segmentation using HSV Color space

HSV color space segmentation is a technique used in image processing and computer vision to separate objects or regions within an image based on their color. The HSV color space represents colors using three components: Hue, Saturation, and Value.

  • Hue: This component represents the color type (e.g., red, green, blue, etc.) and is typically measured in degrees ranging from 0° to 360°, where each degree corresponds to a specific color.
  • Saturation: This component measures the intensity or purity of the color, with values ranging from 0 (completely desaturated, grayscale) to 1 (fully saturated, pure color).
  • Value: This component represents the brightness of the color, with values ranging from 0 (black) to 1 (maximum brightness).

HSV Color Space Segmentation

In this exercise, the objective is to develop an algorithm that can accurately segment an object, specifically an apple, from the rest of the frame using color filters. To achieve this, I first defined an objective function that represents appropriate segmentation in out-of-sample frames. Next, I optimized the objective function to ensure that it performs well on these out-of-sample frames. The algorithm relies on the color filtering technique for segmentation and not use any deep learning models or pre-built computer vision functions, but rather a simple but effective method using HSV color space. The bounding boxes of the object in the first three frames will be provided to guide the development of the algorithm, while the remaining frames will be considered out-of-sample for testing purposes. Please note that I could not provide dataset but will do as soon as I can

Preparation

Library

  • OpenCV 2
  • numpy
  • pandas

Execute following commands to install libraries:

pip install python-magic
sudo apt-get install libmagic1

Results

object_segmentation's People

Contributors

burak0006 avatar

Stargazers

 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.