跳转到内容

高级侧属性检测图像变换

更新-2015年12月自ReCognition终止服务后,以上描述的所有特征都通过不同甚至更好的加法提供:高级侧属性检测

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

Faci属性检测进程更深入并提取图像上面部有意义的先进数据,包括面部特征的确切位置允许更多控制图像分类并自动使用这些细节智能裁剪、定位、旋转并覆盖基于检测面部特征的图像

侧属性检测让你知道更多 不仅仅是定位一个人面部特征三维方位如何搭建人戴眼镜双眼闭合嘴开留胡子或留胡子人种、年龄和性别是什么显示什么情感他们在笑吗多美?取回此信息令自动分类并标签您的图像集合成为简单问题

这一切都有可能实现, ReCobnition附加程序直接整合到云形基础设施内,进一步扩展云形内置人脸检测功能,实现强性词属性检测特征简单设置检测参数切换rekognition_face调用云端上传API时,ReCognition自动从上传图像提取详细面貌属性

\"rekognition_face\")","codeSnippet":"Cloudinary::Uploader.upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0:detection => \"rekognition_face\")"},{"sdkId":"php","framework":"php","language":"php","displayName":"PHP","packageName":"cloudinary_php","packageVersion":"1.x","packageStatus":"legacy","rawCodeSnippet":"\\Cloudinary\\Uploader::upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0array(\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"detection\" => \"rekognition_face\"));","codeSnippet":"\\Cloudinary\\Uploader::upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0array(\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"detection\" => \"rekognition_face\"));"},{"sdkId":"python","framework":"python","language":"python","displayName":"Python","packageName":"cloudinary","packageVersion":"1.x","packageStatus":"","rawCodeSnippet":"cloudinary.uploader.upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0detection = \"rekognition_face\")","codeSnippet":"cloudinary.uploader.upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0detection = \"rekognition_face\")"},{"sdkId":"nodejs","framework":"nodejs","language":"javascript","displayName":"Node.js","packageName":"cloudinary","packageVersion":"1.x","packageStatus":"","rawCodeSnippet":"cloudinary.uploader.upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0function(result) {console.log(result)!}, { detection: \"rekognition_face\" });","codeSnippet":"cloudinary.uploader.upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0function(result) {console.log(result)!}, { detection: \"rekognition_face\" });"},{"sdkId":"java","framework":"java","language":"java","displayName":"Java","packageName":"cloudinary","packageVersion":"1.x","packageStatus":"","rawCodeSnippet":"cloudinary.uploader().upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Cloudinary.asMap(\"detection\", \"rekognition_face\"));","codeSnippet":"cloudinary.uploader().upload(\"woman.jpg\", \n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Cloudinary.asMap(\"detection\", \"rekognition_face\"));"}]" parsed-url="[]" with-url="false" > 加载代码示例

原型妇女图像

例子JSON片段显示上方示例图像包含从脸重恢复请求返回的结果,它包括有关图像自动检测表情的非常详细信息

        {{"rekognition_face":状态:完全性,数据类:绑定盒:{tl:{X级:231.45,y名词:102.52},尺码:{宽度:240.77,位高:240.77...置信度:一号,视左:{X级:309.6,y名词:190.1},右眼:{X级:407.9,y名词:213.6},鼻孔:{X级:运维,y名词:204.0...里程:0.96,镜片:0.01,太阳镜:0.04,怀德:0,令牌:0,视闭:0,"mouth_open_wide":0.73,美容:0.63531,性爱:一号}}}代码语言JavaScript高山市javascript)

Cloudinary管理API应用ReKognition脸部检测已上传图像

云化可裁剪图像聚焦检测面貌特征,同时提供大片集图像变换并裁剪选项使用云交付URL或调用云交付图像API

聚焦自动裁剪检测面孔简单设置裁剪参数切换缩略图,填充裁剪重力参数切换trk_faces台词集重力trk_face聚焦图像中检测到的最大表情)生成图像动态即时生成,结果通过快速CDN传递

原创相片

下代码样本生成 150x150缩略图美联赛图像显示上方,使用多面检测裁剪

<\/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(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","codeSnippet":"new CloudinaryImage(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\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(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","codeSnippet":"new CloudinaryImage(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\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(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","codeSnippet":"new CloudinaryImage(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('nice_couple.jpg', {gravity: \"rek_faces\", width: 150, height: 150, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('nice_couple.jpg', {gravity: \"rek_faces\", width: 150, height: 150, 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(\"nice_couple.jpg\").image(gravity=\"rek_faces\", width=150, height=150, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"nice_couple.jpg\").image(gravity=\"rek_faces\", width=150, height=150, 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('nice_couple.jpg'))\n\t->resize(Resize::thumbnail()->width(150)\n->height(150)\n\t->gravity(\n\tGravity::focusOn(\"rek_faces\"))\n\t);","codeSnippet":"(new ImageTag('nice_couple.jpg'))\n\t->resize(Resize::thumbnail()->width(150)\n->height(150)\n\t->gravity(\n\tGravity::focusOn(\"rek_faces\"))\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(\"nice_couple.jpg\", array(\"gravity\"=>\"rek_faces\", \"width\"=>150, \"height\"=>150, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"nice_couple.jpg\", array(\"gravity\"=>\"rek_faces\", \"width\"=>150, \"height\"=>150, \"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(\"rek_faces\").width(150).height(150).crop(\"thumb\")).imageTag(\"nice_couple.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"rek_faces\").width(150).height(150).crop(\"thumb\")).imageTag(\"nice_couple.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"nice_couple.jpg\", :gravity=>\"rek_faces\", :width=>150, :height=>150, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"nice_couple.jpg\", :gravity=>\"rek_faces\", :width=>150, :height=>150, :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(\"rek_faces\").Width(150).Height(150).Crop(\"thumb\")).BuildImageTag(\"nice_couple.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"rek_faces\").Width(150).Height(150).Crop(\"thumb\")).BuildImageTag(\"nice_couple.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('nice_couple.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(150)\n.height(150)\n\t.gravity(\n\tGravity.focusOn(\"rek_faces\"))\n\t));","codeSnippet":"cloudinary.image('nice_couple.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(150)\n.height(150)\n\t.gravity(\n\tGravity.focusOn(\"rek_faces\"))\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(\"rek_faces\").setWidth(150).setHeight(150).setCrop(\"thumb\")).generate(\"nice_couple.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"rek_faces\").setWidth(150).setHeight(150).setCrop(\"thumb\")).generate(\"nice_couple.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(\"rek_faces\").width(150).height(150).crop(\"thumb\")).generate(\"nice_couple.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"rek_faces\").width(150).height(150).crop(\"thumb\")).generate(\"nice_couple.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('nice_couple.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(150)\n.height(150)\n\t.gravity(\n\tGravity.focusOn(\"rek_faces\"))\n\t));","codeSnippet":"cloudinary.image('nice_couple.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(150)\n.height(150)\n\t.gravity(\n\tGravity.focusOn(\"rek_faces\"))\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(\"nice_couple.jpg\")\n\t resize(Resize.thumbnail() { width(150)\n height(150)\n\t gravity(\n\tGravity.focusOn(\"rek_faces\"))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"nice_couple.jpg\")\n\t resize(Resize.thumbnail() { width(150)\n height(150)\n\t gravity(\n\tGravity.focusOn(\"rek_faces\"))\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(\"nice_couple.jpg\", {gravity: \"rek_faces\", width: 150, height: 150, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"nice_couple.jpg\", {gravity: \"rek_faces\", width: 150, height: 150, 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(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","codeSnippet":"new CloudinaryImage(\"nice_couple.jpg\").resize(\n thumbnail()\n .width(150)\n .height(150)\n .gravity(focusOn(\"rek_faces\"))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/c_thumb,g_rek_faces,w_150,h_150\/nice_couple.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"thumb","gravity":"rek_faces","width":"150","height":"150"}],"transformation_string":"c_thumb,g_rek_faces,w_150,h_150","url_suffix":"","version":"","secure":true,"public_id":"nice_couple.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 150x150精通cople.jpg

云性也可以动态裁剪基于检测到视线位置的图像简单设置重力参数切换rek-yees高山市g_rek-yeess面向 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(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\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(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\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(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('woman.jpg', {gravity: \"rek_eyes\", width: 200, height: 60, crop: \"thumb\"}).toHtml();","codeSnippet":"cloudinary.imageTag('woman.jpg', {gravity: \"rek_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(\"woman.jpg\").image(gravity=\"rek_eyes\", width=200, height=60, crop=\"thumb\")","codeSnippet":"CloudinaryImage(\"woman.jpg\").image(gravity=\"rek_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('woman.jpg'))\n\t->resize(Resize::thumbnail()->width(200)\n->height(60)\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\n\t);","codeSnippet":"(new ImageTag('woman.jpg'))\n\t->resize(Resize::thumbnail()->width(200)\n->height(60)\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\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(\"woman.jpg\", array(\"gravity\"=>\"rek_eyes\", \"width\"=>200, \"height\"=>60, \"crop\"=>\"thumb\"))","codeSnippet":"cl_image_tag(\"woman.jpg\", array(\"gravity\"=>\"rek_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(\"rek_eyes\").width(200).height(60).crop(\"thumb\")).imageTag(\"woman.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().gravity(\"rek_eyes\").width(200).height(60).crop(\"thumb\")).imageTag(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"woman.jpg\", :gravity=>\"rek_eyes\", :width=>200, :height=>60, :crop=>\"thumb\")","codeSnippet":"cl_image_tag(\"woman.jpg\", :gravity=>\"rek_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(\"rek_eyes\").Width(200).Height(60).Crop(\"thumb\")).BuildImageTag(\"woman.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Gravity(\"rek_eyes\").Width(200).Height(60).Crop(\"thumb\")).BuildImageTag(\"woman.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"rek_eyes\").setWidth(200).setHeight(60).setCrop(\"thumb\")).generate(\"woman.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setGravity(\"rek_eyes\").setWidth(200).setHeight(60).setCrop(\"thumb\")).generate(\"woman.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(\"rek_eyes\").width(200).height(60).crop(\"thumb\")).generate(\"woman.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().gravity(\"rek_eyes\").width(200).height(60).crop(\"thumb\")).generate(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.resize(Resize.thumbnail().width(200)\n.height(60)\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"woman.jpg\")\n\t resize(Resize.thumbnail() { width(200)\n height(60)\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"woman.jpg\")\n\t resize(Resize.thumbnail() { width(200)\n height(60)\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"woman.jpg\", {gravity: \"rek_eyes\", width: 200, height: 60, crop: \"thumb\"})","codeSnippet":"$.cloudinary.image(\"woman.jpg\", {gravity: \"rek_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(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").resize(\n thumbnail()\n .width(200)\n .height(60)\n .gravity(focusOn(\"rek_eyes\"))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/c_thumb,g_rek_eyes,w_200,h_60\/woman.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"thumb","gravity":"rek_eyes","width":"200","height":"60"}],"transformation_string":"c_thumb,g_rek_eyes,w_200,h_60","url_suffix":"","version":"","secure":true,"public_id":"woman.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 200x60缩略图以眼睛为中心

依靠详细信息 面部属性由ReCognition检测,云性可加叠加同时计面容并自动缩放并相应旋转叠加

<\/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(\"HarlequinMask.jpg\");","codeSnippet":"new CloudinaryImage(\"HarlequinMask.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(\"HarlequinMask.jpg\");","codeSnippet":"new CloudinaryImage(\"HarlequinMask.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(\"HarlequinMask.jpg\");","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\");","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').toHtml();","codeSnippet":"cloudinary.imageTag('HarlequinMask.jpg').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()","codeSnippet":"CloudinaryImage(\"HarlequinMask.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('HarlequinMask.jpg'));","codeSnippet":"(new ImageTag('HarlequinMask.jpg'));","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\")","codeSnippet":"cl_image_tag(\"HarlequinMask.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(\"HarlequinMask.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().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\")","codeSnippet":"cl_image_tag(\"HarlequinMask.jpg\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"HarlequinMask.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.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());","codeSnippet":"cloudinary.image('HarlequinMask.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(\"HarlequinMask.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().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().generate(\"HarlequinMask.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().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());","codeSnippet":"cloudinary.image('HarlequinMask.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(\"HarlequinMask.jpg\") \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"HarlequinMask.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(\"HarlequinMask.jpg\")","codeSnippet":"$.cloudinary.image(\"HarlequinMask.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(\"HarlequinMask.jpg\");","codeSnippet":"new CloudinaryImage(\"HarlequinMask.jpg\");","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/HarlequinMask.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[],"transformation_string":"","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掩码比主图中检测到的双目比例缩至160%

<\/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(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\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(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\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(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('woman.jpg', {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.6\", crop: \"scale\"}).toHtml();","codeSnippet":"cloudinary.imageTag('woman.jpg', {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.6\", 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(\"woman.jpg\").image(flags=\"region_relative\", gravity=\"rek_eyes\", overlay=\"HarlequinMask\", width=\"1.6\", crop=\"scale\")","codeSnippet":"CloudinaryImage(\"woman.jpg\").image(flags=\"region_relative\", gravity=\"rek_eyes\", overlay=\"HarlequinMask\", width=\"1.6\", 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('woman.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"HarlequinMask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.6)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\n\t)\n\t);","codeSnippet":"(new ImageTag('woman.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"HarlequinMask\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.6)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\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(\"woman.jpg\", array(\"flags\"=>\"region_relative\", \"gravity\"=>\"rek_eyes\", \"overlay\"=>\"HarlequinMask\", \"width\"=>\"1.6\", \"crop\"=>\"scale\"))","codeSnippet":"cl_image_tag(\"woman.jpg\", array(\"flags\"=>\"region_relative\", \"gravity\"=>\"rek_eyes\", \"overlay\"=>\"HarlequinMask\", \"width\"=>\"1.6\", \"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(\"rek_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.6).crop(\"scale\")).imageTag(\"woman.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().flags(\"region_relative\").gravity(\"rek_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.6).crop(\"scale\")).imageTag(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"woman.jpg\", :flags=>\"region_relative\", :gravity=>\"rek_eyes\", :overlay=>\"HarlequinMask\", :width=>1.6, :crop=>\"scale\")","codeSnippet":"cl_image_tag(\"woman.jpg\", :flags=>\"region_relative\", :gravity=>\"rek_eyes\", :overlay=>\"HarlequinMask\", :width=>1.6, :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(\"rek_eyes\").Overlay(new Layer().PublicId(\"HarlequinMask\")).Width(1.6).Crop(\"scale\")).BuildImageTag(\"woman.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Flags(\"region_relative\").Gravity(\"rek_eyes\").Overlay(new Layer().PublicId(\"HarlequinMask\")).Width(1.6).Crop(\"scale\")).BuildImageTag(\"woman.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.6)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t)\n\t));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.6)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"rek_eyes\").setOverlay(\"HarlequinMask\").setWidth(1.6).setCrop(\"scale\")).generate(\"woman.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setFlags(\"region_relative\").setGravity(\"rek_eyes\").setOverlay(\"HarlequinMask\").setWidth(1.6).setCrop(\"scale\")).generate(\"woman.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(\"rek_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.6).crop(\"scale\")).generate(\"woman.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().flags(\"region_relative\").gravity(\"rek_eyes\").overlay(new Layer().publicId(\"HarlequinMask\")).width(1.6).crop(\"scale\")).generate(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.6)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t)\n\t));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.6)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"woman.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.6F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t })\n\t }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"woman.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"HarlequinMask\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.6F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\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(\"woman.jpg\", {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.6\", crop: \"scale\"})","codeSnippet":"$.cloudinary.image(\"woman.jpg\", {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"HarlequinMask\"), width: \"1.6\", 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(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","codeSnippet":"new CloudinaryImage(\"woman.jpg\").overlay(\n source(\n image(\"HarlequinMask\").transformation(\n new Transformation().resize(scale().width(1.6).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/c_scale,fl_region_relative,g_rek_eyes,l_HarlequinMask,w_1.6\/woman.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"scale","flags":"region_relative","gravity":"rek_eyes","overlay":"HarlequinMask","width":"1.6"}],"transformation_string":"c_scale,fl_region_relative,g_rek_eyes,l_HarlequinMask,w_1.6","url_suffix":"","version":"","secure":true,"public_id":"woman.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 黑客蒙面

另举例子,这次戴眼镜

<\/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(\"glasses.jpg\");","codeSnippet":"new CloudinaryImage(\"glasses.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(\"glasses.jpg\");","codeSnippet":"new CloudinaryImage(\"glasses.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(\"glasses.jpg\");","codeSnippet":"new CloudinaryImage(\"glasses.jpg\");","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('glasses.jpg').toHtml();","codeSnippet":"cloudinary.imageTag('glasses.jpg').toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"glasses.jpg\").image()","codeSnippet":"CloudinaryImage(\"glasses.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('glasses.jpg'));","codeSnippet":"(new ImageTag('glasses.jpg'));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"glasses.jpg\")","codeSnippet":"cl_image_tag(\"glasses.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(\"glasses.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation().imageTag(\"glasses.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"glasses.jpg\")","codeSnippet":"cl_image_tag(\"glasses.jpg\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"glasses.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.BuildImageTag(\"glasses.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('glasses.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('glasses.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(\"glasses.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().generate(\"glasses.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(\"glasses.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().generate(\"glasses.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('glasses.jpg').transformation(Transformation());","codeSnippet":"cloudinary.image('glasses.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(\"glasses.jpg\") \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"glasses.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(\"glasses.jpg\")","codeSnippet":"$.cloudinary.image(\"glasses.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(\"glasses.jpg\");","codeSnippet":"new CloudinaryImage(\"glasses.jpg\");","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/glasses.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[],"transformation_string":"","url_suffix":"","version":"","secure":true,"public_id":"glasses.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 镜面

覆盖以上图像比主图像中检测到的视线缩放150%,然后以200像素圆缩图显示,以脸为中心

<\/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(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","codeSnippet":"new CloudinaryImage(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","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(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","codeSnippet":"new CloudinaryImage(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","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(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","codeSnippet":"new CloudinaryImage(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('woman.jpg', {transformation: [ {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"glasses\"), width: \"1.5\", crop: \"scale\"}, {width: 200, gravity: \"face\", radius: \"max\", crop: \"thumb\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('woman.jpg', {transformation: [\n {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"glasses\"), width: \"1.5\", crop: \"scale\"},\n {width: 200, gravity: \"face\", radius: \"max\", crop: \"thumb\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"woman.jpg\").image(transformation=[ {'flags': \"region_relative\", 'gravity': \"rek_eyes\", 'overlay': \"glasses\", 'width': \"1.5\", 'crop': \"scale\"}, {'width': 200, 'gravity': \"face\", 'radius': \"max\", 'crop': \"thumb\"} ])","codeSnippet":"CloudinaryImage(\"woman.jpg\").image(transformation=[\n {'flags': \"region_relative\", 'gravity': \"rek_eyes\", 'overlay': \"glasses\", 'width': \"1.5\", 'crop': \"scale\"},\n {'width': 200, 'gravity': \"face\", 'radius': \"max\", 'crop': \"thumb\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('woman.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"glasses\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.5)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\n\t)\n\t)\n\t->resize(Resize::thumbnail()->width(200)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::face()))\n\t)\n\t->roundCorners(RoundCorners::max());","codeSnippet":"(new ImageTag('woman.jpg'))\n\t->overlay(Overlay::source(\n\tSource::image(\"glasses\")\n\t->transformation((new Transformation())\n\t->resize(Resize::scale()->width(1.5)\n\t->regionRelative()\n\t))\n\t)\n\t->position((new Position())\n\t->gravity(\n\tGravity::focusOn(\"rek_eyes\"))\n\t)\n\t)\n\t->resize(Resize::thumbnail()->width(200)\n\t->gravity(\n\tGravity::focusOn(\n\tFocusOn::face()))\n\t)\n\t->roundCorners(RoundCorners::max());","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"woman.jpg\", array(\"transformation\"=>array( array(\"flags\"=>\"region_relative\", \"gravity\"=>\"rek_eyes\", \"overlay\"=>\"glasses\", \"width\"=>\"1.5\", \"crop\"=>\"scale\"), array(\"width\"=>200, \"gravity\"=>\"face\", \"radius\"=>\"max\", \"crop\"=>\"thumb\") )))","codeSnippet":"cl_image_tag(\"woman.jpg\", array(\"transformation\"=>array(\n array(\"flags\"=>\"region_relative\", \"gravity\"=>\"rek_eyes\", \"overlay\"=>\"glasses\", \"width\"=>\"1.5\", \"crop\"=>\"scale\"),\n array(\"width\"=>200, \"gravity\"=>\"face\", \"radius\"=>\"max\", \"crop\"=>\"thumb\")\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().flags(\"region_relative\").gravity(\"rek_eyes\").overlay(new Layer().publicId(\"glasses\")).width(1.5).crop(\"scale\").chain() .width(200).gravity(\"face\").radius(\"max\").crop(\"thumb\")).imageTag(\"woman.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .flags(\"region_relative\").gravity(\"rek_eyes\").overlay(new Layer().publicId(\"glasses\")).width(1.5).crop(\"scale\").chain()\n .width(200).gravity(\"face\").radius(\"max\").crop(\"thumb\")).imageTag(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"woman.jpg\", :transformation=>[ {:flags=>\"region_relative\", :gravity=>\"rek_eyes\", :overlay=>\"glasses\", :width=>1.5, :crop=>\"scale\"}, {:width=>200, :gravity=>\"face\", :radius=>\"max\", :crop=>\"thumb\"} ])","codeSnippet":"cl_image_tag(\"woman.jpg\", :transformation=>[\n {:flags=>\"region_relative\", :gravity=>\"rek_eyes\", :overlay=>\"glasses\", :width=>1.5, :crop=>\"scale\"},\n {:width=>200, :gravity=>\"face\", :radius=>\"max\", :crop=>\"thumb\"}\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().Flags(\"region_relative\").Gravity(\"rek_eyes\").Overlay(new Layer().PublicId(\"glasses\")).Width(1.5).Crop(\"scale\").Chain() .Width(200).Gravity(\"face\").Radius(\"max\").Crop(\"thumb\")).BuildImageTag(\"woman.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Flags(\"region_relative\").Gravity(\"rek_eyes\").Overlay(new Layer().PublicId(\"glasses\")).Width(1.5).Crop(\"scale\").Chain()\n .Width(200).Gravity(\"face\").Radius(\"max\").Crop(\"thumb\")).BuildImageTag(\"woman.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"glasses\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.5)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t)\n\t)\n\t.resize(Resize.thumbnail().width(200)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.face()))\n\t)\n\t.roundCorners(RoundCorners.max()));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.overlay(Overlay.source(\n\tSource.image(\"glasses\")\n\t.transformation(new Transformation()\n\t.resize(Resize.scale().width(1.5)\n\t.regionRelative()\n\t))\n\t)\n\t.position(Position()\n\t.gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t)\n\t)\n\t.resize(Resize.thumbnail().width(200)\n\t.gravity(\n\tGravity.focusOn(\n\tFocusOn.face()))\n\t)\n\t.roundCorners(RoundCorners.max()));","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(\"rek_eyes\").setOverlay(\"glasses\").setWidth(1.5).setCrop(\"scale\").chain() .setWidth(200).setGravity(\"face\").setRadius(\"max\").setCrop(\"thumb\")).generate(\"woman.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setFlags(\"region_relative\").setGravity(\"rek_eyes\").setOverlay(\"glasses\").setWidth(1.5).setCrop(\"scale\").chain()\n .setWidth(200).setGravity(\"face\").setRadius(\"max\").setCrop(\"thumb\")).generate(\"woman.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(\"rek_eyes\").overlay(new Layer().publicId(\"glasses\")).width(1.5).crop(\"scale\").chain() .width(200).gravity(\"face\").radius(\"max\").crop(\"thumb\")).generate(\"woman.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .flags(\"region_relative\").gravity(\"rek_eyes\").overlay(new Layer().publicId(\"glasses\")).width(1.5).crop(\"scale\").chain()\n .width(200).gravity(\"face\").radius(\"max\").crop(\"thumb\")).generate(\"woman.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.addTransformation(\"c_scale,fl_region_relative,g_rek_eyes,l_glasses,w_1.5\/c_thumb,w_200,g_face,r_max\"));","codeSnippet":"cloudinary.image('woman.jpg').transformation(Transformation()\n\t.addTransformation(\"c_scale,fl_region_relative,g_rek_eyes,l_glasses,w_1.5\/c_thumb,w_200,g_face,r_max\"));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"woman.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"glasses\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.5F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t })\n\t })\n\t resize(Resize.thumbnail() { width(200)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.face()))\n\t })\n\t roundCorners(RoundCorners.max()) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"woman.jpg\")\n\t overlay(Overlay.source(\n\tSource.image(\"glasses\") {\n\t transformation(Transformation {\n\t resize(Resize.scale() { width(1.5F)\n\t regionRelative()\n\t }) })\n\t }) {\n\t position(Position() {\n\t gravity(\n\tGravity.focusOn(\"rek_eyes\"))\n\t })\n\t })\n\t resize(Resize.thumbnail() { width(200)\n\t gravity(\n\tGravity.focusOn(\n\tFocusOn.face()))\n\t })\n\t roundCorners(RoundCorners.max()) \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(\"woman.jpg\", {transformation: [ {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"glasses\"), width: \"1.5\", crop: \"scale\"}, {width: 200, gravity: \"face\", radius: \"max\", crop: \"thumb\"} ]})","codeSnippet":"$.cloudinary.image(\"woman.jpg\", {transformation: [\n {flags: \"region_relative\", gravity: \"rek_eyes\", overlay: new cloudinary.Layer().publicId(\"glasses\"), width: \"1.5\", crop: \"scale\"},\n {width: 200, gravity: \"face\", radius: \"max\", crop: \"thumb\"}\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(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","codeSnippet":"new CloudinaryImage(\"woman.jpg\")\n .overlay(\n source(\n image(\"glasses\").transformation(\n new Transformation().resize(scale().width(1.5).regionRelative())\n )\n ).position(new Position().gravity(focusOn(\"rek_eyes\")))\n )\n .resize(\n thumbnail()\n .width(200)\n .gravity(focusOn(face()))\n )\n .roundCorners(max());","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.agrosoland.com\/demo\/image\/upload\/c_scale,fl_region_relative,g_rek_eyes,l_glasses,w_1.5\/c_thumb,w_200,g_face,r_max\/woman.jpg","cloud_name":"demo","host":"res.www.agrosoland.com","type":"upload","resource_type":"image","transformation":[{"crop_mode":"scale","flags":"region_relative","gravity":"rek_eyes","overlay":"glasses","width":"1.5"},{"crop_mode":"thumb","width":"200","gravity":"face","radius":"max"}],"transformation_string":"c_scale,fl_region_relative,g_rek_eyes,l_glasses,w_1.5\/c_thumb,w_200,g_face,r_max","url_suffix":"","version":"","secure":true,"public_id":"woman.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" > 加载代码示例 镜面覆盖双目

ReKognition加载自动从图像提取详细面貌属性,并基于检测面部数据实现高级图像转换和分类,并自动实现相对缩放和重叠旋转

重定位检测表情属性附加

上头重新点名附加免费付费计划万一你没有云型账号 欢迎你注册免费账号并试出

更新-2015年12月自ReCognition终止服务后,以上描述的所有特征都通过不同甚至更好的加法提供:高级侧属性检测

回顶

特征邮箱

Baidu
map