

{"id":74409,"date":"2020-01-11T11:20:31","date_gmt":"2020-01-11T05:50:31","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=74409"},"modified":"2026-04-27T17:19:57","modified_gmt":"2026-04-27T11:49:57","slug":"computer-vision-techniques","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/","title":{"rendered":"Computer Vision Techniques that You Must Implement Today"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:1244,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/open?id=1MjH3WhX4OeOX_JR5fmkA6LTaNLi9WgSD&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1MjH3WhX4OeOX_JR5fmkA6LTaNLi9WgSD\\\/view?usp=drive_open&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:1245,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Digital_image_processing&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Today\u2019s article will be very interesting. We will apply many computer vision techniques like Thresholding, Blurring, Color Filtering and Edge detection that we use in computer vision. One by one we will understand the purpose behind these various techniques and why they are used. So, start your coding editors and play around with your images by implementing these techniques with DataFlair.<\/p>\n<p><em><strong>Download the source code and images of the article from the <a href=\"https:\/\/drive.google.com\/open?id=1MjH3WhX4OeOX_JR5fmkA6LTaNLi9WgSD\">zip file<\/a>.<\/strong><\/em><\/p>\n<h3>Computer Vision Techniques<\/h3>\n<p>Here are the various computer vision techniques with their implementation:<\/p>\n<h4>1. Thresholding<\/h4>\n<p>Thresholding is a basic concept in computer vision. It is widely used in image processing.<\/p>\n<p>In very simple words, thresholding is used to simplify visual data for further analysis. In image processing, we need to pre-process the image data and get the important details. This technique is important to separate background image and foreground image.<\/p>\n<p>In the starting, our image is colorful and it will contain 3 values ranging from 0-255 for every pixel. In thresholding, first, we have to convert the image in gray-scale. So for a gray-scale image, we only need 1 value for every pixel ranging from 0-255. By converting the image, we have reduced the data and we still have the information.<\/p>\n<p>The next step in thresholding is to define a threshold value that will filter out the information which we don\u2019t want. All the pixel values less than the threshold value will become zero and the pixel values greater than the threshold value will become 1. As you can see, now our image data only consist of values 0 and 1.<\/p>\n<p>The function used for the threshold is given below:<\/p>\n<p><strong><code>cv2.threshold(img , 125, 255, cv2.THRESH_BINARY)<\/code><\/strong><\/p>\n<p>The first parameter is the image data, the second one is the threshold value, the third is the maximum value (generally 255) and the fourth one is the threshold technique. Let\u2019s implement this in our code and observe how different techniques affect the image.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import cv2\r\n\r\n#Reading image from computer\r\nimg = cv2.imread('free.jpg')\r\n#Resizing image to make it smaller\r\nimg = cv2.resize(img, (320,240))\r\n#Converting color image to grayscale\r\ngray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\r\n\r\n#Applying threshold to the gray image\r\nret, thresh1 = cv2.threshold(gray_img, 125, 255, cv2.THRESH_BINARY)\r\nret, thresh2 = cv2.threshold(gray_img, 125, 255, cv2.THRESH_BINARY_INV)\r\nret, thresh3 = cv2.threshold(gray_img, 125, 255, cv2.THRESH_TRUNC)\r\nret, thresh4 = cv2.threshold(gray_img, 125, 255, cv2.THRESH_TOZERO)\r\nret, thresh5 = cv2.threshold(gray_img, 125, 255, cv2.THRESH_TOZERO_INV)\r\n\r\n#Displaying resultant images\r\ncv2.imshow('Original Image', img)\r\ncv2.imshow('Binary Threshold', thresh1)\r\ncv2.imshow('Binary Threshold Inverted', thresh2)\r\ncv2.imshow('Truncated Threshold', thresh3)\r\ncv2.imshow('Set to 0', thresh4)\r\ncv2.imshow('Set to 0 Inverted', thresh5)\r\n\r\n#Wait for user to press key for exit\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74438\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding.png\" alt=\"thresholding - computer vision techniques\" width=\"1114\" height=\"639\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding.png 1114w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding-150x86.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding-300x172.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding-768x441.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding-1024x587.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/thresholding-520x298.png 520w\" sizes=\"auto, (max-width: 1114px) 100vw, 1114px\" \/><\/a><\/p>\n<p><em><strong>Revise the important concepts of the OpenCV library with the <a href=\"https:\/\/data-flair.training\/blogs\/opencv-python-tutorial\/\">OpenCV\u00a0Python Tutorial<\/a><\/strong><\/em><\/p>\n<h4>2. Blurring and Smoothing images<\/h4>\n<p>Images may contain lots of noise. There are a few techniques through which we can reduce the amount of noise by blurring it. The blurring technique is used as a preprocessing step in various other algorithms. With blurring, we can hide the details when necessary.<\/p>\n<p><strong>For example,<\/strong>\u00a0the police use the blurring technique to hide the face of the criminal. Later on, when learning about edge detection in the image, we will see how blurring the image improves our edge detection experience.<\/p>\n<p>There are different computer vision algorithms available to us, which will blur the image using a kernel size. There is no right kernel size; according to our needs, we have to try the trial and error method to see what works better in our case.<\/p>\n<p>Four different types of functions are available for blurring. These are:<\/p>\n<p><strong>1. cv2.blur() &#8211;<\/strong> This function takes the average of all the pixels surrounding the filter. It is a simple and fast blurring technique.<\/p>\n<p><strong>2. cv2.GaussianBlur() &#8211;<\/strong> A Gaussian function is used as a filter to remove noise and reduce detail. It is used in graphics software and also as a preprocessing step in <a href=\"https:\/\/data-flair.training\/blogs\/machine-learning-tutorials-home\/\"><em><strong>machine learning<\/strong><\/em><\/a> and deep learning models.<\/p>\n<p><strong>3. cv2.medianBlur() &#8211;<\/strong> This function uses the median of the neighbouring pixels. Widely used in digital image processing, under certain conditions, it can preserve some edges while removing noise.<\/p>\n<p><strong>4. cv2.bilateralFilter() &#8211;<\/strong> In this method, sharp edges are preserved while the weak ones are discarded.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import cv2\r\n\r\n#Reading image from disk\r\ndog = cv2.imread('dog.jpg')\r\n#Resizing image to make it smaller\r\ndog = cv2.resize(dog, (300,280) )\r\n\r\n#Applying different blur functions with 7*7 filter\r\nimg_0 = cv2.blur(dog, ksize = (7, 7))\r\nimg_1 = cv2.GaussianBlur(dog, (7, 7), 0)\r\nimg_2 = cv2.medianBlur(dog, 7)\r\nimg_3 = cv2.bilateralFilter(dog, 7, 75, 75)\r\n\r\n#Displaying resultant images\r\ncv2.imshow('Original', dog)\r\ncv2.imshow('Blur', img_0)\r\ncv2.imshow('Gaussian Blur', img_1)\r\ncv2.imshow('Median Blur', img_2)\r\ncv2.imshow('Bilateral Filter', img_3)\r\n\r\n#Waits for a user to press key for exit\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74439\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images.png\" alt=\"Blurring and Smoothing images - computer vision techniques\" width=\"1112\" height=\"719\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images.png 1112w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images-150x97.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images-300x194.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images-768x497.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images-1024x662.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Blurring-and-Smoothing-images-520x336.png 520w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/a><\/p>\n<p><em><strong>Work on the <a href=\"https:\/\/data-flair.training\/blogs\/python-project-driver-drowsiness-detection-system\/\">Driver Drowsiness Detection Python Project<\/a> with OpenCV<\/strong><\/em><\/p>\n<h4>3. Color Filtering<\/h4>\n<p>When you need information about a specific color, you can take out the color you want.<\/p>\n<p>This process is called color filtering. We can define a range of color which we want to focus on. <strong>For example,<\/strong> if you want to track a tennis ball in an image, we can filter out only the green color from the image. This computer vision technique works better when the color that needs to be extracted is different from the background. Let\u2019s see how to implement color filtering in your application.<\/p>\n<p><strong>Step 1: Convert the color image into HSV, which is Hue Saturation Value<\/strong><\/p>\n<p>HSV is also another way of representing a color. It is easier to specify a color range in HSV format, which is why OpenCV expects us to specify the range in this format. Hue is for color (0- 179), Saturation is for the strength of color (0-255), and Value is for the different lighting conditions from low to high (0-255).<\/p>\n<p><strong>Step 2: Create the mask<\/strong><\/p>\n<p>OpenCV provides us with the cv2.inRange() function. The first parameter contains the HSV image, the second parameter has a numpy array with the lower bound of the color we want to extract, and the third parameter contains the upper bound of the color.<\/p>\n<p><strong>Note:<\/strong> The upper and lower bounds of color should be in HSV values. The mask contains only the 0 and 1 values representing black and white, respectively.<\/p>\n<p><strong>Step 3: Perform the bitwise &#8216;and&#8217; operation<\/strong><\/p>\n<p>At last, we perform the bitwise &#8216;and&#8217; operation on the original image and the mask image to get only the color we want.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import cv2\r\nimport numpy as np\r\n\r\n#Reading images from local disk\r\nimg = cv2.imread('ball.jpeg')\r\n#Resizing image to make it smaller(optional)\r\nimg = cv2.resize(img, (320,240))\r\n\r\n#Defining lower and upper range for color we want to extract(hsv format)\r\nlower_orange = np.array([8, 100, 50])\r\nupper_orange = np.array([15, 255, 255])\r\n\r\n#Converting image from BGR to HSV format\r\nhsv_img = cv2.cvtColor(img,cv2.COLOR_BGR2HSV)\r\n#cv2.inRange() function gives us the mask having colors within the specified lower and upper range\r\nmask = cv2.inRange(hsv_img, lower_orange, upper_orange)\r\n#cv2.bitwise_and() function performs bitwise and operation on pixels of original image and mask\r\nres = cv2.bitwise_and(img, img, mask=mask)\r\n\r\n#Displaying all the output images\r\ncv2.imshow('Original',img)\r\ncv2.imshow('mask',mask)\r\ncv2.imshow('res',res)\r\n\r\n#Waiting for user to press key for exit\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74440\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering.png\" alt=\"Color filtering - computer vision techniques\" width=\"1137\" height=\"320\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering.png 1137w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering-150x42.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering-300x84.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering-768x216.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering-1024x288.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Color-filtering-520x146.png 520w\" sizes=\"auto, (max-width: 1137px) 100vw, 1137px\" \/><\/a><\/p>\n<p><em><strong>Refer the <a href=\"https:\/\/data-flair.training\/blogs\/project-in-python-colour-detection\/\">Color Detection Python Project<\/a>\u00a0to learn the implementation of OpenCV library<\/strong><\/em><\/p>\n<h4>4. Edge Detection<\/h4>\n<p>Edges are a sudden change in the brightness of the image. The significant transitions in the brightness of the image are used to calculate the edges in an image. Edge detection is used for various <a href=\"https:\/\/en.wikipedia.org\/wiki\/Digital_image_processing\">image processing<\/a> purposes. One of them is to sharpen the images. Sharpening of images is done to make the images clearer. Edge detection is used to enhance the images, and image recognition becomes easier.<\/p>\n<p>The canny edge detection algorithm is mostly used to detect the edges in an image.<\/p>\n<p><strong>Common applications of edge detection:<\/strong><\/p>\n<ul>\n<li><strong>Medical Image:<\/strong> It helps in identifying organ boundaries and tumors through MRI &amp; CT scans.<\/li>\n<li><strong>Autonomous driving:<\/strong> It detects the lane lines and obstacles that occur during driving.<\/li>\n<li><strong>Industrial inspection:<\/strong> It automatically identifies the cracks occurring in bridges and buildings.<\/li>\n<\/ul>\n<p>Finding edges draws lines where pixel colors change fast. cv2.Canny() is the go-to function. Edge maps help with lane detection in self-driving cars or measuring objects on a conveyor belt.<\/p>\n<p><strong><code>cv2.Canny(img, 50, 150)<\/code><\/strong><\/p>\n<p>First parameter is the image data, the second parameter is the lower threshold value and the third parameter is the upper threshold value. You need to try different values for tuning the edge detection algorithm.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import cv2\r\n\r\n#load image\r\nimg = cv2.imread('car.jpeg')\r\n#resizing image\r\nimg = cv2.resize(img, (420,300))\r\n\r\n#applying canny edge detection algorithm\r\ncanny = cv2.Canny(img,50,150)\r\n\r\n#displaying results\r\ncv2.imshow('image',img)\r\ncv2.imshow('canny',canny)\r\n\r\n#destroy all windows\r\ncv2.waitKey(0)\r\ncv2.destroyAllWindows()<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74441\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection.png\" alt=\"Edge Detection - computer vision techniques\" width=\"856\" height=\"379\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection.png 856w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection-150x66.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection-300x133.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection-768x340.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/Edge-Detection-520x230.png 520w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>In this article, we discussed some of the various techniques that are widely used in all computer vision tasks. We learned to separate the background from the foreground using Thresholding. Then we saw how we can smooth our images by blurring them. We also saw how we can extract a specific color we want from the image. At last, we saw the edge detection technique and implemented it with Python.<\/p>\n<p><em><strong>Thinking, next what? Work on <a href=\"https:\/\/data-flair.training\/blogs\/python-project-gender-age-detection\/\">Gender and Age Detection Python Project<\/a> with OpenCV<\/strong><\/em><\/p>\n<p><em>Any other computer vision technique that you would like to add? Do share with us in the comment section.\u00a0<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today\u2019s article will be very interesting. We will apply many computer vision techniques like Thresholding, Blurring, Color Filtering and Edge detection that we use in computer vision. One by one we will understand the&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":74455,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[21699,21697,21696,21700,21698],"class_list":["post-74409","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-color-filtering","tag-computer-vision-algorithms","tag-computer-vision-techniques","tag-edge-detection","tag-thresholding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Computer Vision Techniques that You Must Implement Today - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn the different computer vision techniques with their purpose, function and source code to implement in Python with some easy steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Computer Vision Techniques that You Must Implement Today - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn the different computer vision techniques with their purpose, function and source code to implement in Python with some easy steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-11T05:50:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T11:49:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Computer Vision Techniques that You Must Implement Today - DataFlair","description":"Learn the different computer vision techniques with their purpose, function and source code to implement in Python with some easy steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/","og_locale":"en_US","og_type":"article","og_title":"Computer Vision Techniques that You Must Implement Today - DataFlair","og_description":"Learn the different computer vision techniques with their purpose, function and source code to implement in Python with some easy steps.","og_url":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-01-11T05:50:31+00:00","article_modified_time":"2026-04-27T11:49:57+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Computer Vision Techniques that You Must Implement Today","datePublished":"2020-01-11T05:50:31+00:00","dateModified":"2026-04-27T11:49:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/"},"wordCount":1176,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg","keywords":["Color Filtering","Computer Vision Algorithms","Computer Vision Techniques","Edge Detection","Thresholding"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/","url":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/","name":"Computer Vision Techniques that You Must Implement Today - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg","datePublished":"2020-01-11T05:50:31+00:00","dateModified":"2026-04-27T11:49:57+00:00","description":"Learn the different computer vision techniques with their purpose, function and source code to implement in Python with some easy steps.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/01\/computer-vision-techniques.jpg","width":802,"height":420,"caption":"computer vision techniques - implementation with algorithms"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/computer-vision-techniques\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Computer Vision Techniques that You Must Implement Today"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/74409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=74409"}],"version-history":[{"count":13,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/74409\/revisions"}],"predecessor-version":[{"id":147955,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/74409\/revisions\/147955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/74455"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=74409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=74409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=74409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}