Ml.cs 666 B

1234567891011121314151617181920212223242526272829
  1. using OpenCVForUnity.CoreModule;
  2. using OpenCVForUnity.UtilsModule;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. namespace OpenCVForUnity.MlModule
  7. {
  8. // C++: class Ml
  9. public class Ml
  10. {
  11. // C++: enum cv.ml.ErrorTypes
  12. public const int TEST_ERROR = 0;
  13. public const int TRAIN_ERROR = 1;
  14. // C++: enum cv.ml.SampleTypes
  15. public const int ROW_SAMPLE = 0;
  16. public const int COL_SAMPLE = 1;
  17. // C++: enum cv.ml.VariableTypes
  18. public const int VAR_NUMERICAL = 0;
  19. public const int VAR_ORDERED = 0;
  20. public const int VAR_CATEGORICAL = 1;
  21. }
  22. }