Object Recognition using CNN model

Himanshu Sharma
1 min readJul 2, 2021

Task Description 📄

📌 In this task :

👉Create a model that will detect a car in a live stream or video and recognize characters on number plate of the car .

👉Secondly , it will use the characters and fetch the owners information using RTO API’s .

👉Create a Web portal where all this information will be displayed (using html,css,and js)

Solution:-

Below is the code for uploading the image of car on our webapp which we have created using HTML,CSS and JavaScript.

#!/usr/bin/python3

print(“content-type: text/html”)

print(“Access-Control-Allow-Origin: *”)

print()

import cgi, sys ,os

import cgitb

cgitb.enable()

form = cgi.FieldStorage()

sys.path.insert(0, os.getcwd())

message = None

if ‘filename’ in form:

fileitem = form[‘filename’]

fn = os.path.basename(fileitem.filename)

open(‘/var/www/cgi-bin/’ + fn, ‘wb’).write(fileitem.file.read())

message = ‘The file “‘ + fn + ‘“ was uploaded successfully’

else:

message = ‘No file was uploaded’

replyhtml = “””

<html>

<body>

<p>%s</p>

</body>

</html>

“””

print(replyhtml % message)

ANd the rest code which includes HTML, CSS, JavaScript and model trainning of image using CNN is uploaded on Github repo with full descripton.

Thank you…..

--

--