<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>&lt;camera id="cam" x="0" y="0" width="640" height="480" device="/dev/video0" mode="640x480_YUV422" channel="1" source="v4l" /&gt;</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>&lt;?xml version="1.0" encoding="utf-8"?&gt;</div><div>&lt;trackerconfig&gt;</div><div>        &lt;camera&gt;</div><div>                 &lt;brightness value="128"/&gt;</div><div>                 &lt;exposure value="128"/&gt;</div><div>                 &lt;gamma value="1"/&gt;</div><div>                 &lt;gain value="128"/&gt;</div><div>                 &lt;shutter value="128"/&gt;</div><div>        &lt;/camera&gt;</div><div><br class="webkit-block-placeholder"></div><div>        &lt;tracker&gt;</div><div>                &lt;historyupdateinterval value="5"/&gt;</div><div>                &lt;touch&gt;</div><div>                        &lt;threshold value="128" /&gt;</div><div>                        &lt;similarity value="31" /&gt;</div><div>                        &lt;areabounds min="80" max="450" /&gt;</div><div>                        &lt;eccentricitybounds min="1" max="3" /&gt;</div><div>                &lt;/touch&gt;</div><div>                &lt;track&gt;</div><div>                        &lt;threshold value="128" /&gt;</div><div>                        &lt;similarity value="31" /&gt;</div><div>                        &lt;areabounds min="80" max="450" /&gt;</div><div>                        &lt;eccentricitybounds min="1" max="3" /&gt;</div><div>                &lt;/track&gt;</div><div><br class="webkit-block-placeholder"></div><div>        &lt;/tracker&gt;</div><div><br class="webkit-block-placeholder"></div><div>        &lt;transform&gt;</div><div>                &lt;cameradisplacement x="0" y="0" /&gt;</div><div>                &lt;camerascale x="1" y="1" /&gt;</div><div>                &lt;distortionparams p2="0" p3="0" /&gt;</div><div>                &lt;trapezoid value="0" /&gt;</div><div>                &lt;angle value="0" /&gt;</div><div>                &lt;displaydisplacement x="0" y="0" /&gt;</div><div>                &lt;displayscale x="1" y="1" /&gt;</div><div>        &lt;/transform&gt;</div><div>&lt;/trackerconfig&gt;</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 &lt;camera&gt; 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 &gt; 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>