Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

OpenCV · Open Source Computer Vision Library

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 48148
  • Category: Open Source
  • Founded: Jun 20, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 88672 - 88702 of 90774   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#88672 From: "navid" <navid_mahmoudian_bidgoli@...>
Date: Sat Jul 7, 2012 11:09 am
Subject: example for using solvePnPRansac
navid_mahmou...
Send Email Send Email
 
Dear All
Hi, I am trying to get an object pose from 3D-2D point correspondences using
solvePnPRansac , but i don't know exactly how i should use this function in c++.
is there any example code that could help me do my work. I couldn't find any
useful code on the net.
thank you very much.
Best Regards
Navid

#88673 From: "xorek2" <wborat@...>
Date: Sat Jul 7, 2012 11:31 am
Subject: Access Violation in cvSaveImage.
xorek2
Send Email Send Email
 
Hello,

   I have Delphi 7 with the interface to OpenCV libaries.
(I have the newest libraries 241 version)

Here is the code I wrote:

procedure Test(var img: PIplImage);
var
   imgDistorted: PIplImage;
begin
   //With: imgDisorted.. AV is raised on cvSaveImage, without is not ...
   imgDistorted := cvCreateImage(cvSize(img^.width and -2, img^.height and -2),
8, 1);

   cvSetImageROI(img, cvRect(0, 0, img^.width and -2, img^.height and -2));
   cvSaveImage(PChar('testOut.jpg'), img);//AV is raised here ...
end;

procedure TForm1.btn1Click(Sender: TObject);
Var
   img: PIplImage;
begin
   img := nil;
   try
     img := cvLoadImage(PChar('test.jpg'), 0);
     if not Assigned(img) then
       raise Exception.Create('B³±d podczas otwierania pliku skanu.');
     Test(img);
   finally
     if Assigned(img) then
       cvReleaseImage(img);
   end;
end;

On cvSaveImage line I am getting AV. Does anyone of you have an idea why there
is such problem?

Thanks

#88674 From: "alelr7" <alessandrolarosa7@...>
Date: Sat Jul 7, 2012 2:36 pm
Subject: Re: Monocular 3D pose estimation using SURF
alelr7
Send Email Send Email
 
Hi!
I am using as pattern images taken from the webcam of some textured planar
object (more than 100x100 pixels).
I tried a sort of calibration of the tracking system doing this:
  - I put the camera on a know position (for example 500 mm from the template)
  - Let the program compute the distance
  - Read the data and get the measured error (E = Zcomputed - 500 )
After doing this for many times (actually i do this for 10 times)
I get a mean-error and I correct all the future data with an
empirical-coefficient.
It works but I think it's not the right method.
Some suggestion?
Where can I find some papers on this topic?
I know that pose estimation from feature-based tracking system are
not a trivial subject, especially if with a monocular camera...




--- In OpenCV@yahoogroups.com, Bence Magyar <mw.mzperx@...> wrote:
>
> Hello,
> what you have is called the detection error. It affects the Z axis the most
> since that's the axis which you are trying to guess without any direct
> sensor information of depth. Most monocular 3D pose estimation techniques
> suffer from this problem. There are plenty of possible workarounds but it's
> hard to get it right.
> What you should try in the first place:
>
>    - Don't use too small patterns. Usually 5x5 or 6x6 is robust for most
>    cameras and situations.
>    - Try to calibrate your camera more precisely.
>
> These steps should improve your results a bit, but not guaranteed that it's
> going to be flawless.
>
> --Bence
>
> 2012/7/6 alelr7 <alessandrolarosa7@...>
>
> > **
> >
> >
> > Hi everybody!
> >
> > I am working on Planar Object detection and Tracking, using SURF for a
> > Real-time application.
> >
> > I compute the camera pose from a planar pattern image, intrinsic
> > parameters and homography.
> >
> > I found some errors in the coordinates.
> > For example, the Z-axis coordinate is always bigger than the real one.
> > It's ratio (z-computed/z-measured) changes as the marker changes.
> >
> > What am I missing?
> >
> >
> >
>

#88675 From: "Keith" <kstallings@...>
Date: Sat Jul 7, 2012 2:55 pm
Subject: opencv3.4.1 androi tutoria-2.opencvcamera grab() hangs on motorla Atrix II
mhuman1
Send Email Send Email
 
Hi,


I am try to run the opencvforandroid tutorial-2-opencvcamera. It seems that I
can open the VideoCapture object, but the grab() method hangs.



I first get the VideoCapture object as below:

private VideoCapture mCamera;

mCamera = new VideoCapture(Highgui.CV_CAP_ANDROID);

Next I set the frame width and height. This is shortened code after I find an
acceptable widht and height.

  mCamera.set(Highgui.CV_CAP_PROP_FRAME_WIDTH, mFrameWidth);
   mCamera.set(Highgui.CV_CAP_PROP_FRAME_HEIGHT, mFrameHeight);


  Next I open the camera and start a thread to grab frames.

  if(mCamera.isOpened())
  {

                 (new Thread(this)).start();
   }



   In the thread, I try to grab a frame, but the code never goes past the grab
statement

  if (!mCamera.grab())

   {
            Log.i(TAG, "mCamera.grab() failed");
                      break;
    }



I am running on a atrix II. Maybe the Atrix II does not supprt the VideoCapture
class???

Thanks,

#88676 From: "allanlbarbosa" <allanlb@...>
Date: Sun Jul 8, 2012 4:06 am
Subject: Eye blink detector
allanlbarbosa
Send Email Send Email
 
Hello everyone! I have a project and want OpenCV to detect the heartbeat of the
user. I made an eye detected by "haarcascade_mcs_eyepair_big.xml." This function
detects the two eyes together. That done, divide the image into two parts, one
with the right eye and another with the left. I performed a filter to move to
grayscale and I'm trying to perform a binarization image to detect when the eyes
are open or closed. I'm trying to detect the white of the eye through the
binarization but even with the eye closed binarization is shown in a white part.
I believe this has to do with the threshold used. I'm trying this way because I
have researched is the most reliable way to do this, but I'm not succeeding.

Does anyone have any suggestions on how I can do to detect if the eye is open or
closed accurately?

Thanks for any help.

#88677 From: "qwertyuiokjhgfdssdfgh" <fufufufufu5@...>
Date: Sun Jul 8, 2012 10:15 am
Subject: Get extrinsic parameters using the 3d points corresponds
qwertyuiokjh...
Send Email Send Email
 
Hi all.
Does somebody know, how i can get extrinsic parameters using the 3d points
corresponds.

I found the following function: FindExtrinsicCameraParams2, but it is finds
extrinsic parameters between 3d object and its projection points(2d points).

#88678 From: "paulal7489" <paulalopatniuk@...>
Date: Sun Jul 8, 2012 11:50 am
Subject: Re: IMPORTANT: Need some advice in matchTemplate
paulal7489
Send Email Send Email
 
Thanks!
I will try it.




--- In OpenCV@yahoogroups.com, "Sanjiv K. Bhatia" <sanjiv@...> wrote:
>
> To add to Bence's comment, OpenCV documentation talks about normalizing the
> results from match (using normalize).  The minMaxLoc function can be used
> to determine the maximum (or minimum) value which will give you the extent
> of match based on the last parameter.  Then, you can see the one that gave
> you the maximum match.
>
> Sanjiv
>
> On Fri, Jul 6, 2012 at 1:01 PM, Bence Magyar <mw.mzperx@...> wrote:
>
> >
> >
> > Hello,
> >
> > the problem is that "knowing which templates were matched" depends on
> > _your_ definition of successful template matching. As you can see by the
> > last parameter of cv::matchTemplate() it doesn't do anything else but runs
> > a cross-correlation operator (a normalized one in this case). To get the
> > result of the matching you have to search for the maximum or minimum value
> > in the resulting image (depending on the method you used in the last
> > parameter). To define a template matched you could set a threshold for the
> > maximum/minimum value in the result image.
> > After you have this, you can distinguish which templates are matching or
> > not matching.
> >
> > Have fun!
> >
> > --Bence
> >
> > 2012/7/5 paulal7489 <paulalopatniuk@...>
> >
> >> **
> >>
> >>
> >> Hello everybody,
> >>
> >> I am using matchTemplate with a high number of templates, but just two
> >> templates are always shown.
> >> So my idea was: Aplly the function matchTemplate for all templates and
> >> afterwords use some conditions (loops!?) to get an output which templates
> >> were found.
> >>
> >> Something like that:
> >>
> >> matchTemplate(src, templ6, result6, CV_TM_CCORR_NORMED);
> >>
> >> if( ... templ6)
> >> {
> >> fprintf( stderr, "Value = 6" );
> >> }
> >>
> >> I need to know, which templates was matched, because the templates are
> >> different values. When I know which one matched, I know the value, that is
> >> shown.
> >>
> >> Thanks a lot for help!!!
> >>
> >>
> >
> >
> >
>
>
>
>
> --
> Sanjiv K. Bhatia
> http://member.acm.org/~sanjiv
>

#88679 From: Houssem --- <hissou1986@...>
Date: Sun Jul 8, 2012 12:33 pm
Subject: Test my OpenCV cameras programs
hissou1986
Send Email Send Email
 
hi

i want to test my cip-cam programs, but i don't have cam, is there on the net?

thanks


#88680 From: eric gregori <emgrobotics@...>
Date: Sun Jul 8, 2012 4:13 pm
Subject: Re: OpenCV .so dependencies? I need a integrated jar
emgrobotics
Send Email Send Email
 
Canny Edge Detection using openCV.

If anyone is interested in edge detection, I published an article in EETimes a few months ago explaining the Canny edge detector.



--
Eric Gregori - Embedded Software Engineer and Roboticist

Build Smarter Robots - signup at www.buildsmartrobots.com
See videos of Robots at -  www.youtube.com/seeprogrammer
See what you can do with the TI Launchpad (http://e2e.ti.com/group/msp430launchpad/m/project/default.aspx)
"It's just sand without software"


#88681 From: "reinaldohkw" <reinaldohkw@...>
Date: Mon Jul 9, 2012 12:00 am
Subject: Problem in instalation with vs2010 Windows 7 X64
reinaldohkw
Send Email Send Email
 
Hello Guys! Sorry about my dumb question, but I tried to find in internet
solution for my problem, but I have no sucess. I install the OpenCV 2.4.2 and
when I will type my program thats ok. The problem is when I will compile, the
windows show me the follow error:

"The application was unable to start correctly (0x0000013). Click OK to close
the application."

I tried everthing, I dont know what to do.

Somebody can I help me?

Tks in advance.

#88682 From: "Gabriela B" <gabybosetti@...>
Date: Mon Jul 9, 2012 4:50 am
Subject: Re: OpenCV .so dependencies? I need a integrated jar
gabybosetti
Send Email Send Email
 
Hi Shervin! Thanks for your help. If I remove the highgui how can I do things
like this?

IplImage img = opencv_highgui.cvLoadImage(...);




--- In OpenCV@yahoogroups.com, Shervin Emami <shervin.emami@...> wrote:
>
> It sounds like you are using JavaCV so you should skip highgui anyway, and
> just try with the other modules. Use Java for all your GUI needs.
>
> Cheers,
> Shervin Emami.
> http://www.shervinemami.info/openCV.html
>
>
> On Thu, Jul 5, 2012 at 7:52 AM, Gabriela B <gabybosetti@...> wrote:
>
> > **
> >
> >
> > Hi! I'm trying to develop an application (JavaCV - JAR) that runs without
> > the user has previously installed OpenCV. I did it attaching all the .so of
> > OpenCV in the JAR, unpacking in runtime and then loading it with
> > System.load(). It works fine.
> >
> > Now, I can run the application if the user has installed all OpenCV
> > dependencies, but if not the app crashes. So my new challenge is attaching
> > these dependencies.
> >
> > For example, highgui needs libavcodec-dev but if I attach libavcodec.so It
> > can't be loaded, it throws an UnsatisfiedLinkError with no information
> > about the error. So, what I have to load before??
> >
> > Thanks for your help.
> > Gaby
> >
> >
> >
>

#88683 From: "Gabriela B" <gabybosetti@...>
Date: Mon Jul 9, 2012 4:52 am
Subject: Re: OpenCV .so dependencies? I need a integrated jar
gabybosetti
Send Email Send Email
 
Hi! Thanks for your help! I don understand so much wath are you talking about.
Could you give me an example that swows how to do this?


--- In OpenCV@yahoogroups.com, "Rochester Beckham" <beckham.rochester@...>
wrote:
>
> --- In OpenCV@yahoogroups.com, "Gabriela B" <gabybosetti@> wrote:
> > For example, highgui needs libavcodec-dev but if I attach libavcodec.so It
can't be loaded, it throws an UnsatisfiedLinkError with no information about the
error. So, what I have to load before??
> > Gaby
> Unfortunately you need to have the libraries relinked if they are shared
objects.
>  if you have the static .a files you can always get binutils for the object
format; coff,elf and there opcode set for there architecture. if you were to use
an emulator or host translator you could compile in any format you like, but you
need to relink with -Bsymbolic or -Bdynamic on linux,unix,mac; problem is is
that the stack size grows by the api function object set. good luck.
>

#88684 From: "Shashank " <shashank.jayaram@...>
Date: Mon Jul 9, 2012 5:11 am
Subject: Working of matchTemplate
shashank.jay...
Send Email Send Email
 

Hello everyone,

                                I am working on image stabilization and using template matching technique to achieve the goal. I know doing convolution in spatial domain is very costly and thus is done in frequency domain. So is OpenCV doing template matching in frequency domain, if so what type of DFT’s are used?. Is the template matching function also making use of integral images too? I am asking these because I intend to write my own code for template matching which is fast.

 

Thanks and regards,

Shashank

 

From: OpenCV@yahoogroups.com [mailto:OpenCV@yahoogroups.com] On Behalf Of Shervin Emami
Sent: Sunday, July 08, 2012 9:01 PM
To: OpenCV@yahoogroups.com
Subject: Re: [OpenCV] adjust rect dimension!

 

 

Rect.br() is a function returning a value, it doesn't let you set the value. Instead, you can use the internal data members of Rect: x, y, width, height
(where x & y are for the top-left corner). So you could do something like:

 rect.width = imageWidth - rect.x;

Cheers,
Shervin Emami.
http://www.shervinemami.info/openCV.html

On Sun, Jul 8, 2012 at 11:27 AM, tasne89 <samy.ovgu@...> wrote:

 


I wanna adjust the dimension of a Rect to be within the image, so I use something like this,

if ((rec.br().x) >= width) rec.br().x= width-1;

but I am getting error on this statement: rec.br().x= width-1;
Actually, I don't know why!

error C2106: '=' : left operand must be l-value

Moreover, when I used other temporary variable Point P;
I noticed a statement like rec.br()=P; has no effect on dimension of the rectangle.

thx

 


#88685 From: "r1w3n" <r1w3n@...>
Date: Mon Jul 9, 2012 8:09 am
Subject: Re: Problems with Flann index and AutotunedIndexParams
r1w3n
Send Email Send Email
 
If you think it is a bug, then it is better to create a ticket:
http://code.opencv.org/projects/opencv/issues

If it is not a bug, then the developers will close it anyway.

#88686 From: "paulal7489" <paulalopatniuk@...>
Date: Mon Jul 9, 2012 10:57 am
Subject: Re: IMPORTANT: Need some advice in matchTemplate
paulal7489
Send Email Send Email
 
I have another question:
Is it possible to say, that the rectangle should be drawn, just if the template
was matched?

Cheers






--- In OpenCV@yahoogroups.com, "paulal7489" <paulalopatniuk@...> wrote:
>
> Hello everybody,
>
> I am using matchTemplate with a high number of templates, but just two
templates are always shown.
> So my idea was: Aplly the function matchTemplate for all templates and
afterwords use some conditions (loops!?) to get an output which templates were
found.
>
> Something like that:
>
> matchTemplate(src, templ6, result6, CV_TM_CCORR_NORMED);
>
> if( ... templ6)
>  {
> 	 fprintf( stderr, "Value = 6" );
>  }
>
> I need to know, which templates was matched, because the templates are
different values. When I know which one matched, I know the value, that is
shown.
>
> Thanks a lot for help!!!
>

#88687 From: "kevatoffice" <kevatoffice@...>
Date: Mon Jul 9, 2012 1:51 pm
Subject: Assistance required for Image comparison
kevatoffice
Send Email Send Email
 
Hi all,

I have developed a testing application for my company (a provider of Internet TV
systems). It works by blasting pre-defined IR commands at a set top box and then
taking a screen grab. Currently,the only way I have of verifying success or
failure of the test is by examining the screen grab myself and clicking on a
PASS or FAIL button.
I want to automate the verification step by comparing the screen grab against a
previous screen grab that I know is correct.
The screen grabs will typically be of a random TV program with graphics
overlaid. It will be the graphics that I am testing but the fact that the
background will be totally different in each pair of images puts the task way
beyond my knowledge and experience.
OpenCV seems to me to be a viable solution.
Can anybody offer any constructive advice/help?
I have no intention of plaguing any contributors with constant questions, my
company is willing to pay for serious professional help.
The test application runs on a MAC and uses the Cocoa framework so solutions can
be written in C. I am an experienced C Developer who knows very little about
OpenCV

#88688 From: "Agwatic" <agwatic@...>
Date: Tue Jul 10, 2012 5:49 am
Subject: blank frame after opening the camera
alaa_agwa_2008
Send Email Send Email
 
I'm using OpenCV with python bindings , few days ago i was opening my webcam and
it works like charm , after that I hooked into a tutorial that using cv2 module
instead of cv , so I had to build the code and follow the tutorial , after that
my webcam is unable to open and results blank frames . what should I do ?

#88689 From: "alelr7" <alessandrolarosa7@...>
Date: Tue Jul 10, 2012 7:18 am
Subject: Re: calculation of distance of an object from camera using opencv
alelr7
Send Email Send Email
 
Hi! I am working on a same project:
Markerless tracking with a monocular camera for tracking objects.

I use Planar textured object and SURF for detection.
Then I calibrate th system computing the camera pose from a known distance from
the target and using this ratio to correct the pose:

computed distance/measured distance.

Is it correct? Are there better solution?



--- In OpenCV@yahoogroups.com, Eder Souza <ederwander@...> wrote:
>
> I belive that the easy way is:
>
>
> use :
>
>
> distancex = point2.x - point1.x;
> distancey = point2.y - point1.y;
> cvSqrt( (float)(distancex*distancex + distancey*distancey));
>
>
> Before applying this formula you can use scale adjust to compensate the
> distance from the camera ...
>
> Eder de Souza
>
>
>
> On Thu, Apr 14, 2011 at 2:16 AM, Behzad Lotfi <behzad.lotfi@...>wrote:
>
> >
> >
> > Hi
> > i dont thing about
> > we want use the DPI information for object in the frame and map it on real
> > object then we want use the sin formula calculate the distance in 2D
> >
> >
> > ------------------------------
> > *From:* Shervin Emami <shervin.emami@...>
> > *To:* OpenCV@yahoogroups.com
> > *Cc:* amit.benade <amit.benade@...>
> > *Sent:* Thu, April 14, 2011 7:39:39 AM
> > *Subject:* Re: [OpenCV] calculation of distance of an object from camera
> > using opencv
> >
> >
> >
> > Hi,
> >
> > You cant just call a function and get the distance & direction of an object
> > from a camera image because this is impossible to do without more
> > information, for example if you saw a photo of a red square on a white
> > background then you don't know if the square is 1 inch wide or 100
> > kilometers wide, because there is not enough information. You can use things
> > like stereo cameras and depth cameras to help, or if you already know the
> > exact size & shape of the object you are tracking then it can be used with a
> > single camera, but it is not always easy. One method is with POSIT (that
> > OpenCV has), but this might not be easy to use for robotics since it gives
> > you a rotation & translation matrix. But another method is the one I used
> > for my Masters Thesis, which you can find at "
> > http://www.shervinemami.info/" or "http://www.shervinemami.co.cc/"
> >
> > Cheers,
> > Shervin Emami.
> >
> >
> > On Mon, Apr 11, 2011 at 12:10 AM, amit.benade <amit.benade@...>wrote:
> >
> >>
> >>
> >> i'm new to opencv i have to do a project for robotics in which there is a
> >> need for distance measurement and direction detection of motion of a object
> >> so which function should i use to find it ..............pls suggest me how
> >> to do it
> >>
> >>
> >
> >
> >
> >
>

#88691 From: "bong" <bong_valdoz@...>
Date: Tue Jul 10, 2012 7:34 am
Subject: Thesis using OPENCV: Object and Face Recognition
greyash91
Send Email Send Email
 
Please help guys.
Where do you think i start working?

and if you have better thesis titles please advise me.

#88692 From: Shervin Emami <shervin.emami@...>
Date: Tue Jul 10, 2012 12:48 pm
Subject: Re: Re: cvblobslib
emami_s
Send Email Send Email
 
Then you have to compile cvBlob to generate "cvblob.lib"

Cheers,
Shervin Emami.
http://www.shervinemami.info/openCV.html


On Fri, Jul 6, 2012 at 7:44 AM, amel <amel_sup@...> wrote:
 

i have tested cvblob but in compiling i have this error
error LNK1181: cannot open input file 'cvblob.lib'
when i searched for this file in the directory of cvblob i didn't found it



--- In OpenCV@yahoogroups.com, Shervin Emami <shervin.emami@...> wrote:
>
> Apparently, cvBlobsLib can't be built properly with the free Visual Studio
> Express Edition, you need a paid version since cvBlobsLib uses MFC. If you
> are using VS Express Edition, then either use cvBlob instead of cvBlobsLib (
> http://code.google.com/p/cvblob/), or try with a commercial version of VS.
>
> Cheers,
> Shervin Emami.
> http://www.shervinemami.info/openCV.html
>
>
> On Fri, Jul 6, 2012 at 4:52 AM, Sanjiv K. Bhatia <sanjiv@...> wrote:
>
> > **

> >
> >
> > In that case, make sure that all the settings are appropriate. I am
> > assuming that you are using Windows and Visual Studio. Make sure that the
> > path to where the library is found is correct.
> >
> > Sanjiv
> >
> > On Fri, Jul 6, 2012 at 4:03 AM, amel <amel_sup@...> wrote:
> >
> >> yes i do it
> >>
> >> --- In OpenCV@yahoogroups.com, "Sanjiv K. Bhatia" <sanjiv@> wrote:
> >> >
> >> > Did you create cvblobslib.lib as a static library?
> >> >
> >> > Sanjiv
> >> >
> >> > On Fri, Jun 29, 2012 at 10:03 AM, amel <amel_sup@> wrote:
> >> >
> >> > > hello,
> >> > > i try to build cvblobslib with visual studio ultimate 2010 (windows
> >> 7), in
> >> > > compiling there is no errors but in execution i have the error:
> >> > > "unable to start program visual c++
> >> > > c:\…\debug\cvblobslib.lib
> >> > > the specified file is an unreconized or unsupported binary format"
> >> > >
> >> > > can you 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@yahoogroups.com
> >> > > Yahoo! Groups Links
> >> > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > Sanjiv K. Bhatia
> >> > http://member.acm.org/~sanjiv
> >> >
> >>
> >>
> >>
> >>
> >> ------------------------------------
> >>
> >> 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@yahoogroups.com
> >> Yahoo! Groups Links
> >>
> >>
> >>
> >>
> >
> >
> > --
> > Sanjiv K. Bhatia
> > http://member.acm.org/~sanjiv
> >
> >
> >
>



#88693 From: Shervin Emami <shervin.emami@...>
Date: Tue Jul 10, 2012 12:53 pm
Subject: Re: Re: OpenCV .so dependencies? I need a integrated jar
emami_s
Send Email Send Email
 
I thought JavaCV had it's own equivalent to HighGUI? If not, you can use Java to load the image. If you really want to use HighGUI to load/save images but not other features then you should compile your own version of OpenCV without the parts of HighGUI that you are having problems with. Most of it can be enabled & disabled when building OpenCV with CMake.

Cheers,
Shervin Emami.
http://www.shervinemami.info/openCV.html


On Sun, Jul 8, 2012 at 9:50 PM, Gabriela B <gabybosetti@...> wrote:
 

Hi Shervin! Thanks for your help. If I remove the highgui how can I do things like this?

IplImage img = opencv_highgui.cvLoadImage(...);



--- In OpenCV@yahoogroups.com, Shervin Emami <shervin.emami@...> wrote:
>
> It sounds like you are using JavaCV so you should skip highgui anyway, and
> just try with the other modules. Use Java for all your GUI needs.
>
> Cheers,
> Shervin Emami.
> http://www.shervinemami.info/openCV.html
>
>
> On Thu, Jul 5, 2012 at 7:52 AM, Gabriela B <gabybosetti@...> wrote:
>
> > **

> >
> >
> > Hi! I'm trying to develop an application (JavaCV - JAR) that runs without
> > the user has previously installed OpenCV. I did it attaching all the .so of
> > OpenCV in the JAR, unpacking in runtime and then loading it with
> > System.load(). It works fine.
> >
> > Now, I can run the application if the user has installed all OpenCV
> > dependencies, but if not the app crashes. So my new challenge is attaching
> > these dependencies.
> >
> > For example, highgui needs libavcodec-dev but if I attach libavcodec.so It
> > can't be loaded, it throws an UnsatisfiedLinkError with no information
> > about the error. So, what I have to load before??
> >
> > Thanks for your help.
> > Gaby
> >
> >
> >
>



#88694 From: "swerdnalarbos" <andrewssobral@...>
Date: Tue Jul 10, 2012 11:58 am
Subject: Re: Traffic Density Detection
swerdnalarbos
Send Email Send Email
 
Hi,

I'm currently finishing my master course in computer vision and I work exactly
with traffic analysis using OpenCV.

You will need to study about:
* Background subtraction algorithms
* Optical flow algorithms
* Blobs tracking

Recently, I developed a free opensource library with more than 20 background
subtraction algorithms, see:
https://code.google.com/p/bgslibrary/

For Optical Flow tracking, you can use the opencv Lucas-Kanade default
implementation.

For Blob Tracking you can use cvBlob library available at:
http://code.google.com/p/cvblob/

After all, one of the simplest ways to count vehicles is to make a ROI (region
of interest) and trace a simple line. For each detected blob with cvblob you
check if his centroid is left or right of the line and store this state. When a
blob change his state (i.e. left to right) is because it has crossed the line
(counter = counter + 1)...

Any questions, please contact me...

--- In OpenCV@yahoogroups.com, "Narayan" <petermax4@...> wrote:
>
> Hi everybody, I'm completely new to OpenCV library. However, I've gone through
plenty of books and articles written about this library. I'm doing a project
about detecting the number of vehicles i.e. vehicle traffic using image
processing or should I say using OpenCV but so far I can't get anywhere. All I
want is to determine the number of vehicles from the given video frame or for
now an image. Can anybody suggest me how or from where should I start doing what
I want?
> I really need to complete this project within 1 month or so as it affects my
semester marks.
>
>
> P.S.I'm familiar enough with C and C++ programming language but have no idea
about other languages so do suggest me directions on the basis of these
languages...!
>

#88695 From: Michael Richards <hackish@...>
Date: Tue Jul 10, 2012 1:46 pm
Subject: VideoCapture::Read
subaru669
Send Email Send Email
 
I've been working on my video processor as a multithreaded
application. One thread decodes video frames, another analyzes them,
another compresses the results and finally the last thread displays a
number of the frames as they're processed so you can keep an eye on
how the program is doing.

The docs for VideoCapture::Read say:

OpenCV 1.x functions cvRetrieveFrame and cv.RetrieveFrame return image
stored inside the video capturing structure. It is not allowed to
modify or release the image! You can copy the frame using
cvCloneImage() and then do whatever you want with the copy.

To me this implies that with OpenCV 2.4 you can deal with the returned
frames directly. A lot of weirdness in my program seems to demonstrate
otherwise.

I've always found the Mat object's sharing of underlying data a bit
confusing, but I think it's somehow biting me. The video decoding
thread has been re-written a number of times to try and separate the
read data so it is only read once and not copied around 100 times.
From there it goes into a queue and another thread picks it up for
processing.

			 Mat *frame = new Mat();
		   (*video) >> (*frame);
			 if (!frame->empty()) {
				 // create the video frame and give up ownership of the Mat object
(frame data)
				 TVideoFrame *image=new TVideoFrame(frame);
				 paramAccess.Lock();
				 image->setFrameNum(fileFramesProcessed++);
				 image->setBatchFrameNum(totalFramesProcessed++);
				 image->setFilename(currentFile);
				 paramAccess.Unlock();

         frameAccess.Lock();
				 frameBuffer.push(image);
				 frameAccess.Unlock();
			 }

Something is wrong with that. I have a feeling that the Mat object
doesn't seem to fully deal with when to release the shared data (copy
on write if shared anyone???). Any ideas on how my frame object can
take ownership of the underlying image without having to do an extra
clone operation? It would be nice for the VideoCapture object to do
its decoding into a Mat and then on next call decode the next frame
into a different Mat object.

-Michael

#88696 From: "elvis_the_king_is_alive" <elvis_the_king_is_alive@...>
Date: Tue Jul 10, 2012 3:39 pm
Subject: Re: Problems with Flann index and AutotunedIndexParams
elvis_the_ki...
Send Email Send Email
 
Thanks for the hint, you are right. But I tested my sample code again with the
new version 2.4.2 and it seems to work now. I'll do some more testing at first!

--- In OpenCV@yahoogroups.com, "r1w3n" <r1w3n@...> wrote:
>
>
>
> If you think it is a bug, then it is better to create a ticket:
> http://code.opencv.org/projects/opencv/issues
>
> If it is not a bug, then the developers will close it anyway.
>

#88697 From: "jasontu4" <jasontu4@...>
Date: Tue Jul 10, 2012 5:08 pm
Subject: Using OpenCV's stitching module, strange error when compositing images
jasontu4
Send Email Send Email
 
I'm using OpenCV's stitching module to stitch together a hundred or so 4288x2848
images. I'm stitching a few images a time; I plan on stitching these smaller
stitches into one final panorama.

The stitching module works perfectly most of the time. However, I get an
exception when I accidentally include duplicates, or images that have no
features in common. No big deal, that's my fault. But sometimes, after the
stitching module begins to composite the images onto a panorama, I get this
error in the command line:

OpenCV Error: Assertion failed (y == 0 || data && dims >= 1 && (unsigned)y <
(unsigned)size.p[0])) in unknown function, file
C:\slave\WinInstallerMegaPack\src\opencv\modules\core\include\opencv2/core/mat.h\
pp, line 425

This boggles my mind. Does it have something to do with memory? I don't know.
Any help would be appreciated.

#88698 From: levent bal <ballevent@...>
Date: Tue Jul 10, 2012 8:11 pm
Subject: Open CV application Cook Book Ch 3 Color Detector Example codes
ballevent
Send Email Send Email
 
hello,

i am levent, i tried to write "Open CV application Cook Book Ch 3 Color Detector Example codes" but i couldnt write. is there anybody solve this example and send me as a project file?

i dont know how i can create a MFC file .

Please it is very important for me.

#88699 From: "bong" <bong_valdoz@...>
Date: Wed Jul 11, 2012 2:24 am
Subject: OPEN CV and andriod
greyash91
Send Email Send Email
 
is it possible to make a mobile object recognition system using opencv and
android.

please advise me on how to do it.

i am making a thesis and my title would be

Object recognition system for visually impaired people using android and opencv

please help me

#88700 From: "B0mb3r" <weileongatomic@...>
Date: Wed Jul 11, 2012 7:48 am
Subject: Problem Encounter with Installation by using the pre-built libraries
weileongatomic
Send Email Send Email
 
Hi,

I've downloaded the latest OpenCV installation 2.4.2 
file name: OpenCV-2.4.2.exe
file size: 212MB

I'm confused with the installation instructions given in the website. (http://docs.opencv.org/trunk/doc/tutorials/introduction/windows_install/windows_install.html)

Basically, the installer is just a zip file. It unzip all the files to a destination and that's it.

Which file should I be using? I'm using Windows7, intend to use OpenCV on Visual Studio 2008.

Thanks in advance!

Regards,
Weiliang


#88701 From: Jérémy GUILLAUME <jeremy.guillau@...>
Date: Wed Jul 11, 2012 9:21 am
Subject: Re: Re: Error building 2.4.1 with cuda on ubuntu 12.04
kenny_zkit
Send Email Send Email
 
Great !! it works thank you !

Jérémy Guillaume
jeremy.guillau@...
06 26 92 61 41
Avant d'imprimer pensez à l'environnement


2012/6/28 Diego <diego_ep05@...>
 


Hi, mate:

Developer drivers are the solution. http://developer.nvidia.com/cuda-downloads

This is a pretty good guide: http://forums.nvidia.com/index.php?showtopic=231150
When building the SDK examples, "make" command didn't throw me errors as suggested by the guide, so there was no need for applying subsequent steps.

Credits go to Vlad Vinogradov, btw.

Cheers,
Diego Boy



--- In OpenCV@yahoogroups.com, "Diego" <diego_ep05@...> wrote:
>
>
> I posted the same error asking for help but I can't find my post. I get the problem only when using WITH_CUDA=ON. I think it may be a linking problem. I'll try to compile the nvidia drivers myself. If that is futile, I'll try using CUDA 4.1.
>
> Are you using CUDA TOOLKIT 4.2? Let me know if you solve it, please. I'll do the same.
>
>
> --- In OpenCV@yahoogroups.com, "kenny_zkit" <jeremy.guillau@> wrote:
> >
> > Hi all,
> >
> > Here is my problem when i build opencv :
> >
> >
> > [ 6%] Built target libjpeg
> > [ 10%] Built target libjasper
> > [ 12%] Built target libpng
> > [ 15%] Built target opencv_core
> > [ 16%] Built target opencv_ts
> > [ 21%] Built target opencv_imgproc
> > [ 24%] Built target opencv_highgui
> > Linking CXX executable ../../bin/opencv_perf_core
> > ../../lib/libopencv_core.so.2.4.1: error: undefined reference to 'cuDeviceGetAttribute'
> > collect2: ld a retourné 1 code d'état d'exécution
> > make[2]: *** [bin/opencv_perf_core] Erreur 1
> > make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Erreur 2
> > make: *** [all] Erreur 2
> >
> > Is someone know something about that ? I'm really stuck here...
> >
> > Thank you !
> >
>



#88702 From: Shervin Emami <shervin.emami@...>
Date: Wed Jul 11, 2012 12:53 pm
Subject: Re: OPEN CV and andriod
emami_s
Send Email Send Email
 
You can use OpenCV on Android by downloading the Android Binary Package & following the tutorial, at "http://opencv.org/platforms/android.html"

How you implement "object recognition" is a different story, because it depends completely on what you actually want to find and in what conditions and how much work you put into it, etc. You could start with ORB feature detection and see how well you go from there.

Cheers,
Shervin Emami.
http://www.shervinemami.info/openCV.html


On Tue, Jul 10, 2012 at 7:24 PM, bong <bong_valdoz@...> wrote:
 

is it possible to make a mobile object recognition system using opencv and android.

please advise me on how to do it.

i am making a thesis and my title would be

Object recognition system for visually impaired people using android and opencv

please help me



Messages 88672 - 88702 of 90774   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help