cfc icon indicating copy to clipboard operation
cfc copied to clipboard

The fish-eye effect prevents me from scanning.

Open WhiteSonicSuper opened this issue 4 months ago • 6 comments

Techno Spark 30 Pro. I can't scan the code from another phone, because of the fish-eye effect.

Image

WhiteSonicSuper avatar Aug 18 '25 03:08 WhiteSonicSuper

It should correct that, I think. Your image is incredibly blurry, what resolution is your camera?

Edit: There's also some ghosting. Several factors influence decoding, including color accuracy, resolution (camera/screen), and frame rate. I looked up the specs of your phone, the camera is 108MP rear. I couldn't find a frame rate.

I think that your problem here is either focus or the sending screen is too low res, but this is just me adding my two cents.

Anonymous3-a avatar Aug 18 '25 04:08 Anonymous3-a

It should correct that, I think. Your image is incredibly blurry, what resolution is your camera?

Edit: There's also some ghosting. Several factors influence decoding, including color accuracy, resolution (camera/screen), and frame rate. I looked up the specs of your phone, the camera is 108MP rear. I couldn't find a frame rate.

I think that your problem here is either focus or the sending screen is too low res, but this is just me adding my two cents.

Okay, I see... I still don't know how to fix the problem. Thank you anyway.

WhiteSonicSuper avatar Aug 18 '25 05:08 WhiteSonicSuper

Try a bigger screen, or try putting a picture on the screen to get it to focus (and remove it after, of course).

Anonymous3-a avatar Aug 18 '25 05:08 Anonymous3-a

I tried bigger screen, and it worked. I'll try putting picture on the smaller one next. Thank you for your advice.

пн, 18 авг. 2025 г., 11:56 Anonymous3-a @.***>:

Anonymous3-a left a comment (sz3/cfc#46) https://github.com/sz3/cfc/issues/46#issuecomment-3195226052

Try a bigger screen, or try putting a picture on the screen to get it to focus (and remove it after, of course).

— Reply to this email directly, view it on GitHub https://github.com/sz3/cfc/issues/46#issuecomment-3195226052, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWISBU6QHRGC5UI57GTEAUT3OFTHJAVCNFSM6AAAAACED262I2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJVGIZDMMBVGI . You are receiving this because you authored the thread.Message ID: @.***>

WhiteSonicSuper avatar Aug 18 '25 06:08 WhiteSonicSuper

You're welcome. If this solved your issue, please close it.

Anonymous3-a avatar Aug 18 '25 15:08 Anonymous3-a

It's pretty tough with how bad the distortion is on some (usually cheaper) cameras, especially on close-up objects (e.g. another phone screen).

The decoder algorithm has some distortion correction "baked in", and it does a pretty good job as long as the distortion is minor. But when it goes too far it basically has to to give up.

It's probably feasible to do more intense distortion correction than we currently do, but that requires some cleverness I haven't yet discovered.

There is one more trick that I'm working on -- and it might help with #47 in some cases as well. I'm hoping to have a smaller version of the format ready for an upcoming release (1024x720 instead of 1024x1024). Some of the problems we see basically reduce to "this camera doesn't have the specs to do this", and if so a smaller version of the format could help quite a bit.

sz3 avatar Aug 18 '25 15:08 sz3