You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ViewController.h 908 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // ViewController.h
  3. // lp
  4. //
  5. // Created by xiaojun on 2017/12/2.
  6. // Copyright © 2017年 xiaojun. All rights reserved.
  7. //
  8. //#import <UIKit/UIKit.h>
  9. #ifdef __cplusplus
  10. #import <opencv2/opencv.hpp>
  11. //#import <opencv2/imgproc/types_c.h>
  12. #import <opencv2/imgcodecs/ios.h>
  13. #endif
  14. #ifdef __OBJC__
  15. #import <UIKit/UIKit.h>
  16. #import <Foundation/Foundation.h>
  17. #import <AVFoundation/AVFoundation.h>
  18. #endif
  19. @interface ViewController : UIViewController<UIImagePickerControllerDelegate,
  20. UINavigationControllerDelegate,UIToolbarDelegate> {
  21. cv::Mat source_image;
  22. }
  23. @property (nonatomic, retain) UILabel *textLabel;
  24. @property (nonatomic, retain) UIImageView *imageView;
  25. @property (nonatomic, retain) UIImageView *textView;
  26. @property (nonatomic, retain) UIToolbar *toolbar;
  27. -(void)loadButtonPressed:(id)sender;
  28. -(void)simpleRecognition:(cv::Mat&)src;
  29. -(NSString *)getPath:(NSString *)fileName;
  30. @end