Jin Chen | 25 Jun 04:02 2012
Picon

How to use EM algorithm in OpenCV 2.4.1?



Hi All,

I've been using OpenCV 1.0 for years -- yes, I'm a bit too outdated on that.
Recently I upgraded to OpenCV 2.4.1 and found that my code does not compile any more.

It involves a piece of C-style code of the EM algorithm, after a quick check on the OpenCV 2.4.1 doc,
I found I'm out of examples to rewrite my code.

Can someone help provide a piece of code showing how to call the new APIs in the EM algorithm?
Note that my previous code is based on C, so some explanations on the C++ side are appreciated.

Thank you!

--J.C


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Stéphane | 25 Jun 03:59 2012
Picon

Open avi rawvideo file on Ubuntu 11.04

Hi,

I try to open and read video files in .avi format using OpenCV. Here is my code :

void MainWindow::on_actionOuvrir_fichier_triggered()
 140    +   {
 141    +    //mettre a -1 streamId
 142    +    streamId = -1;
 143    +    //ouvrir fenetre navigation fichiers pour recuperer path vers .avi
 144    +    QString fileName = QFileDialog::getOpenFileName(this,tr("Ouvrir fichier video"),"/home",
 145    +    tr("Videos (*.avi)"));
 146    +    std::string utf8_text = fileName.toUtf8().constData();
 147    +    //ouvrir .avi
 148    +    capture = new VideoCapture(utf8_text);
 149    +    //check ouverture
 150    +    if(!capture->isOpened())
 151    +    cout << "probleme ouverture fichier video" << endl;
 152    +    //calculer delay between each frame in ms
 153    +    rate = capture->get(CV_CAP_PROP_FPS);
 154    +    delay = 1000 / rate;
 155    +    //demarrer timer recordId
 156    +    recordId = startTimer(delay);
 157    +    //capture premiere frame
 158    +    if(!capture->read(in))
 159    +    cout << "probleme lecture frame fichier video" << endl;
 160    +   }

I get no error at compilation time, but I can't open a video file. While in debug mode I saw that string
utf8_text had the good absolute path to my video, so obviously the problem comes from the constructor of
the VideoCapture object. Then, I tried to install every codec pack I could or thought was relevant. But the
problem is still there, capture->isOpened() still returns false, and in debug mode I can see that capture
contains nothing.

I am lost here, don't know what to try next. Any idea ?? I really, really need this program to work very soon !! 

Thanks !!!

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Esha | 24 Jun 16:31 2012
Picon

(unknown)



http://dreamor.altervista.org/camerabid/Stuart_Morris89/



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Eric | 24 Jun 05:19 2012

Re: Digest Number 6657



On 6/23/2012 11:44 AM, OpenCV <at> yahoogroups.com wrote:

Re: OpenCV cvLoadImage Problem

Posted by: "fcmk_pete <at> btinternet.com" fcmk_pete <at> btinternet.com   fcmk_pete <at> btinternet.com

Fri Jun 22, 2012 2:24 pm (PDT)

In Windows, the term "long file name" refers to a file name that exceeds the MS DOS short ("8.3") naming convention - it is not a reference to the number of characters in the path. There are Windows utilities to convert between long and short file names.
SFN aka 8.3? ... Good god man! That was pre-Windows 95! OpenCV wasn't even born until '99!

OpenCV is most assuredly not tied down by that... "definitely". It can handle any reasonable windows or unix path you send to it (meaning "C:\Users\User1\Pictures\Sample Pictures\Tulips.jpg" is not a problem. 
Maybe the reason nobody answered your question was they have may have thought you were referring to MAX_PATH which I believe is something bigger than 256 characters so I don't know myself what happens if you try a path name longer than MAX_PATH.

If you post a simple snippet of code maybe we can help...

Cheer,
Eric






__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
NUZULUDIN NUZUL | 23 Jun 12:26 2012
Picon

(unknown)





__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
pattern | 22 Jun 19:27 2012
Picon

cannot access protected member declared in class 'cv::BackgroundSubtractorMOG2'

Hi,
I wanna give values to some members declared in class 'cv::BackgroundSubtractorMOG2::history' as follows,

BackgroundSubtractorMOG2 bgModel;
	bgModel.history = 100;
	bgModel.backgroundRatio = 0.5;
	bgModel.nmixtures = 3;

but I am receiving this compile error:

error C2248: 'cv::BackgroundSubtractorMOG2::history' : cannot access protected member declared in
class 'cv::BackgroundSubtractorMOG2'

Any idea to deal with this issue is greatly appreciated...

Best,

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Esha | 22 Jun 17:33 2012
Picon

(unknown)



http://psytrip.com.br/drawcheck/James_Wood75/



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
frares | 22 Jun 15:12 2012
Picon

Re: Re: I am desperate, Need some help in measuring an object through camera



Hi

Take a look at: http://opencv.itseez.com/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#findcontours and others on the same page.

Surely you will need the basics before, like how to acquire and create a cv::Mat, the natural C++ API type for an image for OpenCV.

Francisco


Em , Houman Kargaran <houman.kargaran <at> gmail.com> escreveu:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>
> Fair enough mate.Firstly Thank you for your response. 
>
> I have signed a confidentiality agreement with the client so I cant say what is the actual product however I can give you the characteristics of it.
>
>
>
> This object is a flat object something like Samsung or iPhone with more curves on the outside. 
>
>
> Fir this Application user has to put this object on an A4 sheet white paper. So OpenCV needs to measure this flat object in this A4 sheet.
>
>
>
> Cheers
>
>
> Thank you in advance. 
>
>
> On Fri, Jun 22, 2012 at 6:45 PM, Shervin Emami shervin.emami <at> gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
>
>
> To expect any help, you need better info than "i need to measure an object", because this can mean many different things. eg: do you just want to know how many pixels wide & high it is in the image, or you need to know how big it is in the 3D world, and what object is it, since you need to detect it somehow. if it is a soccerball then you would use different solutions than if it was a car or a person, etc.
>
>
> Cheers,
> Shervin Emami.
> http://www.shervinemami.info/openCV.html
>
>
>
> On Wed, Jun 20, 2012 at 2:09 AM, houman_ka houman.kargaran <at> gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
>
>
> Hi guys,
>
> I am very new to OpenCV.
>
> I want to see if the below senario is possible. As I am very desperate to find a solution.
>
>
>
> I have got an iPhone app that needs to measure small objects length.
>
> These objects are different sizes.
>
>
>
> User will take the photo form this specific object, then I need to measure the length of this object. After that I will send all of these data to an external server to find a match and return the result.
>
>
>
> I have done all the parts of this project except for the measuring.
>
>
>
> I have searched internet inside out. I left so many comments and topics on COCOAHead (iOS) regarding this issue no result yet.
>
>
>
> If OpenCV solve then where should I start or is there anyone to help me (I will page for it :)
>
>
>
> Thank you in advance
>
>
>
> Houman Ka
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Ballarat -  VIC  3350
> Australia
> Mobile: 0418 659 160
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
rambod | 22 Jun 12:14 2012
Picon

OpenCV cvLoadImage Problem

Hi guys,
I'm starting to use OpenCV (as you can see i'm using the most basic staffs). I have a problem using the
istruction cvLoadImage. When I enter e path with spaces (ex: C:\Users\User1\Pictures\Sample
Pictures\Tulips.jpg) it doesn't load the image. It only works with paths without spaces (such as C:\Users\User1\Pictures\Tulips.jpg).
Could anyone help me?

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Mr Prabhat | 22 Jun 02:13 2012

Computer Vision job opening



Computer Vision Postdoc / Researcher

Position Summary

Lawrence Berkeley National Laboratory seeks a talented and motivated computer vision expert to solve challenging problems in climate science.  The goal of this project is to develop novel methods for collecting quantitative data on atmospheric clouds from sequences of digital photographs, with a scientific application to climate and meteorology.  Duties will include the design and implementation of algorithms to perform image segmentation, machine learning, camera calibration, and 3D reconstruction.  The successful candidate will collaborate closely with researchers and scientists in the Earth Sciences Division, the Computational Research Division, and the D epartment of Earth and Planetary Science at UC Berkeley.  This is a one-year position with the possibility of renewal subject to performance and availability of funds.  The successful candidate will receive a competitive salary, commensurate with experience.  For more information, please contact Prof. David Romps (dromps <at> lbl.gov) with a CV or resume.  Formal applications will be received through the following web site: https://lbl.taleo.net/careersection/2/jobdetail.ftl?lang=en&job=74731

Duties

- Design and implement algorithms to perform imag e segmentation, machine learning, camera calibration, and 3D reconstruction.
- Work with project scientists to collect scientifically relevant statistics.
- Maintain the database of stereo images and associated statistics.
- Publish the results in peer-reviewed journals.

Qualifications

- Strong background in C/C++ programming.
- Familiarity with image processing libraries (Matlab) or vision libraries (OpenCV).
- Practical experience with image segmentation, machine learning, camera calibration and 3D reconstruction preferred.



__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
guachochilo | 21 Jun 18:13 2012
Picon

Problems Compiling OpenCV-SVN-rev8722 with OpenNI flag

i installed the unstable openni and the avin2 / SensorKinect driver, when i compile opencv with the openni
flag with the mingw32compiler, i get this error.. 

http://imgur.com/rVfDx
http://imgur.com/WSGBP

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com

Gmane