Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all 19555 articles
Browse latest View live

I can not load xml file

$
0
0
Hi. i want write face detection in opencv by c++ (in vs 2012) but i have problem to load xml file.i uploaded xml file in solution project and give relative address to load xml file but can not load the file,also placed xml file in drive "i" and give the absolute address , But the program is not able to load files. also all library added by property sheet.please help me to solve this problem, this is my code: CascadeClassifier face; if (face.load("haarcascade_frontalface_alt.xml")) { cout << "face_xml file is load"; } else { cout << " face_xml file doesn't load"; } and : if (face.load("i:/haarcascade_frontalface_alt.xml")) { cout << "face_xml file is load"; } else { cout << " face_xml file doesn't load"; } and in both way cout "face_xml file doesn't load" . thanks.

how to save image from mat object

$
0
0
I want to save the image in .jpeg format using th camera inside on camera frame function

OpenCV 3.1 in android development

$
0
0
Hi All, I have just started to work on android app development in Android Studio. I have installed Android Studio 2.2, Android SDK and Android NDK, plus OpenCV4Android SDK package as well. Everything goes smoothly but since the current version for OpenCV4Android is 2.4.13, when I want to add my java code that has been written in another IDE where I could use OpenCV 3.1, I have some troubles with converting the code back. I want to save some time and leave all my codes in the current way, since after updating the current OpenCV4Android SDK I have to go back and refactor my code again. Is there any way how I can use OpenCV 3.1 library in the current version of Android Studio as well. And if yes, is there any 'penalty' for this? I mean any negative impact regarding performance or usage.

OpenCV4android template matching

$
0
0
Hi. I'm using OpenCV4Android to try out template matching on an android phone. Essentially what I'm doing is taking a picture of some object that I wish to detect, cropping it and saving it as a template. I then use my android camera and a surface view to constantly get images from the camera. I am then applying template matching on each image, converting the image to a Mat first. However, when applying template matching I only get around 3-4 fps. What I am essentially doing is this: ** mCameraMat = inputFrame.rgba(); int matchMethod = Imgproc.TM_CCOEFF_NORMED; // mTemplateMat resized in terms of video size in prepareMediaRecorder. // Very hacky solution so need to fix it! int result_cols = mCameraMat.cols() - mTemplateMat.cols() + 1; int result_rows = mCameraMat.rows() - mTemplateMat.rows() + 1; mResult = new Mat(result_rows, result_cols, CvType.CV_32F); // Move this to a new thread. Imgproc.matchTemplate(mCameraMat, mTemplateMat, mResult, matchMethod); Core.normalize(mResult, mResult, 0, 1, Core.NORM_MINMAX, -1, new Mat()); // Localizing the best match with minMaxLoc MinMaxLocResult mmr = Core.minMaxLoc(mResult); Point matchLoc; if (matchMethod == Imgproc.TM_SQDIFF || matchMethod == Imgproc.TM_SQDIFF_NORMED) { matchLoc = mmr.minLoc; } else { matchLoc = mmr.maxLoc; } // Draw a boundary around the detected object. Imgproc.rectangle(mCameraMat, matchLoc, new Point(matchLoc.x + mTemplateMat.cols(), matchLoc.y + mTemplateMat.rows()), new Scalar(TrackingActivity.r, TrackingActivity.g, TrackingActivity.b, TrackingActivity.a), 2); ** Where mTemplateMat is the template bitmap image converted into a Mat object. The bottleneck is on the line Imgproc.matchTemplate(mCameraMat, mTemplateMat, mResult, matchMethod); If I remove that line, I get around 25 fps, which is much more acceptable. I'd be fine with anything above 13-14. I understand that template matching is a very expensive process and doing it every frame can be costly. I have tried to do it every 20 frames, but it still slows down the processing considerably, and the end video looks worse as there is a constant transition from a smooth fps display to a low fps display. What are my options in optimising matchTemplate? Any tips are much appreciated.

Calculating numstages numpos numneg

$
0
0
Hello Everyone, I'm new in to OpenCv and Cascade training. How can I calculate -numstages -numpos -numneg. My .vec file contains 6 positive Samples. And i have 129 negative Images. Can you help me with the calculation?

How to convert vector to homogenous

$
0
0
I tried converting to Mat but it doesn't work. I don't know how to use vectors because there is not Point4f. This is the error I get if I use matrix input and output of converttohomogenous OpenCV Error: Assertion failed (npoints >= 0) in cv::convertPointsToHomogeneous, file C:\Bin\opencv-master\source\modules\calib3d\src\fundam.cpp, line 965 vector opencv_cloud(8); //fill up //Convert to homogenous mat cv::Mat opencv_cloud_mat_homo, opencv_cloud_mat = cv::Mat(opencv_cloud).reshape(1).t(); cv::convertPointsToHomogeneous(opencv_cloud, opencv_cloud_mat_homo); I have this but its manual and I dont know how to convert back to non homogenous i.e. divide the mat by the last row //8 corners of aabb vector opencv_cloud(8), opencv_cloud_homo; opencv_cloud[0] = cv::Point3d(-min.x, -min.y, min.z); opencv_cloud[1] = cv::Point3d(-min.x, -min.y, max.z); opencv_cloud[2] = cv::Point3d(-max.x, -min.y, max.z); opencv_cloud[3] = cv::Point3d(-max.x, -min.y, min.z); opencv_cloud[4] = cv::Point3d(-min.x, -max.y, min.z); opencv_cloud[5] = cv::Point3d(-min.x, -max.y, max.z); opencv_cloud[6] = cv::Point3d(-max.x, -max.y, max.z); opencv_cloud[7] = cv::Point3d(-max.x, -max.y, min.z); //Convert to homogenous mat cv::Mat opencv_cloud_mat_homo, opencv_cloud_mat = cv::Mat(opencv_cloud).reshape(1).t(); cv::vconcat(opencv_cloud_mat, cv::Mat::ones(cv::Size(8, 1), CV_64FC1), opencv_cloud_mat_homo);

Uninstalling opencv previous version

$
0
0
I have install opencv 2.4 before and now I'm trying to install opencv3, it seems the installation process goes without problem but when I try to get opencv version with cv2.__version__ it still gives me 2.4.12 . I found out that by using uninstall I can uninstall it but the problem is I don't know where it is installed.
I'll appreciate if someone can help me with this

opencv3.1.0-dev ?

$
0
0
check this site from openCV its saying the version as "3.1-0-dev" , is this a different version than the one I have installed and if yes where can I download it or is it a matter of just the right CMAKE options ? The background subtraction function location they are showing are different from what I have , mine are in "cv2.bgsegm" Also the site is showing three modules for subtraction where as I have only two if I do " >>>help(cv2.bgsegm) "createBackgroundSubtractorGMG" and "createBackgroundSubtractorMOG" (http://docs.opencv.org/trunk/db/d5c/tutorial_py_bg_subtraction.html) [root@hadoop1 build]# python Python 3.3.3 (default, Nov 16 2016, 14:57:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2>>> cv2.__version__ '3.1.0'>>> cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_NEW_PYTHON_SUPPORT=ON -DWITH_TBB=ON -DBUILD_TBB=ON -DWITH_OPENGL=ON -DWITH_EIGEN=ON -DFFMPEG_INCLUDE_DIR=/usr/local/include -DOPENCV_EXTRA_MODULES_PATH=/root/opencv_contrib/modules -DBUILD_opencv_legacy=OFF ..

Key-Frame VO Key-Point Data Fusion

$
0
0
I have a key-point based visual odometry routine which accepts as input an RGB-D frame. Successive image are tracked to each other and a cumulative rotation and translation is maintained. In this current form, significant drift occurs. I intend to transition this routine to make use of key-frames, whereby until some sufficient displacement has occurred to necessitate a new key-frame, new RGB-D frames are tracked to the most recent key-frame. Key-frames should significantly reduce drift and are useful for further processing if so desired (m-frame bundle adjustment, etc.). My question is pretty fundamental. Assume I have performed tracking (key-point matching and PNP) and have [R|t] for the current frame to the current key-frame. Now, given a key-point pair, one in the key-frame and one in the current frame, each with 3D position and uncertainty/covariance, how can I fuse the new data into the key-frame data? Of course, there are many papers that dance around this and take it for granted, but for someone new to this sort of thing, I am having trouble finding a source that offers a good explanation (this might even come from radar systems).

How to use Homebrew to install both OpenCV 2.4 and OpenCV 3.1 for c++ programming on Mac?

$
0
0
I need to install OpenCV 2.4 on my Mac for a new c++ project, but I already have OpenCV 3.1 installed for my old c++ projects with Homebrew. Are there any ways to manage the use of two version of OpenCVs on a Mac for c++ projects? I understand for Python programming you can have multiple environments by using either Anaconda Python or virtualenv, but not sure for C++ programming how we can handle the multiple environment problems. Any suggestions and comments ? Thanks in advance.

cant find 'BackgroundSubtractorMOG2' opencv3.1.0

$
0
0
sorry after closing the previous thread I tested and I can't find the "'BackgroundSubtractorMOG2'" module ? I have the MOG and GMG in the sv2.bgsegm though. [root@hadoop1 scripts]# python Python 3.3.3 (default, Nov 16 2016, 14:57:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import cv2>>> fpbg=cv2.BackgroundSubtractorMOG2 Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG2'>>> import cv2.bgsegm>>> fpbg=cv2.BackgroundSubtractorMOG2 Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG2'>>>

How to compare two contours Translated from one another?

$
0
0
![image description](/upfiles/13926359092339633.jpg) Hi all, I want to compare two contours & find the hausdorff distance between them to find the similarity between the two contours. When I take the template contour on the Right side as a Reference Contour to find the similar contour from the Left hand side I’m getting error because the Scene contour points are translated from the Template contour Actual-Points. Actually I’m taking the contours points directly from the two images. As you can see I cannot crop only the contour region since it affects the neighboring contours. Here I'm not using Template matching since my reference Image may have group of contours so I'm comparing difference between all the points in the two contours to find hausdorff distance. Should I make an Empty image with Scene image size and make my Template contour slide over the Scene Image to find the match? or else is there any other better approach? Regards, Balaji.R

Why You Should Buy Google +1 Votes, Pinterest And Instagram Followers?

$
0
0
In the snapshot posted Feb. 13, Madonna is photographed by way of back as she dons black lingerie and fishnet tights. Inside of accompanying caption, Madonna explained that she was during editing footage of all her live acts.

Your smartphone lights upwards of tell you when absolutely anything happens online. RTs, mentions, direct messages. Received your phone buzzing and chirruping as a rain forest and have the capacity to concentrate on anything within.

It might a bit weird, but this app is just awesome. This app designed on iPhone Development platform will amazingly scans all the moles and eventually, it is going evaluate items. You can also keep a track regarding changes in the moles. However, it is not a replacement of some professional doctor instead it truly is just let you get all the important information that you will need.

This month, she is working with rapper Mac Miller, on a brand new track "The Way." On her, instagram page, she revealed how the track is actually going to out on March twenty-six.

Scula: I am Scula - also in order to as @Sculalive, there is nothing was born and raised in Uptown Electricity. For the past four years I are usually part connected with a rap group named Jungle Habitat.

Scula: Music has been a a part of my life, even for a child. I decided to pursue a career in which is actually a because I wanted to regarding my life experiences. Rapping allows me to discover with the city I matured in, and a in order to express a greater way of life.

It doesn't sound like Bravo would take on a real-estate show, but the issues that his sales records would adequate to convince someone in order to choose a show about Serhant and his real-estate situations. So, has he gotten his own show? Somewhat like fans will need check out his timeline to see what happens with Serhant.

If you have any issues regarding exactly where and how to use plus de followers sur instagram gratuit, you can contact us at our web site.

How to convert seven segment numbers into normal numbers?

$
0
0
I want to take a picture of a seven segment number system and want to convert the the reading in that image to numbers. I want to use this numbers for another processing. Please help... Thanks in advance

How to subtracrt one image from another image?

$
0
0
If i subtract one image from another image which are merely same then i want output as 0. plzz..

Create A Www.paypal.com Login You Can Be Proud Of

$
0
0
" This will submit your question to Pay - Pal customer service, and also you should receive a reply within 24-72 hours. Pay - Pal is surely an e-commerce website that one could use to deliver and receive money. Accepting payments with Pay - Pal can be as easy as starting a free Pay - Pal account. It's utilized by many e-commerce an internet-based auction services as a way to secure payment. Although your credit card company wants you to definitely pay. Pay - Pal is an online business that permits individuals and businesses to transfer. Lots of people own Pay - Pal accounts and if they know there can be a safe and secure way of donating money, they will likely be more likely to provide.

While Pay - Pal won't have separate donation accounts, it can allow users with two types of accounts---Premier and Business---to make donation buttons. Once your paypal login is processed, your Pay - Pal account will likely be linked with your e - Bay account. The service is marketed largely toward county and city governments. List your item for sale on e - Bay following their prompts. Use Pay - Pal to get and print Media Mail postage for private, small-scale and. Moneybookers can be an accepted payment site that boasts over 7 million online customers. Transfer your funds from Pay - Pal to your credit card by clicking the "Withdraw" and selecting "Transfer funds in your card. Most people don't know that you could have approximately seven.

If you don't have a very bank account, then you definitely'll should open one. Call Pay - Pal, if you would rather deal using a customer service rep about your dispute. They won't ask you if you have any transactions because you are able to see them for yourself inside your my account settings, you can see them inside the, in your history so in the event you just look with your history and if you see which you have paid someone 3 days ago and yes it has not cleared yet then your account will not be capable of be closed or if you have drawn take advantage your bank account today plus it hasn't settled yet then you are able to't close your bank account. On this page and the following pages, submit the information inside fields provided. Click "Continue" to confirm your request to transfer funds from Pay - Pal to your bank account. US federal law gives charge card users the legal right to dispute something that's not received and many issuers use a zero-percent liability policy if your card is used fraudulently.

Determine your combined shipping rate before you decide to start listing items on e - Bay. Budgeting; Banking; Credit; Cards; Loans; Real Estate. Personal injury protection insurance, or PIP, is a provision associated with an automobile insurance policy that provides coverage to the insured for medical. Once a Pay - Pal account accrues money, the user can get those funds out by clicking around the "Withdraw" button beneath the "My Accounts" tab, and either transferring the bucks to…. Pay - Pal has built itself being a competitive member in the financial community and will be the leading source of payment for online purchases. According to Pay - Pal's Help Center, sales of certain products defined as high-risk trigger a hold on tight payment. You can fill even short thank you notes with appreciation, sincerity and meaning.

Muhoozi Kainerugaba Uganda Fruit

$
0
0
general muhoozi kainerugabaThe U.S. has a well toned aviation business, but a lot of countries overseas have a little aviation business that is now general Muhoozi Kainerugaba developing. To start with let's remember that all branches of our armed forces are huge and have to have the exact exacting standards in place to be able to manage the large quantities of troops they contain. These forces were quite poor.

Corrective training is not a punishment. Kickboxing in Beacon is a superb way in getting an entire body workout whilst learning simple self-defense moves, along with gaining a large quantity of self-confidence. Cardio kickboxing training exercises in Littleton have the capacity to totally work your complete body and burn large quantities of calories in mere a brief period of time.

The volatility in the present market features day traders opportunities they haven't observed in years. After the world industry price is higher (as it's now), they get reduced within the industry rate. Because the stock exchange is experiencing a government-inspired rally, now's the opportunity to sell!

It really is simply as much for the recruits since it's the family. No other job on the planet can treat you enjoy the Sea Corps so yea it is a little tough to receive used too. Any excellent training can produce that change happen including any superior Religious training.

There are a great number of choices available for Military bands. The line turns red and whenever the red colorization gets to the top of strip it's time to alter the filters. In the event that you network well, you can on occasion score a deal with the dog owner to assist you advertise at no extra price.

Despite the fact that it's a difficult treatment, it's additionally a rewarding one, in the feeling that lots of service members value forever. You will establish general Muhoozi Kainerugaba power, and quite a high degree of self-defense. Though a lot of individuals have a great deal of professions and difficulties in living, someone builds up and learns beliefs and ethics in each element of daily life.

Infrastructure usually indicates the access to road networks, communication system, schools and hospitals amongst others. A good idea is to consider the help of a skilled property management business in a nearby area for accurate data. The other complementary products or services will additionally have a little of this significant pie.

Having a yearly discussion about objectives, setting them, reviewing progress a couple of times annually, and then a yearly appraisal, is an terrific discipline which need to not be neglected. As you start the studying process you also ought to follow a Wise plan for your own leadership skill development, objectives & objectives. Use checklists to list activities which need to be accomplished. Treat every project for a adjust effort.

The effect of this pandemic will still only be known in future generations. There are restaurants that provide foods from various cultures, not just African. Previously, it varied from nation to nation.

Besides these activities, in addition, he holds a superior academic record. He is agile and he's strong. It is frequently carried out to identify the employer or the management Brigadier Colonel Muhoozi Kainerugaba members inside the organization the person holds Brigadier Colonel Muhoozi Kainerugaba a amazing record & is capable of completing the assigned activities. It was an great precedence for an individual like Lincoln in 1861.

There are several benefits of working with the entire perspective view in development projects. Many factors are advanced to supply explanation as to the reasons this scenario proceeds to happen. The spatial analysis approach taken inside this report stipulates a means forward. It's often assumed that once a policy was decided, its implementation will be somewhat straightforward.

Thus, even at its best, the irrigated part in today's setup will remain much smaller than the rain-fed part of agriculture. There's a straightforward access to technological infrastructure. Brain drain enables a terrific transfer of skills which are rememberred by the developping country, and it let's them profit from the essential bonus of remittences. PCH is a quick growing tropical species that's well suited to conditions throughout many regions of Uganda.

That it's other peoples that are totally in charge of the problem that we're in, and therefore we have zero control over it.'' It defines them, in reality, without appeal. A story with just average interest should find out quickly if it's to find out whatsoever.

This near lack of nationalism among the country's ethnic groups led to a run of political compromises. Newsrooms have changed, as have all of those other workplaces, but I don't find a big change in the modern news judgements. Most the youth work force can be found in the rural when compared with the cities of the country.

You may be perfect for a particular branch, but that branch might not be well suited for you. Without quite as critical, there's a substantial demand for food. You will discover you could find some money fast this manner.

Chessboard detection fails on fisheye image

$
0
0
I am trying to perform calibration for a fisheye lens using the omnidir module. I am finding that the chessboards are not detected on many of the calibration images. For example, here is an image that it fails on. Why would this be? it has no occlusion and good lighting. I also tried downsampling to half the resolution as I heard that might help. Using opencv3-3.1.0_3 on OSX. ![image description](/upfiles/14796242771759322.png)

Can't we load an image in binary directly??

$
0
0
We can load an image in grayscale directly right. What about binary. Do we have to convert it into binary after grayscale only??

Text To speech in openCv using C++

$
0
0
actually this is the first time to post a question on stcakoverflow. I have a question about opencv. right now I am working to develop a program takes an attendance using face detection and face recognition where the student stands front of the webcam to detect and recognize his face, this is not a problem. the feature which I want to add is when the program recognizes the student's face, I want the program to pronounces his name. Is there any algorithm to do that using OpenCv. Please anyone has experience or knowledge about that help me. Thank you for all in advance
Viewing all 19555 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>