Arvel  Parker

Arvel Parker


OpenCV Smoothing Image Filters

We come across various kind of noises in image which tend to create a lot of problem in detecting the image . Many times when finding Contours in the image because of Noise unwanted Contours are detected in the image or the image is distorted and the image becomes tough to predict by our Machine Learning Algorithm .

OpenCV has various kind of filters that help blur the image that will fill the small noises in the image with various methods. Like calculating the pixel value with the mean of adjacent pixels etc. In the following post we will explore various methods of image Smoothing below are various methods in OpenCV for Smoothing Images

1) BLUR Filter ( cv2.blur() )

To perform a smoothing operation we will apply a filter to our image. The most common type of filters are linear, in which an output pixel’s value (i.e. g(i,j)) is determined as a weighted sum of input pixel values (i.e. f(i+k,j+l)) :

h(k,l) is called the kernel, which is nothing more than the coefficients of the filter.

The above is the kernel that is applied to the to the pixel to get the mean value which is calculated based on surrounding pixels based on the kernel size . Below is the effect of the Normalized Box with different kernel size

#opencv #machine-learning #image-processing #python #deep-learning

What is GEEK

Buddha Community

OpenCV Smoothing Image Filters

Python and OpenCV: Apply Filters to Images

I am pretty sure you have tried out various filters available on the social platforms and your camera as well.

Today in this tutorial, we will be applying few of the filters to images. Exciting right?

Let’s begin!

Table of Contents

1. Importing Modules

2. Loading the initial image

#python programming examples #python and opencv: apply filters to images #apply filters to images #python and opencv #opencv #filters to images

OpenCV putText() - Writing Text on Images

Hello fellow learner! In this tutorial, we will learn how to write string text on Images in Python using the OpenCV putText() method. So let’s get started.

Table of Contents

What is the OpenCV putText() method?

OpenCV Python is a library of programming functions mainly aimed at real-time computer vision and image processing problems.

OpenCV contains putText() method which is used to put text on any image. The method uses following parameters.

  • img: The Image on which you want to write the text.
  • text: The text you want to write on the image.
  • org: It is the coordinates of the Bottom-Left corner of your text. It is represented as a tuple of 2 values (X, Y). X represents the distance from the left edge and Y represents the distance from the top edge of the image.
  • fontFace: It denotes the type of font you want to use. OpenCV supports only a subset of Hershey Fonts.
  • fontScale: It is used to increase/decrease the size of your text. The font scale factor is multiplied by the font-specific base size.
  • color: It represents the color of the text that you want to give. It takes the value in BGR format, i.e., first blue color value, then green color value, and the red color value all in range 0 to 255.
  • thickness (Optional): It represents the thickness of the lines used to draw a text. The default value is 1.
  • lineType (Optional): It denotes the type of line you want to use. 4 LineTypes available are
  • LINE_4
  • LINE_8 (Default)
  • bottomLeftOrigin (Optional): When true, the image data origin is at the bottom-left corner. Otherwise, it is at the top-left corner. The default value is False.

#python modules #opencv #opencv puttext() #writing text on images #opencv puttext() - writing text on images #puttext() - writing text

Layla  Gerhold

Layla Gerhold


Extraction Of Aadhar IDs Using OpenCV & TensorFlow- Sushil Ostwal

The second talk of the Day 1 “Automated ID Extraction From Scan Copy Of Account Opening Form” was presented at the Computer Vision conference of the year, CVDC 2020 by Sushil Ostwal, Head Data Science/AI at Motilal Oswal Financial Services.

CVDC 2020 is scheduled for 13th and 14th of August, organised by the Association of Data Scientists (ADaSCi), the premier global professional body of data science and machine learning professionals.

Ostwal kick-started the talk by discussing how extracting ID from lakhs of the physical scanned document is a challenging and time-consuming activity. The session is divided into two parts.

#events #image detection #image processing #image recognition #opencv #opencv models #tensorflow

Python Imread(): Different Ways to Load an Image using The OpenCV.imread() Method

In this tutorial, we will learn how to use imread() method of OpenCV-Python in detail and different ways to load an image using imread() method.

Table of Contents

What is Python imread()?

Importing OpenCV to use Python imread()

Syntax of the Python imread() method

Image formats supported by Python imread() method

#python modules #opencv-python #python imread() #opencv.imread() #python imread(): different ways to load an image using the opencv.imread() method #load an image

I am Developer


Laravel 7/6 Image Validation

In this image validation in laravel 7/6, i will share with you how validate image and image file mime type like like jpeg, png, bmp, gif, svg, or webp before uploading image into database and server folder in laravel app.

#laravel image validation #image validation in laravel 7 #laravel image size validation #laravel image upload #laravel image validation max #laravel 6 image validation