Error CS0246 Could not find the type or name of the namespace "Capture" (perhaps there is no using directive or link to the assembly).
- Hm ... and does not save Rebild? Perhaps you have installed a completely naked version of VS and need to deliver the component. - Denis Bubnov
- There is no such thing I think cannot be ... I installed all the packages during the installation - Danil Bayramgaleev
- youtube.com/watch?v=iqO5CSm5kpM - Danil Bayramgaleev
- This is a lecture on which I did a project about ... The code itself will be for about 36 minutes (everything works there) - Danil Bayramgaleev
|
1 answer
You have two uses for the library in which there is a type of Capture . The first belongs to the Emgu.CV assembly:
and the second belongs to the System assembly:
Or, it is a property that belongs to the System.Windows.Forms assembly:
Since you specified Emgu.CV in the question marks, then most likely the required Capture should belong to this particular namespace. For the code to work, you need to explicitly specify the namespace for the Capture type; for this, a type declaration is sufficient:
Capture capture = ... replaced by:
Emgu.CV.Capture capture = ... In general, you need to figure out which namespace a type belongs to, on whose declaration the error falls and ask it what is needed.
|