opencv / opencv_for_ios_book_samples Goto Github PK
View Code? Open in Web Editor NEW"OpenCV for iOS" book samples
Home Page: http://bit.ly/OpenCV_for_iOS_book
License: Other
"OpenCV for iOS" book samples
Home Page: http://bit.ly/OpenCV_for_iOS_book
License: Other
faceAnimator = new FaceAnimator(parameters);
../Chapter15_DetectingFacialFeatures/Chapter15_DetectingFacialFeatures/ViewController.m:160:18: No viable overloaded '='
can't set faceAnimator
2019-11-22 09:12:12.387766+0800 Chapter15_DetectingFacialFeatures[13554:3631798] camera available: YES
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(4.1.2) /Volumes/build-storage/build/master_iOS-mac/opencv/modules/objdetect/src/cascadedetect.cpp:569: error: (-2:Unspecified error) in function 'bool cv::HaarEvaluator::Feature::read(const cv::FileNode &, const cv::Size &)'
Invalid HAAR feature (expected: 'rw.r.x + rw.r.width <= W'), where
'rw.r.x + rw.r.width' is 37
must be less than or equal to
'W' is 11
i am currently trying to implement detecting a hand using openCV. Can any one able to do this?
In the last version (3.2.0) these conversions methods(UIImageToMat,MatToUIImage) are in imgcodecs/ios.h. This class should be imported.
#import <opencv2/imgcodecs/ios.h>
Hello, I have a question regarding the code on chapter 13. It works well the only issue I have is that memory usage keeps growing every time I record a new video…. How do you release memory, so the application does not crash… Thank you.
I'm running the samples and samples Chap 14 and 15 will crash usually after stopping camera capture then hitting start once. Sometimes it doesnt crash until 5th cycle. I've been googling this issue but haven't came up with a solution.
Ubuntu 18.04
OpenCV
C++
The objective of the code is masking the image. To do so I created a mask, invert it and then use the function copyTo() to copy the pixels that are in white in the mask.
capR >> frameR;
cvtColor(frameR, imGrayR, CV_RGB2GRAY);
cv::Mat mask2 = cv::Mat::zeros(frameR.size(), frameR.type());
cv::ellipse(mask2, cv::Point(650,700), cv::Size(300,400),
180,0,180, cv::Scalar(255, 255, 255),-1,8,0);
cv::Mat inv_mask = cv::Scalar::all(255) - mask2;
imGrayR.copyTo(masked_imGrayR, inv_mask);
imshow("masked image",masked_imGrayR);
waitKey(0);
But while executing an error occur:
OpenCV Error: Assertion failed (mask.depth() == 0 && (mcn == 1 || mcn == cn)) in copyTo, file /home/roger/opencv/modules/core/src/copy.cpp, line 381
terminate called after throwing an instance of 'cv::Exception'
what(): /home/roger/opencv/modules/core/src/copy.cpp:381: error: (-215) mask.depth() == 0 && (mcn == 1 || mcn == cn) in function copyToAborted (core dumped)
I have detected that the issue is in the line 6, in the function copyTo()
Can anyone help me with this issue??
Thank you
I am new to Xcode for ios. I encountered a very strange problem.
My Xcode is 7 under MacOS EI. and I download the this opencv samples for ios
And after that I downloaded the opencv2.framework 2.4.9 for ios not Mac (they are different).
but, after I unzipped the opencv2.framework, the folders' names are very strange. There is no FOLDER named "opencv2" but "Headers". If so, how could I find the correct path????
In addition, where is the shared library? the next to that file is named "opencv2" but without any suffix. I do not know what it is. maybe the shared library.
In order to make the paths correct, I have changed the "*.h" files folder name to be "opencv2", so the project can find the header files. But still can not link to the library. The error is as follows.
ld: framework not found opencv2 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Although I have set the search path for headers and library.
I have searched a lot but no answers, Could you please give some ideas??
Thank you in advance!
I couldn't get Chapter 7 to work, so I downloaded the project here and got a similar error. re: "(-215)"
If useful, please look into for update. If not, and this is an error of my own, let me know and I'll close this. Not necessarily looking for someone to fix this for me - just relaying my user experience. Thanks! Unsigned int error, perhaps? I don't know much.
OpenCV Error: Assertion failed (mask.depth() == CV_8U && (mcn == 1 || mcn == cn)) in copyTo, file /Users/alexandershishkov/dev/opencv2.4.9/opencv/modules/core/src/copy.cpp, line 271
libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /Users/alexandershishkov/dev/opencv2.4.9/opencv/modules/core/src/copy.cpp:271: error: (-215) mask.depth() == CV_8U && (mcn == 1 || mcn == cn) in function copyTo
I run the demo but not catch any faces. thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.