Nycrera / face-plusplus-node

Face Plus Plus /v3 API for Node.js
MIT License
3 stars 1 forks source link

For now only facial recognition api's work #1

Open Nycrera opened 5 years ago

Nycrera commented 5 years ago

So, you know that the URLs of API's has a version number. For now, this version number seems to be hardcoded as "v3". As all of the facial recognition services have this version number, this never had been an issue until I tried to use other APIs like Body Recognition and Image Recognition.

And since face swap API is included in the Image Recognition Category. This API is not working either.

As for the solution I am currently planning to create a list of versions including all the API versions and query the versions from this list. But the problem with this solution is that every time a change happens in these values. List has to be updated. That's why maybe also a list updater or something like that will be needed. List updater will get all the documentation from the face++ documentation page and parse all the values.

Nycrera commented 5 years ago

or maybe we can go even further and hardcode all possible API's but for the sake of back-compatibility still, keep the old method.