/// <summary>
 /// Constructor.
 /// <param name="dataPath">Relative path from the working directory to the directory that contains VisageFaceAnalyser data files.</param>
 /// </summary>
 public VisageFaceAnalyser(System::String ^ dataPath);
示例#2
0
            void set(System::String ^ str)
            {
                marshal_context ctx;

                c.data = ctx.marshal_as <const char *>(str);
            }
 /// <summary>
 /// Adds a face descriptor to the gallery.
 /// </summary>
 /// <param name="descriptor"> Pointer to the face descriptor (an array of DESCRIPTOR_SIZE short values) which will be added to the gallery. </param>
 /// <param name="name"> Name of the face in the image. </param>
 /// <returns> Returns 1 on success, 0 on failure. The function may fail if the descriptor is not a valid RGB image pointer. </returns>
 ///
 int AddDescriptor(short[] descriptor, System::String ^ name);
 /// <summary>
 /// Extracts a face descriptor from the input RGB image and adds it to the gallery.
 /// </summary>
 /// <param name="image"> VsImage pointer that contains the input RGB image. The image should contain only one face and this face will be added to the gallery. In case of multiple faces in the image, it is not defined which face would be used. </param>
 /// <param name="facedata"> Facial data obtained from VisageTracker or VisageFeaturesDetector. </param>
 /// <param name="name"> Name of the face in the image. </param>
 /// <returns> Returns 1 on success, 0 on failure. The function may fail if the face is not found in the image or if the image argument is not a valid RGB image pointer. </returns>
 ///
 ///
 /// See also: VSImage
 int AddDescriptor(VSImage ^ image, FaceData ^ facedata, System::String ^ name);
 /// <summary>
 ///	Constructor.
 /// <param name="dataPath"> path to the data file required for face recognition. In the visage|SDK distribution, the file is: Samples/data/bdtsdata/NN/fr.bin. </param>
 /// </summary>
 public VisageFaceRecognition(System::String ^ dataPath);
 /// <summary>
 /// Load gallery from a binary file. The entries from the loaded gallery are appended to the current gallery.
 ///  If it is required to replace existing gallery with the loaded one, call resetGallery() first.
 /// </summary>
 /// <param name="file_name"> Name of the file (including path if needed) from which the gallery will be loaded. </param>
 /// <returns> Returns 1 on success, 0 on failure. The function may fail if the file can not be opened. </returns>
 ///
 int LoadGallery(System::String ^ file_name);
 /// <summary>
 /// Save gallery as a binary file.
 /// </summary>
 /// <param name="file_name"> Name of the file (including path if needed) into which the gallery will be saved. </param>
 /// <returns> Returns 1 on success, 0 on failure. The function may fail if the file can not be opened. </returns>
 ///
 int SaveGallery(System::String ^ file_name);