Skip to content

This project aims at determinig the genre of the movie using its posters for image classifications CNNs are the most effective types of neural network in this project we try to create a CNN which would predict the genres of these movies.

Notifications You must be signed in to change notification settings

santanukumar666/Movie-Genre-Detection-From-Posters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Genere prediction from posters

This project aims at determinig the genre of the movie using its posters for image classifications CNNs are the most effective types of neural network in this project we try to create a CNN which would predict the genres of these movies.

Dataset

We used a dataset containing 15000 movie posters which were classified into drama, thriller, action, comedy, biography or documentary or a combination of these posters were downloaded from IMDB using web scrapping and a csv file was generated containg the title and its genres. The dataset was divided into 3 sets with 80% for training 10% for test and validation set.

arizona

space

captain

Preprocessing

The images were resized using the skimage module

img = skimage.transform.resize(img,size)

The opencv module can also be used to achieve the same goal of resizing

img = cv2.resize(img,size)

CNN model

We used the keras module to make our convolutional neural network.the model has the architecture is given below:

  1. 2 convolutional layers with 32 filters
  2. Max poooling and dropout
  3. 2 convolutional layer with 64 filters
  4. Dense layer with 128 neurons
  5. Output neuron with 6 neurons

cnn

Results

Some movie posters were fed to our trained model and the following were the outputs. There are six output neurons each one corresponding to a particular genre and each neuron gives a real number output. The three highest value for each poster is given below:

mi 5

Prediction:

Action 0.5179066 | Crime 0.19378987 | Horror 0.2179066

yjhd

Prediction:

Romance 0.5043122 | Drama 0.34689817 | Biography 0.1913521

inception

Prediction:

Thriller 0.4531901 | Drama 0.2649131 | Action 0.2391053

Webapp

Made a simple flask webapp for demonstration.

1

Authors

About

This project aims at determinig the genre of the movie using its posters for image classifications CNNs are the most effective types of neural network in this project we try to create a CNN which would predict the genres of these movies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published