A basic neural network implemented using numpy to predict the number of rectangles in an image.
A neural network with 3 fully-connected hidden layers is trained to predict the number of rectangles in a single channel image with just filled-rectangles in them. Input image is created by randomly populating N rectangles filled with 1s, when two rectangles overlap they are summed at intersecting regions. N is the expected output from the neural network.