loco-hack
loco-hack copied to clipboard
Error
Getting error
What error?
Keyerror: requestAnnotations
This is not becoz api is incorrect but becoz that screenshot that your pc is taking is over cropped. So that program cannot detect text properly.
#šríkãnť
On Tue, Apr 17, 2018, 3:50 PM shreyas24cool [email protected] wrote:
Keyerror: requestAnnotations
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaseemkm/loco-hack/issues/15#issuecomment-381936971, or mute the thread https://github.com/notifications/unsubscribe-auth/AknoNFdMmUqKwOJclneOEyLHxQXc28GQks5tpcIHgaJpZM4TYBJ8 .
What should I do
Set proper dimensions according to your phone screen
How to set the dimensions
Use microsoft paint to get dimensions
In phone
In pc
#šríkãnť
On Tue, Apr 17, 2018, 4:01 PM shreyas24cool [email protected] wrote:
In phone
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaseemkm/loco-hack/issues/15#issuecomment-381940251, or mute the thread https://github.com/notifications/unsubscribe-auth/AknoNLlJbptGA7O6PYilfGlOSDvPmS0iks5tpcSAgaJpZM4TYBJ8 .
Hey I did some editing in the code. Now it won't require you to set the dimensions. It will automatically distinguish question from the options.
Subhamshekar is there no need to set dimensions for question too?
You can just convert entire image into text and then parse the question and options.
Then this line in ur code?
+def split_screen_to_question_and_options():
- i = Image.open('screen.png')
- width, height = i.size
- frame = i.crop(((0,700,width,1800)))
- frame.save('question.png')
Should we change that values?
Give it try 👉https://youtu.be/b58jbZnACn8
Check here full tutorial video https://www.youtube.com/watch?v=Bj6rHK31cvk&feature=youtu.be