Skip to content

Python application to verify screenshots of Tweets using Tesseract OCR

License

Notifications You must be signed in to change notification settings

cra1gg/tweetverifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Tweet Verifier

Python script to verify whether or not specified image of a tweet is real or not. If it is, provides a link to said tweet as well as a similarity score/certainty percentage

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Download Tesseract OCR from here. Tessaract OCR requires Build Tools for C++ which can be downloaded from here

OpenCV is also required which can be downloaded from here

pip install pytesseract
pip install pillow

Installing

To run the program, clone the repo, and add it to the same directory as the photo of the tweet (png or jpeg)

Run the program using

python main.py -i {Image Directory and Name} 

Example:

python main.py -i testtweets/test1.png

The program will return a list of matched tweets from most similar to least

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Craig D'Souza - Initial work - cra1gg

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Python application to verify screenshots of Tweets using Tesseract OCR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages