Skip to main content

 How I Coded My First CNN In Python


 

In this blog, I will tell you how I and my classmate, Het Gohil, made an AI-enabled surveillance system using CNN. For those of you, who are not aware of CNN, let's talk about that first.

Convolutional neural networks (CNNs) are a class of Artificial neural networks(ANNs). They are one of the most powerful and popular tools for machine learning and data science. They can perform tasks such as image recognition, natural language processing, face detection, and more with high accuracy and efficiency. They are inspired by the human visual system and are adept at processing visual information in a hierarchical and systematic manner.

ABOUT OUR PROJECT
 The primary goal of our project was to develop a robust and efficient facial recognition system using state-of-the-art CNN techniques. By employing CNN, we aimed to enhance the accuracy, speed, and versatility of facial recognition systems. We incorporated real-time processing and adaptability to continually improve recognition abilities over time to make our software truly efficient. We also prioritized user privacy and data security in our project.

ABOUT THE CODE
This was the first time I was using CNN in Python. We educated ourselves about CNN by reading the blogs available on the Web. Our teacher, Mr. Alpesh Shah, also guided us in implementing what we had read. We learned the basics of CNNs, such as input layers, convolutional layers, activation layers, pooling layers, flattened and fully connected layers, and output layers functions. We coded our first CNN in Python by using the facial recognition library. Face encoding is a way to represent the face using a set of 128 computer-generated measurements. We prepared our data by inputting pictures of known persons. The code underwent a pre-processing stage where the facial images were normalized and resized. We then trained our model by feeding other new faces and letting the model compare them with the known faces. We then evaluated our results. Now, we needed to fine-tune our parameters. We made changes to the resolution and color of the input image to make our model more efficient.

 

 

WHAT I GAINED

This project was quite challenging. It took up a lot of our time, which, everyone knows is a limited resource when you are in high school.  Still, it was really fun and stimulating to learn a new deep-learning skill. It has boosted my confidence in many ways and opened up a whole world to me.

 

Reference:

https://www.lystloc.com/blog/7-new-facial-recognition-technology-trends-to-boom-in-the-future/#:~:text=Systems%20for%20access%20control%20are,to%20improve%20security%20and%20privacy

https://thinkingneuron.com/face-recognition-using-deep-learning-cnn-in-python/

https://docs.opencv.org/3.4/da/d60/tutorial_face_main.html

Comments

Popular posts from this blog

Project E-waste collection drive

   Poster for social media campaign  Environmental conservation is a cause I deeply care about. I've always been actively involved in school events and was even chosen as the e-warrior representative at school. To further this cause, my friends Panth Patel, Devarsh Kshatri, and I organized an e-waste collection drive in our small town of Anand. Anand lacks proper infrastructure for e-waste recycling, with the nearest authorized recycling units located in Ahmedabad or Vadodara. Sadly, about 95% of India's e-waste is recycled by unauthorized units or kabadiwalas, using non-scientific methods and often involving child labor, posing serious environmental and health hazards. To address this issue, during Diwali, when people traditionally clean their homes and dispose of unused items, we initiated our collection drive. We spread awareness through posters and messages on  WhatsApp groups, encouraging our community to participate. Additionally, we conducted an e-survey to as...

The Ultimate Vietnam Itinerary for first timers

 Vietnam is an enchanting country. It is a perfect mix of breath taking natural attractions, architectural delights, intriguing history and culture , warm hospitality and delicious food. Here is our 8- Day itinerary for Vietnam which covers the main highlights and must-sees of Vietnam. Day 1 : Arrive in Hanoi Day 2 : Explore Hanoi Day 3 : Day trip to Ninh Binh Day 4 : day cruise to Halong Bay Day 5 : Arrive in Da- Nang and explore the city Day 6 : Visit Bana hills +  Day trip to My Son Sanctuary Day 7: Marble Mountains and Day trip to Hoi An Day 8 : Check out Ho chi Minh before leaving Day 1 : Arrive in Hanoi Hanoi is the capital city and gateway to magnificent Halong Bay. It is a captivating blend of traditional east and colonial influence of France. It has this unique vibe of a city conscientiously working towards reclaiming it's glory after years of war and poverty. I would highly recommend spending at least 2 days in Vietnam's second biggest city. While it’s not e...

My Experience at YTS Summer Programme - June 2022

Plaksha University's Young Tech Scholar programme is one of India's most prestigious summer programmes for high schoolers. It offers an opportunity to learn from global academicians like Dr Ravi Jasuja ( Harvard Medical School), Dr Hanumant Singh ( North Eastern University), Dr Shashank Tamaskar (Purdue University) and founding members of Plaksha University. I applied for it on the very last day as I was not sure if I would be able to spare time for summer school. The application was comprehensive, with essays and questions based on logical thinking. Much to my joy my application was accepted. I was extremely excited but also nervous about going. I was going to travel alone for the first time. Thankfully, I could make some friends online beforehand through the college portal, which made me really look forward to the programme. The day finally arrived. My parents dropped me at the Ahmedabad airport. I was super excited, and my excitement grew as I reached Delhi and boarded the Y...