image_recognition_skybiometry.face_client

Attributes

API_HOST

USE_SSL

Exceptions

FaceError

Common base class for all non-exit exceptions.

Classes

FaceClient

Module Contents

image_recognition_skybiometry.face_client.API_HOST = 'api.skybiometry.com/fc'
image_recognition_skybiometry.face_client.USE_SSL = True
class image_recognition_skybiometry.face_client.FaceClient(api_key=None, api_secret=None)[source]

Bases: object

api_key
api_secret
format = 'json'
twitter_credentials = None
facebook_credentials = None
set_twitter_oauth_credentials(user=None, secret=None, token=None)[source]
set_facebook_oauth_credentials(user_id=None, session_id=None, oauth_token=None)[source]
faces_detect(urls=None, file_=None, buffer_=None, aggressive=False)[source]

Returns tags for detected faces in one or more photos, with geometric information of the tag, eyes, nose and mouth, as well as the gender, glasses, and smiling attributes.

http://www.skybiometry.com/Documentation#faces/detect

faces_status(uids=None, namespace=None)[source]

Reports training set status for the specified UIDs.

http://www.skybiometry.com/Documentation#faces/status

faces_recognize(uids=None, urls=None, files_=None, buffers_=None, aggressive=False, train=None, namespace=None)[source]

Attempts to detect and recognize one or more user IDs’ faces, in one or more photos. For each detected face, the SkyBiometry engine will return the most likely user IDs, or empty result for unrecognized faces. In addition, each tag includes a threshold score - any score below this number is considered a low-probability hit.

http://www.skybiometry.com/Documentation#faces/recognize

faces_train(uids=None, namespace=None)[source]

Calls the training procedure for the specified UIDs, and reports back changes.

http://www.skybiometry.com/Documentation#faces/train

tags_get(uids=None, urls=None, pids=None, order='recent', limit=5, together=False, filters=None, namespace=None)[source]

Returns saved tags in one or more photos, or for the specified User ID(s). This method also accepts multiple filters for finding tags corresponding to a more specific criteria such as front-facing, recent, or where two or more users appear together in same photos.

http://www.skybiometry.com/Documentation#tags/get

tags_add(url=None, x=None, y=None, width=None, uid=None, tagger_id=None, label=None, password=None)[source]

Add a (manual) face tag to a photo. Use this method to add face tags where those were not detected for completeness of your service.

http://www.skybiometry.com/Documentation#tags/add

tags_save(tids=None, uid=None, tagger_id=None, label=None, password=None)[source]

Saves a face tag. Use this method to save tags for training the index, or for future use of the faces.detect and tags.get methods.

http://www.skybiometry.com/Documentation#tags/save

tags_remove(tids=None, password=None)[source]

Remove a previously saved face tag from a photo.

http://www.skybiometry.com/Documentation#tags/remove

account_limits()[source]

Returns current rate limits for the account represented by the passed API key and Secret.

http://www.skybiometry.com/Documentation#account/limits

account_users(namespaces=None)[source]

Returns current rate limits for the account represented by the passed API key and Secret.

http://www.skybiometry.com/Documentation#account/users

account_namespaces()[source]

Returns all valid data namespaces for user authorized by specified API key.

http://www.skybiometry.com/Documentation#account/namespaces

__check_user_auth_credentials(uids)
__append_user_auth_data(data, facebook_uids, twitter_uids)
static __append_optional_arguments(data, **kwargs)
send_request(method=None, parameters=None, files=None, buffers=None)[source]
exception image_recognition_skybiometry.face_client.FaceError(error_code, error_message)[source]

Bases: Exception

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

error_code
error_message
__str__()[source]

Return str(self).