pwnfoo / fakemenot Goto Github PK
View Code? Open in Web Editor NEWApplication to check authenticity of Twitter screenshots. Written in Python :snake:
License: MIT License
Application to check authenticity of Twitter screenshots. Written in Python :snake:
License: MIT License
It'll be nice to have a graphic representation of what works and what doesn't.
Things to do :
I tried to run fakemenot and this problem occured
Traceback (most recent call last):
File "/usr/local/bin/fakemenot", line 11, in <module>
load_entry_point('fakemenot==0.0.3', 'console_scripts', 'fakemenot')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/dist-packages/fakemenot-0.0.3-py2.7.egg/fakemenot/__init__.py", line 67
'consumer_key')..replace(
^
SyntaxError: invalid syntax
When running the app, this always (at least for me) occurs:
ahmet ๎ฐ Desktop ๎ฐ fakemenot -i twitter.png Detected handle : @elahmo Traceback (most recent call last): File "/Users/ahmet/anaconda/bin/fakemenot", line 11, in <module> load_entry_point('fakemenot==0.0.3', 'console_scripts', 'fakemenot')() File "build/bdist.macosx-10.9-x86_64/egg/fakemenot/__init__.py", line 190, in main File "build/bdist.macosx-10.9-x86_64/egg/fakemenot/__init__.py", line 115, in _do_ocr_and_lookup ValueError: 'v' is not in list
The issue is at this line.
@SachinKamath can you tell us the reasoning by looking for this V? This is not always suggested by OCR, and a simple fix is to remove this check completely, and I did that in my repo, but wanted to see is there any reason for this.
fakemenot
Traceback (most recent call last):
File "/home/abhinavralhan/miniconda3/bin/fakemenot", line 6, in
from pkg_resources import load_entry_point
File "", line 961, in _find_and_load
File "", line 950, in _find_and_load_unlocked
File "", line 646, in _load_unlocked
File "", line 616, in _load_backward_compatible
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 2985, in
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 2971, in _call_aside
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 2998, in _initialize_master_working_set
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 660, in _build_master
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 968, in require
File "/home/abhinavralhan/miniconda3/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg/pkg_resources/init.py", line 854, in resolve
pkg_resources.DistributionNotFound: The 'Pillow' distribution was not found and is required by pytesseract
Nice work. But, why would it work only on desktop screenshots? Just curious.
It'll be really nice to have the setup.py
completed. It only install dependencies now.
I tried to run fakemenot
but the error occured
Traceback (most recent call last):
File "/usr/local/bin/fakemenot", line 11, in <module>
load_entry_point('fakemenot==0.0.2', 'console_scripts', 'fakemenot')()
File "build/bdist.linux-x86_64/egg/fakemenot/__init__.py", line 136, in main
File "build/bdist.linux-x86_64/egg/fakemenot/__init__.py", line 45, in _do_ocr_and_lookup
File "build/bdist.linux-x86_64/egg/pytesseract/pytesseract.py", line 122, in image_to_string
File "build/bdist.linux-x86_64/egg/pytesseract/pytesseract.py", line 46, in run_tesseract
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I'm running this on lubuntu. The subprocess.py
is existed.
Right now, the app only checks if the confidence level is above a certain percentage. It'd be great to print the confidence level of all the images given and have various levels of confidence.
Running this on Ubuntu 16.04 LTS, as per the given setup. The package is not found.
sudo apt-get install tessearct-ocr tesseract-data-eng
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tessearct-ocr
E: Unable to locate package tesseract-data-eng
The current method is a handmade algorithm which is not very efficient. A Levenshtein Distance
based algo will be good to have.
python init.py -i /home/abhinavralhan/Desktop/Selection_031.png
Error 404: ('Not Found: The URI requested is invalid or', 'the resource requested does not exists')
The error given above is a little tough to debug. Please help
We recently moved to setup.py
based installation and it looks like a thing or two broke.
The file fakemenot/twitter.config
needs to be handled now. There are multiple ways to handle this.
.twitterconfig
and read it.-c
.TSSIA
Convert the precision to 2 and add a nice % symbol next to it :)
As the title says, it'll be nice to have the output colorized. Please implement a cross-platform solution :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.