i'l learning opencv with c++ and so i'm trying to use new c++ interface. but a lot of code i found on internet is based on old c interface.
for example i fond a lot of algorithm based on
IplImage, cvCvtPixToPlane, cvThreshold
and i have to translate them in
cv::Mat, cv::threshold, ..
in here (i think the official manual) i haven't find anything of really complete.
and each time i have to google for get the right conversion in the new c++ interface.
where can i find a conversion table?
Try OpenCV manuals, It seems they are the best way to find equivalent functions.
Version 2.1 : http://www.comp.nus.edu.sg/~cs4243/doc/opencv.pdf
All C,C++ and python API is available as single pdf, so you can just search for function names to find equivalent in C or C++
Version 2.3 : https://shimcv.googlecode.com/files/opencv2refman.pdf
Online version of 2.3 : http://opencv.itseez.com/
The cheatsheet doesn't have conversions but is the most useful documentation I've found and used!
Related
I am trying to extract the LBPFeatures of an image using OpenCV and C++, but there seems to be no in-built function to extract the features.
Can anyone help me?
I need to find the feature points and not the histogram.
The LBP authors give an optimized C code in one of their papers: here is the link.
you can find an old implementation of OpenCV in https://github.com/bytefish/opencv/tree/master/lbp
That libraries are included in newer versions of OpenCV, but the link have an example implementation
i'm new to c++ and need a way for detecting the language of the text.
i searched for any plugin to do that and only found the chromum open source code.
https://code.google.com/p/cld2/
there is many pages talking about using it at python, java or stand alone but i cant find any tutorial about using it in a c++ code.
so i need a declaration for how to use it or any other good library for detecting the text language using c++.
the language text will be added by user and i want to detect if it is English , French or Arabic .. etc to apply nlp according to that.
Thanks,
Although its not a library, one option you have is to simply use Google translates API to detect the language. This is done using REST. The obvious downside is that you need to be connected to the internet to make the call. The docs explain how you can do this here
Similar: Does anyone know of a C/C++ Unix QR-Code library?
I tried libqrencode but apparently it's only able to generate a QR-Code. However, I need a library that reads the data from a photo of a printed QR-Code.
It must be a C, C++ or Objective-C library and it has to compile on BSD systems. On my platform, Java and .NET are not available.
What libraries can I use?
Thanks.
Try using libdecodeqr , it doesn't seem to be updated for over a year but a Google search reveals that it still works.
zxing (http://code.google.com/p/zxing/) is probably the most well-known and used in a number of barcode/qr-code apps. The original/primary code is Java but it includes a C++ port that is pretty actively maintained, particularly for QR codes.
The C++ library does not (currently) have an encoder, but it sounds like you want a decoder.
Does anyone know where I can find open source code (in c++) that converts a UTM point to Geo (WGS 84)?
Thanks,
Liran
Take a look at GDAL.
Specifically the code used here.
There is also a Warp API tutorial here which outlines the basic use of the Warp API.
Alternatively, you can use the more lightweight PROJ.4 library (GDAL uses this internally).
While not C++ per se, I have written it in Objective-C and could more or less be copied and pasted into C or C++ with a few minor alterations.
UTMConverter example for iOS
The part you want is a file called UTMConverter.m. It has methods for converting from lat/long to UTM and vice-versa.
Can anyone recommend a ready-to-use class/library compatible with C/C++/MFC/ATL that would parse iCal/vCal/Google calendar files (with recurrences)? It can be free or commercial.
there is a parser in PHP for iCal, you can downloaded and check the code to suit your language.
for vCal/vCard parsing there's a C Library.
for Google Calendar I couldn't find any exact answer, so, try to Google it.
For vCal you can try the CCard project on SourceForge:
http://sourceforge.net/projects/ccard
It's a C library but it states Windows as a supported platform.
*Edit: balexandre already linked to it :)
The only problem with the CCard project is that it's a generic parser (similar to what I already have implemented myself) - what would be really valuable to me is something that "understands" all varieties of recurrences and such. Those differ between vCal and iCal as well, adding to the complexity.