├── Detecting Text from Image(OCR) using Pycasseract ├── README.md ├── 1.jpg ├── 2.jpg ├── 3.jpeg ├── 4.png ├── carbon.png └── app.py ├── captcha generator ├── out.png ├── carbon_code.png ├── app.py └── README.md ├── URL Shortner ├── carbon_image.png ├── README.md └── app.py ├── Frames Per Sec ├── carbon_image.png ├── README.md └── app.py ├── QR Code Generator ├── carbon_qr.png ├── qrcode-link.png ├── qrcode-text.png ├── README.md ├── test.txt └── app.py ├── Spell Corrector ├── carbon_code.png ├── app.py ├── README.md ├── correct.txt └── test.txt ├── Shutdown Computer ├── carbon_code.png ├── README.md └── app.py └── Typing Speed Counter ├── carbon_image.png ├── README.md └── app.py /Detecting Text from Image(OCR) using Pycasseract/README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /captcha generator/out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/captcha generator/out.png -------------------------------------------------------------------------------- /URL Shortner/carbon_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/URL Shortner/carbon_image.png -------------------------------------------------------------------------------- /Frames Per Sec/carbon_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Frames Per Sec/carbon_image.png -------------------------------------------------------------------------------- /QR Code Generator/carbon_qr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/QR Code Generator/carbon_qr.png -------------------------------------------------------------------------------- /Spell Corrector/carbon_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Spell Corrector/carbon_code.png -------------------------------------------------------------------------------- /QR Code Generator/qrcode-link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/QR Code Generator/qrcode-link.png -------------------------------------------------------------------------------- /QR Code Generator/qrcode-text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/QR Code Generator/qrcode-text.png -------------------------------------------------------------------------------- /Shutdown Computer/carbon_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Shutdown Computer/carbon_code.png -------------------------------------------------------------------------------- /captcha generator/carbon_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/captcha generator/carbon_code.png -------------------------------------------------------------------------------- /Typing Speed Counter/carbon_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Typing Speed Counter/carbon_image.png -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Detecting Text from Image(OCR) using Pycasseract/1.jpg -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Detecting Text from Image(OCR) using Pycasseract/2.jpg -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Detecting Text from Image(OCR) using Pycasseract/3.jpeg -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Detecting Text from Image(OCR) using Pycasseract/4.png -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/carbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksdkamesh99/NewFangled-Scripts/master/Detecting Text from Image(OCR) using Pycasseract/carbon.png -------------------------------------------------------------------------------- /Spell Corrector/app.py: -------------------------------------------------------------------------------- 1 | from textblob import TextBlob 2 | with open('test.txt','r+') as f: 3 | text=f.read() 4 | b=TextBlob(text) 5 | corrected=str(b.correct()) 6 | with open("correct.txt",'w+') as f: 7 | f.write(corrected) -------------------------------------------------------------------------------- /QR Code Generator/README.md: -------------------------------------------------------------------------------- 1 | # QR Code Generator 2 | 3 | This is a python implementation of qrcode library to create qrcode for generating qr code for text and link. 4 | The following are the carbon code. 5 | ![carbon_code](carbon_qr.png) 6 | -------------------------------------------------------------------------------- /Frames Per Sec/README.md: -------------------------------------------------------------------------------- 1 | # Frames Per Sec 2 | 3 | This is a cool python script to get frames per sec value of your camera or webcam. 4 | If you like my work DO ⭐ on this repository. 5 | Check out my code here. 6 | ![carbon_code](carbon_image.png) 7 | -------------------------------------------------------------------------------- /Typing Speed Counter/README.md: -------------------------------------------------------------------------------- 1 | # Typing Speed Counter 2 | 3 | 4 | This is a python script made to count the speed of typing in wpm(words per minute). 5 | 6 | If any one liked this please hit ⭐⭐ to the repository. 7 | 8 | The code is mentioned below. 9 | 10 | ![carbon code](carbon_image.png) 11 | -------------------------------------------------------------------------------- /QR Code Generator/test.txt: -------------------------------------------------------------------------------- 1 | Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed. Machine learning focuses on the development of computer programs that can access data and use it learn for themselves. 2 | -------------------------------------------------------------------------------- /Shutdown Computer/README.md: -------------------------------------------------------------------------------- 1 | # Shutdown Computer 2 | 3 | This is a python script which uses os.system module which performs 3 operations. 4 | 1. Shutdown 5 | 2. Restart 6 | 3. Log off Computer 7 | 8 | If you Like my work hit 🌟 to this repository. 9 | 10 | Here is the carbon code of app.py 11 | ![carbon_code](carbon_code.png) 12 | -------------------------------------------------------------------------------- /Spell Corrector/README.md: -------------------------------------------------------------------------------- 1 | # Spell Corrector 2 | 3 | This is amazing python script using textblob library using python to correct the spellings in a text. 4 | Here text from a file is readed by the script and will correct the spellings using textblob library. 5 | 6 | Here is the carbon code of app.py 7 | ![carbon code](carbon_code.png) 8 | -------------------------------------------------------------------------------- /URL Shortner/README.md: -------------------------------------------------------------------------------- 1 | # URL Shortner 2 | 3 | This is a beautiful python script used to create the url shortner with different url api's. 4 | The Following URL Shortners you can short your link are :- 5 | 6 | 1. TinyUrl 7 | 2. Clck.ru 8 | 3. Da.gd 9 | 4. Is.gd 10 | 5. Os.db 11 | 6. Ow.ly 12 | 7. Create Your Own URL 13 | 14 | Here is the carbon code of implementation of URL Shortner using python. 15 | 16 | 17 | ![carbon code](carbon_image.png) 18 | 19 | -------------------------------------------------------------------------------- /captcha generator/app.py: -------------------------------------------------------------------------------- 1 | from captcha.image import ImageCaptcha 2 | import random as rd 3 | 4 | def random_captcha(): 5 | charc="abcdefghijktuvwxyzAIJKLlmnopqrsMNOPQRSTUVBCDEFGHWXYZ1234567890" 6 | LEN=6 7 | data='' 8 | for i in range(6): 9 | i=rd.randint(0,len(charc)-1) 10 | data=data+charc[i] 11 | imc=ImageCaptcha(width=200,height=100) 12 | imc.write(data,'out.png') 13 | print("Random Image Captcha generated") 14 | random_captcha() 15 | -------------------------------------------------------------------------------- /Shutdown Computer/app.py: -------------------------------------------------------------------------------- 1 | import os 2 | print("If you want to shutdown your computer press 1\n") 3 | print("If you want to restart your computer press 2\n") 4 | print("If you want to log out your computer press 3\n") 5 | s=int(input("Enter your Response\n")) 6 | if s==1: 7 | os.system('shutdown /s /t 1') 8 | elif s==2: 9 | os.system('shutdown /r /t 1') 10 | elif s==3: 11 | os.system('shutdown /l') 12 | else: 13 | print("You have entered the wrong response! Please run the script again") -------------------------------------------------------------------------------- /captcha generator/README.md: -------------------------------------------------------------------------------- 1 | # Random Captcha Generator 2 |

3 | 4 | Logo 5 | 6 | 7 | 8 | This is a amazing python script which creates a random image captcha of 6 letters developed by using captcha library. 9 | The example of random image generated shown above 10 | Here is the Carbon code of random captcha generator:- 11 | ![carbon code](carbon_code.png) 12 | -------------------------------------------------------------------------------- /Spell Corrector/correct.txt: -------------------------------------------------------------------------------- 1 | The tubular threat of The Low has always struck me as the ultimate movie 2 | monster: an invariably hungry, amoeba-like mass able to penetrate 3 | virtually any safeguard, capable of--as a dozed doctor willingly 4 | describes it--"assimilating flesh on contact. 5 | Side comparisons to gelatin be damned, it's a concept with the most 6 | devastating of potential consequences, not unlike the grey go scenario 7 | proposed by technological theorists fearful of 8 | artificial intelligence run rampart. 9 | -------------------------------------------------------------------------------- /Spell Corrector/test.txt: -------------------------------------------------------------------------------- 1 | The titular threat of The Blob has always struck me as the ultimate movie 2 | monster: an insatiably hungry, amoeba-like mass able to pentrate 3 | virtually any safeguard, capable of--as a domed doctor chillingly 4 | describes it--"assimilating flesh on contact. 5 | Snide comparisons to gelatin be damned, it's a concpt with the most 6 | devastating of potential conseqences, not unlik the grey goo scenario 7 | proposed by technological theorists fearful of 8 | artificial intelligance run rampant. 9 | -------------------------------------------------------------------------------- /Detecting Text from Image(OCR) using Pycasseract/app.py: -------------------------------------------------------------------------------- 1 | #importing the libraries 2 | 3 | import cv2 4 | import pytesseract as ps 5 | import sys 6 | 7 | # Need to initialize the path where your tesseract.exe is found 8 | 9 | ps.pytesseract.tesseract_cmd='C:\Program Files\Tesseract-OCR\\tesseract.exe' 10 | 11 | #getting image path in cmd 12 | 13 | path=sys.argv[1] 14 | 15 | #read the image 16 | 17 | img=cv2.imread(path) 18 | 19 | #convert from bgr to rgb 20 | 21 | img=cv2.cvtColor(img,cv2.COLOR_BGR2RGB) 22 | 23 | #detect the text in the image 24 | 25 | text=ps.image_to_string(img) 26 | 27 | #print the text 28 | 29 | print(text) -------------------------------------------------------------------------------- /Frames Per Sec/app.py: -------------------------------------------------------------------------------- 1 | import cv2 2 | import datetime 3 | 4 | print("Want to frames per sec!") 5 | camera=cv2.VideoCapture(0) 6 | f=0 7 | start_time=datetime.datetime.now() 8 | while True: 9 | ret,frame=camera.read() 10 | f=f+1 11 | time_curr=datetime.datetime.now() 12 | diff=time_curr-start_time 13 | diff_sec=diff.seconds 14 | if diff_sec==0: 15 | fps=0 16 | else: 17 | fps=f/diff_sec 18 | cv2.putText(frame,"The fps is "+str(fps),(50,50),cv2.FONT_HERSHEY_SIMPLEX,1,(255,0,0),1) 19 | cv2.imshow("fps",frame) 20 | if cv2.waitKey(1) & 0xFF == ord('q'): 21 | break 22 | camera.release() 23 | cv2.destroyAllWindows() 24 | 25 | -------------------------------------------------------------------------------- /QR Code Generator/app.py: -------------------------------------------------------------------------------- 1 | import qrcode 2 | print("Press 1 for text") 3 | print("Press 2 for storing link\n") 4 | option=int(input("Enter the response\n")) 5 | if option==1: 6 | qr=qrcode.QRCode( 7 | version=1, 8 | box_size=10, 9 | border=5) 10 | with open('test.txt','r+') as f: 11 | text=f.read() 12 | qr.add_data(text) 13 | qr.make(fit=True) 14 | img=qr.make_image(fill_color='black',back_color='white') 15 | img.save('qrcode-text.png') 16 | if option==2: 17 | qr=qrcode.QRCode( 18 | version=1, 19 | box_size=10, 20 | border=5) 21 | link=input("Enter the link you want to convert to QRCode\n") 22 | qr.add_data(link) 23 | qr.make(fit=True) 24 | img=qr.make_image(fill_color='black',back_color='white') 25 | img.save('qrcode-link.png') -------------------------------------------------------------------------------- /URL Shortner/app.py: -------------------------------------------------------------------------------- 1 | import pyshorteners as pys 2 | shortner=pys.Shortener() 3 | link=input("Enter the link you want to shorten") 4 | print("Enter the following options for shorteners\n") 5 | print("1. TinyUrl") 6 | print("2. Clck.ru") 7 | print("3. Da.gd") 8 | print("4. Is.gd") 9 | print("5. Os.db") 10 | print("6. Ow.ly") 11 | print("7. Create Your Own URL") 12 | option=int(input()) 13 | if option==1: 14 | shortlink=shortner.tinyurl.short(link) 15 | print(shortlink) 16 | if option==2: 17 | shortlink=shortner.clckru.short(link) 18 | print(shortlink) 19 | if option==3: 20 | shortlink=shortner.dagd.short(link) 21 | print(shortlink) 22 | if option==4: 23 | shortlink=shortner.isgd.short(link) 24 | print(shortlink) 25 | if option==5: 26 | shortlink=shortner.osdb.short(link) 27 | print(shortlink) 28 | if option==6: 29 | shortlink=shortner.owly.short(link) 30 | print(shortlink) 31 | if option==7: 32 | domain=input("Enter the domain you want to create with it") 33 | shortner=pys.Shortener(domain=domain) 34 | shortlink=shortner.nullpointer.short(link) 35 | print(shortlink) 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Typing Speed Counter/app.py: -------------------------------------------------------------------------------- 1 | import datetime 2 | import random 3 | 4 | def typespeed(words,diff): 5 | sec=diff.seconds 6 | if sec==0: 7 | return 0 8 | wps=words/sec 9 | return wps*60 10 | 11 | def random_scripts(): 12 | scripts=["Paid was hill sir high. For him precaution any advantages dissimilar comparison few terminated projecting. Prevailed discovery immediate objection of ye at. Repair summer one winter living feebly pretty his. In so sense am known these since. Shortly respect ask cousins brought add tedious nay. Expect relied do we genius is. On as around spirit of hearts genius. Is raptures daughter branched laughter peculiar in settling.", 13 | "An an valley indeed so no wonder future nature vanity. Debating all she mistaken indulged believed provided declared. He many kept on draw lain song as same. Whether at dearest certain spirits is entered in to. Rich fine bred real use too many good. She compliment unaffected expression favourable any. Unknown chiefly showing to conduct no. Hung as love evil able to post at as.", 14 | "Not far stuff she think the jokes. Going as by do known noise he wrote round leave. Warmly put branch people narrow see. Winding its waiting yet parlors married own feeling. Marry fruit do spite jokes an times. Whether at it unknown warrant herself winding if. Him same none name sake had post love. An busy feel form hand am up help. Parties it brother amongst an fortune of. Twenty behind wicket why age now itself ten.", 15 | "Over fact all son tell this any his. No insisted confined of weddings to returned to debating rendered. Keeps order fully so do party means young. Table nay him jokes quick. In felicity up to graceful mistaken horrible consider. Abode never think to at. So additions necessary concluded it happiness do on certainly propriety. On in green taken do offer witty of." ] 16 | r=random.randint(0,3) 17 | return scripts[r] 18 | 19 | 20 | print("Welcome To Typing Speed Test") 21 | 22 | while(True): 23 | print("If you want to start the test press Y and not interested press N ") 24 | res=input() 25 | if(res=='Y' or res=='y'): 26 | print("Please enter the following text below and press enter") 27 | script=random_scripts().lower() 28 | print(script) 29 | print("Your Time Starts Now! Clock is running ") 30 | start=datetime.datetime.now() 31 | text=input().lower() 32 | end=datetime.datetime.now() 33 | 34 | script_words=script.split(' ') 35 | 36 | text_word=text.split(' ') 37 | if(text_word[0]==' '): 38 | print(typespeed(0,end-start)) 39 | else: 40 | if(text==script): 41 | print(typespeed(len(text_word),end-start)) 42 | else: 43 | print("Please enter correct text and try again") 44 | 45 | elif(res=='N' or res=='n'): 46 | break 47 | else: 48 | print("Enter Correct Key") 49 | 50 | 51 | 52 | 53 | --------------------------------------------------------------------------------