OpenCV ocl module - - opencv

I tried to run face detection sample in the ocl module of OpenCV. I got the following error in command line:
unidentified identifier "int3"
Following error in VS2012
cv::Exception at memory location xxxxx
No idea what to do!
Possible duplicate here: ocl-facedetect sample of opencv 2.4.6.1 . But no answer.

I don't have the specs handy but I think the 3-component vector types didn't get added until 1.1 (or maybe 1.2). Perhaps your device only supports OpenCL 1.0. What is the device?

Related

Rust binding for OpenCV seems to be missing the face module

I'm using opencv as OpenCV bindings for rust and I'm trying to implement an EigenFaceRecogniser system. On docs.rs, the opencv::face module is listed inside the opencv crate. However, when I build my code, I get the error:
could not find face in opencv
I'm not really sure what's causing this as the face module is clearly listed in the documentation but for some reason I cannot use it. If anybody who has used these bindings before or knows anything about what could be going wrong could help, it would be appreciated.
I'm using OpenCV version 4.5.1.
The solution was to enable the contrib feature for the opencv package.
While I was writing the above question, I stumbled across this post asking about OpenCV having no face module in python. The solution to that question was to install the opencv-contrib-python package so I tried enabling the contrib feature in the opencv crate and it compiled. I thought I'd post this question anyway just in case somebody else was having this issue.

OpenCV Face Recognition : [iOS]

I am trying to work on OpenCV Face recognition but the problem is :-
The sample code i downloaded from github(https://github.com/ekurutepe/iOS-OpenCV-FaceRec) for opencv face recognition have the following problem :-
use of undeclared identifier createLBPHFaceRecognizer()
Please refer to the following screenshot :-
I've been faced with this issue. The latest pod opencv library does not contain "extra" libs (e.g. face detection). So you have to find or build library with required library by yourself

Direct2D Effects

I am trying to follow instructions on creating Custom Direct2D Effects, as described in Custom Effects and Effect Shader Linking. I am getting into number of problems:
The "d2d1effecthelpers.hlsli" file in not found in my Windows SDK. I could only find it here.
When trying to run fxc compiler with model set to lib_4_0_level_9_1_ps_only I get an error that this model is not supported.
When using lib_4_0_level_9_1 instead, I get another compilation error, saying that static variables are not supported for libraries (and this static definition comes from the above HLSLI file, not from my code).
After all my goal is to create a pixel shader for Direct2D, which will be receiving number of textures as input. Maybe something in my environment is missing and I can't follow the examples (I'm using Windows 8.1). Any suggestions are welcome.

Integration Issue of Tango SDK with Cocos2dx 3.0 based game [libpng error: bad parameters to zlib]

Atm, I am integrating Tango's SDK with my game, built with Cocos2dx 3.0, and I encountered this issue where XCode's console printed "libpng error: bad parameters to zlib". Initial tracing of the error showed that a function call in CCImage.cpp, png_read_update_info, terminated prematurely when initialising a png file, resulting in a bad excess error when SpriteBatchNode attempts to add a spritesheet to cache as the texture was not initialised successfully. Furthermore, the one of the lib files in the SDK was found to contain a zlib file.
What exactly is the cause of this issue, usage of multiple zlib? Ultimately, is there anyway to solve this issue on my part, or Tango has to do something about their SDK?
You might link your project with a different version of zlib. I think Cocos2dx 3.0 has already configured zlib well, so you might need to check whether there is another zlib in your Tango's SDK.
Try to remove it and test it again.

vfp.h in the accelerate framework doesn't link on XCode 4.0.2

I'm using the Accelerate framework to boost the performance of a piece of code that I'm running on iPhone.
I require two headers from Accelerate which are vdsp and vfp. vDSP works perfectly, however I'm getting "use of undeclared identifier" when I use a function from vfp.
Here's the weird thing:
When I run on the simulator, my code runs nicely (even though the editor still points to an error), and the results I expect from the functions used in vfp are there.
But when I try to run on a device, I get the error.
Which means that I have my files linked correctly. Since the function works, but XCode is confused since it still says undeclared function. Or is it that iOS do not support vfp? Even though with the vector processor they should.
Help please :)
Take a look at the vfp.h header:
extern vFloat vceilf( vFloat A ) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
__IPHONE_NA means "not available on iOS". The Accelerate framework on iOS 4.x consists only of the vDSP, LAPACK and BLAS libraries. Please file a bug to request the features that would be useful to you!

Resources