René's URL Explorer Experiment


Title: Image Segmentation Using Color Spaces in OpenCV + Python – Real Python

Open Graph Title: Image Segmentation Using Color Spaces in OpenCV + Python – Real Python

Description: In this introductory tutorial, you'll learn how to simply segment an object from an image based on color in Python using OpenCV. A popular computer vision library written in C/C++ with bindings for Python, OpenCV provides easy ways of manipulating color spaces.

Open Graph Description: In this introductory tutorial, you'll learn how to simply segment an object from an image based on color in Python using OpenCV. A popular computer vision library written in C/C++ with bindings for Python, OpenCV provides easy ways of manipulating color spaces.

Mail addresses
?subject=Python article for you&body=Image Segmentation Using Color Spaces in OpenCV + Python on Real Python https://realpython.com/python-opencv-color-spaces/

Opengraph URL: https://realpython.com/python-opencv-color-spaces/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Image Segmentation Using Color Spaces in OpenCV + Python",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/Simple-image-segmentation-using-OpenCV-color-spaces_Watermark.b9993eceabc0.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/python-opencv-color-spaces/",
    "lastReviewed": "2020-11-07",
    "author": {
      "@type": "Person",
      "name": "Rebecca Stone",
      "image": "https://realpython.com/cdn-cgi/image/width=245,height=245,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/avatar_2019.a43824888e35.png",
      "url": "https://realpython.com/team/rstone/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Adriana Cutenco",
        "image": "https://realpython.com/cdn-cgi/image/width=900,height=900,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/acutenco.676e4197c133.jpg",
        "url": "https://realpython.com/team/acutenco/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "David Amos",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/me-small.f5f49f1c48e1.jpg",
        "url": "https://realpython.com/team/damos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Joanna Jablonski",
        "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/jjablonksi-avatar.e37c4f83308e.jpg",
        "url": "https://realpython.com/team/jjablonski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2018-09-26T14:00:00+00:00",
  "dateModified": "2020-11-07T09:11:18.591453+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Rebecca Stone",
    "image": "https://realpython.com/cdn-cgi/image/width=245,height=245,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/avatar_2019.a43824888e35.png",
    "url": "https://realpython.com/team/rstone/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "In this introductory tutorial, you'll learn how to simply segment an object from an image based on color in Python using OpenCV. A popular computer vision library written in C/C++ with bindings for Python, OpenCV provides easy ways of manipulating color spaces."
}

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/Simple-image-segmentation-using-OpenCV-color-spaces_Watermark.b9993eceabc0.jpg
og:imagehttps://files.realpython.com/media/Simple-image-segmentation-using-OpenCV-color-spaces_Watermark.b9993eceabc0.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/python-opencv-color-spaces/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/python-opencv-color-spaces/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpython-opencv-color-spaces%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/python-opencv-color-spaces/#toc
What Are Color Spaces?https://realpython.com/python-opencv-color-spaces/#what-are-color-spaces
Simple Segmentation Using Color Spaceshttps://realpython.com/python-opencv-color-spaces/#simple-segmentation-using-color-spaces
Color Spaces and Reading Images in OpenCVhttps://realpython.com/python-opencv-color-spaces/#color-spaces-and-reading-images-in-opencv
Visualizing Nemo in RGB Color Spacehttps://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-rgb-color-space
Visualizing Nemo in HSV Color Spacehttps://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-hsv-color-space
Picking Out a Rangehttps://realpython.com/python-opencv-color-spaces/#picking-out-a-range
Does This Segmentation Generalize to Nemo’s Relatives?https://realpython.com/python-opencv-color-spaces/#does-this-segmentation-generalize-to-nemos-relatives
Conclusionhttps://realpython.com/python-opencv-color-spaces/#conclusion
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/disliked/?from=article-sidebar
Rebecca Stonehttps://realpython.com/python-opencv-color-spaces/#author
https://realpython.com/python-opencv-color-spaces/#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
machine-learninghttps://realpython.com/tutorials/machine-learning/
What Are Color Spaces?https://realpython.com/python-opencv-color-spaces/#what-are-color-spaces
Simple Segmentation Using Color Spaceshttps://realpython.com/python-opencv-color-spaces/#simple-segmentation-using-color-spaces
Color Spaces and Reading Images in OpenCVhttps://realpython.com/python-opencv-color-spaces/#color-spaces-and-reading-images-in-opencv
Visualizing Nemo in RGB Color Spacehttps://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-rgb-color-space
Visualizing Nemo in HSV Color Spacehttps://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-hsv-color-space
Picking Out a Rangehttps://realpython.com/python-opencv-color-spaces/#picking-out-a-range
Does This Segmentation Generalize to Nemo’s Relatives?https://realpython.com/python-opencv-color-spaces/#does-this-segmentation-generalize-to-nemos-relatives
Conclusionhttps://realpython.com/python-opencv-color-spaces/#conclusion
Remove adshttps://realpython.com/account/join/
bindingshttps://realpython.com/python-bindings-overview/
a basic understanding of coding in Pythonhttps://realpython.com/python-basics/
Click here to get the Python Face Detection & OpenCV Examples Mini-Guidehttps://realpython.com/bonus/python-opencv-examples-experiment/
https://realpython.com/python-opencv-color-spaces/#what-are-color-spaces
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-opencv-color-spaces/#simple-segmentation-using-color-spaces
herehttps://github.com/realpython/materials/tree/master/opencv-color-spaces
Python packageshttps://realpython.com/python-modules-packages/
the official NumPy guidehttps://docs.scipy.org/doc/numpy-1.15.0/user/
article on Matplotlibhttps://realpython.com/python-matplotlib-guide/
https://realpython.com/python-opencv-color-spaces/#color-spaces-and-reading-images-in-opencv
herehttps://www.pyimagesearch.com/opencv-tutorials-resources-guides/
installation guidehttps://docs.opencv.org/master/da/df6/tutorial_py_table_of_contents_setup.html
variablehttps://realpython.com/python-variables/
https://files.realpython.com/media/bgr_nemo.6526cc40dea8.png
https://files.realpython.com/media/rgb_nemo.116314a879f5.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-rgb-color-space
https://files.realpython.com/media/rgb_plot_nemo.83aa081c1b1d.png
https://realpython.com/python-opencv-color-spaces/#visualizing-nemo-in-hsv-color-space
https://files.realpython.com/media/hsv.e3f7a0c4a59f.png
https://files.realpython.com/media/hsv_plot_nemo.0c82432ce86a.png
https://realpython.com/python-opencv-color-spaces/#picking-out-a-range
RGB to HSV toolhttps://toolstud.io/color/rgb.php
https://files.realpython.com/media/oranges.591061cd9a6a.png
https://files.realpython.com/media/mask_and_orig.865119b98b08.png
https://files.realpython.com/media/whites.5feaf9246242.png
https://files.realpython.com/media/mask_and_orig_whites.d0f575325c86.png
https://files.realpython.com/media/mask_and_orig_final.2397f42f890a.png
https://files.realpython.com/media/seg_nemo.c2509cb8e806.png
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-opencv-color-spaces/#does-this-segmentation-generalize-to-nemos-relatives
https://files.realpython.com/media/nemo_friend_1.727c3534d5ab.png
https://files.realpython.com/media/nemo_friend_2.c97bd4642274.png
https://files.realpython.com/media/nemo_friend_3.36db40b694f0.png
https://files.realpython.com/media/nemo_friend_4.3da61ed16efa.png
https://files.realpython.com/media/nemo_friend_5.a4e3c288b4e4.png
https://realpython.com/python-opencv-color-spaces/#conclusion
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/liked/?from=article-footer
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/disliked/?from=article-footer
https://realpython.com/team/rstone/
» More about Rebeccahttps://realpython.com/team/rstone/
https://realpython.com/team/acutenco/
Adrianahttps://realpython.com/team/acutenco/
https://realpython.com/team/damos/
Davidhttps://realpython.com/team/damos/
https://realpython.com/team/jjablonski/
Joannahttps://realpython.com/team/jjablonski/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-opencv-color-spaces
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-opencv-color-spaces
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/liked/?from=article-comments
https://realpython.com/feedback/survey/article/python-opencv-color-spaces/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpython-opencv-color-spaces%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Image%20Segmentation%20Using%20Color%20Spaces%20in%20OpenCV%20%2B%20Python&url=https%3A%2F%2Frealpython.com%2Fpython-opencv-color-spaces%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Image%20Segmentation%20Using%20Color%20Spaces%20in%20OpenCV%20%2B%20Python%20https%3A%2F%2Frealpython.com%2Fpython-opencv-color-spaces%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpython-opencv-color-spaces%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
machine-learninghttps://realpython.com/tutorials/machine-learning/
Build Your Own Face Recognition Tool With Pythonhttps://realpython.com/face-recognition-with-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-opencv-color-spaces
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-opencv-color-spaces%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-opencv-color-spaces%2F
Sign-Inhttps://realpython.com/account/login/?next=/python-opencv-color-spaces/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.