Homework Writing Robot With Python ( Python Program That Writes Assignment / Homework in Your Handwriting) (Copy Your Handwriting)
Python Program That Writes Assignment / Homework in Your Handwriting (Python OpenCV)
A students life is full of assignments and homework. Every student gets assignment from their school and colleges, that they have to submit on time. These assignments don't add any productive value to student. Student does not learn anything by writing assignments. They just copies it from their friend's.
By doing so they are wasting their valuable time, that they can spend to do some innovative thing. They can learn something new and productive in that time rather than copying.
So, I decided to to make a Computer Program that will help them writing assignments faster. I made a program which will write assignments for the student in his/her own handwriting. They just need to paste the question and answer in a text file. And, after running the code, the assignment image will be generated. This image will have the assignment content in student's handwriting. This image can be easily shared and submitted.
Student will be able to complete one page of assignment in less than a minute.
Supplies
- Computer
- Camera / Mobile phone with Camera
- Python Interpreter
- Software/Application to Align Images straight and Adjust background color
- Software/Application to Crop Images
Step 1: Collecting Your Handwriting Images
You need to write all the alphabets, numbers and symbols.
- Take a blank page.
- Write all upper case alphabets (Capital letters) i.e. A-Z.
- Write all lower case alphabets (Small letters) i.e. a-z.
- Write all digits (numbers) i.e. 0-9.
- Write all the possible special characters like " ' , . ? ! = + - * etc.
Step 2: Processing Handwriting Images
Use any document scanner or editor to :
- Align the page straight.
- Make background white and homogeneous.
Step 3: Cropping Individual Characters
Now you have crop each character.
So, select any image size (dimensions height x width) and keep it fix for entire duration. I used 60x40 image size.
Adjust the cropping window such that, the character should be at exactly center of the cropped image.
Save these all images in a separate folder. The will be accessed in the code with the path to folder.
Name the cropped images as per the character they contain. For example :- image for 'a' can be named as a.png whereas image for 'A' can be named as 'a_capital' or 'a_c', so it will be easy to access them in code.
Step 4: Adding Content in a TEXT File
The content that needs to be written must be pasted in a text file. This content will be as it is converted to your handwriting. So, go through the file and correct all spelling mistakes and punctuation errors.
The path to this text file will be used in the code.
Step 5: Open Python IDLE/IDE
import cv2 import textwrap import os
Step 6: Opening File
f=open("text.txt") #text is the name of file, you should replace it with yours
Step 7: Read Image
image=cv2.imread("a.png")
Step 8: Concatenate Horizontally
imgh =cv2.hconcat([img1.imp2])
Step 9: Concatenate Vertically
imgv=cv2.vconcat([img1.img2])
Step 10: Display Image
cv2.imshow("Image name", img)
Step 11: Storing the Final Result Image
cv2.imwrite("path\output.png",img)
Step 12: Input
This was the provided input to the code.
The content that need to be generated as assignment is pasted in the text file. Now onwards you don't need to waste time in writing useless assignments. Just copy it from somewhere, paste here in text file. And your homework will be done by this program,
Provide path to this text file in code.
All this text need to be converted into the handwriting of student.
Step 13: Output
This is the output we got.
The text is converted to handwriting without touching pen and paper. It is like magic.
The computer wrote homework/ assignment for us in out handwriting. It is like homework writing robot. That converts text to my handwriting without my intervention. That to within seconds. Copy your friends assignment without touching pen and paper.
No need of pen and paper. All writing work is done by computer. Automatic Writing Machine. This is a homework doing robot., made in python language. We used python code to do all of this.
Python code to write assignments. Python automates homework assignment. this is an Auto writing software which can write any thing. you just need to paste the text in the text file. it will automatically generate assignment for you. Robot writes assignment and robot do the homework. Robot copies my handwriting.
Complete assignment automatically. complete assignment without writing actually. someone writes homework for you. do homework without touching pen and paper. homework doing machine or writing machine. best for engineering students to write assignments. this is an Auto Assignment Writer for you. Best for essay competition 2021. Computer robot program generates and replicates handwriting. Do my homework robot. This robot will do homework for you.
For more details watch video :Explanation with code
Comments
Post a Comment