跳转到内容

特征检测微软脸API

网际照片多为人所为网站或移动应用显示图片包含人时,您会想确保他们在裁剪并变换图像以适应图形设计并响应布局时,脸部包含在交付图像中或甚至想按当前表情对图像做进一步的变换,例如,在他们所有眼睛上添加harlequin掩码叠加,使每个掩码都适应正确尺寸和取向(虽然不是典型使用案例,但使用高级面部属性检测的酷例子):

<\/Image>","codeSnippet":" \n\t \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","codeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","codeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","codeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('cloudinary_team.jpg', {transformation: [ {width: 700, radius: \"max\", crop: \"scale\"}, {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"harlequinmask\"), width: \"1.7\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('cloudinary_team.jpg', {transformation: [\n {width: 700, radius: \"max\", crop: \"scale\"},\n {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"harlequinmask\"), width: \"1.7\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"cloudinary_team.jpg\").image(transformation=[ {'width': 700, 'radius': \"max\", 'crop': \"scale\"}, {'flags': \"region_relative\", 'gravity': \"adv_eyes\", 'overlay': \"harlequinmask\", 'width': \"1.7\"} ])","codeSnippet":"CloudinaryImage(\"cloudinary_team.jpg\").image(transformation=[\n {'width': 700, 'radius': \"max\", 'crop': \"scale\"},\n {'flags': \"region_relative\", 'gravity': \"adv_eyes\", 'overlay': \"harlequinmask\", 'width': \"1.7\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('cloudinary_team.jpg'))\n\t->resize(Resize::scale()->width(700))\n\t->roundCorners(RoundCorners::max())\n\t->overlay(Overlay::source(\n\tSource::image(\"harlequinmask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.7)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t)\n\t);","codeSnippet":"(new ImageTag('cloudinary_team.jpg'))\n\t->resize(Resize::scale()->width(700))\n\t->roundCorners(RoundCorners::max())\n\t->overlay(Overlay::source(\n\tSource::image(\"harlequinmask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.7)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t)\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"cloudinary_team.jpg\", array(\"transformation\"=>array( array(\"width\"=>700, \"radius\"=>\"max\", \"crop\"=>\"scale\"), array(\"flags\"=>\"region_relative\", \"gravity\"=>\"adv_eyes\", \"overlay\"=>\"harlequinmask\", \"width\"=>\"1.7\") )))","codeSnippet":"cl_image_tag(\"cloudinary_team.jpg\", array(\"transformation\"=>array(\n array(\"width\"=>700, \"radius\"=>\"max\", \"crop\"=>\"scale\"),\n array(\"flags\"=>\"region_relative\", \"gravity\"=>\"adv_eyes\", \"overlay\"=>\"harlequinmask\", \"width\"=>\"1.7\")\n )))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(700).radius(\"max\").crop(\"scale\").chain() .flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"harlequinmask\")).width(1.7)).imageTag(\"cloudinary_team.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .width(700).radius(\"max\").crop(\"scale\").chain()\n .flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"harlequinmask\")).width(1.7)).imageTag(\"cloudinary_team.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"cloudinary_team.jpg\", :transformation=>[ {:width=>700, :radius=>\"max\", :crop=>\"scale\"}, {:flags=>\"region_relative\", :gravity=>\"adv_eyes\", :overlay=>\"harlequinmask\", :width=>1.7} ])","codeSnippet":"cl_image_tag(\"cloudinary_team.jpg\", :transformation=>[\n {:width=>700, :radius=>\"max\", :crop=>\"scale\"},\n {:flags=>\"region_relative\", :gravity=>\"adv_eyes\", :overlay=>\"harlequinmask\", :width=>1.7}\n ])","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(700).Radius(\"max\").Crop(\"scale\").Chain() .Flags(\"region_relative\").Gravity(\"adv_eyes\").Overlay(new Layer().PublicId(\"harlequinmask\")).Width(1.7)).BuildImageTag(\"cloudinary_team.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Width(700).Radius(\"max\").Crop(\"scale\").Chain()\n .Flags(\"region_relative\").Gravity(\"adv_eyes\").Overlay(new Layer().PublicId(\"harlequinmask\")).Width(1.7)).BuildImageTag(\"cloudinary_team.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('cloudinary_team.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(700))\n\t.roundCorners(RoundCorners.max())\n\t.overlay(Overlay.source(\n\tSource.image(\"harlequinmask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","codeSnippet":"cloudinary.image('cloudinary_team.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(700))\n\t.roundCorners(RoundCorners.max())\n\t.overlay(Overlay.source(\n\tSource.image(\"harlequinmask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(700).setRadius(\"max\").setCrop(\"scale\").chain() .setFlags(\"region_relative\").setGravity(\"adv_eyes\").setOverlay(\"harlequinmask\").setWidth(1.7)).generate(\"cloudinary_team.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setWidth(700).setRadius(\"max\").setCrop(\"scale\").chain()\n .setFlags(\"region_relative\").setGravity(\"adv_eyes\").setOverlay(\"harlequinmask\").setWidth(1.7)).generate(\"cloudinary_team.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().width(700).radius(\"max\").crop(\"scale\").chain() .flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"harlequinmask\")).width(1.7)).generate(\"cloudinary_team.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .width(700).radius(\"max\").crop(\"scale\").chain()\n .flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"harlequinmask\")).width(1.7)).generate(\"cloudinary_team.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('cloudinary_team.jpg').transformation(Transformation()\n\t.addTransformation(\"w_700,r_max\/fl_region_relative,g_adv_eyes,l_harlequinmask,w_1.7\"));","codeSnippet":"cloudinary.image('cloudinary_team.jpg').transformation(Transformation()\n\t.addTransformation(\"w_700,r_max\/fl_region_relative,g_adv_eyes,l_harlequinmask,w_1.7\"));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"cloudinary_team.jpg\")\n\t resize(Resize.scale() { width(700) })\n\t roundCorners(RoundCorners.max())\n\t overlay(Overlay.source(\n\tSource.image(\"harlequinmask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.7F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"cloudinary_team.jpg\")\n\t resize(Resize.scale() { width(700) })\n\t roundCorners(RoundCorners.max())\n\t overlay(Overlay.source(\n\tSource.image(\"harlequinmask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.7F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t })\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"cloudinary_team.jpg\", {transformation: [ {width: 700, radius: \"max\", crop: \"scale\"}, {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"harlequinmask\"), width: \"1.7\"} ]})","codeSnippet":"$.cloudinary.image(\"cloudinary_team.jpg\", {transformation: [\n {width: 700, radius: \"max\", crop: \"scale\"},\n {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"harlequinmask\"), width: \"1.7\"}\n ]})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","codeSnippet":"new CloudinaryImage(\"cloudinary_team.jpg\")\n .resize(scale().width(700))\n .roundCorners(max())\n .overlay(\n source(\n image(\"harlequinmask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n );","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_700,r_max\/fl_region_relative,g_adv_eyes,l_harlequinmask,w_1.7\/cloudinary_team.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"700","radius":"max"},{"flags":"region_relative","gravity":"adv_eyes","overlay":"harlequinmask","width":"1.7"}],"transformation_string":"w_700,r_max\/fl_region_relative,g_adv_eyes,l_harlequinmask,w_1.7","url_suffix":"","version":"","secure":true,"public_id":"cloudinary_team.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 云式防伪队

脸部检测是一个大特征,它能根据图像内检测到的面部自动修改图像,使智能裁剪、定位、调整大小并适当变换图像简单化

Cloudinary公司努力创建丰富环境解决客户媒体资产相关需求以整体方式处理图像管理, 与开发图像处理与媒体相关技术的顶尖公司建立合作伙伴关系, 以拓展内部特征与能力并满足客户更多复杂需求并发服务预整合成云化系统,为开发、扩展和操作Web和移动应用量身定制

最近我们结为伙伴微软认知服务提供a脸API高精度面部检测 最新云基算法FaceAPI技术完全整合高级侧属性检测上加光比光检测图像中人脸还多高级属性检测加载还可以提取图像上面部有意义的先进数据,包括面部特征的确切位置允许更多控制图像分类并自动使用这些细节智能裁剪、定位、旋转并覆盖基于检测面部特征的图像

微软认知服务标识

云化支持使用云基API上传图像可设置图像上传时请求更多信息检测参数切换adv-face调用云端上传API和高级acial属性检测自动从上传图像提取详细表情属性JSON响应中检测到的面部返回矩形(左上方、宽度和高度)表示图像中脸部位置像素、眼部、嘴部、眉部、鼻子和嘴唇等确切位置细节,以及相貌相联性数列,如姿势、性别和年龄看高级属性检测文档获取更多信息下方代码样本上传小姐JSON响应请求还返回面部属性

加载代码示例

<\/Image>","codeSnippet":" \n\n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\");","codeSnippet":"new CloudinaryImage(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\");","codeSnippet":"new CloudinaryImage(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-image>","codeSnippet":" \n\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\");","codeSnippet":"new CloudinaryImage(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('lady.jpg').toHtml();","codeSnippet":"cloudinary.imageTag('lady.jpg').toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"lady.jpg\").image()","codeSnippet":"CloudinaryImage(\"lady.jpg\").image()","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('lady.jpg'));","codeSnippet":"(new ImageTag('lady.jpg'));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"lady.jpg\")","codeSnippet":"cl_image_tag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().imageTag(\"lady.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().imageTag(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"lady.jpg\")","codeSnippet":"cl_image_tag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"lady.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"lady.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"lady.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().generate(\"lady.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().generate(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation());","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\") \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\") \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"lady.jpg\")","codeSnippet":"$.cloudinary.image(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\");","codeSnippet":"new CloudinaryImage(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/lady.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[],"transformation_string":"","url_suffix":"","version":"","secure":true,"public_id":"lady.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 原创上传图像

实例JSON片段下含上传响应结果,对上传图像应用高级面部属性检测响应中包含非常详细的信息 面部自动检测 上方图像

        {.信息类:{检测器:{前台:{状态:完全性,数据类:边框:{顶端:234.0,左转:216.0,宽度:244.0,位高:244.0},属性:{里程:0.649,头屏:{切奇:0.0,滚动:6.7,yaw:0.6},性别类:异性化,高龄:30.3,法尔海尔:{友爱:0.0,怀德:0.0,侧角角:0.0..."facial_landmarks":{口语:{左转:{X级:277.1,y名词:410.6},右转:{X级:410.2,y名词:395.1},下游:{底部:{X级:352.8,y名词:445.0},顶端:{X级:349.1,y名词:431.8...上流:{底部:{X级:346.3,y名词:415.1},顶端:{X级:345.4,y名词:407.5...眉眉:{左外:{X级:224.1,y名词:298.0},左入:{X级:306.6,y名词:283.4},右内存:{X级:361.4,y名词:279.8},右前台:{X级:428.8,y名词:272.2...眼线:{左外:{X级:258.5,y名词:314.1},左顶:{X级:277.0,y名词:306.2},左下角:{X级:277.1,y名词:315.6},左入:{X级:296.4,y名词:312.9},右内存:{X级:3 7,y名词:305.2},右顶:{X级:388.0,y名词:294.5},右下角:{X级:389.0,y名词:306.0},右前台:{X级:406.5,y名词:300.2},左学分:{X级:278.3,y名词:309.4},右学:{X级:386.0,y名词:298.7...鼻孔:{台北:{X级:341.6,y名词:381.6},root左转:{X级:321.9,y名词:314.6},root-right:{X级:343.6,y名词:311.8},左单调:{X级:312.7,y名词:359.7},"right_alar_top":{X级:359.2,y名词:351.2},"left_alar_out_tip":{X级:305.4,y名词:380.4},"right_alar_out_tip":{X级:374.3,y名词:367.5#############代码语言JavaScript高山市javascript)

云形图像实时变换使用HTTP交付URL中的简单参数基于面部属性定位高级检测加载云库可裁剪图像聚焦检测面部特征,同时提供大片集图像变换并裁剪选项使用云交付URL聚焦自动裁剪检测面孔简单设置裁剪参数切换缩略图,填充裁剪重力参数切换adv-faces台词集重力adv-face聚焦图像中检测到的最大表情)生成图像动态即时生成,结果通过快速CDN传递

举个例子提供300x300缩略图小姐上方显示图像 :

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('lady.jpg', {gravity: \"adv_face\", height: 300, width: 300, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('lady.jpg', {gravity: \"adv_face\", height: 300, width: 300, crop: \"thumb\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"lady.jpg\").image(gravity=\"adv_face\", height=300, width=300, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"lady.jpg\").image(gravity=\"adv_face\", height=300, width=300, crop=\"thumb\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('lady.jpg'))\n\t->resize(Resize::thumbnail()->width(300)\n->height(300)\n\t->gravity(\n\tGravity::focusOn(\"advanced_face\"))\n\t);","codeSnippet":"(new ImageTag('lady.jpg'))\n\t->resize(Resize::thumbnail()->width(300)\n->height(300)\n\t->gravity(\n\tGravity::focusOn(\"advanced_face\"))\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", array(\"gravity\"=>\"adv_face\", \"height\"=>300, \"width\"=>300, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"lady.jpg\", array(\"gravity\"=>\"adv_face\", \"height\"=>300, \"width\"=>300, \"crop\"=>\"thumb\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"adv_face\").height(300).width(300).crop(\"thumb\")).imageTag(\"lady.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"adv_face\").height(300).width(300).crop(\"thumb\")).imageTag(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", :gravity=>\"adv_face\", :height=>300, :width=>300, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"lady.jpg\", :gravity=>\"adv_face\", :height=>300, :width=>300, :crop=>\"thumb\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"adv_face\").Height(300).Width(300).Crop(\"thumb\")).BuildImageTag(\"lady.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"adv_face\").Height(300).Width(300).Crop(\"thumb\")).BuildImageTag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"adv_face\").setHeight(300).setWidth(300).setCrop(\"thumb\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"adv_face\").setHeight(300).setWidth(300).setCrop(\"thumb\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"adv_face\").height(300).width(300).crop(\"thumb\")).generate(\"lady.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"adv_face\").height(300).width(300).crop(\"thumb\")).generate(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(300)\n.height(300)\n\t.gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t resize(Resize.thumbnail() { width(300)\n height(300)\n\t gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t resize(Resize.thumbnail() { width(300)\n height(300)\n\t gravity(\n\tGravity.focusOn(\"advanced_face\"))\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"lady.jpg\", {gravity: \"adv_face\", height: 300, width: 300, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"lady.jpg\", {gravity: \"adv_face\", height: 300, width: 300, crop: \"thumb\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(300)\n .height(300)\n .gravity(focusOn(\"advanced_face\"))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/c_thumb,g_adv_face,h_300,w_300\/lady.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"thumb","gravity":"adv_face","height":"300","width":"300"}],"transformation_string":"c_thumb,g_adv_face,h_300,w_300","url_suffix":"","version":"","secure":true,"public_id":"lady.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 150x150lady.jpg

云性也可以动态裁剪基于检测到视线位置的图像简单设置重力参数切换adv-yees高山市g_adv-eyes面向 URLs) 将图像居中检测到的眼睛下示例提供200x60缩略图以双目为中心

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('lady.jpg', {gravity: \"adv_eyes\", width: 200, height: 60, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('lady.jpg', {gravity: \"adv_eyes\", width: 200, height: 60, crop: \"thumb\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"lady.jpg\").image(gravity=\"adv_eyes\", width=200, height=60, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"lady.jpg\").image(gravity=\"adv_eyes\", width=200, height=60, crop=\"thumb\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('lady.jpg'))\n\t->resize(Resize::thumbnail()->width(200)\n->height(60)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t);","codeSnippet":"(new ImageTag('lady.jpg'))\n\t->resize(Resize::thumbnail()->width(200)\n->height(60)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", array(\"gravity\"=>\"adv_eyes\", \"width\"=>200, \"height\"=>60, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"lady.jpg\", array(\"gravity\"=>\"adv_eyes\", \"width\"=>200, \"height\"=>60, \"crop\"=>\"thumb\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"adv_eyes\").width(200).height(60).crop(\"thumb\")).imageTag(\"lady.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"adv_eyes\").width(200).height(60).crop(\"thumb\")).imageTag(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", :gravity=>\"adv_eyes\", :width=>200, :height=>60, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"lady.jpg\", :gravity=>\"adv_eyes\", :width=>200, :height=>60, :crop=>\"thumb\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"adv_eyes\").Width(200).Height(60).Crop(\"thumb\")).BuildImageTag(\"lady.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"adv_eyes\").Width(200).Height(60).Crop(\"thumb\")).BuildImageTag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"adv_eyes\").setWidth(200).setHeight(60).setCrop(\"thumb\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"adv_eyes\").setWidth(200).setHeight(60).setCrop(\"thumb\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"adv_eyes\").width(200).height(60).crop(\"thumb\")).generate(\"lady.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"adv_eyes\").width(200).height(60).crop(\"thumb\")).generate(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t resize(Resize.thumbnail() { width(200)\n height(60)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t resize(Resize.thumbnail() { width(200)\n height(60)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"lady.jpg\", {gravity: \"adv_eyes\", width: 200, height: 60, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"lady.jpg\", {gravity: \"adv_eyes\", width: 200, height: 60, crop: \"thumb\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(advancedEyes()))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/c_thumb,g_adv_eyes,w_200,h_60\/lady.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"thumb","gravity":"adv_eyes","width":"200","height":"60"}],"transformation_string":"c_thumb,g_adv_eyes,w_200,h_60","url_suffix":"","version":"","secure":true,"public_id":"lady.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 200x60缩略图以眼睛为中心

多亏高级显性检测加载所检测到面部属性位置的详细信息,云形可加叠加,同时计面容并自动缩放并相应旋转叠加

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('HarlequinMask.jpg', {width: 150, crop: \"scale\"}).toHtml();","codeSnippet":"cloudinary.imageTag('HarlequinMask.jpg', {width: 150, crop: \"scale\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"HarlequinMask.jpg\").image(width=150, crop=\"scale\")","codeSnippet":"CloudinaryImage(\"HarlequinMask.jpg\").image(width=150, crop=\"scale\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('HarlequinMask.jpg'))\n\t->resize(Resize::scale()->width(150));","codeSnippet":"(new ImageTag('HarlequinMask.jpg'))\n\t->resize(Resize::scale()->width(150));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"HarlequinMask.jpg\", array(\"width\"=>150, \"crop\"=>\"scale\"))","codeSnippet":"cl_image_tag(\"HarlequinMask.jpg\", array(\"width\"=>150, \"crop\"=>\"scale\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(150).crop(\"scale\")).imageTag(\"HarlequinMask.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().width(150).crop(\"scale\")).imageTag(\"HarlequinMask.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"HarlequinMask.jpg\", :width=>150, :crop=>\"scale\")","codeSnippet":"cl_image_tag(\"HarlequinMask.jpg\", :width=>150, :crop=>\"scale\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(150).Crop(\"scale\")).BuildImageTag(\"HarlequinMask.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(150).Crop(\"scale\")).BuildImageTag(\"HarlequinMask.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('HarlequinMask.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(150)));","codeSnippet":"cloudinary.image('HarlequinMask.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(150)));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(150).setCrop(\"scale\")).generate(\"HarlequinMask.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(150).setCrop(\"scale\")).generate(\"HarlequinMask.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().width(150).crop(\"scale\")).generate(\"HarlequinMask.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().width(150).crop(\"scale\")).generate(\"HarlequinMask.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('HarlequinMask.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(150)));","codeSnippet":"cloudinary.image('HarlequinMask.jpg').transformation(Transformation()\n\t.resize(Resize.scale().width(150)));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"HarlequinMask.jpg\")\n\t resize(Resize.scale() { width(150) }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"HarlequinMask.jpg\")\n\t resize(Resize.scale() { width(150) }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"HarlequinMask.jpg\", {width: 150, crop: \"scale\"})","codeSnippet":"$.cloudinary.image(\"HarlequinMask.jpg\", {width: 150, crop: \"scale\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\").resize(scale().width(150));","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_150\/HarlequinMask.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"150"}],"transformation_string":"w_150","url_suffix":"","version":"","secure":true,"public_id":"HarlequinMask.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 黑客掩码

上图harlequin掩码比主图中检测到的双目比例缩至177%

<\/Image>","codeSnippet":" \n\t \n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":" <\/cld-image>","codeSnippet":" \n\t \n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":" <\/cl-transformation> <\/cl-image>","codeSnippet":" \n\t \n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('lady.jpg', {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.7\", crop: \"scale\"}).toHtml();","codeSnippet":"cloudinary.imageTag('lady.jpg', {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.7\", crop: \"scale\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"lady.jpg\").image(flags=\"region_relative\", gravity=\"adv_eyes\", overlay=\"HarlequinMask\", width=\"1.7\", crop=\"scale\")","codeSnippet":"CloudinaryImage(\"lady.jpg\").image(flags=\"region_relative\", gravity=\"adv_eyes\", overlay=\"HarlequinMask\", width=\"1.7\", crop=\"scale\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('lady.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"HarlequinMask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.7)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t)\n\t);","codeSnippet":"(new ImageTag('lady.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"HarlequinMask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.7)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::advancedEyes()))\n\t)\n\t);","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", array(\"flags\"=>\"region_relative\", \"gravity\"=>\"adv_eyes\", \"overlay\"=>\"HarlequinMask\", \"width\"=>\"1.7\", \"crop\"=>\"scale\"))","codeSnippet":"cl_image_tag(\"lady.jpg\", array(\"flags\"=>\"region_relative\", \"gravity\"=>\"adv_eyes\", \"overlay\"=>\"HarlequinMask\", \"width\"=>\"1.7\", \"crop\"=>\"scale\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.7).crop(\"scale\")).imageTag(\"lady.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.7).crop(\"scale\")).imageTag(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"lady.jpg\", :flags=>\"region_relative\", :gravity=>\"adv_eyes\", :overlay=>\"HarlequinMask\", :width=>1.7, :crop=>\"scale\")","codeSnippet":"cl_image_tag(\"lady.jpg\", :flags=>\"region_relative\", :gravity=>\"adv_eyes\", :overlay=>\"HarlequinMask\", :width=>1.7, :crop=>\"scale\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Flags(\"region_relative\").Gravity(\"adv_eyes\").Overlay(new Layer().PublicId(\"HarlequinMask\")).Width(1.7).Crop(\"scale\")).BuildImageTag(\"lady.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Flags(\"region_relative\").Gravity(\"adv_eyes\").Overlay(new Layer().PublicId(\"HarlequinMask\")).Width(1.7).Crop(\"scale\")).BuildImageTag(\"lady.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setFlags(\"region_relative\").setGravity(\"adv_eyes\").setOverlay(\"HarlequinMask\").setWidth(1.7).setCrop(\"scale\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setFlags(\"region_relative\").setGravity(\"adv_eyes\").setOverlay(\"HarlequinMask\").setWidth(1.7).setCrop(\"scale\")).generate(\"lady.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.7).crop(\"scale\")).generate(\"lady.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().flags(\"region_relative\").gravity(\"adv_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.7).crop(\"scale\")).generate(\"lady.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","codeSnippet":"cloudinary.image('lady.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.7)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t)\n\t));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.7F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"lady.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.7F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.advancedEyes()))\n\t })\n\t }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"lady.jpg\", {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.7\", crop: \"scale\"})","codeSnippet":"$.cloudinary.image(\"lady.jpg\", {flags: \"region_relative\", gravity: \"adv_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.7\", crop: \"scale\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","codeSnippet":"new CloudinaryImage(\"lady.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.7).regionRelative())\n )\n ).position(new Position().gravity(focusOn(advancedEyes())))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/c_scale,fl_region_relative,g_adv_eyes,l_HarlequinMask,w_1.7\/lady.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"scale","flags":"region_relative","gravity":"adv_eyes","overlay":"HarlequinMask","width":"1.7"}],"transformation_string":"c_scale,fl_region_relative,g_adv_eyes,l_HarlequinMask,w_1.7","url_suffix":"","version":"","secure":true,"public_id":"lady.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 黑客蒙面

高级属性检测文档了解更多附加特征和如何使用特征

高级物属性检测由云化和微软认知服务FaceAPI提供高精度机制,可分析图像和为大多数网站创建最佳作物并自动添加完全叠加美术效果云形管道内集成使用简单变换URL

加入微软认知服务公司上头高级异常特征检测加载免费付费计划

回顶

特征邮箱

Baidu
map