Pages

Friday, March 15, 2013

The resource cannot be found. in VS 2012 WebAPI

Funny solution!

If you get this error when running the app from Visual Studio 2012, go back to app and make sure HTML file is not selected in the solution explorer. It worked for me! Don't know the reason behind that though.

Wednesday, March 13, 2013

Missing Entity Framework dll in VS2012

  1. Right click references
  2. Manage Nuget Packages
  3. Select Entity Framework
For more info:
http://msdn.microsoft.com/en-us/data/ee712906

Wednesday, March 6, 2013

An unhandled exception of type 'Emgu.CV.Util.CvException' occurred in Emgu.CV.dll Additional information: OpenCV: Unknown array type

To fix this issue, check whether the number of columns, rows and channels of source matrix match with the destination matrix.

When converting from OpenCV to EmguCV:
CV_32FC1 means 32 bit floating point single channel matrix

Saturday, March 2, 2013

An unhandled exception of type 'Emgu.CV.Util.CvException' occurred in Emgu.CV.dll Additional information: OpenCV: type == src2.type() && src1.cols == src2.cols && (type == CV_32F || type == CV_8U) in BOWImgDescriptorExtractor

Make sure the feature extractor used to generate vocabulary and the extractor given for BOWImgDescriptorExtractor are of same type. (E.g., SIFT)

More info:
http://stackoverflow.com/questions/15181699/error-in-bowimgdescriptorextractor-in-emgucv
http://code.opencv.org/issues/1879