| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #if __cplusplus
 | 
					
						
							|  |  |  | extern "C" | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-12 18:52:23 +03:00
										 |  |  | #include "dl_lib_matrix3d.h"
 | 
					
						
							|  |  |  | #include "dl_lib_matrix3dq.h"
 | 
					
						
							| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /**
 | 
					
						
							| 
									
										
										
										
											2019-10-01 11:21:44 +03:00
										 |  |  |      * @brief Forward the face recognition process with frmn model. Calculate in float. | 
					
						
							|  |  |  |      * | 
					
						
							|  |  |  |      * @param in    Image matrix, rgb888 format, size is 56x56, normalized | 
					
						
							|  |  |  |      * @return dl_matrix3d_t* Face ID feature vector, size is 512 | 
					
						
							| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  |      */ | 
					
						
							|  |  |  |     dl_matrix3d_t *frmn(dl_matrix3d_t *in); | 
					
						
							| 
									
										
										
										
											2020-11-03 21:20:00 +02:00
										 |  |  |      | 
					
						
							|  |  |  |     /**@{*/ | 
					
						
							| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  |     /**
 | 
					
						
							| 
									
										
										
										
											2020-11-03 21:20:00 +02:00
										 |  |  |      * @brief Forward the face recognition process with specified model. Calculate in quantization. | 
					
						
							| 
									
										
										
										
											2019-10-01 11:21:44 +03:00
										 |  |  |      * | 
					
						
							|  |  |  |      * @param in    Image matrix, rgb888 format, size is 56x56, normalized | 
					
						
							|  |  |  |      * @param mode  0: C implement; 1: handwrite xtensa instruction implement | 
					
						
							|  |  |  |      * @return      Face ID feature vector, size is 512 | 
					
						
							| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  |      */ | 
					
						
							|  |  |  |     dl_matrix3dq_t *frmn_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-17 10:09:43 +03:00
										 |  |  |     dl_matrix3dq_t *frmn2p_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							| 
									
										
										
										
											2019-10-01 11:21:44 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-20 22:07:04 +02:00
										 |  |  |     dl_matrix3dq_t *mfn56_42m_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     dl_matrix3dq_t *mfn56_72m_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     dl_matrix3dq_t *mfn56_112m_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     dl_matrix3dq_t *mfn56_156m_q(dl_matrix3dq_t *in, dl_conv_mode mode); | 
					
						
							| 
									
										
										
										
											2019-07-17 10:09:43 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-03 21:20:00 +02:00
										 |  |  |     /**@}*/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-09 19:31:46 +01:00
										 |  |  | #if __cplusplus
 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | #endif
 |