Following my previous post Mosaicing face problems in opencv , everything was working fine until I tried it again today and I get this error . Everything seems to be alright but I am confused why I am getting this error. Can anybody help please?
thanks
The error says that the source vector or the destination vector of some algorithm does not have enough data required by a particular algorithm present in imgwarp.cpp
As I have no idea of your code, I assume that you may be using getAffineTransform or perspective transform.
Probably the assertion failure must be from getAffineTransform. It must require 3 points for its input and output. Have a look at the code on how these points are selected.
As you mentioned that the code was previously working, there is a possibility that the input images are changed, mostly the new one is with a different dimension.
Related
In Java pose options are clearly shown, pose.set(...), but in C++ I've so far not found any examples, I read that a side packet has to be added created from a class with a bool or int, etc., value, but what I´ve tested does nothing, no error, no behaviour change.
An example of setting the smoothing side packet and adding it to the graph would be very useful. Thanks
I have got a chart which I have been working quite some time now. Lately, I noticed the following error in the console:
This error spams my console and funny enought, everything works perfectly fine. I still want to get rid of it, however. Things I have noticed:
After building the chart, I have the error roughtly 10 times in the console
It does not matter If my chart has data or not, it will always be there, spamming the console
When I do a mouseover, the error is created many many more times
Everything works perfectly fine: my chart is there, I see the bubbles on mouse over, etc.
Because the error log does not tell me anything, I really do not know what to do or where to start looking.
Providing a snippet is very difficult and time consuming, as the different parts of the code are split up in three files. I will do so however, if I do not manage to solve it any time soon.
Best regards,
Martin
So the problem was that a colleague removed the exportButton and when AmCharts tried to tie the exporting functionality to this button, it threw this error. However, I do not understand why such an obvious error would produce such an ambigous error log.
I'm trying to set up an error detection system in c++ when doing a mysql_query, to check whether the query failed and if so try again (I'm using the mysql libray for Linux). The function mysql_query returns an int which is set to zero for success, and non-zero if failed (the error numbers are available at https://dev.mysql.com/doc/refman/5.0/en/mysql-query.html).
My first problem is that mysql_query only returns 0 or 1 for me, and this would be fine until I try to update a database entry with a similar content to what's already in the database. It also returns an error for that, which is fine on the principle, but as I can't differentiate it from an normal error, my current error detection system would try to repeat the query until it stops returning an error, which never happens. You'll tell me I could check what's in the DB first and then compare it to what I try to update before doing the query, and you would be right, but the code is already very complex and adding this level of complexity on the top would take quite some time.
So I'm wondering if there is a simpler answer to that? Thanks
Like #Mat wrote just use mysql_errno() (see Mysql Docs)
It returns 0 for success or an error code for errors.
Just so you guys know where this error actually came from, if you ever have the same.
I repetitively had mysql errors 2013 and 2006 when performing queries from different threads at the same time, but only after running a certain number of requests. I tried pretty much everything explained here.
Apparently for some reason the connection crashes and I can't do much to avoid it. The only thing that worked for me is to enable automatic reconnect using mysql_options and the option MYSQL_OPT_RECONNECT. It seems like a work around, more than a real fix, but at least my program doesn't crash now!
As I write code in Dev-C++ and scroll around to write another function and come back to the previous function I was working on Dev-C++ will have had entirely deleted my previous function! It also puts my code in all different places all over the screen randomly, messes up my code when I do edit --> undo and will give me error statements when I don't even have errors. I am running Windows 8. Can anybody help me get this straightened up please? It recently messed up a very large product I was working on with over 500 lines of code so I am rather upset about it. Thank you very much in advance for any help or any suggestions of other simple IDEs.
Here is a fairly easy question, though I have a hard time answering my own question.
We are a group of five people, that have to write a report and we have to document everything we do etc. In our project, we uses the function 'findContours();' which is a function within the OpenCV library.
We know that the 'findContours();' function runs a Grass-Fire algorithm, though we need to document what kernel we are using, which we don't have a clue about.
The function we runs looks like this:
findContours( mGreenScale, vecContours, vecHierarchy, CV_RETR_CCOMP,
CV_CHAIN_APPROX_SIMPLE );
mGreenScale: Our binary image we run the function upon.
vecCountours: The vector handler that keep tracks on which pixel is a part of the contour.
vexHierarchy: We are not quiet sure what this is, though we think its some sort of array that handles the contour hierarchy, and keeps
track of what are edge contours and what are non-edge contours.
The two other inputs to the function is unknown to us, and we think its one of those two that defines the kernel we use.
I hope anybody is capable of identifying what kernel we are using.
Thanks in advance, pleas ask for further information if you feel I missed something out of importance.
circumstantial explanation:
We're a small group of not so experienced programmer, who have limited knowledge in C++ and just begun working with OpenCV a month ago. We have a limited time schedule, and a documentation that needs to be done within two weeks. We have already been looking through this exact site: OpenCV documentation though there are still terms we don't understand.
We don't have the necessary time to check through the source code nor the experience to do so.
We think it is a grass-fire algorithm, as we know no other algorithm capable of detecting BLOBS.
What each parameter is doing is clearly explained in the OpenCV documentation
And you can find the kernel looking into the OpenCV code. It's open-source. But I am not sure if it used any kernel at all. How do you know about the algorithm if you did not check the source?