-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathViewController.h
More file actions
43 lines (41 loc) · 1.43 KB
/
ViewController.h
File metadata and controls
43 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// ViewController.h
// EasyPR iOS
//
// Created by zhoushiwei on 15/1/30.
// Copyright (c) 2015年 zhoushiwei. All rights reserved.
//
#ifdef __cplusplus
#import <opencv2/opencv.hpp>
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "VideoProcess.h"
#endif
@interface ViewController : UIViewController<UIImagePickerControllerDelegate,
UINavigationControllerDelegate, UIPopoverControllerDelegate,UIToolbarDelegate,AVCaptureVideoDataOutputSampleBufferDelegate> {
UIPopoverController *popoverController;
UIImageView *imageView;
UIImageView *textView;
UILabel *textLabel;
UIImage* image;
cv::CascadeClassifier faceCascade;
cv::Mat source_image;
BOOL Camera_State;
cv::Mat RGB;
}
@property(nonatomic,retain)VideoProcess *m_VideoProcess;
@property (nonatomic, retain) UILabel *textLabel;
@property (nonatomic, retain) IBOutlet UIImageView *imageView;
@property (nonatomic, retain) IBOutlet UIImageView *textView;
@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;
@property (nonatomic, retain) UIPopoverController *popoverController;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *loadButton;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *saveButton;
-(IBAction)loadButtonPressed:(id)sender;
-(IBAction)loadButtonCameraPressed:(id)sender;
-(IBAction)saveButtonPressed:(id)sender;
-(UIImage*)plateRecognition:(cv::Mat&)src;
@end