Object tracking performance problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Object tracking performance problem

opencv-users mailing list
Hi, I am using this code for track 4 colored objects.I get video from 8 ps3 eye camera.When i comment // my trackFilteredObject line there is no lag.But when using this code i have lot latency.I cant understand why happening because my normal cpu usage ~%15 ram usage 6.3GB/15GB (%40) when run this code cpu usage ~20-23 ram usage 6.4GB . I think its not about cpu-ram performance.What am i doing wrong ?

 

 My code: http://answers.opencv.org/question/70923/object-tracking-lag-problem/ http://answers.opencv.org/question/70923/object-tracking-lag-problem/
 

Reply | Threaded
Open this post in threaded view
|

Re: Object tracking performance problem

opencv-users mailing list

you can try profiling your code, it will give you a clearer idea regarding your code.
I
https://en.wikipedia.org/wiki/Profiling_(computer_programming)


--------------------------------------------
On Tue, 9/15/15, [hidden email] [OpenCV] <[hidden email]> wrote:

 Subject: [OpenCV] Object tracking performance problem
 To: [hidden email]
 Date: Tuesday, September 15, 2015, 9:50 PM
 
 
  
 
 
 
   
 
 
     
       
       
       Hi, I am using this
 code for track 4 colored objects.I get video from 8 ps3 eye
 camera.When i comment // my trackFilteredObject line there
 is no lag.But when using this code i have lot latency.I cant
 understand why happening because my normal cpu usage ~%15
 ram usage 6.3GB/15GB (%40) when run this code cpu usage
 ~20-23 ram usage 6.4GB . I think its not about cpu-ram
 performance.What am i doing wrong ?
 
 My code: http://answers.opencv.org/question/70923/object-tracking-lag-problem/
 
 
     
     
 
     
     
 
 
 
 #yiv0458467796 #yiv0458467796 --
   #yiv0458467796ygrp-mkp {
 border:1px solid #d8d8d8;font-family:Arial;margin:10px
 0;padding:0 10px;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp hr {
 border:1px solid #d8d8d8;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp #yiv0458467796hd {
 color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
 0;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp #yiv0458467796ads {
 margin-bottom:10px;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp .yiv0458467796ad {
 padding:0 0;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp .yiv0458467796ad p {
 margin:0;}
 
 #yiv0458467796 #yiv0458467796ygrp-mkp .yiv0458467796ad a {
 color:#0000ff;text-decoration:none;}
 #yiv0458467796 #yiv0458467796ygrp-sponsor
 #yiv0458467796ygrp-lc {
 font-family:Arial;}
 
 #yiv0458467796 #yiv0458467796ygrp-sponsor
 #yiv0458467796ygrp-lc #yiv0458467796hd {
 margin:10px
 0px;font-weight:700;font-size:78%;line-height:122%;}
 
 #yiv0458467796 #yiv0458467796ygrp-sponsor
 #yiv0458467796ygrp-lc .yiv0458467796ad {
 margin-bottom:10px;padding:0 0;}
 
 #yiv0458467796 #yiv0458467796actions {
 font-family:Verdana;font-size:11px;padding:10px 0;}
 
 #yiv0458467796 #yiv0458467796activity {
 background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}
 
 #yiv0458467796 #yiv0458467796activity span {
 font-weight:700;}
 
 #yiv0458467796 #yiv0458467796activity span:first-child {
 text-transform:uppercase;}
 
 #yiv0458467796 #yiv0458467796activity span a {
 color:#5085b6;text-decoration:none;}
 
 #yiv0458467796 #yiv0458467796activity span span {
 color:#ff7900;}
 
 #yiv0458467796 #yiv0458467796activity span
 .yiv0458467796underline {
 text-decoration:underline;}
 
 #yiv0458467796 .yiv0458467796attach {
 clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
 0;width:400px;}
 
 #yiv0458467796 .yiv0458467796attach div a {
 text-decoration:none;}
 
 #yiv0458467796 .yiv0458467796attach img {
 border:none;padding-right:5px;}
 
 #yiv0458467796 .yiv0458467796attach label {
 display:block;margin-bottom:5px;}
 
 #yiv0458467796 .yiv0458467796attach label a {
 text-decoration:none;}
 
 #yiv0458467796 blockquote {
 margin:0 0 0 4px;}
 
 #yiv0458467796 .yiv0458467796bold {
 font-family:Arial;font-size:13px;font-weight:700;}
 
 #yiv0458467796 .yiv0458467796bold a {
 text-decoration:none;}
 
 #yiv0458467796 dd.yiv0458467796last p a {
 font-family:Verdana;font-weight:700;}
 
 #yiv0458467796 dd.yiv0458467796last p span {
 margin-right:10px;font-family:Verdana;font-weight:700;}
 
 #yiv0458467796 dd.yiv0458467796last p
 span.yiv0458467796yshortcuts {
 margin-right:0;}
 
 #yiv0458467796 div.yiv0458467796attach-table div div a {
 text-decoration:none;}
 
 #yiv0458467796 div.yiv0458467796attach-table {
 width:400px;}
 
 #yiv0458467796 div.yiv0458467796file-title a, #yiv0458467796
 div.yiv0458467796file-title a:active, #yiv0458467796
 div.yiv0458467796file-title a:hover, #yiv0458467796
 div.yiv0458467796file-title a:visited {
 text-decoration:none;}
 
 #yiv0458467796 div.yiv0458467796photo-title a,
 #yiv0458467796 div.yiv0458467796photo-title a:active,
 #yiv0458467796 div.yiv0458467796photo-title a:hover,
 #yiv0458467796 div.yiv0458467796photo-title a:visited {
 text-decoration:none;}
 
 #yiv0458467796 div#yiv0458467796ygrp-mlmsg
 #yiv0458467796ygrp-msg p a span.yiv0458467796yshortcuts {
 font-family:Verdana;font-size:10px;font-weight:normal;}
 
 #yiv0458467796 .yiv0458467796green {
 color:#628c2a;}
 
 #yiv0458467796 .yiv0458467796MsoNormal {
 margin:0 0 0 0;}
 
 #yiv0458467796 o {
 font-size:0;}
 
 #yiv0458467796 #yiv0458467796photos div {
 float:left;width:72px;}
 
 #yiv0458467796 #yiv0458467796photos div div {
 border:1px solid
 #666666;height:62px;overflow:hidden;width:62px;}
 
 #yiv0458467796 #yiv0458467796photos div label {
 color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}
 
 #yiv0458467796 #yiv0458467796reco-category {
 font-size:77%;}
 
 #yiv0458467796 #yiv0458467796reco-desc {
 font-size:77%;}
 
 #yiv0458467796 .yiv0458467796replbq {
 margin:4px;}
 
 #yiv0458467796 #yiv0458467796ygrp-actbar div a:first-child {
 margin-right:2px;padding-right:5px;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg {
 font-size:13px;font-family:Arial, helvetica, clean,
 sans-serif;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg table {
 font-size:inherit;font:100%;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg select,
 #yiv0458467796 input, #yiv0458467796 textarea {
 font:99% Arial, Helvetica, clean, sans-serif;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg pre, #yiv0458467796
 code {
 font:115% monospace;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg * {
 line-height:1.22em;}
 
 #yiv0458467796 #yiv0458467796ygrp-mlmsg #yiv0458467796logo {
 padding-bottom:10px;}
 
 
 #yiv0458467796 #yiv0458467796ygrp-msg p a {
 font-family:Verdana;}
 
 #yiv0458467796 #yiv0458467796ygrp-msg
 p#yiv0458467796attach-count span {
 color:#1E66AE;font-weight:700;}
 
 #yiv0458467796 #yiv0458467796ygrp-reco
 #yiv0458467796reco-head {
 color:#ff7900;font-weight:700;}
 
 #yiv0458467796 #yiv0458467796ygrp-reco {
 margin-bottom:20px;padding:0px;}
 
 #yiv0458467796 #yiv0458467796ygrp-sponsor #yiv0458467796ov
 li a {
 font-size:130%;text-decoration:none;}
 
 #yiv0458467796 #yiv0458467796ygrp-sponsor #yiv0458467796ov
 li {
 font-size:77%;list-style-type:square;padding:6px 0;}
 
 #yiv0458467796 #yiv0458467796ygrp-sponsor #yiv0458467796ov
 ul {
 margin:0;padding:0 0 0 8px;}
 
 #yiv0458467796 #yiv0458467796ygrp-text {
 font-family:Georgia;}
 
 #yiv0458467796 #yiv0458467796ygrp-text p {
 margin:0 0 1em 0;}
 
 #yiv0458467796 #yiv0458467796ygrp-text tt {
 font-size:120%;}
 
 #yiv0458467796 #yiv0458467796ygrp-vital ul li:last-child {
 border-right:none !important;
 }
 #yiv0458467796