首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >有没有可能让应用程序在照片中寻找“特定功能”?

有没有可能让应用程序在照片中寻找“特定功能”?
EN

Stack Overflow用户
提问于 2014-08-22 03:00:31
回答 1查看 38关注 0票数 0

我想做一个应用程序,让你可以拍一张你不知道的音乐笔记,应用程序会分析照片,看看是什么音符。我对编码很陌生,所以任何帮助都会很好。该应用程序将类似于应用程序snap,但它不是播放笔记,而是告诉您它是什么音符。

到目前为止这是我的密码。

(ViewController.m)

代码语言:javascript
复制
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)takePhoto:(id)sender {

    picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
    [picker setSourceType:UIImagePickerControllerSourceTypeCamera];
    [self presentViewController:picker animated:YES completion:NULL];

}

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

    image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
    [imageView setImage:image];
    [self dismissViewControllerAnimated:YES completion:NULL];
}

-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {

    [self dismissViewControllerAnimated:YES completion:NULL];
}
#pragma mark iAd Delagate Methods

-(void)bannerViewDidLoadAd:(ADBannerView *)banner {

    [UIView beginAnimations:nil context:nil];

    [UIView setAnimationDuration:1];

    [banner setAlpha:1];

    [UIView commitAnimations];


}

@end

(VeiwController.h)

代码语言:javascript
复制
#import <UIKit/UIKit.h>
#import <iAd/iAd.h>

@interface ViewController : UIViewController <UINavigationControllerDelegate,UIImagePickerControllerDelegate> {

     IBOutlet UIImageView *imageView;

    UIImagePickerController *picker;
    UIImage *image;
}

- (IBAction)takePhoto:(id)sender;



@end

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-22 03:49:15

这是可能的。它需要图像识别。但是,这不是可以在堆栈溢出帖子中回答的问题。

尝试在线搜索图像识别算法。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25438916

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档