首页>代码> java人脸识别,非常准确哦>/src/com/github/mhendred/face4j/FaceApi.java
/*
 * Copyright (c) 2010 Marlon Hendred
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.github.mhendred.face4j;

/**
 * Holds the path to the resources on api.face.com
 * 
 * @author Marlon Hendred
 *
 */
public enum FaceApi 
{
	RECOGNIZE("/faces/recognize.json", true),
	DETECT("/faces/detect.json", false),
	GROUP("/faces/group.json", true),
	TRAIN("/faces/train.json", true),
	STATUS("/faces/status.json",true),
	REMOVE_TAGS("/tags/remove.json", true),
	SAVE_TAGS("/tags/save.json", true),
	GET_TAGS("/tags/get.json", true),
	ADD_TAG("/tags/add.json", true),
	LIMITS("/account/limits.json", false),
	NAMESPACES("/account/namespaces.json", false),
	USERS("/account/users.json", false),
	FACEBOOK("/facebook/get.json", true);
	
	private final String path;
	
	private final boolean takesAuth;
	
	private FaceApi (String path, boolean takesAuth) 
	{
		this.path = path;
		this.takesAuth = takesAuth;
	}
	
	public String getPath ()
	{
		return path;
	}
	
	public boolean takesAuth ()
	{
		return takesAuth;
	}
}
最近下载更多
2890892945  LV2 2023年12月31日
1529860026  LV24 2023年8月3日
qwdqwdqw  LV3 2022年12月3日
sdkjaskldjaslkj  LV1 2022年11月24日
bruceshen  LV2 2022年9月1日
kiyo0416  LV1 2021年12月12日
木华不是呆瓜  LV2 2021年12月9日
warrior09  LV2 2021年11月19日
张颖齐  LV1 2021年9月17日
yuchunping  LV1 2021年8月17日
最近浏览更多
feizai0101 4月14日
暂无贡献等级
xiaojie93  LV2 2月29日
鸦葱  LV4 1月6日
2890892945  LV2 2023年12月31日
1790759671 2023年11月1日
暂无贡献等级
1529860026  LV24 2023年6月28日
真的逢考必过  LV1 2023年6月20日
2517786374  LV4 2023年6月12日
3044651641 2023年6月4日
暂无贡献等级
lvdong2023  LV10 2023年5月17日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友