<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi folkz,<div>we just committed a working revision of the branch libavg-v4l2 (the latest 2134 has been merged with the trunk head).</div><div><br class="webkit-block-placeholder"></div><div><br></div><div>V4LCamera via CameraNode can be loaded using avg 'camera' node:</div><div><br class="webkit-block-placeholder"></div><div><camera id="cam" x="0" y="0" width="640" height="480" device="/dev/video0" mode="640x480_YUV422" channel="1" source="v4l" /></div><div><br class="webkit-block-placeholder"></div><div>attributes are quite self-explanatory however:</div><div><br class="webkit-block-placeholder"></div><div>mode: WxH_PF where PF can be: RGB, MONO8, YUV422 (the same as firewire camera)</div><div>channel: video mux selector, for example, a bt878 pci board has: 0=tuner, 1=composite, 2=svideo</div><div>source: 'v4l' instead of 'firewire' is the magic switch</div><div><br class="webkit-block-placeholder"></div><div>download method from v4l card has been hardcoded as mmap(), which seems to sign the best performance</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Now, about the tracker.</div><div>This is instantiated by Player, using addTracker() method, usually as python binding Player.addTracker()</div><div><br></div><div>We split this method in two: addFWTracker(device, mode) and addV4LTracker(device, mode, channel). This seems not to be the best way, but was the fastest, waiting for some Uli's advices basing on his best flavours.</div><div><br class="webkit-block-placeholder"></div><div>We have some doubts about avgtrackerrc.</div><div>The one supplied with mtc subproject (TrackerConfig.xml) does not validate against the trackerconfig dtd, as the latter requires a more detailed structure.</div><div>Recreating it from the dtd was quite simple, using default data found on specific class constructors:</div><div><br class="webkit-block-placeholder"></div><div>-------------------------- /etc/avgtrackerrc --------------------------</div><div><div><?xml version="1.0" encoding="utf-8"?></div><div><trackerconfig></div><div> <camera></div><div> <brightness value="128"/></div><div> <exposure value="128"/></div><div> <gamma value="1"/></div><div> <gain value="128"/></div><div> <shutter value="128"/></div><div> </camera></div><div><br class="webkit-block-placeholder"></div><div> <tracker></div><div> <historyupdateinterval value="5"/></div><div> <touch></div><div> <threshold value="128" /></div><div> <similarity value="31" /></div><div> <areabounds min="80" max="450" /></div><div> <eccentricitybounds min="1" max="3" /></div><div> </touch></div><div> <track></div><div> <threshold value="128" /></div><div> <similarity value="31" /></div><div> <areabounds min="80" max="450" /></div><div> <eccentricitybounds min="1" max="3" /></div><div> </track></div><div><br class="webkit-block-placeholder"></div><div> </tracker></div><div><br class="webkit-block-placeholder"></div><div> <transform></div><div> <cameradisplacement x="0" y="0" /></div><div> <camerascale x="1" y="1" /></div><div> <distortionparams p2="0" p3="0" /></div><div> <trapezoid value="0" /></div><div> <angle value="0" /></div><div> <displaydisplacement x="0" y="0" /></div><div> <displayscale x="1" y="1" /></div><div> </transform></div><div></trackerconfig></div></div><div><div>-------------------------- /etc/avgtrackerrc --------------------------</div><div></div><div><br class="webkit-block-placeholder"></div><div>Uli: can you put a working avgtrackerrc under svn control?</div><div><br class="webkit-block-placeholder"></div>At this time, V4LCamera does not honour tune-in attributes, therefore the <camera> node of the rc is simply ignored.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Is there someone that can try to fire up a v4l device with libavg?</div><div>byez</div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>OXullo Intersecans</div><div><br class="khtml-block-placeholder"></div><div>0 2 L > Outside Standing Level</div><div><a href="http://www.02L.net">http://www.02L.net</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>