react-native-arkit icon indicating copy to clipboard operation
react-native-arkit copied to clipboard

Face tracking

Open G3z opened this issue 7 years ago • 29 comments

I know ARKit has face tracking https://developer.apple.com/videos/play/fall2017/601/ I was wondering if you plan to implement such a feature or you decided not to (and why)

G3z avatar Feb 22 '18 13:02 G3z

@G3z I don't have an iphoneX to try it out, but there is nothing that would prevent an implementation. PRs would be welcome!

It looks not so complicated: https://developer.apple.com/documentation/arkit/arfacetrackingconfiguration

I will soon implement the newer Anchor types like Image or vertical planes (coming with arkit 1.5 on current ios beta), after that its probably easier to add support for ARFaceAnchor

macrozone avatar Feb 23 '18 10:02 macrozone

@G3z I am adding new anchor-types and it should be easier now to add facetracking: https://github.com/HippoAR/react-native-arkit/pull/155/files#diff-f21b481ab0f573fb47650585ffa63fe7R510

We probably just need to add a new property to the <ARKit />-component to enable facetracking

macrozone avatar Feb 26 '18 10:02 macrozone

Any news on this?

enzo-vezzaro-eleva avatar Mar 02 '18 15:03 enzo-vezzaro-eleva

@evezzaro it's not planned for the moment from my side. PR's are highly encouraged!

macrozone avatar Mar 09 '18 13:03 macrozone

I'm using MLKit for this now... But it would be really cool if this did work. A lot faster, too 😄

RWOverdijk avatar May 10 '19 17:05 RWOverdijk

@RWOverdijk hi! I am curious that we can make AR face mask just like Instagram, with this awesome library. Or have you already done with something else?

HappyCodingLover avatar Dec 09 '20 12:12 HappyCodingLover

I solved it by building the app using swift.

RWOverdijk avatar Dec 09 '20 13:12 RWOverdijk

thanks for reply, @RWOverdijk do you think we have possibility on react native? cause my app is written in RN currently and just is wanting to add, AR - face mask function 😊

HappyCodingLover avatar Dec 09 '20 13:12 HappyCodingLover

I don't know haha. It'd probably have to be built. Maybe someone else has an answer! :)

RWOverdijk avatar Dec 09 '20 14:12 RWOverdijk

thanks, @RWOverdijk

HappyCodingLover avatar Dec 09 '20 14:12 HappyCodingLover

unfortunatly, this package is no longer maintained. I know that, because i maintained it ;-)

Problem was that i had no project to use it and android / arcore version never happened (or it did happen, but they decided to fork did not merge into this package here).

you might try https://github.com/viromedia/viro/ which supports both ios and android, but it also staled a bit.

i think the AR on react-native chapter is not closed yet, but currently, its in limbo.

I would love if someone would pick up the work here or on viro. It's actually not that hard.

macrozone avatar Dec 09 '20 14:12 macrozone

thanks for information, it was oasis for me. @macrozone so, what i want to archieve is the AR-face mask functionality just like one in Snapshot or Instagram, I see many stars on this project( 1.6K ), but not sure my goal is doable with this library. any answer for me?

HappyCodingLover avatar Dec 09 '20 14:12 HappyCodingLover

@HappyCodingLover the library here received its last update 3 years ago. that time, Arkit had no support yet for face recognition or similar. So the answer is no, unfortunatly

macrozone avatar Dec 09 '20 14:12 macrozone

@HappyCodingLover having said that, i did not read my own comment from 2018...

edit: i had the impression that it would not be that hard to implement in the library, but i am far far away from that topic, but i encourage anyone to try adding it to this library. I had great fun doing that back then.

I

macrozone avatar Dec 09 '20 14:12 macrozone

@macrozone clear, so now, my possible solution should be found in Viro do u know if Viro supports face mask?

HappyCodingLover avatar Dec 09 '20 14:12 HappyCodingLover

@HappyCodingLover I would ask it on that repo instead. Or try building your own! (it really is fun and there are plenty of tutorials for the native side of things).

RWOverdijk avatar Dec 09 '20 14:12 RWOverdijk

@RWOverdijk yeap, I will try and let you know if I make something cool. thanks for your guidance

HappyCodingLover avatar Dec 09 '20 14:12 HappyCodingLover

Hey @macrozone there are some pretty serious PRs open and waiting review ( worldmap sharing, some rotation helpers and others like QR codes being able to added during runtime )

Any way you would think about giving myself and @JackSoby collaborator to start bringing some of those in ? I think people would add things like face detection if not such big PRs just sitting there.

code-matt avatar Dec 09 '20 15:12 code-matt

@code-matt i added you as admin to the repo!

i am unsure who has admin right on the npm repo though, let' me have a quick look...

macrozone avatar Dec 09 '20 15:12 macrozone

i am currently unsue who has admin right on the npm organisation, unfortunatly, its not me, i am just member. I am not sure if i can reach the other contributors.

@gtfargo you seem to be member of hippAr. current admin on npm are zehaoli and jacy, can you reach these guyes?

@code-matt in the worst case you might need to create a new package in npm, but i guess that is not that dramatic. Make sure that you have enough people with admin rights there...

macrozone avatar Dec 09 '20 15:12 macrozone

@macrozone Okay, will just create a new one if it comes down to that.

I am not seeing the ability to merge requests still though. Not that I would now, need to look some of the recent PRs over with @JackSoby

code-matt avatar Dec 09 '20 16:12 code-matt

@code-matt you have to accept the invitation probably, thats sometimes a bit hidden in github

macrozone avatar Dec 09 '20 16:12 macrozone

@macrozone Ah sorry, ancient email : ) will do

code-matt avatar Dec 09 '20 16:12 code-matt

Hey @code-matt @macrozone @JackSoby, sorry for bumping this again, but I really want to use this library and have currently no idea what‘s the status. Is this package maintained, was it forked, and what eventually happened with RN AR face tracking? Thanks a bunch, Dan

danbachar avatar Mar 08 '22 15:03 danbachar

hi @danbachar no, its not maintained, maybe checkout https://github.com/ViroCommunity/viro/ which is still activily maintained

macrozone avatar Mar 08 '22 16:03 macrozone

@danbachar If you have a PR you would like to open I would be happy to look at it

JackSoby avatar Mar 08 '22 16:03 JackSoby

Thanks! Will do.

danbachar avatar Mar 08 '22 16:03 danbachar

does RN have ARKit face tracking support?

emphaticaditya avatar Aug 29 '22 20:08 emphaticaditya

does RN have ARKit face tracking support?

I Dont believe so, but if you would like to open up a PR I would be happy to approve!

JackSoby avatar Aug 29 '22 23:08 JackSoby