Category: OpenCV

  • Installing OpenCV got easier

    Installing OpenCV got easier

    OpenCV is undoubtedly the unmatched de facto standard library for computer vision. Not only does it provide a near complete set of vision algorithms, the set of primitive graphics functions it provides to manipulate images makes it essential to many of our projects. OpenCV being used when building a Keras CNN model Installing the latest version…

  • Using Multiple Cameras with OpenCV

    As you know, OpenCV is capable of reading from any connected camera in your system, whether it’s a built-in webcam (in a laptop) or a USB connected one. But what if, you wanted to read from more than one cam at the same time? Can OpenCV handle it? OpenCV accessing 2 cameras at once Yes,…

  • Track any object in a video with Dlib Correlation Trackers

    Training an object detector is bit of a complicated task. You need to have a proper training dataset with the relevant bounding boxes, and then use something like a HOG feature extractor with a SVM classifier for the detection – such as the Dlib Object Detection classes (link). But that’s a lot of work if…

  • Need More Fonts on OpenCV?

    OpenCV has a built-in simple function to add text on your images – the cv2.putText() function. With just one line of code, you can add text anywhere on the image. You just need to specify the position, colour, scale (font size), and which the font to use as the minimum parameters. cv2.putText(image, text_to_show, (20, 40), fontFace=cv2.FONT_HERSHEY_SIMPLEX,…

  • Snapchat like Image Overlays with Dlib, OpenCV, and Python

    You’re probably familiar with Snapchat, and it’s filters feature where you can put some cool and funny image overlays on your face images. As computer vision enthusiasts, we typically look at applications like these, and try to understand how it’s done, and whether we can build something similar. It turns out, we can make our…

  • Wink Detection using Dlib and OpenCV

    A couple of weeks ago, I was going through a tutorial for eye blink detection by Adrian at PyImageSearch. It was an excellent tutorial, which explained the use of Eye Aspect Ratio (EAR) in order to detect when an eye gets closed. Then, few weeks back, I was having a chat with Shirish Ranade, a…

  • OpenCV 3.2 and Dlib 19.4 Packages Now Available from Conda-Forge

    Anaconda is an asset for us Machine Learning enthusiasts. Not only does it have the ability to create fully isolated Python environments, its pre-built packages for many operating systems and architectures helps you to spend less time setting up, and more time doing actual machine learning stuff. In some scenarios, to get some Python packages…

  • Extracting individual Facial Features from Dlib Face Landmarks

    If you remember, in my last post on Dlib, I showed how to get the Face Landmark Detection feature of Dlib working with OpenCV. We saw how to use the pre-trained 68 facial landmark model that comes with Dlib with the shape predictor functionality of Dlib, and then to convert the output of into a…

  • Installing OpenCV 3 on Anaconda Python 3.5 on Windows

    If you checked my last post, you know that TensorFlow now officially works on Windows. This was really exciting to me, since I was using a Linux machine for my TensorFlow experiments, I had to switch between the Linux and Windows for my other tasks. Now, I should be able to perform some of those…