publiclab / infragram

A minimal core of the Infragram.org project in JavaScript
https://infragram.org/sandbox/
GNU General Public License v2.0
44 stars 166 forks source link

Integrate with pixel 4XL infrared camera! #93

Open jywarren opened 4 years ago

jywarren commented 4 years ago

https://paul.kinlan.me/pixel-4xl-infrared-sensor-via-getusermedia/

jywarren commented 4 years ago

image

It’s turns out that you can access the pixel 4 face detection IR camera via normal getUserMedia. The interesting thing is that if you try to do face unlock when this camera is being used (the bit where it throws things on to your face) the system will just flat refuse to do any of the face unlock process and that makes sense.

If you want to quickly try this then you can view the demo here.

Anyone got any ideas about what we can do with infrared camera access?

Update

Francois Beafort updated Blink by adding infrared to the camera name if the device supports it - this will let you quickly get a better understanding of the type of camera just by the name (also will let users pick the one they want more effectively). https://chromium-review.googlesource.com/c/chromium/src/+/1960152

jywarren commented 3 years ago

This should work with the regular Pixel 4 too, but not the 4a or 5: https://newatlas.com/mobile-technology/google-pixel-comparison4-4xl-4a-4a5g-5/

ShivraniAJ commented 2 years ago

Hi, I am Shivrani, Outreachy initial applicant, Please can you assign this issue to me ?

jywarren commented 2 years ago

Hi Shivrani, do you have access to a pixel 4XL phone? Thank you!

On Tue, Mar 29, 2022 at 3:36 AM Shivrani A. Jadhav @.***> wrote:

Hi, I am Shivrani, Outreachy initial applicant, Please can you assign this issue to me ?

— Reply to this email directly, view it on GitHub https://github.com/publiclab/infragram/issues/93#issuecomment-1081522200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6JYE777OS7AFH3EPYGTVCKXGHANCNFSM4JZVFMSQ . You are receiving this because you authored the thread.Message ID: @.***>

ShivraniAJ commented 2 years ago

I am sorry, I dont have access to a pixel 4XL phone.

jywarren commented 2 years ago

Thank you for your interest -- i think this particular issue would be tough without one. But thank you!!!

On Wed, Mar 30, 2022 at 12:32 AM Shivrani A. Jadhav < @.***> wrote:

I am sorry, I dont have access to a pixel 4XL phone.

— Reply to this email directly, view it on GitHub https://github.com/publiclab/infragram/issues/93#issuecomment-1082610980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF6J2VGTL4Z2A3RPJQQF3VCPKNZANCNFSM4JZVFMSQ . You are receiving this because you authored the thread.Message ID: @.***>

jywarren commented 2 years ago

Just updating that pixel 4xl cameras are now often under $200 used on Ebay. Also: it's a selfie cam, not a forward facing cam! And it looks like the camera is not exactly aligned with the visible light camera, so there would need to be significant software alignment to make this work:

https://www.forbes.com/sites/paulmonckton/2019/11/07/googles-pixel-4-has-a-secret-camera-mode/?sh=654808df303b

960x0