I am new to OpenCV & Tesseract and intend to use cv2.text for text detection and recognition.
I have successfully and separately built OpenCV 3.2.0 with its contrib modules and Tesseract-OCR 4.0.0-dev by Visual Studio 2015 under 64-bit Windows 10. To build OpenCV with Tesseract-OCR, CMake requires the 'include' files from Tesseract-OCR but it wasn't in my Tesseract-OCR 4 build output. Can anyone help to advise how can I get the Tesseract-OCR 'include' files?
↧
How to build OpenCV 3.2 Text Module with Tesseract 4.0?
↧
When I use 'cv2.imread()' the image window show not responding.Can somebody help me with this?
I am using opencv 2.7When I use 'cv2.imshow('image',img)' the image window shows not responding.I waited for some long,but still not respondiing.Somebody please help me.Thankyou.
↧
↧
Vital Variables Influencing Scrap Steel Rates
Making use of steel scraps for a selection of efficient uses has caused the speeding up growth of the industry. Today there are over a million industries that provide and also use steel scraps for different functions. Because of this factor, the scrap metal costs have gotten on the rise continually. The federal governments of numerous countries have sustained the scrap industry and therefore have actually generated huge revenues from this industry.
Growing Need for Steel Scraps
Metals are used for innumerable purposes such as for building and construction of bridges, buildings, roads, freeways, automobiles, airplane as well as train areas. With such a large and also varied usage of steels in different areas, it is fairly challenging to regulate their escalating demand as well as thus costs. So the scrap metal rates have actually been climbing because the increase in the demand for various kinds of metals which are utilised for various effective uses.
Both ferrous as well as non ferrous metals are used for numerous objectives. To meet the ever increasing demand for metals, mining of steels was the earlier alternative and this has actually resulted in a substantial depletion in the quantity of metals on earth.
Nevertheless, later on the advantages of using metal little bits as well as items which are also referred to as scraps originated. Steel is one of one of the most essential products that can preserve its worth even after several processes of recycling.
With the boost in the use of copper as well as iron ore, the scrap metal prices for the exact same has actually been on the increase. The prices of iron as well as steel have experienced a rise in the previous couple of years as iron ore is in wonderful need on the market front.
With a rise in demand for a lot of the waste steels found in junkyards such as computer system components, auto components, tins, canisters, wires and also various other steel parts, the scrap metal costs are likewise impacted considerably. Today a lot of the industries make use of steel bits and components for producing automobile and also aircraft. This has assisted to maintain the natural deposits of the earth which would have or else been depleted due to extreme use.
A lot of the markets which manufacture electric goods utilise steel scraps for generating different sorts of electronic goods. As scrap metal prices are reasonably lower than the original metal costs, the majority of the markets like to utilize metal bits as well as pieces as it is more affordable.
Scrap Metal Costs Online
There are a variety of on-line websites which show the current scrap steel costs in various components of the globe. With the growth of the industry, there are many buyers as well as sellers of metal scraps throughout the world.
The market is one of the most appealing industries that generate big income to the nation. Various federal government policies have actually been released to sustain the industry. The scrap market has actually confirmed valuable to the economy as well as to the environment in multiple means.
The scrap steel costs nevertheless are affected by a number of factors such as the pureness of the steel, quantity and also quality of the steel. As there are a variety of customers as well as vendors of metal scraps, it can be quickly purchased from any one of the authentic suppliers detailed online.
If you have any thoughts relating to exactly where and how to use aluminum scrap price, you can get in touch with us at our own site.
Growing Need for Steel Scraps
Metals are used for innumerable purposes such as for building and construction of bridges, buildings, roads, freeways, automobiles, airplane as well as train areas. With such a large and also varied usage of steels in different areas, it is fairly challenging to regulate their escalating demand as well as thus costs. So the scrap metal rates have actually been climbing because the increase in the demand for various kinds of metals which are utilised for various effective uses.
Both ferrous as well as non ferrous metals are used for numerous objectives. To meet the ever increasing demand for metals, mining of steels was the earlier alternative and this has actually resulted in a substantial depletion in the quantity of metals on earth.
Nevertheless, later on the advantages of using metal little bits as well as items which are also referred to as scraps originated. Steel is one of one of the most essential products that can preserve its worth even after several processes of recycling.
With the boost in the use of copper as well as iron ore, the scrap metal prices for the exact same has actually been on the increase. The prices of iron as well as steel have experienced a rise in the previous couple of years as iron ore is in wonderful need on the market front.
With a rise in demand for a lot of the waste steels found in junkyards such as computer system components, auto components, tins, canisters, wires and also various other steel parts, the scrap metal costs are likewise impacted considerably. Today a lot of the industries make use of steel bits and components for producing automobile and also aircraft. This has assisted to maintain the natural deposits of the earth which would have or else been depleted due to extreme use.
A lot of the markets which manufacture electric goods utilise steel scraps for generating different sorts of electronic goods. As scrap metal prices are reasonably lower than the original metal costs, the majority of the markets like to utilize metal bits as well as pieces as it is more affordable.
Scrap Metal Costs Online
There are a variety of on-line websites which show the current scrap steel costs in various components of the globe. With the growth of the industry, there are many buyers as well as sellers of metal scraps throughout the world.
The market is one of the most appealing industries that generate big income to the nation. Various federal government policies have actually been released to sustain the industry. The scrap market has actually confirmed valuable to the economy as well as to the environment in multiple means.
The scrap steel costs nevertheless are affected by a number of factors such as the pureness of the steel, quantity and also quality of the steel. As there are a variety of customers as well as vendors of metal scraps, it can be quickly purchased from any one of the authentic suppliers detailed online.
If you have any thoughts relating to exactly where and how to use aluminum scrap price, you can get in touch with us at our own site.
↧
The Benefits of Sober Living
For recouping addicts who are trying to stay clean as well as sober the choices made after finishing from treatment program could be crucial. Many people graduate from therapy programs and are then returned back to the specific very same location as well as circumstance they were in while they were making use of. For a recouping addict this could be a big mistake.
Transitioning back into the area as well as aiming to prevent the adverse facets that lead them to addiction could be really tough. Particularly if they are bordered by the exact same unfavorable problems they remained in prior to their therapy.
This is where sober living is available in. These residences can provide the recovering addict with the structure as well as stability should keep them focused. This permits them to shift back in to society with no of the stress as well as lures they would certainly deal with if returning to their old settings. Throughout this time around they have the ability to seek outdoors treatment, attend conferences for addicts or self-help groups, maintain work and also develop bonds with their friends and families. Unlike therapy facilities, sober living locals could remain for as long as they need to as opposed to being returned to the streets after a collection amount of time.
There are lots of benefits to residing in a sober living home. Below are simply a couple of:
Budget-friendly
Lots of people leaving treatment centers might be on repaired incomes or not have adequate earnings to pay a first months rental fee, deposit, energies, etc. Many sober living residences give all utilities and also do not request credit checks or rental down payments. The average sober living home in The golden state fees around $500 a month as well as offers totally free cable, phone as well as net.
Support group
An additional advantage is the support group. All residents of the home share the typical objective of attempting to remain clean and sober. This indicates that there is constantly someone around who is willing in order to help when they may require the support of somebody else to maintain them concentrated.
Central Locations
The majority of houses lie in main areas so that citizens have access to public transport, buying, AA/NA meetings and also various other sources.
Structured Atmosphere
Although not as restrictive as therapy programs, residents have to adhere to lots of standards made to keep them on the right path. Homeowners should actively go to AA/NA conferences or some other type of outside treatment for addiction. They could not bring medications or alcohol in the house and also must avoid making use of drugs or alcohol for the duration of their stay. They are anticipated to respect others, tidy up after themselves and help preserve the cleanliness of the house. Many houses have curfews also.
Sober living is not the service to dependency. Nonetheless, it can play a significant role in helping the addict remain tidy. Incorporated with continued treatment, peer and family sustain lots of recouping addicts are currently living favorable lifestyles devoid of alcohol and drugs.
If you beloved this posting and you would like to obtain a lot more details with regards to clean and sober housing kindly check out the internet site.
This is where sober living is available in. These residences can provide the recovering addict with the structure as well as stability should keep them focused. This permits them to shift back in to society with no of the stress as well as lures they would certainly deal with if returning to their old settings. Throughout this time around they have the ability to seek outdoors treatment, attend conferences for addicts or self-help groups, maintain work and also develop bonds with their friends and families. Unlike therapy facilities, sober living locals could remain for as long as they need to as opposed to being returned to the streets after a collection amount of time.
There are lots of benefits to residing in a sober living home. Below are simply a couple of:
Budget-friendly
Lots of people leaving treatment centers might be on repaired incomes or not have adequate earnings to pay a first months rental fee, deposit, energies, etc. Many sober living residences give all utilities and also do not request credit checks or rental down payments. The average sober living home in The golden state fees around $500 a month as well as offers totally free cable, phone as well as net.
Support group
An additional advantage is the support group. All residents of the home share the typical objective of attempting to remain clean and sober. This indicates that there is constantly someone around who is willing in order to help when they may require the support of somebody else to maintain them concentrated.
Central Locations
The majority of houses lie in main areas so that citizens have access to public transport, buying, AA/NA meetings and also various other sources.
Structured Atmosphere
Although not as restrictive as therapy programs, residents have to adhere to lots of standards made to keep them on the right path. Homeowners should actively go to AA/NA conferences or some other type of outside treatment for addiction. They could not bring medications or alcohol in the house and also must avoid making use of drugs or alcohol for the duration of their stay. They are anticipated to respect others, tidy up after themselves and help preserve the cleanliness of the house. Many houses have curfews also.
Sober living is not the service to dependency. Nonetheless, it can play a significant role in helping the addict remain tidy. Incorporated with continued treatment, peer and family sustain lots of recouping addicts are currently living favorable lifestyles devoid of alcohol and drugs.
If you beloved this posting and you would like to obtain a lot more details with regards to clean and sober housing kindly check out the internet site.
↧
How to eliminate small contours in a binary image?
I am currently working on image processing project. I am using Opencv 3.x.x with VC++.
My code:
Mat result;
vector>contours;
vectorhierarchy;
int savedContour = -1;
double maxArea = 0.0;
// Find the largest contour
findContours(binarayImage, contours, hierarchy, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE, Point());
for (int i = 0; i< contours.size(); i++)
{
double area = contourArea(contours[i]);
if (area > maxArea)
{
maxArea = area;
savedContour = i;
}
}
// Create mask
drawContours(result, contours, savedContour, Scalar(255), CV_FILLED, 8);
**The binary image which I obtained :**

**The result/output image which I want to obtain :**

but when I applied the above code, the result was

did not look like I expected.
Help me! Thank you!
P/s: I know this problem is caused by drawContours. But I have no way to fix it.
↧
↧
Problem with HSV
Need some help, i am not able to find the desired contour
Input: 
After applying binary filter: 
After applying HSV filter: 
Output: 
However, the desired output should have been: 
Need some help, this is my code for hsv:
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "iostream"
using namespace cv;
using namespace std;
int main()
{
Mat image;
image = imread("C:/Proj/Denoised.jpg", CV_LOAD_IMAGE_COLOR);
if (!image.data)
{
cout << "Could not open the denoised image" << std::endl;
return -1;
}
// Create a new matrix to hold the hsv image
Mat HSV;
// convert RGB image to hsv image
cvtColor(image, HSV, CV_BGR2HSV);
namedWindow("Display RGB image", CV_WINDOW_AUTOSIZE);
imshow("Display RGB image", image);
//DISPLAY image
namedWindow("Result : HSV image", CV_WINDOW_AUTOSIZE);
imshow("Result : HSV image", HSV);
//save the HSV image
imwrite("C:/Proj/HSVimage.jpg", HSV);
waitKey(0);
return 0;
}
↧
Watershed Transform and PCA opencv 3.0 c++
I am trying to train a PCA(classification/recognition) with watershed transform(feature extraction) on Opencv 3.0 with C++. I have managed to get the watershed working but now I have trouble merging the watershed transform with the PCA.
Can Watershed algorithm be performed with PCA for training data?
↧
Secret Uses of Remote Control Airplanes
Now that winter is fading in a distant memory it is actually a great time to get kids cowboy boots with the little buckeroo of yours. Many online distributors deptartment stores and children cowboy boots specialty stores are running teriffic sales to cut back inventory and prepare for the upcomming summer sandal season.
The level of excitement increases considerably not simply for kids within the big event also for adults. Arranging a kids party magician to do various skills about the stage is likely to make a child feel proud and the entire event becomes memorable for that children who attend the party. There are types of magic shows conducted by the expert magicians during such events. Initially you need to discuss with the magicians to debate his plans of magic shows as well as other events on routine. Further, it is vital for that parent to offer him enough space around the room for privately making arrangement for presenting the show correctly. He is the guy who keeps the entire audience spellbound for some time making the big event memorable. The show will incorporate not simply animation figures but additionally real animals and even birds which will fly from his hat, when he lifts it. Make sure that he includes products which are intimate for a child's heart to ensure he or she would feel especially proud for that occasion.
Youth wilderness camps offer exceptional outdoor programs with aid of certified trainers, instructors and counselors. Cognitive therapy and behavioral modification programs prescribed by wilderness centers play a huge role in improving conduct, emotions and personality of aggressive kids. Summer camps also provide parenting tips and advices to families to boost their relations with defiant children. There are several types of alternative programs and schools for unmotivated children growth. The programs have to be selected depending on the specific needs and demands of expert educational consultant or problematic youngsters.
A party that is organized for the kids will continue to be incomplete till the time there are no games. Kids are certain to get bored when there is no game so they can play in a very party. If you wish to plan an event for the children you then needs to know about children party games. By including children party games in the party, people could make certain that kids have a great time. It is always good to consider just like a kid while organizing a celebration for youngsters. So many people like to have parties. People ought not feel that parties are only for adults. Kids need to have more enjoyable. Online, people can find a lot of ideas for organizing parties for youngsters.
There are many drug treatment centers in theUnited States. Most of them are dedicated to the management of high-profile drug abusers and are highly snooty, not forgetting expensive. Their facilities and prices make almost no sense for addicts that can come in the general public. Drug treatment centers for troubled teens employ various methods inside their dealing with patients. Among these are and opiate substitution therapy, cognitive behavioral therapy and psycho-social support. Addicts need to recover mentally, physically and spiritually. Drug treatment centers provide an environment to achieve those as well as help addicts rediscover their strengths and capabilities. Such centers are set inside a relaxing and resort like atmosphere which aids patients in realizing how useless addiction might be.
The level of excitement increases considerably not simply for kids within the big event also for adults. Arranging a kids party magician to do various skills about the stage is likely to make a child feel proud and the entire event becomes memorable for that children who attend the party. There are types of magic shows conducted by the expert magicians during such events. Initially you need to discuss with the magicians to debate his plans of magic shows as well as other events on routine. Further, it is vital for that parent to offer him enough space around the room for privately making arrangement for presenting the show correctly. He is the guy who keeps the entire audience spellbound for some time making the big event memorable. The show will incorporate not simply animation figures but additionally real animals and even birds which will fly from his hat, when he lifts it. Make sure that he includes products which are intimate for a child's heart to ensure he or she would feel especially proud for that occasion.
Youth wilderness camps offer exceptional outdoor programs with aid of certified trainers, instructors and counselors. Cognitive therapy and behavioral modification programs prescribed by wilderness centers play a huge role in improving conduct, emotions and personality of aggressive kids. Summer camps also provide parenting tips and advices to families to boost their relations with defiant children. There are several types of alternative programs and schools for unmotivated children growth. The programs have to be selected depending on the specific needs and demands of expert educational consultant or problematic youngsters.
A party that is organized for the kids will continue to be incomplete till the time there are no games. Kids are certain to get bored when there is no game so they can play in a very party. If you wish to plan an event for the children you then needs to know about children party games. By including children party games in the party, people could make certain that kids have a great time. It is always good to consider just like a kid while organizing a celebration for youngsters. So many people like to have parties. People ought not feel that parties are only for adults. Kids need to have more enjoyable. Online, people can find a lot of ideas for organizing parties for youngsters.
There are many drug treatment centers in theUnited States. Most of them are dedicated to the management of high-profile drug abusers and are highly snooty, not forgetting expensive. Their facilities and prices make almost no sense for addicts that can come in the general public. Drug treatment centers for troubled teens employ various methods inside their dealing with patients. Among these are and opiate substitution therapy, cognitive behavioral therapy and psycho-social support. Addicts need to recover mentally, physically and spiritually. Drug treatment centers provide an environment to achieve those as well as help addicts rediscover their strengths and capabilities. Such centers are set inside a relaxing and resort like atmosphere which aids patients in realizing how useless addiction might be.
↧
Plumbing related offers description and the best deal For Plumbing contractor In Toronto
You can spend less and get good work done from plumber Toronto companies. All you need to do is know where you can look for offers depending on your situation. Plumbing related needs shall vary for all people homeowners, so try the following tips to get value for your money.
Work out how to Identify Domestic domestic Thepipewrenchers.Ca plumbing Problems Early
A sure way to slice on water system costs is to learn the right time to handle maintenance of the water system system. Usually do not await the boiler to burst or for drinking water to execute out before phoning a Toronto plumber. Once the thing is problems in the device, get a plumber to look at it at the initial opportunity. Fixes cost less than complete substitute of the local plumbing system.
Benefit from Plumbing Discounts
Some plumbing companies do make discounts available with regards to customers when giving maintenance or repair packages. You can find extra services cost-free or get great special discounts during promotional offers for home plumbing related and repair work. You will find plumbers who give discount rates for seniors customers who need drainages unclogged or boilers fixed, if you easily match this category make nearly all it to save lots of money.
Know the Water system Requirements That YOUR HOUSE Needs
Several factors affect the local domestic plumbing needs for a home, like the size of the house, quantity of residents etc. A one storey house generally has less local plumbing problems when compared to a dual storey home, and the same applies for apartment buildings; the more the public people surviving in the home, the greater the probability of having plumbing related problems. For these full situations, finding handles a cheap plumber in Toronto
is your best option.
Know When in order to avoid Doing the Maintenance Yourself
When you have the data and tools to repair the broken tube in your kitchen, it is advisable to correct it on your own. However, if the domestic plumbing problem requires a specialist, call one up instead. Do-it-yourself domestic plumbing is ideal for small level issues just like a seeping tap, however in many instances it only makes things worse and requires additional money to fix even. It will always be easier to have an expert deal with the home plumbing maintenance for quality results.

A sure way to slice on water system costs is to learn the right time to handle maintenance of the water system system. Usually do not await the boiler to burst or for drinking water to execute out before phoning a Toronto plumber. Once the thing is problems in the device, get a plumber to look at it at the initial opportunity. Fixes cost less than complete substitute of the local plumbing system.
Benefit from Plumbing Discounts
Some plumbing companies do make discounts available with regards to customers when giving maintenance or repair packages. You can find extra services cost-free or get great special discounts during promotional offers for home plumbing related and repair work. You will find plumbers who give discount rates for seniors customers who need drainages unclogged or boilers fixed, if you easily match this category make nearly all it to save lots of money.
Know the Water system Requirements That YOUR HOUSE Needs

is your best option.
Know When in order to avoid Doing the Maintenance Yourself
When you have the data and tools to repair the broken tube in your kitchen, it is advisable to correct it on your own. However, if the domestic plumbing problem requires a specialist, call one up instead. Do-it-yourself domestic plumbing is ideal for small level issues just like a seeping tap, however in many instances it only makes things worse and requires additional money to fix even. It will always be easier to have an expert deal with the home plumbing maintenance for quality results.
↧
↧
tracking movement in a
Hello Forum. Need some help (well a lot really please). I am trying to track movement in an area. Imagine a cat walking across a lawn, it starts at one side and walks across to the other, how do I count the number of times this is done ? Thanks in advance. PeteUK
↧
Can someone explain me these terms (acceptanceRatio, HR, FA) in training haar cascade, and "acceptanceRatio 800:4.97153e-05" is it consider good?

↧
Opencv select timeout at high resolutions
Hi all.
I have an A4Tech pk-336e webcam attached with my BeagleBone and i am using OpenCV to capture images from BeagleBone Black. Issue is when i capture image at 320x240 resolution i get a perfect image but at 640x480 i get select timeout. Although it is written on camera that it supports 640x480 when i type the following command
v4l2-ctl --all
My code to capture image is as follows:
#include
#include
#include
#include
#include
using namespace std;
using namespace cv;
int main( )
{
cout <<"Start main"<> meter_image;
imwrite("/card/imgs.jpg", meter_image);
return 0;
}
I know its really common issue but i am not sure where i can find the solution as i am able to make it working with Logitech one. Kindly let me know of any thing which helps in solving this... Regards
↧
Caffe section in the opencv's makefile
What does Caffe section do in the opencv build. I've tried to google it but without any outcome.

↧
↧
how do i load and use TrainData
I downloaded training set for digit recognition.
The training set is in csv format , the first column contains the responses and pixel value of the following response is stored the corresponding row.
I am trying to write a c++ code in visual studio that uses the ml module of open cv 3.00 to train from the data.
I can load the data using the TrainData::loadFromCSV function but i am unable to understand how will it generate the samples and responses matrix that is required to feed into the TrainData::create command
my code:
void main()
{
TrainData::loadFromCSV("C:/Users/Shreya Srivastava/Desktop/train.csv",0,1,10);
Mat samples ( 28,28, CV_32FC1 );
Mat responses(35591,0,CV_32F);
TrainData::create(samples,ROW_SAMPLE,responses);
imshow("samples",samples);
waitKey();
}
↧
is there any way to detect shiny ball ?
Hi , I have an idea but I don't know is it possible or not.
I think I can detect shiny ball but any way ...
I have a silver shiny ball. How can i detect it using opencv with C++ or Python...
↧
How to Select Energy Applications For Design Engines
Today people have no time to spare in social works because life today is becoming so busy for everybody. People find it hard to get some time to profit the poor and needy. There are some mission trips organized for youngsters to complete some social work and comprehend the significance of value in human life. These mission trips give many bad and the good experiences which will make children learn new things, build skills and achieve their desire.
But many a time parents turn out investigating their job of raising kids goods Do's and Don'ts. If you are you looking for more information regarding oopy daiy baby petit kirt - sigsc.incod.ufsc.br - review our own web-site. The child finds himself stuck with a summary of Do's and Don'ts, which can not at all times sound right to him but he knows if he doesn't keep to the work list, he is going to have a hard time from his parents.
While choosing the apps for the kid makes sure that the apps are entertaining and educational. Kids always love the interactive matching games with their interest which in turn develop their imagination and creativity. Educational apps have high affect on the kids The iTunes store which had been limited to songs and videos has become full of educational games and books.
In perusing the costume catalogs within the mail, there's a chance you're drawn to those long gowns that achieve the floor. While these dresses are most surely beautiful inside the catalog pictures, try picturing your litttle lady running from the streets wearing this dress on Halloween. Not only will clothes get filthy, but more to the point, it is very likely that your particular little princess could stumble within this dress when running from house to house gathering her loot. Don't be disheartened. Many very lovely princess dresses can be found with hem lines that land mid-calf.
Let your kids realize that you'd probably never leave him. Before trying to leave him alone while using sitter, let your son or daughter realize that the possibility sitter visit for a couple times only so you will be back soon. Allowing your youngster to acclimate prior to leaving him alone is probably the most critical tricks for parents that you'll want to know.
But many a time parents turn out investigating their job of raising kids goods Do's and Don'ts. If you are you looking for more information regarding oopy daiy baby petit kirt - sigsc.incod.ufsc.br - review our own web-site. The child finds himself stuck with a summary of Do's and Don'ts, which can not at all times sound right to him but he knows if he doesn't keep to the work list, he is going to have a hard time from his parents.
While choosing the apps for the kid makes sure that the apps are entertaining and educational. Kids always love the interactive matching games with their interest which in turn develop their imagination and creativity. Educational apps have high affect on the kids The iTunes store which had been limited to songs and videos has become full of educational games and books.
In perusing the costume catalogs within the mail, there's a chance you're drawn to those long gowns that achieve the floor. While these dresses are most surely beautiful inside the catalog pictures, try picturing your litttle lady running from the streets wearing this dress on Halloween. Not only will clothes get filthy, but more to the point, it is very likely that your particular little princess could stumble within this dress when running from house to house gathering her loot. Don't be disheartened. Many very lovely princess dresses can be found with hem lines that land mid-calf.
Let your kids realize that you'd probably never leave him. Before trying to leave him alone while using sitter, let your son or daughter realize that the possibility sitter visit for a couple times only so you will be back soon. Allowing your youngster to acclimate prior to leaving him alone is probably the most critical tricks for parents that you'll want to know.
↧
recoverpose
Just a simple question, in these two statements
E = cv::findEssentialMat(
points1, points2, focal, pp, cv::RANSAC, 0.999, 1.0, mask);
cv::recoverPose(E, points1, points2, R, t, focal, pp, mask);
Is the rotation and translation calculated from points1 to points2 or points2 to points1?
Thank you.
↧
↧
Feature Extraction using PCA in opencv 3.0 c++
I'm new to opencv 3.0 and I need help .
[ Using PCA module to extract the features from contour of image.(feature extraction)]
All images of the training set are stored in a single matrix T, where each column of the matrix is an image.
I Need to subtract the mean.-The average image a has to be calculated and then subtracted from each original image in T.
I need to calculate the eigenvectors and eigenvalues of the covariance matrix S.
Firstly I need to do the covariance matrix of data,then calculate the eigenvectors and eigenvalues from the covariance matrix!
What is missing in the code ?
Mat normalize(const Mat& src) {
Mat srcnorm;
normalize(src, srcnorm, 0, 255, NORM_MINMAX, CV_8UC1);
return srcnorm;
}
vector images; // set of images to perform PCA on.
Mat values(images.size(), 1, CV_32SC1); //Values are the corresponding values to each of my images.
int nEigens = images.size() - 1; //Number of Eigen Vectors.
// Change to the number of principal components you want:
int numPrincipalComponents = 12;
// Do the PCA:
PCA pca(mat, Mat(), CV_PCA_DATA_AS_COL, numPrincipalComponents);
//Load the images into a Matrix
Mat desc_mat(images.size(), images[0].rows * images[0].cols, CV_32FC1);
for (int i=0; i
↧
Unexpected result with RGB Histogram Backprojection
I noticed that when I apply cv2.calcBackProject on the pixel [b,v,r], it returns the backprojection on the pixel [b,v,0], the third channel's value is ignored while my histogram looks fine.
Here is my code :
channels=[0,1,2]
histSize = [8,8,8]
ranges=[0,256, 0,256, 0,256]
#image is in BGR color
bgr_split = cv2.split(roi_img)
#Compute image bgr histogram
hist = cv2.calcHist(bgr_split, channels, mask, histSize, ranges)
cv2.normalize(hist, hist, 0, 255, cv2.NORM_MINMAX)
#Compute histogram backprojection
dst = cv2.calcBackProject([img],channels,hist,ranges,1)
Can someone confirm if it is a bug?
↧
Why MORPH_ELLIPSE kernel is slower than MORPH_RECT and others?
I was doing some dilation and erosion operations and noticed that MORPH_ELLIPSE kernel takes much more time than MORPH_RECT and MORPH_CROSS kernel. A similar question and finding is also posted in StackOverflow [here](http://stackoverflow.com/questions/31025368/erode-is-too-slow-opencv).
Can somebody tell why this is so?
↧