datahacker.rs@gmail.com

# Category: Machine Learning

### #FA 003 Face Detection with OpenCV in Videos

In real case scenarios, there is often a need for detection and recognition of faces not just in images, but in videos. For example, this is a necessary prerequisite for security cameras, filters on social networks, identification at work and many other cases where cameras are used. The pictures are static, but videos can be seen as a series of pictures, or frames. All video clips are constructed of a constant number of frames in…

### # K An implementation of a Convolutional Neural Network in Keras – MNIST dataset

In this post we will see how we can classify handwritten digits using convolutional neural network implemented in Keras. Required packages: numpy matplotlib keras tensorflow sklearn seaborn __future__ keras-vis Table of Contents: Load the digit dataset Implementing a Neural Network Visualization Test our model Save a model as picture Activation Maps Saliency maps Activations And now we can plot some predictions, to see how our model works. Images for testing can be downloaded from the…

### #025 CNN Bounding Box Predictions

Bounding box predictions In the last post, we learned how to use a convolutional implementation of sliding windows. That’s more computationally efficient, but it still has a problem of not outputting the most accurate bounding boxes.  In this post, we will see how we can obtain more accurate predictions of bounding boxes.  Output accurate bounding boxes Two different bounding boxes – one with a high and one sliding window With sliding windows, we take the sets of windows…
$$Inception\enspace network$$  Motivation for the $$Inception\enspace network$$: When designing a layer for a $$convnet$$ we might have to choose between a $$1 \times 3$$ filter, a $$3 \times 3$$ or $$5\times 5$$ or maybe a pooling layer. An $$Inception\enspace network$$ solves this by saying:“ Why shouldn’t we apply them all ? ”. This makes the network architecture more complicated, but remarkably improves performance as well. Let’s see how this works. An  architecture…
Convolutional Neural Network – An Example In previous posts (CNN 004, CNN 005 and CNN 009) we have defined all building blocks for building a full convolutional neural network. Let’s now look at an example of a convolutional neural network (CNN). Let’s say that we have a $$32 \times 32 \times 3$$ dimensional image as an input to the CNN. So it’s an RGB image and supoose we want to try to do a handwritten…