作者 lihongjuan

1

正在显示 100 个修改的文件 包含 482 行增加26 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

@@ -44,43 +44,21 @@ @@ -44,43 +44,21 @@
44 "selectedIconPath": "../../static/useractive.png", 44 "selectedIconPath": "../../static/useractive.png",
45 "text": "个人中心" 45 "text": "个人中心"
46 } 46 }
47 -  
48 ], 47 ],
  48 +
49 currentTabIndex: this.current 49 currentTabIndex: this.current
50 } 50 }
51 }, 51 },
52 - props: {  
53 - current: {  
54 - type: [Number, String],  
55 - default: 0  
56 - },  
57 - backgroundColor: {  
58 - type: String,  
59 - default: '#fbfbfb'  
60 - },  
61 - color: {  
62 - type: String,  
63 - default: '#999'  
64 - },  
65 - tintColor: {  
66 - type: String,  
67 - default: '#42b983'  
68 - }  
69 - }, 52 + props: ["current"],
70 onLoad() { 53 onLoad() {
71 54
72 55
73 }, 56 },
74 methods: { 57 methods: {
75 gotab(item,index) { 58 gotab(item,index) {
76 -  
77 console.log(item.pagePath); 59 console.log(item.pagePath);
78 - let url=item.pagePath  
79 -  
80 - console.log(url)  
81 - this.currentTabIndex = index;  
82 - this.$emit('click', index)  
83 - uni.switchTab({url}) 60 + let url=item.pagePath;
  61 + uni.switchTab({url})
84 } 62 }
85 63
86 } 64 }
@@ -71,6 +71,22 @@ @@ -71,6 +71,22 @@
71 } 71 }
72 } 72 }
73 } 73 }
  74 + },
  75 + "nativePlugins" : {
  76 + "AThree-Face" : {
  77 + "__plugin_info__" : {
  78 + "name" : "Face",
  79 + "description" : "人脸核身",
  80 + "platforms" : "Android,iOS",
  81 + "url" : "",
  82 + "android_package_name" : "",
  83 + "ios_bundle_id" : "",
  84 + "isCloud" : false,
  85 + "bought" : -1,
  86 + "pid" : "",
  87 + "parameters" : {}
  88 + }
  89 + }
74 } 90 }
75 }, 91 },
76 /* 快应用特有相关 */ 92 /* 快应用特有相关 */
不能预览此文件类型
不能预览此文件类型
  1 +//
  2 +// AuthSDK.h
  3 +// AuthSDK
  4 +//
  5 +// Created by jardgechen on 16/8/31.
  6 +// Copyright © 2016年 tencent. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +#import "ValidatorTool.h"
  11 +extern NSString *const OcrOnlyNotification;
  12 +typedef void(^HttpRequestSuccessBlock)(id responseObject);
  13 +typedef void(^HttpRequestFailBlock)(NSError *error);
  14 +
  15 +@protocol AuthSDKDelegate <NSObject>
  16 +
  17 +/**
  18 + 回调函数
  19 +
  20 + @param result 返回的结果
  21 + */
  22 +-(void)onResultBack:(NSDictionary *)result;
  23 +
  24 +@end
  25 +
  26 +@interface AuthSDK : NSObject
  27 +
  28 +
  29 +/**
  30 + 初始化服务器URL
  31 +
  32 + @return 构造函数
  33 + */
  34 +-(instancetype)init;
  35 +
  36 +- (void) setServerURL:(NSString *)serverURL;
  37 +
  38 +- (void) setLimitErrorTime:(int)limiErrorTime;
  39 +
  40 +
  41 +-(NSString *)getSDKVersion;
  42 +
  43 +
  44 +/**
  45 + 开始流程
  46 + @param token 需要传入的token, 不需要时可传入nil
  47 + @param vc 父controller
  48 + @param delegate 需要实现回调的Controller
  49 + */
  50 +-(void)startAuthWithToken:(NSString *)token parent:(UIViewController *)vc delegate:(id<AuthSDKDelegate>)delegate;
  51 +
  52 +
  53 +@end
  54 +
  1 +//
  2 +// ValidatorTool.h
  3 +// MedPlus
  4 +//
  5 +// Created by jardgechen on 16/5/18.
  6 +// Copyright © 2016年 tencent. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +@interface ValidatorTool : NSObject
  12 +
  13 +//正则验证手机号码
  14 ++(BOOL)isValidateMobile:(NSString*)phoneNum;
  15 +//正则验证名字
  16 ++(BOOL)isValidateName:(NSString *)name;
  17 +//按规则验证身份证号
  18 ++(BOOL)isValidatedAllIdcard:(NSString *)idCard;
  19 +@end
  1 +framework module AuthSDK {
  2 + umbrella header "AuthSDK.h"
  3 +
  4 + export *
  5 + module * { export * }
  6 +}
  1 +//
  2 +// ULSMultiTrackeriOSSDK.h
  3 +// ULSMultiTrackeriOSSDK
  4 +//
  5 +// Created by ulsee on 2/3/17.
  6 +// Copyright © 2017 ulsee. All rights reserved.
  7 +//
  8 +// Version : v1.3.8
  9 +
  10 +#import <UIKit/UIKit.h>
  11 +#import "ULSPixelBufferWrapper.h"
  12 +
  13 +//! Project version number for ULSMultiTrackeriOSSDK.
  14 +FOUNDATION_EXPORT double ULSMultiTrackeriOSSDKVersionNumber;
  15 +
  16 +//! Project version string for ULSMultiTrackeriOSSDK.
  17 +FOUNDATION_EXPORT const unsigned char ULSMultiTrackeriOSSDKVersionString[];
  18 +
  19 +@interface ULSMultiTrackeriOSSDK : NSObject
  20 +
  21 +/*!
  22 + @method initFromFolder:withActivationKey:withActivationKey:
  23 + @abstract
  24 + Initialization of ULSMultiTrackeriOSSDK class object.
  25 +
  26 + @param path
  27 + The path of the tracker resource. (The default resource name is ULSFaceTrackerAssets.bundle)
  28 + @param key
  29 + The valid key is essential to active the initialization of tracker object. The valid key is provided by ulsee.com.
  30 + @param maxFaces
  31 + Max number of face that want to be tracked.
  32 +
  33 + @result
  34 + Return an object of ULSMultiTrackeriOSSDK class or nil value.
  35 + */
  36 +- (id)initFromFolder:(NSString*)path withActivationKey:(NSString*)key withMaxFaces:(int)maxFaces;
  37 +
  38 +- (id)initFromFolder:(NSString*)path withActivationKey:(NSString*)key withMaxFaces:(int)maxFaces withContext:(EAGLContext*)context;
  39 +
  40 +/*!
  41 + @method process:withFaceCount:withFaceRects:withRollAngle:
  42 + @abstract
  43 + This function gets facial tracking result from an input image captured by camera. This function should be called in each new frame generating.
  44 + The face rectangle is expected to be in absolute coordinates.
  45 +
  46 + @param src
  47 + The CVPixelBuferRef­-format frame captured from the camera. This frame is used to do the facial tracking process. Format supported: kCVPixelFormatType_32BGRA, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.
  48 + @param count
  49 + An integer value which indicates the number of faces are detected.
  50 + @param faceRect
  51 + The CGRect array of face rectangle value which returned from the method of AVCaptureMetadataOutputObjectsDelegate.
  52 + @param radians
  53 + The float array of roll angle value of the tracking face. This value would be got from the method of A VCaptureMetadataOutputObjectsDelegate.
  54 +
  55 + @result
  56 + Return an integer that indicates the number of active faces.
  57 + */
  58 +- (int) process:(CVPixelBufferRef)src
  59 + withFaceCount:(int)count
  60 + withFaceRects:(CGRect*)faceRect
  61 + withRollAngle:(float*)radians;
  62 +
  63 +/*!
  64 + @method process:withBufferWidth:withBufferHeight:withFaceCount:withFaceRects:withRollAngle:
  65 + @abstract
  66 + This function gets facial tracking result from an CVOpenGLESTextureRef. This function should be called in each new frame generating, and is designed for those who wanted to pre-process the Pixelbuffer and use the textureref afterwards.
  67 + The face rectangle is expected to be in absolute coordinates.
  68 +
  69 + @param srcTexture
  70 + The CVOpenGLESTextureRef generated from related CVOpenGLES API(s). Currently only support BGRA format.
  71 + @param bufferWidth
  72 + Width of the texture image in pixel.
  73 + @param bufferHeight
  74 + Height of the texture image in pixel.
  75 + @param count
  76 + An integer value which indicates the number of faces are detected.
  77 + @param faceRect
  78 + The CGRect array of face rectangle value which returned from the method of AVCaptureMetadataOutputObjectsDelegate.
  79 + @param radians
  80 + The float array of roll angle value of the tracking face. This value would be got from the method of A VCaptureMetadataOutputObjectsDelegate.
  81 + @result
  82 + Return an integer that indicates the number of active faces.
  83 + */
  84 +- (int) process:(CVOpenGLESTextureRef)srcTexture withBufferWidth:(int)bufferWidth withBufferHeight:(int)bufferHeight withFaceCount:(int)count withFaceRects:(CGRect *)faceRect withRollAngle:(float *)radians;
  85 +
  86 +- (int) process:(CVPixelBufferRef)src;
  87 +- (int) processWithPixelBufferWrapper:(ULSPixelBufferWrapper *)src;
  88 +/*!
  89 + @method numberOfPoints
  90 + @abstract
  91 + Get the number of points in the shape.
  92 +
  93 + @result
  94 + Returns an integer that indicates number of points in the shape.
  95 + */
  96 +- (unsigned int)numberOfPoints;
  97 +
  98 +/*!
  99 + @method getShape66p:
  100 + @abstract
  101 + Get the original facial landmarkers in 2D (x, y) from face index i.
  102 +
  103 + @param index
  104 + The face index value.
  105 +
  106 + @result
  107 + Return an array of floats [x0,y0,x1,y1,x2,y2......x65,y65] for index(th) tracked face, or NULL.
  108 + */
  109 +- (const float*)getShape66p:(int)index;
  110 +
  111 +/*!
  112 + @method getShape:
  113 + @abstract
  114 + Get the facial landmarkers in 2D (x, y) from face index i.
  115 +
  116 + @param index
  117 + The face index value.
  118 +
  119 + @result
  120 + Return an array of floats [x0,y0,x1,y1,x2,y2......] for index(th) tracked face, or NULL.
  121 + */
  122 +- (const float*)getShape:(int)index;
  123 +
  124 +/*!
  125 + @method getShape3D:
  126 + @abstract
  127 + Get the facial landmarkers in 3D (x, y, z) from face index i.
  128 +
  129 + @param index
  130 + The face index value.
  131 +
  132 + @result
  133 + Return an array of floats [x0,y0,x1,y1,x2,y2......] for index(th) tracked face, or NULL, in camera coordinate system.
  134 + */
  135 +- (const float*)getShape3D:(int)index;
  136 +
  137 +/*!
  138 + @method getScaleInImage:
  139 + @abstract
  140 + Get face scale value of index(th) tracked face which relates to the initial 3D model.
  141 + Weak-perspective camera model's scale parameter.
  142 +
  143 + @param index
  144 + The face index value.
  145 +
  146 + @result
  147 + Return a float value means scale of index(th) face.
  148 + */
  149 +- (float) getScaleInImage:(int)index;
  150 +
  151 +/*!
  152 + @method getTranslationInImage:x:y:
  153 + @abstract
  154 + Get the X-axis and Y-axis translation in the image of a tracked face of the specified index.
  155 + Data will be in order [x, y], to help find the centre-point of the face in the image, for accurate positioning.
  156 +
  157 + @param index
  158 + The face index value.
  159 + @param x
  160 + Returned x value of centre-point of the face in the image.
  161 + @param y
  162 + Returned y value of centre-point of the face in the image.
  163 +
  164 + @result
  165 + Return TRUE if the pose value was estimated. Return FALSE otherwise.
  166 + */
  167 +- (BOOL) getTranslationInImage:(int)index x:(float*) x y:(float*)y;
  168 +
  169 +/*!
  170 + @method getRotationPitch:pitch:yaw:roll:
  171 + @abstract
  172 + This function is used to get the real time head pose pitch, yaw, roll value of the index(th) tracked face.
  173 +
  174 + @param index
  175 + The face index value.
  176 + @param pitch
  177 + Returned picth value of the index(th) tracked face.
  178 + @param yaw
  179 + Returned yaw value of the index(th) tracked face.
  180 + @param roll
  181 + Returned roll value of the index(th) tracked face.
  182 +
  183 + @result
  184 + Return TRUE if the pose is tracked for index(th) face. Return FALSE otherwise.
  185 + */
  186 +- (BOOL) getRotationPitch:(const int)index pitch:(float*)pitch yaw:(float*)yaw roll:(float*)roll;
  187 +
  188 +/*!
  189 + @method getNewStablePoseIndex:pixelBuffer:
  190 + @abstract
  191 + This function is used to calculate the new pose values, for every tracked face of the specified index.
  192 + This new algorithm is making POSE more stable when head is still with big open mouth or big open eyes.
  193 + It's especially useful for avatar applications.
  194 + You may skip the getNewStablePoseIndex function if you don't mind the POSE minor changes when open big mouth and eyes.
  195 +
  196 + @param index
  197 + The face index value.
  198 + @param pb
  199 + The CVPixelBuferRef­-format frame captured from the camera. This frame is same as the used one to do the facial tracking process.
  200 +
  201 + @result
  202 + Return an array of new pose [pitch, roll, yaw, scale].
  203 + */
  204 +- (float *)getNewStablePoseIndex:(int)index pixelBuffer:(CVPixelBufferRef)pb;
  205 +
  206 +/*!
  207 + @method getShapeQuality:
  208 + @abstract
  209 + Get the shape quality from face index i.
  210 +
  211 + @param index
  212 + The face index value.
  213 +
  214 + @result
  215 + Return an array of shape quality [q0, q1, q2, q3...] indicates the quality of each landmark of the shape.
  216 + */
  217 +- (const float*)getShapeQuality:(int)index;
  218 +
  219 +/*!
  220 + @method getPoseQuality
  221 + @abstract
  222 + Get pose quality from face index i.
  223 +
  224 + @param index
  225 + The face index value.
  226 + @result
  227 + Return 0.7f while the pose value is not NULL. Return 0.0f otherwise.
  228 + */
  229 +- (const float)getPoseQuality:(int)index;
  230 +
  231 +/*!
  232 + @method getPupilsLocation
  233 + @abstract
  234 + Get the pupil location of the index(th) face.
  235 +
  236 + @param index
  237 + The face index value.
  238 +
  239 + @result
  240 + Return an array of 4 floats (x,y)(x,y), or NULL.
  241 + */
  242 +- (const float*)getPupilsLocation:(int)index;
  243 +
  244 +/*!
  245 + @method getGaze
  246 + @abstract
  247 + Get the gaze direction in left gaze (x, y, z) and right gaze (x, y, z) from face index i.
  248 +
  249 + @param index
  250 + The face index value.
  251 +
  252 + @result
  253 + Return an array of 6 floats (x,y,z)(x,y,z) with the direction of the gaze, or NULL.
  254 + */
  255 +- (const float*)getGaze:(int)index;
  256 +
  257 +/*!
  258 + @method getTranslationIndex:x:y:z:focalLength:imageCentreX:imageCentreY:
  259 + @abstract
  260 + Get head center in 3D.
  261 +
  262 + @param index
  263 + The face index value.
  264 + @param x
  265 + Returned x value of head center in 3D.
  266 + @param y
  267 + Returned y value of head center in 3D.
  268 + @param z
  269 + Returned z value of head center in 3D.
  270 + @param focalLength
  271 + The focal length value of camera. (Use 1000 as default.)
  272 + @param imageCentreX
  273 + The x-center value of the input pixel buffer of image.
  274 + @param imageCentreY
  275 + The y-center value of the input pixel buffer of image.
  276 + */
  277 +- (void)getTranslationIndex:(int)index
  278 + x:(float *)x
  279 + y:(float *)y
  280 + z:(float *)z
  281 + focalLength:(const float)focalLength
  282 + imageCentreX:(const float)imageCentreX
  283 + imageCentreY:(const float)imageCentreY;
  284 +
  285 +/*!
  286 + @method isTracking:
  287 + @abstract
  288 + Check if the index(th) face is tracked or not.
  289 +
  290 + @param index
  291 + The face index value.
  292 + @result
  293 + Return TRUE while the index(th) face is tracked. Return FALSE otherwise.
  294 + */
  295 +- (BOOL)isTracking:(int)index;
  296 +
  297 +/*!
  298 + @method setTrackerThreshold:
  299 + @abstract
  300 + Set the threshold value of tracker health value.
  301 +
  302 + @param threshold
  303 + tracker health threshold. (default: 0.3f)
  304 + */
  305 +- (void)setTrackerThreshold:(const float)threshold;
  306 +
  307 +/*!
  308 + @method resetTracker
  309 + @abstract
  310 + Reset the tracker(s).
  311 + */
  312 +- (void)resetTracker;
  313 +
  314 +/*!
  315 + @method startFaceTracking:
  316 + @abstract
  317 + Start or stop face tracking process.
  318 + @param isStart
  319 + Set TRUE to start face tracking process. Set FALSE otherwise.
  320 + */
  321 +- (void)startFaceTracking:(BOOL)isStart;
  322 +
  323 +/*!
  324 + @method ulsFaceDetectWithPixelBuffer:
  325 + @abstract
  326 + Return NSArray that contains with CGRect values of face detection rectangles.
  327 +
  328 + @param pixelBuffer
  329 + The PORTRAIT mode pixel buffer.
  330 +
  331 + @result
  332 + An NSArray of CGrect face rectangle
  333 + */
  334 +- (NSArray*)ulsFaceDetectWithPixelBuffer:(CVPixelBufferRef)pixelBuffer;
  335 +- (NSArray*)ulsFaceDetectWithImage:(UIImage *)image;
  336 +
  337 +/*!
  338 + @method getPortraitPixelBufferFromImage:
  339 + @abstract
  340 + Return CVPixeBufferRef with portrait mode orientation.
  341 +
  342 + @param uiImage
  343 + The input UIImage with any orientation.
  344 +
  345 + @result
  346 + A CVPixelBufferRef value with portrait mode orientation.
  347 + */
  348 +- (CVPixelBufferRef)getPortraitPixelBufferFromImage:(UIImage *)uiImage;
  349 +
  350 +/*!
  351 + @method pixelBufferRotateLeftFlipHorizontal:
  352 + @abstract
  353 + Return CVPixeBufferRef with rotate left and flip horizontal.
  354 +
  355 + @param pixelBuffer
  356 + The input pixel buffer.
  357 +
  358 + @result
  359 + A CVPixelBufferRef value with rotate left and flip horizontal.
  360 + */
  361 +- (CVPixelBufferRef)pixelBufferRotateLeftFlipHorizontal:(CVPixelBufferRef)pixelBuffer;
  362 +@end
  1 +//
  2 +// ULSPixelBufferWrapper.h
  3 +// ULSVideoTrackerDemo
  4 +//
  5 +// Created by Feng Chen on 2017/10/25.
  6 +// Copyright © 2017年 ULSee Inc. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +#import <CoreFoundation/CoreFoundation.h>
  11 +#import <CoreVideo/CoreVideo.h>
  12 +
  13 +@interface ULSPixelBufferWrapper : NSObject
  14 +-(instancetype)init;
  15 +-(void)rotateLeftFlipHorizontal:(CVPixelBufferRef)pixelBuffer videoAngles:(int)angels;
  16 +-(void)releaseBuffer;
  17 +-(CVPixelBufferRef)getPixelBuffer;
  18 +
  19 +//internal use only
  20 +-(id)getInternalObject;
  21 +@end