loco-hack icon indicating copy to clipboard operation
loco-hack copied to clipboard

Error

Open shreyas24cool opened this issue 6 years ago • 15 comments

Getting error

shreyas24cool avatar Apr 17 '18 10:04 shreyas24cool

What error?

srikantbhoi avatar Apr 17 '18 10:04 srikantbhoi

Keyerror: requestAnnotations

shreyas24cool avatar Apr 17 '18 10:04 shreyas24cool

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 .

srikantbhoi avatar Apr 17 '18 10:04 srikantbhoi

What should I do

shreyas24cool avatar Apr 17 '18 10:04 shreyas24cool

Set proper dimensions according to your phone screen

srikantbhoi avatar Apr 17 '18 10:04 srikantbhoi

How to set the dimensions

shreyas24cool avatar Apr 17 '18 10:04 shreyas24cool

Use microsoft paint to get dimensions

srikantbhoi avatar Apr 17 '18 10:04 srikantbhoi

In phone

shreyas24cool avatar Apr 17 '18 10:04 shreyas24cool

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 .

srikantbhoi avatar Apr 17 '18 10:04 srikantbhoi

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.

shubhamshekhar avatar Apr 25 '18 11:04 shubhamshekhar

Subhamshekar is there no need to set dimensions for question too?

U-r-Unknown avatar Apr 26 '18 03:04 U-r-Unknown

You can just convert entire image into text and then parse the question and options.

arpanjayeshkumarshukla avatar Apr 28 '18 15:04 arpanjayeshkumarshukla

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?

U-r-Unknown avatar Apr 29 '18 04:04 U-r-Unknown

Give it try 👉https://youtu.be/b58jbZnACn8

rahulnaik093 avatar May 03 '18 14:05 rahulnaik093

Check here full tutorial video https://www.youtube.com/watch?v=Bj6rHK31cvk&feature=youtu.be

Farhanshaikh6458 avatar May 05 '18 10:05 Farhanshaikh6458