Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of API #190

Open
takuya-takeuchi opened this issue Jan 20, 2022 · 3 comments
Open

Usage of API #190

takuya-takeuchi opened this issue Jan 20, 2022 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@takuya-takeuchi
Copy link
Owner

Hello
I try to do facial recognition with this example
https://github.com/takuya-takeuchi/FaceRecognitionDotNet/wiki/Quickstart#1-initialize
but I get an error when compiling in visual studio

Argument 2: cannot be converted from 'FaceRecognitionDotNet.Location' a 'System.Collections.Generic.IEnumerable<FaceRecognitionDotNet.Location>'

in this line
IEnumerable encodingA = FaceRecognition.FaceEncodings(imageA, locationsA.First());

I am missing some nuget package

Originally posted by @Gaara1996 in #187 (comment)

@takuya-takeuchi takuya-takeuchi changed the title Usage of APIo Usage of API Jan 20, 2022
@takuya-takeuchi
Copy link
Owner Author

takuya-takeuchi commented Jan 20, 2022

You can do

IEnumerable encodingA = FaceRecognition.FaceEncodings(imageA, locationsA);

@takuya-takeuchi takuya-takeuchi self-assigned this Jan 20, 2022
@takuya-takeuchi takuya-takeuchi added the question Further information is requested label Jan 20, 2022
@takuya-takeuchi
Copy link
Owner Author

OK, Wiki is wrong.
I revised it.
Thanks. :)

@Gaara1996
Copy link

Gaara1996 commented Jan 20, 2022

Thanks for the help in the end I left it this way
IEnumerable encodingB = fr.FaceEncodings(imageB).ToArray();
and it worked =)
And I also tried your suggestion and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants