{"id":2091,"date":"2013-10-07T19:03:56","date_gmt":"2013-10-07T10:03:56","guid":{"rendered":"http:\/\/www.key-p.com\/blog\/staff\/?p=2091"},"modified":"2013-10-08T13:25:16","modified_gmt":"2013-10-08T04:25:16","slug":"ios%e3%81%a7%e9%a1%94%e6%a4%9c%e5%87%ba","status":"publish","type":"post","link":"https:\/\/www.key-p.com\/blog\/staff\/archives\/2091","title":{"rendered":"iOS\u3067\u9854\u691c\u51fa"},"content":{"rendered":"<p>\n\u4e16\u9593\u3067\u4e00\u6614\u524d\u304b\u3089\u3001iPhone\u3084Android\u3067\u9854\u691c\u51fa\u3059\u308b\u30a2\u30d7\u30ea\u304c\u7d50\u69cb\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n\u4eca\u66f4\u306a\u304c\u3089\u3001\u3069\u306e\u3088\u3046\u306a\u65b9\u6cd5\u3067\u9854\u3092\u691c\u51fa\u3057\u3066\u3044\u308b\u306e\u304b\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u8abf\u67fb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<br \/>\n\u4eca\u56de\u306fiPhone\u3067\u306e\u9854\u691c\u51fa\u306b\u3064\u3044\u3066\u8a18\u8f09\u3057\u307e\u3059\u3002<br \/>\n<br \/>\n<!--more--><br \/>\n<br \/>\n\u5b9f\u306fiOS5\u304b\u3089CIDetector\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3089\u3057\u304f\u3001\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u753b\u50cf\u306e\u4e2d\u306e\u9854\u306e\u5ea7\u6a19\u3092\u691c\u51fa\u3067\u304d\u307e\u3059\u3002<br \/>\n<br \/>\n\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305a\u306f\u3001\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\u3002<br \/>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/20131008.png\"><img loading=\"lazy\" class=\" wp-image-2117 aligncenter\" alt=\"20131008\" src=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/20131008.png\" width=\"616\" height=\"475\" \/><\/a><\/p>\n\u753b\u9762\u4e0a\u90e8\u306b\u753b\u50cf\u304c\u5207\u308a\u66ff\u308f\u308b\u5f62\u3067UIImageView\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<br \/>\n\u753b\u9762\u4e0b\u90e8\u306b\u9854\u691c\u51fa\u3067\u53d6\u5f97\u3057\u305f\u9854\u306e\u30d1\u30fc\u30c4\u306e\u5ea7\u6a19\u3092\u8868\u793a\u3059\u308b\u30a8\u30ea\u30a2\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<br \/>\n\u753b\u9762\u6700\u4e0b\u90e8\u306b\u306f\u30dc\u30bf\u30f3\u3092\u914d\u7f6e\u3057\u3001\u30bf\u30c3\u30d7\u3059\u308b\u3053\u3068\u3067\u753b\u50cf\u306e\u5207\u66ff\u30fb\u9854\u691c\u51fa\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n&nbsp;<br \/>\n<br \/>\n\u3067\u306f\u3001MainStoryBoard<br \/>\n<a href=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/storyboard.png\"><img loading=\"lazy\" class=\"size-full wp-image-2097 aligncenter\" alt=\"storyboard\" src=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/storyboard.png\" width=\"734\" height=\"629\" \/><\/a><br \/>\n<br \/>\nViewController.h\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n[code]<br \/>\n#import<br \/>\n<br \/>\n@interface ViewController : UIViewController {<br \/>\nint hoge;<br \/>\n}<br \/>\n@property (weak, nonatomic) IBOutlet UIImageView *imageView;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelFaceX;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelFaceY;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelRightEyeX;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelRightEyeY;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelLeftEyeX;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelLeftEyeY;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelMouthX;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelMouthY;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelFaceWidth;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *labelFaceHeight;<br \/>\n<br \/>\n- (IBAction)onClickButtonPicture:(id)sender;<br \/>\n<br \/>\n- (void)faceDetect:(UIImage*)image;<br \/>\n<br \/>\n@end<br \/>\n[\/code]<br \/>\n6\u884c\u76ee\u304b\u308916\u884c\u76ee\u3067\u3001\u30a2\u30d7\u30ea\u3067\u5229\u7528\u3059\u308b\u5404\u30d1\u30fc\u30c4\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n18\u884c\u76ee\u306eonClickButtonPicture\u304c\u753b\u9762\u6700\u4e0b\u90e8\u306e\u30dc\u30bf\u30f3\u30bf\u30c3\u30d7\u6642\u306e\u51e6\u7406\u3067\u3059\u3002<br \/>\n20\u884c\u76ee\u306efaceDetect\u3067\u9854\u691c\u51fa\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n<br \/>\nViewController.m\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n[code]<br \/>\n#import \"ViewController.h\"<br \/>\n#import<br \/>\n#import<br \/>\n<br \/>\n@interface ViewController ()<br \/>\n<br \/>\n@end<br \/>\n<br \/>\n@implementation ViewController<br \/>\n<br \/>\n- (void)viewDidLoad<br \/>\n{<br \/>\n[super viewDidLoad];<br \/>\n<br \/>\nself.imageView.contentMode = UIViewContentModeScaleAspectFit;<br \/>\nself.imageView.image = [UIImage imageNamed:@\"1.jpeg\"];<br \/>\nhoge = 0;<br \/>\n\/\/ Do any additional setup after loading the view, typically from a nib.<br \/>\n}<br \/>\n<br \/>\n- (void)didReceiveMemoryWarning<br \/>\n{<br \/>\n[super didReceiveMemoryWarning];<br \/>\n\/\/ Dispose of any resources that can be recreated.<br \/>\n}<br \/>\n<br \/>\n- (IBAction)onClickButtonPicture:(id)sender {<br \/>\n<br \/>\nfor (UIView *view in [self.imageView subviews]) {<br \/>\n[view removeFromSuperview];<br \/>\n}<br \/>\n<br \/>\nself.labelFaceWidth.text = @\"\";<br \/>\nself.labelFaceHeight.text = @\"\";<br \/>\nself.labelFaceX.text = @\"\";<br \/>\nself.labelFaceY.text = @\"\";<br \/>\nself.labelLeftEyeX.text = @\"\";<br \/>\nself.labelLeftEyeY.text = @\"\";<br \/>\nself.labelRightEyeX.text = @\"\";<br \/>\nself.labelRightEyeY.text = @\"\";<br \/>\nself.labelMouthX.text = @\"\";<br \/>\nself.labelMouthY.text = @\"\";<br \/>\n<br \/>\nUIImage *image;<br \/>\n<br \/>\nif (hoge == 0) {<br \/>\nimage = self.imageView.image;<br \/>\n[self faceDetect:image];<br \/>\nhoge = 1;<br \/>\n} else if (hoge == 1) {<br \/>\n\/\/ 2.jpeg\u306b\u753b\u50cf\u5207\u66ff<br \/>\nimage = [UIImage imageNamed:@\"2.jpeg\"];<br \/>\nself.imageView.image = image;<br \/>\nhoge = 2;<br \/>\n} else if (hoge == 2) {<br \/>\nimage = self.imageView.image;<br \/>\n[self faceDetect:image];<br \/>\nhoge = 3;<br \/>\n} else if (hoge == 3) {<br \/>\n\/\/ 1.jpeg\u306b\u753b\u50cf\u5207\u66ff<br \/>\nimage = [UIImage imageNamed:@\"1.jpeg\"];<br \/>\nself.imageView.image = image;<br \/>\nhoge = 0;<br \/>\n}<br \/>\n}<br \/>\n<br \/>\n- (void)faceDetect:(UIImage *)image<br \/>\n{<br \/>\n\/\/ \u691c\u51fa\u5668\u751f\u6210<br \/>\nNSDictionary *options = [NSDictionary dictionaryWithObject:CIDetectorAccuracyLow forKey:CIDetectorAccuracy];<br \/>\nCIDetector *detector = [CIDetector detectorOfType:CIDetectorTypeFace context:nil options:options];<br \/>\n<br \/>\n\/\/ \u691c\u51fa<br \/>\nCIImage *ciImage = [[CIImage alloc] initWithImage:image];<br \/>\nNSArray *array = [detector featuresInImage:ciImage];<br \/>\n<br \/>\nself.labelFaceWidth.text = @\"***\";<br \/>\nself.labelFaceHeight.text = @\"***\";<br \/>\nself.labelFaceX.text = @\"***\";<br \/>\nself.labelFaceY.text = @\"***\";<br \/>\nself.labelLeftEyeX.text = @\"***\";<br \/>\nself.labelLeftEyeY.text = @\"***\";<br \/>\nself.labelRightEyeX.text = @\"***\";<br \/>\nself.labelRightEyeY.text = @\"***\";<br \/>\nself.labelMouthX.text = @\"***\";<br \/>\nself.labelMouthY.text = @\"***\";<br \/>\n<br \/>\n\/\/ \u691c\u51fa\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<br \/>\nfor (CIFaceFeature *faceFeature in array) {<br \/>\n<br \/>\nself.labelFaceWidth.text = [NSString stringWithFormat:@\"%f\", faceFeature.bounds.size.width];<br \/>\nself.labelFaceHeight.text = [NSString stringWithFormat:@\"%f\", faceFeature.bounds.size.height];<br \/>\nself.labelFaceX.text = [NSString stringWithFormat:@\"%f\", faceFeature.bounds.origin.x];<br \/>\nself.labelFaceY.text = [NSString stringWithFormat:@\"%f\", faceFeature.bounds.origin.y];<br \/>\n<br \/>\nfloat scale = 0.0f;<br \/>\n<br \/>\n\/\/ \u5e45\u3068\u9ad8\u3055\u306e\u5c0f\u3055\u3044\u65b9\u3092\u628a\u63e1<br \/>\nif (self.imageView.bounds.size.width &lt; = self.imageView.bounds.size.height) {<br \/>\n\/\/ \u5e45\u306e\u65b9\u304c\u5c0f\u3055\u304b\u3063\u305f\u5834\u5408<br \/>\nscale = self.imageView.bounds.size.width \/ self.imageView.image.size.width;<br \/>\n} else {<br \/>\n\/\/ \u9ad8\u3055\u306e\u65b9\u304c\u5c0f\u3055\u304b\u3063\u305f\u5834\u5408<br \/>\nscale = self.imageView.bounds.size.height \/ self.imageView.image.size.height;<br \/>\n}<br \/>\n<br \/>\nfloat dispWidth = self.imageView.image.size.width * scale;<br \/>\nfloat dispHeight = self.imageView.image.size.height * scale;<br \/>\nfloat dispX = (self.imageView.bounds.size.width - dispWidth) \/ 2;<br \/>\nfloat dispY = (self.imageView.bounds.size.height - dispHeight) \/ 2;<br \/>\n<br \/>\nfloat faceWidth = faceFeature.bounds.size.width * scale;<br \/>\nfloat faceHeight = faceFeature.bounds.size.height * scale;<br \/>\nfloat faceX = faceFeature.bounds.origin.x * scale + dispX;<br \/>\nfloat faceY = faceFeature.bounds.origin.y * scale + dispY;<br \/>\n<br \/>\nUIView *hogeView = [[UIView alloc] initWithFrame:CGRectMake(faceX, dispHeight - faceY - faceHeight, faceWidth, faceHeight)];<br \/>\nhogeView.layer.borderWidth = 8;<br \/>\nhogeView.layer.borderColor = [[UIColor redColor] CGColor];<br \/>\n[self.imageView addSubview:hogeView];<br \/>\n<br \/>\nif (faceFeature.hasLeftEyePosition) {<br \/>\n<br \/>\nself.labelLeftEyeX.text = [NSString stringWithFormat:@\"%f\", faceFeature.leftEyePosition.x];<br \/>\n<br \/>\nself.labelLeftEyeY.text = [NSString stringWithFormat:@\"%f\", faceFeature.leftEyePosition.y];<br \/>\n<br \/>\nfloat x = faceFeature.leftEyePosition.x * scale + dispX;<br \/>\nfloat y = faceFeature.leftEyePosition.y * scale + dispY;<br \/>\n<br \/>\nUIView* leftEyeView = [[UIView alloc] initWithFrame:CGRectMake(x - (faceWidth * 0.15), dispHeight - y, faceWidth * 0.3, faceHeight * 0.3)];<br \/>\n[leftEyeView setBackgroundColor:[[UIColor blueColor] colorWithAlphaComponent:0.8]];<br \/>\n[leftEyeView setCenter:CGPointMake(x + (faceWidth * 0.0365), dispHeight - y)];<br \/>\nleftEyeView.layer.cornerRadius = faceWidth*0.15;<br \/>\n[self.imageView addSubview:leftEyeView];<br \/>\n}<br \/>\n<br \/>\nif (faceFeature.hasRightEyePosition) {<br \/>\nself.labelRightEyeX.text = [NSString stringWithFormat:@\"%f\", faceFeature.rightEyePosition.x];<br \/>\n<br \/>\nself.labelRightEyeY.text = [NSString stringWithFormat:@\"%f\", faceFeature.rightEyePosition.y];<br \/>\n<br \/>\nfloat x = faceFeature.rightEyePosition.x * scale + dispX;<br \/>\nfloat y = faceFeature.rightEyePosition.y * scale + dispY;<br \/>\n<br \/>\nUIView* rightEyeView = [[UIView alloc] initWithFrame:CGRectMake(x - (faceWidth*0.15), dispHeight - y, faceWidth*0.3, faceWidth*0.3)];<br \/>\n[rightEyeView setBackgroundColor:[[UIColor greenColor] colorWithAlphaComponent:0.8]];<br \/>\n[rightEyeView setCenter:CGPointMake(x + (faceWidth * 0.0365), dispHeight - y)];<br \/>\nrightEyeView.layer.cornerRadius = faceWidth*0.15;<br \/>\n[self.imageView addSubview:rightEyeView];<br \/>\n}<br \/>\n<br \/>\nif (faceFeature.hasMouthPosition) {<br \/>\nself.labelMouthX.text = [NSString stringWithFormat:@\"%f\", faceFeature.mouthPosition.x];<br \/>\n<br \/>\nself.labelMouthY.text = [NSString stringWithFormat:@\"%f\", faceFeature.mouthPosition.y];<br \/>\n<br \/>\nfloat x = faceFeature.mouthPosition.x * scale + dispX;<br \/>\nfloat y = faceFeature.mouthPosition.y * scale + dispY;<br \/>\n<br \/>\nUIView* mouthView = [[UIView alloc] initWithFrame:CGRectMake(x - (faceWidth*0.15), dispHeight - y, faceWidth*0.3, faceWidth*0.3)];<br \/>\n[mouthView setBackgroundColor:[[UIColor purpleColor] colorWithAlphaComponent:0.8]];<br \/>\n[mouthView setCenter:CGPointMake(x + (faceWidth * 0.0365), dispHeight - y)];<br \/>\nmouthView.layer.cornerRadius = faceWidth*0.15;<br \/>\n[self.imageView addSubview:mouthView];<br \/>\n}<br \/>\n<br \/>\n}<br \/>\n<br \/>\n}<br \/>\n@end<br \/>\n[\/code]<br \/>\n11\u884c\u76ee\u306eviewDidLoad\u5185\u3067\u3001\u3068\u308a\u3042\u3048\u305a\uff11\u756a\u76ee\u306e\u753b\u50cf\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<br \/>\n27\u884c\u76ee\u306eonClickButtonPicture\u5185\u3067\u3001\u30dc\u30bf\u30f3\u306e\u30bf\u30c3\u30d7\u56de\u6570\u306b\u5fdc\u3058\u3066\u3001\u753b\u50cf\u306e\u5207\u66ff\/\u9854\u691c\u51fa\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n<br \/>\n148\u884c\u76ee\u306efaceDetect\u3067\u5b9f\u969b\u306b\u9854\u691c\u51fa\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n\u9854\u691c\u51fa\u81ea\u4f53\u306f151\u884c\u76ee\u304b\u3089156\u884c\u76ee\u3067\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n156\u884c\u76ee\u306e\u914d\u5217array\u306e\u4e2d\u306b\u9854\u30c7\u30fc\u30bf\u3067\u3042\u308bCIFaceFeature\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<br \/>\n<br \/>\n\u4eca\u56de\u306e\u30a2\u30d7\u30ea\u3067\u306f\u3001\u53d6\u5f97\u3057\u305f\u9854\u5ea7\u6a19\u306b\u4e38\u3084\u3089\u56db\u89d2\u3084\u3089\u3092\u63cf\u753b\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3001170\u884c\u4ee5\u964d\u3067\u5ea7\u6a19\u306b\u4e38\u306a\u3069\u3092\u63cf\u753b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\uff11\u70b9\u3084\u3084\u3053\u3057\u304b\u3063\u305f\u306e\u304c\u3001\u5ea7\u6a19\u306e\u958b\u59cb\u4f4d\u7f6e\u3067\u3059\u3002<br \/>\nUIImage\u306a\u3069\u306f\u5de6\u4e0a\u304c\u958b\u59cb\u4f4d\u7f6e(0, 0)\u306a\u306e\u3067\u3059\u304c\u3001\u9854\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53d6\u5f97\u3067\u304d\u308bCIFaceFeature\u3067\u306f\u5de6\u4e0b\u304c\u958b\u59cb\u4f4d\u7f6e(0, 0)\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001UIImageView\u306b\u4e38\u3084\u3089\u56db\u89d2\u3092\u63cf\u753b\u3059\u308b\u969b\u306b\u3001\u5ea7\u6a19\u306e\u5909\u63db\u51e6\u7406\u3092\u884c\u3044\u307e\u3057\u305f\u3002<br \/>\n\uff08\u591a\u5206\u3001\u3082\u3063\u3068\u7c21\u5358\u306a\u5909\u63db\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u30fb\u30fb\u30fb\uff09<br \/>\n<br \/>\n\u3067\u3001\u5b9f\u969b\u306b\u52d5\u304b\u3057\u305f\u7d50\u679c\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<a style=\"text-align: center;\" href=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/20131008_2.png\"><img loading=\"lazy\" class=\" wp-image-2116 aligncenter\" alt=\"20131008_2\" src=\"http:\/\/www.key-p.com\/blog\/staff\/wp-content\/uploads\/2013\/10\/20131008_2.png\" width=\"623\" height=\"481\" \/><\/a><br \/>\n<br \/>\n\u53f3\u76ee\u30fb\u5de6\u76ee\u30fb\u53e3\u306e\u4f4d\u7f6e\u306b\u4e38\u3092\u63cf\u753b\u3057\u3001\u9854\u5168\u4f53\u3092\u77e9\u5f62\u3067\u304b\u3053\u3063\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u8907\u6570\u4eba\u6570\u6620\u3063\u305f\u753b\u50cf\u3067\u3082\u3001\u5404\u3005\u306e\u9854\u3092\u691c\u51fa\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n<br \/>\n\u307e\u305f\u6642\u9593\u3092\u898b\u3064\u3051\u3066\u3001\u3053\u306e\u8fba\u308a\u3092\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u9593\u3067\u4e00\u6614\u524d\u304b\u3089\u3001iPhone\u3084Android\u3067\u9854\u691c\u51fa\u3059\u308b\u30a2\u30d7\u30ea\u304c\u7d50\u69cb\u30ea\u30ea\u30fc\u30b9\u3055 &hellip; <a href=\"https:\/\/www.key-p.com\/blog\/staff\/archives\/2091\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":17,"featured_media":2117,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/posts\/2091"}],"collection":[{"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/comments?post=2091"}],"version-history":[{"count":18,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/posts\/2091\/revisions"}],"predecessor-version":[{"id":2114,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/posts\/2091\/revisions\/2114"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/media\/2117"}],"wp:attachment":[{"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/media?parent=2091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/categories?post=2091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.key-p.com\/blog\/staff\/wp-json\/wp\/v2\/tags?post=2091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}