Ask Your Question
0

How check if my mat::image is updated or not [closed]

asked 2015-01-12 03:51:17 -0600

gfx gravatar image

In my program I detect movement or position of one or more object and send the relative position via ethernet .... using findcontours hyerarchy and many other function .... if my targhet object not compare on screen I want to send 0,0 coordinates on ethernet .... I Use one detectMat mat:image for drawing on screen my result (drwaw around object captured a classic green rectangle). when there are no objects my image stops being updated with new green rectangles . It's ok for me, but Now I would check when everything stops so you know exactly when there are no objects in transit and send the coordinates 0,0 (when there are ojbect all work fine.... I can insert object in transit and remove all ojcte without problem, but not uderstand when detectMat stop to updated and than start to updated from my prog).

There are some function (detectMat.xxxxx) do check this situation?

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by berak
close date 2015-01-14 11:34:46.473505

Comments

1

please review your question, it is very unclear... maybe Mat::empty() or countNonZero may help you (see this)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-12 04:53:39 -0600 )edit
1

Could you please try to write proper sentences with correctly written words?

FooBar gravatar imageFooBar ( 2015-01-12 09:47:40 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-14 11:02:31 -0600

gfx gravatar image

sorry for bad english ......

Fortunately I found a different solution for solve this issue ...

edit flag offensive delete link more

Comments

you can post it too, for the help of others that will arrive in your case

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-01-15 03:01:24 -0600 )edit
1

.... simply not need to chek if mat is updated or not ....

gfx gravatar imagegfx ( 2015-01-17 11:56:43 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-12 03:47:10 -0600

Seen: 246 times

Last updated: Jan 14 '15