Cannot convert from [] to IInputArray when using the Train method.

Ask question on using Emgu CV with C#
Post Reply
CluelessCoder
Posts: 1
Joined: Mon Jan 27, 2020 11:08 pm

Cannot convert from [] to IInputArray when using the Train method.

Post by CluelessCoder » Mon Jan 27, 2020 11:26 pm

I am using Emgu CV 4.1.1 with Visual Studio 2017. But when I am using the Train method for EigenFaceRecognizer, it gives me the following error:

Argument 1: cannot convert from 'Emgu.CV.Image<Emgu.CV.Structure.Gray, byte>[]' to 'Emgu.CV.IInputArray'
Argument 2: cannot convert from 'string[]' to 'Emgu.CV.IInputArray'

Can anyone provide me with a solution?

Post Reply