tag:blogger.com,1999:blog-313416962024-03-08T14:47:54.774-03:00Danny's Blog AttemptThis blog is focused on GPGPU, OpenCV, OpenGL, Bio-informatics, Segmentation, Livewire and IT news.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-31341696.post-8341780211624008292024-03-02T20:46:00.000-03:002024-03-02T20:46:47.342-03:00DESAFIOS PARA ADOÇÃO DE INTELIGÊNCIA ARTIFICIAL NA FORÇA AÉREA BRASILEIRA<p><span style="background-color: white; color: #1f2328; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">Este estudo mostra uma investigação sobre o progresso e os desafios associados à implementação da Inteligência Artificial (IA) na Força Aérea Brasileira (FAB), ao compará-los com experiências de outras nações, incluindo os Estados Unidos, China, Israel, França e Suécia. Com o intuito de compreender o atual panorama, a pesquisa examinou as estratégias nacionais de IA, a infraestrutura de apoio governamental e o financiamento de IA em contextos de defesa. Para alcançar este propósito, utilizou-se como metodologia a pesquisa exploratória, que consistiu na análise de bibliografias, artigos científicos, políticas, estratégias nacionais e publicações pertinentes nas áreas de estudo correlatas. Os resultados obtidos indicam que os países mencionados têm incorporado a IA em diversas esferas militares, abrangendo desde o aprimoramento de sistemas bélicos até a aplicação em treinamentos baseados em simulação, operações de inteligência, vigilância e reconhecimento, cibersegurança, sistemas autônomos, comando e controle, bem como operações humanitárias de assistência em situações de desastre e logística. No entanto, o estudo sublinha que, no Brasil, há uma notável discrepância entre a abundância de produção acadêmica na área de IA na FAB e sua aplicação prática concreta. Essa discrepância se fundamenta na ausência de uma estratégia militar específica para o emprego da IA, na falta de entidades militares dedicadas à pesquisa e aplicação da IA e no investimento financeiro insuficiente nesse domínio. Consequentemente, o artigo destaca a urgente necessidade de elaboração de uma estratégia nacional para a utilização da IA na Defesa, bem como a criação de organizações militares direcionadas à IA e o incremento substancial dos recursos financeiros destinados a impulsionar iniciativas de pesquisa e desenvolvimento na área da IA. Como contribuição, o estudo proporciona um alicerce sólido para ações futuras, enfatizando o imenso potencial da IA na redefinição das operações militares e da segurança nacional em um cenário em constante evolução. Palavras-chave: Inteligência Artificial (IA); Estratégia Nacional; Defesa; Força Aérea Brasileira (FAB); Cibersegurança</span></p><p><span style="background-color: white; color: #1f2328; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">O artigo todo está aqui:</span></p><p><a href="https://gist.github.com/dannyxyz22/fb7bab959af603e37c250dd6028831e9 ">https://gist.github.com/dannyxyz22/fb7bab959af603e37c250dd6028831e9 </a></p>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-67982882664808624792013-11-21T16:24:00.000-02:002013-11-21T16:24:13.897-02:00Portico 2.0 windows LAN not workingJust in case you want to connect two different computers running Portico HLA in your local windows network and it is not working, try the following:<br />
Create the RTI.rid file with this text and put it in the same directory as your application:<br />
<span style="font-family: Courier New, Courier, monospace;">portico.jgroups.loglevel=DEBUG</span><br />
Run your program and make sure it has read the config file. You should notice messages like this:<br />
<span style="font-family: Courier New, Courier, monospace;">DEBUG [SwingWorker-pool-1-thread-1] org.jgroups.protocols.pbcast.GMS: 1T_Porto-36128: installing view [1T_Porto-23855|4] [1T_Porto-23855, 1T_Baggio-57693, 1T_Baggio-6991, 1T_Porto-36128]</span><br />
<span style="font-family: Courier New, Courier, monospace;">DEBUG [SwingWorker-pool-1-thread-1] org.jgroups.protocols.pbcast.STABLE: [ergonomics] setting max_bytes to 16MB (4 members)</span><br />
<span style="font-family: Courier New, Courier, monospace;">DEBUG [SwingWorker-pool-1-thread-1] org.jgroups.protocols.pbcast.FLUSH: 1T_Porto-36128: installing view [1T_Porto-23855|4] [1T_Porto-23855, 1T_Baggio-57693, 1T_Baggio-6991, 1T_Porto-36128]</span><br />
<br />
<span style="font-family: inherit;">Now that you are sure it works, do the following to your RTI.rid, in both machines:</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;">portico.jgroups.loglevel=DEBUG</span><br />
<span style="font-family: Courier New, Courier, monospace;">portico.jgroups.udp.address=224.0.0.3</span><br />
<br />
Now it should work. I noticed that using the default address, which is 239.255.20.16, it does not work on my windows network. Changing the address did the trick.<br />
<br />
Kind regards and happy open source hla =)<br />
<br />Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-53162339167429719752013-07-26T02:22:00.003-03:002013-07-29T11:42:29.953-03:00Indexing againIndexing <a href="http://tanamidia.biz/">tanamidia.biz</a>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-35978759289398844002013-06-22T02:38:00.001-03:002013-06-22T02:38:29.598-03:00IndexingTrying to get google to index this site: <a href="http://prayingback.appspot.com/">http://prayingback.appspot.com/</a> . Let's see if it works.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-73992067382656371482012-01-30T01:09:00.005-02:002012-01-30T01:32:31.803-02:00A Maturidade - Rafael Llano Cifuentes<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUTk1huIXotx145emDwu1FZqWDdHR6UnV3-SxA2nx0iB5DnlI_1WEeQpM415SB0IDkirujocZemhuZDv8Wcm_2BT_MOVyy3hSNcK3LeXzQe4cvDIhtPBJjW9RNwD-k5novLwGX5Q/s1600/a_maturidade_b.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 131px; height: 200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUTk1huIXotx145emDwu1FZqWDdHR6UnV3-SxA2nx0iB5DnlI_1WEeQpM415SB0IDkirujocZemhuZDv8Wcm_2BT_MOVyy3hSNcK3LeXzQe4cvDIhtPBJjW9RNwD-k5novLwGX5Q/s200/a_maturidade_b.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5703258948232285586" /></a>O melhor livro que li até agora, excluindo, é claro, a Bíblia Sagrada.<div><div><br /></div><div><b>Sinopse - A maturidade - Rafael Llano Cifuentes</b></div><div>Observamos a toda a hora pessoas que ostentam posições de influência e responsabilidade – deputados, juízes, empresários, professores universitários... –, mas que têm um nível psicológico claramente imaturo. Há provas psicotécnicas e vestibulares acadêmicos para testar capacidades na ordem do saber e do fazer, mas até agora não se encontrou nenhum critério efetivo para analisar essa qualidade central da ordem do ser que é a maturidade.</div><div><br /></div><div>Examinam-se nesta obra os diversos traços que compõem e distinguem a personalidade imatura e a madura, traçando os meios concretos que se podem aplicar para chegar à maturidade. Desenha-se assim o atraente retrato do homem de caráter, caracterizado pela harmônica fusão de todas as virtudes e pela plenitude espiritual e afetiva.</div><div><br /></div><div>Procurem este livro na editora <a href="http://www.quadrante.com.br/">Quadrante</a>.</div><div><span style="font-family: arial; font-size: 12px; text-align: justify; background-color: rgb(255, 255, 255); "><br /></span></div><div>Ao ler este livro, sempre percebo o quão imaturo sou e o quanto tenho que aprender. O autor deixa clara a adolescência coletiva pela qual a nossa geração passa, priorizando o consumismo, o egoísmo e a sexualidade auto-centrada em detrimento do que realmente importa. Leitura obrigatória para qualquer pessoa.<br /><br />Vejam um pequeno trecho do livro:</div><div><br /></div><div><b>A Maturidade Afetiva</b></div><div><table border="0" width="99%" cellspacing="5" cellpadding="5" class="ctxtartigo" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255); "><tbody><tr><td width="74%" valign="top" height="1098"><p align="left" class="ctxtartigo"><br /></p><p align="left" class="ctxtartigo">A afetividade não está por assim dizer encerrada no coração, nos sentimentos, mas permeia toda a personalidade.</p><p align="left" class="ctxtartigo">Estamos continuamente <i>sentindo</i> aquilo que pensamos e fazemos. Por isso, qualquer distúrbio da vida afetiva acaba por impedir ou pelo menos entravar o amadurecimento da personalidade como um todo.<br /></p><p align="left" class="ctxtartigo"><br />Observamos isto claramente no fenômeno de "fixação na adolescência" ou na "adolescência retardada". Como já anotamos, o adolescente caracteriza-se por uma <i>afetividade egocêntrica e instável</i>; essa característica, quando não superada na natural evolução da personalidade, pode sofrer uma "fixação", permanecendo no adulto: este é um dos sintomas da imaturidade afetiva.</p><p>É significativo verificar como essa imaturidade parece ser uma característica da atual geração. No nosso mundo altamente técnico e cheio de avanços científicos, pouco se tem progredido no conhecimento das profundezas do coração, e daí resulta aquilo que Alexis Carrel, prêmio Nobel de Medicina, apontava no seu célebre trabalho <i>O homem, esse desconhecido</i>: vivemos hoje o drama de um <i>desnível gritante entre o fabuloso progresso técnico e científico e a imaturidade quase infantil no que diz respeito aos sentimentos humanos.</i></p><p>Mesmo em pessoas de alto nível intelectual, ocorre um autêntico <i>analfabetismo afetivo</i>: são indivíduos truncados, incompletos, mal-formados, imaturos; estão preparados para trabalhar de forma eficiente, mas são absolutamente incapazes de amar. Esta desproporção tem conseqüências devastadoras: basta reparar na facilidade com que as pessoas se casam e se "descasam", se "juntam" e se separam. Dão a impressão de reparar apenas na camada epidérmica do amor e de não aprofundar nos valores do coração humano e nas leis do verdadeiro amor.</p><p>Quais são, então, os valores do verdadeiro amor? Que significado tem essa palavra?</p><p>O amor, na realidade, tem um significado polivalente, tão dificil de definir que já houve quem dissesse que o amor é aquilo que se sente quando se ama, e, se perguntássemos o que se sente quando se ama, só seria possível responder simplesmente: "Amor". Este círculo vicioso deve-se ao que o insigne médico e pensador Gregório Marañon descrevia com precisão: "O amor é algo muito complexo e variado; chama-se amor a muitas coisas que são muito diferentes, mesmo que a sua raiz seja a mesma".</p><p><b>A imaturidade no amor</b></p><p>Hoje, considera-se a satisfação sexual autocentrada como a expressão mais importante do amor. Não o entendia assim o pensamento clássico, que considerava o amor da mãe pelos filhos como o paradigma de todos os tipos de amor: o amor que prefere o bem da pessoa amada ao próprio. Este conceito, perpassando os séculos, permitiu que até um pensador como Hegel, que tem pouco de cristão, afirmasse que "a verdadeira essência do amor consiste em esquecer-se no outro".</p><p>Bem diferente é o conceito de amor que se cultua na nossa época. Parece que se retrocedeu a uma espécie de adolescência da humanidade, onde o que mais conta é o prazer. Este fenômeno tem inúmeras manifestações. Referir-nos-emos apenas a algumas delas:</p><blockquote><p><i><b>- Edifica-se a vida sentimental sobre uma base pouco sólida</b></i>: confunde-se amor com namoricos, atração sexual com enamoramento profundo. Todos conhecemos algum "don Juan": um mestre na arte de conquistar e um fracassado à hora da abnegação que todo o amor exige. Incapazes de um amor maduro, essas pessoas nunca chegam a assimilar aquilo que afirmava Montesquieu: "É mais fácil conquistar do que manter a conquista".</p><p><i><b>- Diviniza-se o amor:</b></i> "A pessoa imatura - escreve Enrique Rojas - idealiza a vida afetiva e exalta o amor conjugal como algo extraordinário e maravilhoso. Isto constitui um erro, porque não aprofunda na análise. O amor é uma tarefa esforçada de melhora pessoal durante a qual se burilam os defeitos próprios e os que afetam o outro cônjuge [...]. <i>A pessoa imatura converte o outro num absoluto</i>. Isto costuma pagar-se caro. É natural que ao longo do namoro exista um <i>deslumbramento</i> que impede de reparar na realidade, fenômeno que Ortega y Gasset designou por "doença da atenção", mas também é verdade que o difícil convívio diário coloca cada qual no seu lugar; a verdade aflora sem máscaras, e, à medida que se desenvolve a vida ordinária, vai aparecendo a imagem real".(E. Rojas)</p><p>- No imaturo, o amor fica "cristalizado", como diz Stendhal, nessa fase de <i>deslumbramento</i>, e não aprofunda na "versão real" que o convívio conjugal vai desvendando. Quando o amor é profundo, as divergências que se descobrem acabam por superar-se; quando é superficial, por ser imaturo, provocam conflitos e freqüentemente rupturas.</p><p>- A pessoa afetivamente imatura desconhece que os <i>sentimentos não são estáticos, mas dinâmicos</i>. São suscetíveis de melhora e devem ser cultivados no viver quotidiano. São como plantas delicadas que precisam ser regadas diariamente. <i>"O amor inteligente exige o cuidado dos detalhes pequenos e uma alta porcentagem de artesanato psicológico ".(E.Rojas)</i></p><p>A pessoa consciente, madura, sabe que <i>o amor se constrói dia após dia</i>, lutando por corrigir defeitos, contornar dificuldades, evitar atritos e manifestar sempre afeição e carinho.</p><p><i>- Os imaturos querem antes receber do que dar</i>. Quem é imaturo quer que todos sejam como uma peça integrante da máquina da sua felicidade. Ama somente para que os outros o realizem. Amar para ele é uma forma de satisfazer uma necessidade afetiva, sexual, ou uma forma de auto-afirmação. O amor acaba por tornar-se uma espécie de "grude" que prende os outros ao próprio "eu" para completá-lo ou engrandecê-lo.</p><p>Mas esse amor, que não deixa de ser uma forma transferida de egoísmo, desemboca na frustração. Procura cada vez mais atrair os outros para si e os outros vão progressivamente afastando-se dele. Acaba abandonado por todos, porque ninguém quer submeter-se ao seu pegajoso egocentrismo; ninguém quer ser apenas um instrumento da felicidade alheia.</p><p>Os sentimentos são caminho de ida e volta; deve haver <i>reciprocidade</i>. A pessoa imatura acaba sempre queixando-se da solidão que ela mesma provocou por falta de espírito de renúncia. A nossa sociedade esqueceu quase tudo sobre o que é o amor. Como diz Enrique Rojas: "<i>Não há felicidade se não há amor e não há amor sem renúncia</i>. Um segmento essencial da afetividade está tecido de sacrifício. Algo que não está na moda, que não é popular, mas que acaba por ser fundamental".</p></blockquote><p>Há pouco, um amigo, professor de uma Faculdade de Jornalismo, referiu-me um episódio relacionado com um seu primo - extremamente egoísta - que se tinha casado e separado três vezes. No cartão de Natal, após desejar-lhe boas festas, esse professor perguntava-lhe em que situação afetiva se encontrava. Recebeu uma resposta chocante: "Assino eu e a minha gata. Como ela não sabe assinar, o faz estampando a sua pata no cartão: são as suas marcas digitais. Este animalzinho é o único que quer permanecer ao meu lado. É o único que me ama".</p><p>O imaturo pretende introduzir o outro no seu projeto pessoal de vida, em vez de tentar contribuir com o outro num projeto construído em comum. A felicidade do cônjuge, da família e dos filhos: esse é o projeto comum do verdadeiro amor. As pessoas imaturas não compreendem que a dedicação aos filhos constitui um fator importante para a estabilidade afetiva dos pais. Também não assimilaram a idéia de que, para se realizarem a si mesmos, têm de se empenhar na realização do cônjuge. Quem não é <i>solidário</i> termina solitário. Ou juntando-se a uma "gatinha", seja de que espécie for.</p></td></tr></tbody></table><br /></div></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com1tag:blogger.com,1999:blog-31341696.post-27362057889525803122011-06-11T07:39:00.006-03:002011-06-11T08:11:52.707-03:00OpenCV 2 Computer Vision Application Programming Cookbook<a href="http://sitb-images.amazon.com/Qffs+v35lerrpSVmpenxNkS/4gnjPxU/wC2CuZmk1BMOZS/eOvv5f+6XhMGEF/Sn4ZWREof/0TA=" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 300px; height: 370px;" src="http://sitb-images.amazon.com/Qffs+v35lerrpSVmpenxNkS/4gnjPxU/wC2CuZmk1BMOZS/eOvv5f+6XhMGEF/Sn4ZWREof/0TA=" border="0" alt="" /></a><br /><br />So, I was reviewing this brand new OpenCV book, from Robert Laganière, which is just amazing. It seems to be the best update to Bradsky and Kaehler's well known "Learning OpenCV", as it focus on OpenCV 2.0.<br />For someone looking for an updated reference in OpenCV, one will find lots of the new C++ API coverage, as well as a nice chapter 8 covering "Detecting and Matching Interest Points", including FAST, SIFT, and SURF features, which are a must for such a fully featured library as OpenCV.<br />Besides the attention paid to new topics, there's a good setup explanation for Qt and Visual Studio.<br />All topics are covered in a straight to the point methodology which makes of it an easy guide to consult for several topics of OpenCV.<br />The only drawback of the book would be not even mentioning OpenCV's Python API, which is great for prototyping.<br />All in all, this is a great book and it came to fulfill the needs of an OpenCV 2.0 reference the computer vision community was looking for.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-53552976596994891572010-01-30T11:48:00.006-02:002010-03-11T12:54:00.763-03:00Palestras da CP 2010Caso alguém queira fazer download das palestras da Campus Party sobre realidade aumentada, os links estão aqui:<br /><br /><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/NbFj6NA2M_s&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NbFj6NA2M_s&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br /><br /><a href="http://www.slideshare.net/dannyxyz22/campus-party-2010-realidade-aumentada-artoolkit">Realidade aumentada com ARToolkit</a><br /><br /><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/0Ik8GnzkY9g&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/0Ik8GnzkY9g&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br /><br /><a href="http://www.slideshare.net/dannyxyz22/campus-party-2010-robo-realm-opencv-3031151">Processamento de Imagens para Robótica com OpenCV e RoboRealm</a><br /><br /><br /><a href="http://www.slideshare.net/dannyxyz22/campus-party-2010-unity3d-augmented-reality">Realidade Aumentada com Unity3D (Unity3d Augmented Reality)</a>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com2tag:blogger.com,1999:blog-31341696.post-86848650351267993002010-01-04T16:43:00.001-02:002010-01-04T16:44:39.747-02:00Se queres paz...<div>preserva a criação. Eis o tema escolhido por sua Santidade, o Papa Bento XVI, para o XLIII Dia Mundial da Paz. Seguem alguns trechos desta atualíssima mensagem (para a mensagem na íntegra, cliquem <a href="http://www.vatican.va/holy_father/benedict_xvi/messages/peace/documents/hf_ben-xvi_mes_20091208_xliii-world-day-peace_po.html">aqui</a>):</div><div><br /></div><div>"Por ocasião do início do Ano Novo, desejo expressar os mais ardentes votos de paz a todas as comunidades cristãs, aos responsáveis das nações, aos homens e mulheres de boa vontade do mundo inteiro. Para este XLIII Dia Mundial da Paz, escolhi o tema: Se quiseres cultivar a paz, preserva a criação. O respeito pela criação reveste-se de grande importância, designadamente porque «a criação é o princípio e o fundamento de todas as obras de Deus»</div><div>...</div><div><br /></div><div><br /></div><div>Muitas são hoje as oportunidades científicas e os potenciais percursos inovadores, mediante os quais é possível fornecer soluções satisfatórias e respeitadoras da relação entre o homem e o ambiente. Por exemplo, é preciso encorajar as pesquisas que visam identificar as modalidades mais eficazes para explorar a grande potencialidade da energia solar. A mesma atenção se deve prestar à questão, hoje mundial, da água e ao sistema hidrogeológico global, cujo ciclo se reveste de primária importância para a vida na terra, mas está fortemente ameaçado na sua estabilidade pelas alterações climáticas. De igual modo deve-se procurar apropriadas estratégias de desenvolvimento rural centradas nos pequenos cultivadores e nas suas famílias, sendo necessário também elaborar políticas idóneas para a gestão das florestas, o tratamento do lixo, a valorização das sinergias existentes no contraste às alterações climáticas e na luta contra a pobreza. São precisas políticas nacionais ambiciosas, completadas pelo necessário empenho internacional que há-de trazer importantes benefícios sobretudo a médio e a longo prazo. Enfim, é necessário sair da lógica de mero consumo para promover formas de produção agrícola e industrial que respeitem a ordem da criação e satisfaçam as necessidades primárias de todos. A questão ecológica não deve ser enfrentada apenas por causa das pavorosas perspectivas que a degradação ambiental esboça no horizonte; o motivo principal há-de ser a busca duma autêntica solidariedade de dimensão mundial, inspirada pelos valores da caridade, da justiça e do bem comum. Por outro lado, como já tive ocasião de recordar, a técnica «nunca é simplesmente técnica; mas manifesta o homem e as suas aspirações ao desenvolvimento, exprime a tensão do ânimo humano para uma gradual superação de certos condicionamentos materiais. Assim, a técnica insere-se no mandato de “cultivar e guardar a terra” (cf. Gn 2, 15) que Deus confiou ao homem, e há-de ser orientada para reforçar aquela aliança entre ser humano e ambiente em que se deve reflectir o amor criador de Deus»</div><div>...</div><div><br /></div><div><br /></div><div><br /></div><div><br /></div><div>É cada vez mais claro que o tema da degradação ambiental põe em questão os comportamentos de cada um de nós, os estilos de vida e os modelos de consumo e de produção hoje dominantes, muitas vezes insustentáveis do ponto de vista social, ambiental e até económico. Torna-se indispensável uma real mudança de mentalidade que induza a todos a adoptarem novos estilos de vida, «nos quais a busca do verdadeiro, do belo e do bom e a comunhão com os outros homens, em ordem ao crescimento comum, sejam os elementos que determinam as opções do consumo, da poupança e do investimento».[26] Deve-se educar cada vez mais para se construir a paz a partir de opções clarividentes a nível pessoal, familiar, comunitário e político. Todos somos responsáveis pela protecção e cuidado da criação. Tal responsabilidade não conhece fronteiras. Segundo o princípio de subsidiariedade, é importante que cada um, no nível que lhe corresponde, se comprometa a trabalhar para que deixem de prevalecer os interesses particulares. Um papel de sensibilização e formação compete de modo particular aos vários sujeitos da sociedade civil e às organizações não-governamentais, empenhados com determinação e generosidade na difusão de uma responsabilidade ecológica, que deveria aparecer cada vez mais ancorada ao respeito pela «ecologia humana».</div><div>...</div><div><br /></div><div>Assim, proteger o ambiente natural para construir um mundo de paz é dever de toda a pessoa. Trata-se de um desafio urgente que se há-de enfrentar com renovado e concorde empenho; é uma oportunidade providencial para entregar às novas gerações a perspectiva de um futuro melhor para todos. Disto mesmo estejam cientes os responsáveis das nações e quantos, nos diversos níveis, têm a peito a sorte da humanidade: a salvaguarda da criação e a realização da paz são realidades intimamente ligadas entre si. Por isso, convido todos os crentes a elevarem a Deus, Criador omnipotente e Pai misericordioso, a sua oração fervorosa, para que no coração de cada homem e de cada mulher ressoe, seja acolhido e vivido o premente apelo: Se quiseres cultivar a paz, preserva a criação."</div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com1tag:blogger.com,1999:blog-31341696.post-30733276791204586752009-12-03T22:34:00.006-02:002009-12-03T22:50:07.897-02:00Visita ao CPTEC<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEzFrNZL-Y9LRuEgm2ai8yEx75QEdteqPL1OPA0ZaHqiUlW-RXAFMgRYrGXBysH_asdWeIOzlXBKahyphenhypheno4y9eNgK62MHnBQf0Y06qK-NP1Nbkjpq3LISMuGMfo4qCVycqNtEV27w/s1600-h/DSC06130.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 253px; height: 189px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEzFrNZL-Y9LRuEgm2ai8yEx75QEdteqPL1OPA0ZaHqiUlW-RXAFMgRYrGXBysH_asdWeIOzlXBKahyphenhypheno4y9eNgK62MHnBQf0Y06qK-NP1Nbkjpq3LISMuGMfo4qCVycqNtEV27w/s200/DSC06130.JPG" alt="" id="BLOGGER_PHOTO_ID_5411174949225209506" border="0" /></a><br />Nossa, hoje fiquei realmente impressionado. Graças ao fenomenal professor Jairo Panetta, pude ir conhecer o <a href="http://www.cptec.inpe.br/">Centro de Previsões de Tempo e Estudos Climáticos do INPE</a>, um dos poucos lugares com supercomputadores aqui no Brasil.<br />Foi um prazer conhecer desde o SX3 ao Cluster 1100, passando pelo Tatuí e outros. Queria deixar os meus parabéns para toda a equipe de pesquisadores e funcionários do CPTEC.<br />Sei que este post merece ser bem maior, mas queria pelo menos agora deixar algo registrado aqui. :)<br />Iremos tentar colocar parte do modelo de previsão de tempo rodando em um cluster de PlayStations 3, na arquitetura Cell. Por favor, confiram as novidades no site do projeto: <a href="http://code.google.com/p/ps3hacking">http://code.google.com/p/ps3hacking</a>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com3tag:blogger.com,1999:blog-31341696.post-79371694856566741912009-10-27T23:19:00.003-02:002009-10-27T23:26:07.776-02:00VisionBlaster lança código de integração entre Unity3D e headtrackingA empresa que desenvolve jogos em Unity3D em São Paulo, a VisionBlaster (<a href="http://www.visionblaster.com">www.visionblaster.com</a>), lançou o código fonte do streamer de 6 graus de liberdade com a FaceAPI. Com este código pode-se observar headtracking e uma espécie de realidade aumentada em que o personagem imita a movimentação do usuário. O link para o post encontra-se <a href="http://visionblaster.com/cms/index.php?option=com_content&view=category&layout=blog&id=36&Itemid=56&lang=pt">aqui</a>.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com4tag:blogger.com,1999:blog-31341696.post-9552898121440080712009-10-10T15:10:00.008-03:002009-10-19T21:53:41.597-02:00Games and TeachingJust as a remark, I'd like to put two links here that deal with the subject of using games in learning and teaching. I see an enormous potential, but I'd like to dive in a bit more before getting to conclusions. Please comment in case you have some idea or other references:<br />A book about it <a href="http://books.google.com.br/books?id=6EMOFjbABbQC&printsec=frontcover&hl=en">Games and simulations in online learning: research and development frameworks</a><br />An article discussing the fear of games: http://net.educause.edu/ir/library/pdf/eqm0830.pdf<br />Another great one: https://www.iste.org/Content/NavigationMenu/EducatorResources/YourLearningJourney/CreativityandInnovation/jrte-40-1-023-gro.pdf<br /><br />Now, some focus on useful games: <a href="http://www.gamesforchange.org/">http://www.gamesforchange.org/</a><br /><br />Another great example of using games is showing abuse felt by some people and letting the whole world know about it. I personally enjoyed the idea of Darfur is Dying. Check the <a href="http://www.darfurisdying.com/index.html">cool game here</a>.<br /><br />It seems Channel 4 has some experience in it: http://www.channel4learning.com/<br />There's an article about it here:<br /><object style="width: 420px; height: 288px;"><param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf?mode=embed&layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml&showFlipBtn=true&documentId=090907140712-590806ac9aee4d3e8d989bf93a3df509&docName=dev98_web&username=Develop&loadingInfoText=Develop%20-%20Issue%2098%20-%20September%202009&et=1255805823652&er=1"><param name="allowfullscreen" value="true"><param name="menu" value="false"><embed src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" style="width: 420px; height: 288px;" flashvars="mode=embed&layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml&showFlipBtn=true&documentId=090907140712-590806ac9aee4d3e8d989bf93a3df509&docName=dev98_web&username=Develop&loadingInfoText=Develop%20-%20Issue%2098%20-%20September%202009&et=1255805823652&er=1"></embed></object>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-3866173248836997262009-09-10T23:09:00.002-03:002009-10-27T18:22:39.055-02:00Unity3d em São PauloBem, já existe uma empresa trabalhando com Unity3D em São Paulo:<br /><a href="http://visionblaster.com/cms/index.php?option=com_content&view=section&layout=blog&id=11&Itemid=59&lang=pt">http://visionblaster.com/cms/index.php?option=com_content&view=section&layout=blog&id=11&Itemid=59&lang=pt</a><br />"A VisionBlaster cria jogos em Unity3D de acordo com os seus requisitos, seja um AdverGame, algum jogo de caráter educativo ou mesmo algum aplicativo cujo visual precisa ser feito em 3 dimensões (3D)."<br />Outras empresas, como a AlphaChannel já estão dando treinamento: <a href="http://www.alphachannel.com.br/noticia.php?id=259">http://www.alphachannel.com.br/noticia.php?id=259</a> . Esta tecnologia realmente promete.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com2tag:blogger.com,1999:blog-31341696.post-66867003127420129782009-04-13T11:06:00.004-03:002009-04-13T11:19:19.133-03:00Filtrando imagens apelativas com 'Olha o nível!'<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://olha-o-nivel.appspot.com/img/install4-small.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 372px; height: 300px;" src="http://olha-o-nivel.appspot.com/img/install4-small.gif" alt="" border="0" /></a><br />Sabe-se que atualmente muitos seqüestros de crianças estão ligados à pornografia infantil. O próprio artigo 70 do Estatuto da Criança deixa claro:<br /><br />'Art. 70. É dever de todos prevenir a ocorrência de ameaça ou violação dos direitos da criança e do adolescente. (Estatuto da Criança e do Adolescente - LEI Nº 8.069, DE 13 DE JULHO DE 1990.)'<br /><br />Visando evitar a dissipação de tais imagens, bem como diminuir o caráter apelativo de diversos sites através de imagens de violência e lembrando que a internet é uma mídia interativa, o serviço 'Olha o nível!' foi criado.<br /><br /><br /><br />Através do site: <a href="http://olha-o-nivel.appspot.com/">http://olha-o-nivel.appspot.com/</a> , pode-se baixar um plugin para o Firefox que bloqueia o aparecimento de tais imagens em uma navegação, de forma colaborativa. Assim que alguém que tenha visto alguma imagem apelativa na internet, pode reportar tal imagem para o site (clicando com o botão direito e selecionando 'Olha o nível!') de forma que outras pessoas que tenham instalado a ferramenta evitarão automaticamente o carregamento destas imagens. Desta forma, as estatísticas de carregamento de imagens apelativas irão diminuir, forçando os produtores de conteúdo a mudar o enfoque de seus sites. É claro, a ferramenta só fará sentido com um número razoável de usuários.<br /><br />De qualquer forma, fica a dica: <a href="http://olha-o-nivel.appspot.com/">http://olha-o-nivel.appspot.com/</a>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-78406558666190370122009-03-24T11:59:00.002-03:002009-04-15T18:00:19.613-03:00Python mouse move in 5 lines of code (Linux only)<div xmlns="http://www.w3.org/1999/xhtml">from Xlib import X, display<br />d = display.Display()<br />s = d.screen()<br />root = s.root<br />root.warp_pointer(300,300)<br />d.sync()<br /><br /><div class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=9290ee92-2309-48ca-a0ae-698133071f5d" class="zemanta-pixie-img" /></div></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com7tag:blogger.com,1999:blog-31341696.post-42046519410891470412009-02-27T22:36:00.001-03:002009-02-27T22:36:36.296-03:00ImageJ LiveWire plugin updates<div xmlns='http://www.w3.org/1999/xhtml'>Well, it's been around a year... or two... :)<br/>It was about time to update LiveWire to catch up with newer versions of ImageJ.<br/>The new release is here: <a href='http://sourceforge.net/projects/ivussnakes'>http://sourceforge.net/projects/ivussnakes</a><br/>For a more updated documentation, one should check: <a href='http://imagejdocu.tudor.lu/doku.php?id=plugin:segmentation:livewire_plugin:start'>http://imagejdocu.tudor.lu/doku.php?id=plugin:segmentation:livewire_plugin:start</a><br/>I hope it is still useful. Please, write me back in case you've found some installation problems.<br/>I'm also looking for someone who wishes to integrate it to the official tree of ImageJ.<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=53edecb4-1058-4252-bf47-4388f7518241' class='zemanta-pixie-img'/></div></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com2tag:blogger.com,1999:blog-31341696.post-2663058347376841222009-01-26T20:05:00.007-02:002009-03-09T19:32:20.187-03:00In the middle of bits, PWMs, wires, resin, and electromagnetic waves, TORP (CP01) was born...<div xmlns="http://www.w3.org/1999/xhtml"><img style="max-width: 800px;" src="http://farm4.static.flickr.com/3334/3229465220_9e98769739_o.jpg" height="325" width="432" /><br />January, 25th, around 8:00 pm, during Campus Party 2009, that's when TORP was firstly fully assembled for the first time.<br />The project aimed at building the first humanoid open source robot in Brazil and it was called TORP (<a href="http://www.theopenrobotproject.org/">www.theopenrobotproject.org</a>).<br />The idea was to create a robot that would work as a study platform whose modules would be able to be hot plugged and they could also be interchangeable, since it's hard to unplug a hand from one robot and to couple it to another because of the lack of standards.<br />Without prior support from public research funds, CP01 (the name of the first assembled version of TORP) was sponsored by several institutes and industries, namely: E3 Futura, Instituto Tecnológico de Aeronáutica, Universidade do Estado de São Paulo, Micropress, RIMA and Campus Party.<br />For more information about the project, I'd suggest taking a look at <a href="http://www.theopenrobotproject.org/">http://www.theopenrobotproject.org/</a> .<br />I'd really like to thank everyone from the team (please remind me if I've forgotten someone, specially contributers from Campus Party, whose names I couldn't take note):<br />Alan Morgensztern, Alexandre Simões, Esther Colombini, Guilherme Andrade, Jackson Paul Matsuura, Kauê Silva, Maira, Marcelo Franchin, Melissa Sanchez Freitas, Paulo Vitor Lima, Rafael Ribeiro da Silva, Rafael Toschi Chiafarelli, Ronaldo Carrion, Victor Nalin, and my girlfriend Kathy for all the support. Thanks for my bro and Dé for being there as well :)<br />And thank You, God, of course, for everything running smoothly :)<br /><br />If there's anyone interested in the lecture about Computer Vision, here's a link to it (Portuguese only... in case you want it in English, please leave a comment):<br /><a href="http://www.slideshare.net/dannyxyz22/campus-party-computer-vision-presentation">http://www.slideshare.net/dannyxyz22/campus-party-computer-vision-presentation</a><br /><br /><br />I've tried to gather all news about the project here:<br /><a href="http://tecnologia.terra.com.br/interna/0,,OI3470641-EI12933,00.html">http://tecnologia.terra.com.br/interna/0,,OI3470641-EI12933,00.html</a><br /><a href="http://oglobo.globo.com/tecnologia/mat/2009/01/25/apresentado-na-campus-party-primeiro-robo-livre-do-mundo-754136596.asp">http://oglobo.globo.com/tecnologia/mat/2009/01/25/apresentado-na-campus-party-primeiro-robo-livre-do-mundo-754136596.asp</a><br /><a href="http://www.gluon.com.br/blog/2009/01/25/noite-de-premiacao-na-campus-party-2009/">http://www.gluon.com.br/blog/2009/01/25/noite-de-premiacao-na-campus-party-2009/</a><br /><a href="http://colunistas.ig.com.br/tecnologia/2009/01/24/cp01-nasce-ao-vivo-na-campus-party/">http://colunistas.ig.com.br/tecnologia/2009/01/24/cp01-nasce-ao-vivo-na-campus-party/</a><br /><a href="http://www.ita.br/online/2009/noticias09/campusparty.htm">http://www.ita.br/online/2009/noticias09/campusparty.htm</a><br /><a href="http://www.unesp.br/int_noticia_2imgs.php?artigo=4041">http://www.unesp.br/int_noticia_2imgs.php?artigo=4041</a><br /><br />For photos:<br /><a href="http://www.flickr.com/photos/33142604@N00/tags/campus/">http://www.flickr.com/photos/33142604@N00/tags/campus/</a><br /><br />Please, leave your comment about TORP, we'd love to hear your feedback!</div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com3tag:blogger.com,1999:blog-31341696.post-30824882879610058102009-01-15T02:16:00.001-02:002009-01-26T20:11:08.804-02:00TORP - The Open Robot Project<div xmlns="http://www.w3.org/1999/xhtml">So, just in case some of you might be interested, here's a <a href="http://www.theopenrobotproject.org/">link</a> to the official site of TORP - The Open Robot Project (http://www.theopenrobotproject.org/). <img src="http://www.theopenrobotproject.org/show_image.php?id=7" style="max-width: 800px; float: right; margin-top: 10px; margin-bottom: 10px; margin-left: 10px;" /><br />Make sure you'll check it out at Campus Party Brasil '09 :)<br /></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com1tag:blogger.com,1999:blog-31341696.post-89767784068070238452009-01-13T23:01:00.001-02:002009-01-13T23:01:31.092-02:00Compiling OpenCV for Gumstix<div xmlns='http://www.w3.org/1999/xhtml'>It's common sense that <a href='http://sourceforge.net/projects/opencvlibrary/'>OpenCV</a> is one of the best computer vision libraries available nowadays and it's certainly very useful to benefit from it in embedded environments. There's a trade-off between locally processing images and uploading them for remote processing, but some algorithms might as well run smoothly on embedded devices. <br/><br/>In order to compile OpenCV for Gumstix, firstly one needs to download it from: <br/>http://sourceforge.net/project/showfiles.php?group_id=22870<br/><br/>The version I've testes was opencv-linux 1.1pre1, but I believe any other release will barely follow the same ideas provided here.<br/>After the file has been extracted (tar -xzvf opencv-1.1pre1.tar.gz), one should configure the environment variables for the compiler:<br/><br/>export CC=/home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-gcc<br/>export CXX=/home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-g++<br/><br/>$ ./configure --host=arm-linux --build=i686-linux --prefix=/home/developer/opencvgum --without-gthread --without-gtk --without-python --disable-apps<br/><br/>Notice that we've defined that the prefix=/home/developer/opencvgum is the place it will be installed when we type 'make install'. By the way, make sure you have created this directory. <br/>Be sure to substitute the /home/developer path to your user path, as well as the /gumstix/gumstix-oe/ to your installed gumstix environment.<br/>We've also disabled the gtk environment since we are not interested in running the GUI applications inside the gumstix. I've also disabled python and building the applications. <br/>Now that configuration has been successful. Type:<br/><br/>$ make<br/><br/><br/>And then: <br/><br/>$ make install<br/><br/>If everything went well, you'll have the binaries and samples installed to /home/developer/opencvgum<br/>Now, it would be useful to try and compile the samples so that we are sure they will run in the Gumstix. <br/>In order to build them, go to /home/developer/opencvgum/share/opencv/samples/c and edit the build_all.sh script.<br/>Make it executable:<br/><br/>$chmod +x ./build_all.sh<br/><br/>And then change all gcc and g++ to its arm-likes. My build_all.sh ended up like this:<br/><hr class='jump'/>#!/bin/sh<br/>export PKG_CONFIG_PATH=/home/developer/opencvgum/lib/pkgconfig/<br/><br/>if [[ $# > 0 ]] ; then<br/> base=`basename $1 .c`<br/> echo "compiling $base"<br/> /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-gcc -ggdb `pkg-config opencv --cflags --libs` $base.c -o $base <br/>else<br/> for i in *.c; do<br/> echo "compiling $i"<br/> /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-gcc -ggdb `pkg-config --cflags opencv` -o `basename $i .c` $i `pkg-config --libs opencv`;<br/> done<br/> for i in *.cpp; do<br/> echo "compiling $i"<br/> /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-g++ -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`;<br/> done<br/>fi<br/><hr class='jump'/>Notice that we've also defined the export PKG_CONFIG_PATH=/home/developer/opencvgum/lib/pkgconfig/ so that the correct includes and linked libraries are built correctly.<br/>Run this command and you'll notice the executable files will be created. I think that if you don't disable the flag "--disable-apps" in the configure application and make this change to the build_all.sh earlier it might also work.<br/><br/>Well, now that OpenCV has been built, you should be able to copy it to your gumstix. There's a small problem though. If you compact the files, you'll notice it's very big, so, a good idea is to delete a couple files we are sure we are not going to use. <br/>An advice would be to delete some of the haarcascades. <br/><br/>Choose some of them you are sure you won't use, like the haarcascade_profileface.xml inside the data sub-directory, for instance. Delete a couple others as well. <br/>This way, you'll be able to create a .tar.gz of around 6.5MB.<br/>When it's done, copy it to your gumstix through scp:<br/><br/>$scp opencvgum.tar.gz root@192.168.YOUR-GUM.IP:/tmp<br/><br/>Make sure you copy it to /tmp, because you'll probably be out of space copying it somewhere else.<br/>Extract it and then try to run one of the demos that does not use windows... the ./letter_recog application, for instance... it's located at:<br/>/tmp/opencvgum/share/opencv/samples/c<br/><br/>Well, you might be able to see it running. Else, some libstdc++.so is missing error could also happen.<br/>This means you don't have this library installed. One easy way to install it is through the command<br/><br/>$ipkg install libstdc++6<br/><br/>In case some other libraries are missing as well, repeat the procedure with their names. Notice that some packages have odd names.<br/>For instance, if you had typed:<br/>$ root@gumstix-custom-verdex:/usr/share$ ipkg install libstdc++ <br/><br/>Then you'd have received the following message:<br/><br/>Nothing to be done<br/>An error ocurred, return value: 4.<br/>Collected errors:<br/>Cannot find package libstdc++.<br/>Check the spelling or perhaps run 'ipkg update'<br/><br/>Actually the name of the library is libstdc++6. Make sure you type the correct library name.<br/><br/>Well, in case libstdc++ is really installed, you might as well get some error like:<br/><br/>./letter_recog: error while loading shared libraries: libcxcore.so.2: cannot open shared object file: No such file or directory<br/><br/>It means the LD_LIBRARY_PATH is not pointing at your opencv libraries. <br/>Simply type:<br/><br/>$ export LD_LIBRARY_PATH=/tmp/opencvgum/lib/ <br/><br/>You will eventually be able to run your letter_recognition application. <br/>Well, in case you want to run other applications, like the face recognition one, make sure you disable the GUI related functions and write your results to files.<br/>We'll be able to see it working at <a href='http://www.campus-party.com.br/'>Campus-Party Brasil <br/></a>Make sure you'll be there!<br/></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com6tag:blogger.com,1999:blog-31341696.post-89364139463288998122009-01-13T20:27:00.001-02:002009-01-13T21:13:52.556-02:00Gumstix UVC drivers<div xmlns='http://www.w3.org/1999/xhtml'>This post describes gumstix uvc driver installation for a Logitech QuickCam Pro 9000. It follows this wiki <a href='http://www.gumstix.net/wiki/index.php?title=Webcam_drivers_-_Mini_Howto_Part_2_-_Linux_uvc_cameras'>page</a> as a guideline.<br/>It requires that the steps in <a href='http://www.gumstix.net/wiki/index.php?title=Webcam_drivers_on_Open_Embedded_Part_1_-_pwc_driver_webcams'>this wiki</a> have been performed. <br/>Firstly check-out the old driver sources from:<br/><br/> svn co svn://svn.berlios.de/linux-uvc/linux-uvc/trunk<br/><br/>After file checkout, one should change the Makefile. <br/>Change the KERNEL_DIR var to point to your gumstix kernel path, as in:<br/><br/>KERNEL_DIR :=<br/>/home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/<br/><br/>Define the CROSS_COMPILE var:<br/><br/>CROSS_COMPILE := /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-<br/><br/>Change make lines so that they include your CROSS_COMPILE and ARCH=arm vars:<br/>From:<br/> @(make -C $(KERNEL_DIR) M=$(PWD) CROSS_COMPILE=$(CROSS_COMPILE) modules)<br/><br/>to:<br/><br/> @(make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules)<br/><br/>And from:<br/> @(make -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) modules_install)<br/>to:<br/> @(make -C $(KERNEL_DIR) M=$(PWD) ARCH=arm<br/>INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH)<br/>modules_install)<br/><br/>Now, type make uvcvideo<br/>The file uvcvideo.ko is built. This file should be copied to /lib/modules/2.6.21/kernel/drivers/media/video/uvcvideo.ko<br/><br/>Nevertheless, if you type make, you'll notice a message like:<br/><br/>-------------------------------- WARNING ---------------------------------------<br/> The USB Video Class driver has moved to http://linuxtv.org/.<br/> Using the Berlios SVN repository is now deprecated.<br/> Please check http://linux-uvc.berlios.de/ for download instructions.<br/> If you really want to compile this historical version, run 'make uvcvideo'.<br/>--------------------------------------------------------------------------------<br/>which tells us that we are using deprecated files for the driver. <br/>I've tried to use the latest drivers from the Mercurial clone repository, but I'm getting this error:<br/><br/>"/home/developer/uvc-new/uvcvideo-90c7dc24fb4d/v4l/cx18-driver.h:65:4: error: #error "This driver requires kernel PCI support." "<br/><br/>In order to build it, I've changed the root Makefile to:<br/><br/>CROSS_COMPILE := /home/developer/gumstix/gumstix-oe/tmp/cross/bin/arm-angstrom-linux-gnueabi-<br/><br/>install:<br/> $(MAKE) -C $(BUILD_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) install<br/><br/>%::<br/> $(MAKE) -C $(BUILD_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) $(MAKECMDGOALS)<br/><br/>And the v4l/Makefile to:<br/><br/>OUTDIR ?= /home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/image/lib/modules/2.6.21/build<br/>SRCDIR ?= /home/developer/gumstix/gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-gnueabi/gumstix-kernel-2.6.21-r1/image/lib/modules/2.6.21/source<br/><br/>I've tried to issue some "make -i" command, but I doubt it will work. If you've made any progress with the new drivers, feel free to comment.<br/>The old drivers have worked pretty fine as well.<br/><br/><br/></div>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com5tag:blogger.com,1999:blog-31341696.post-44221040839518602352008-12-04T14:15:00.002-02:002008-12-04T14:19:20.650-02:00Adobe Flex and Flash Face detection libraryI'm interested in developing a flex or flash library that could be used for face detection or augmented reality. I haven't found any on the web so far.<br />Just wondering how many of you are also looking for it.<br />[]'sDaniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com8tag:blogger.com,1999:blog-31341696.post-25620275977355671992008-09-17T23:24:00.004-03:002008-09-17T23:52:51.090-03:00EHCI 0.5 is now ready for PyCon Brasil 2008Well, it was about time :)<br />Ehci 0.5 has just been released and it now features Python bindings.<br /><br />It's pretty easy to use EHCI in Python. The following snippet shows how to do it in 6 lines:<br /><br /><pre class="prettyprint"><a name="Introduction"><span class="kwd">import</span><span class="pln"> ehci<br /><br />ehci</span><span class="pun">.</span><span class="pln">ehciInit</span><span class="pun">()</span><span class="pln"><br /><br /></span><span class="kwd">while</span><span class="pun">(</span><span class="lit">1</span><span class="pun">):</span><span class="pln"><br /> ehci</span><span class="pun">.</span><span class="pln">ehciLoop</span><span class="pun">(</span><span class="lit">1</span><span class="pun">,</span><span class="lit">0</span><span class="pun">)</span><span class="pln"><br /> x</span><span class="pun">,</span><span class="pln">y</span><span class="pun">,</span><span class="pln">width</span><span class="pun">,</span><span class="pln">height </span><span class="pun">=</span><span class="pln"> ehci</span><span class="pun">.</span><span class="pln">getHeadBounds</span><span class="pun">()</span><span class="pln"><br /> </span><span class="kwd">print</span><span class="pln"> </span><span class="str">"Coord ("</span><span class="pun">,</span><span class="pln">x</span><span class="pun">,</span><span class="str">","</span><span class="pun">,</span><span class="pln">y</span><span class="pun">,</span><span class="str">") width "</span><span class="pun">,</span><span class="pln">width</span><span class="pun">,</span><span class="str">"height "</span><span class="pun">,</span><span class="pln">height</span></a></pre><br />These two videos give some idea of EHCI integration with Panda3D:<br /><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/8UknCJht-Q4&hl=en&fs=1"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/8UknCJht-Q4&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" height="344" width="425"></embed></object><br /><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/qLv5fFPmOsA&hl=en&fs=1"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/qLv5fFPmOsA&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" height="344" width="425"></embed></object><br /><br />To download it, check <a href="http://code.google.com/p/ehci">http://code.google.com/p/ehci</a>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com7tag:blogger.com,1999:blog-31341696.post-5333263274749676222008-08-29T00:57:00.010-03:002008-09-08T13:57:35.131-03:00EHCI Final Report<a href="http://code.google.com/p/ehci">Official EHCI project site</a><br /><span style="display: block;" id="formatbar_Buttons"><span class="" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"></span></span><br />Well, it's the end of Google Summer of Code, and I need to say that it was great to be with Natural User Interface Group and with Google support.<br /><br />As one of the last features that was missing was the ability to browse through an image with the hands, I'd like to post this video here:<br /><center><br /><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/102Q-Dn_YhI&hl=en&fs=1&fmt=18"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/102Q-Dn_YhI&hl=en&fs=1&fmt=18" type="application/x-shockwave-flash" allowfullscreen="true" height="344" width="425"></embed></object><br /></center><br /><br />The most recent updates since last blog post are the windows binaries, as well as new hand interaction demo.<br /><br />Windows binaries 6 degrees of freedom head tracking <a href="http://ehci.googlecode.com/files/ehci-6dof-demo-Windows-0.4.zip">download</a>. This version was compiled without OpenMP support, so it's running way slower than the source one compiled with OpenMP support. It means that it won't work as fine as in Linux.<br />UPDATE: This <a href="http://ehci.googlecode.com/files/ehci-6dof-demo-Windows-0.4%28OpenMP%29.zip">new version</a> supports OpenMP<br /><br />From the updated planning, the features in red have been completed since it was re-planned: (features in blue have been removed from project planning)<br /><p><a id="Achievements_and_Future_planning">1st Month: </a></p><blockquote><span style="text-decoration: line-through;"><a id="Achievements_and_Future_planning">Hand and Head tracking</a></span><a id="Achievements_and_Future_planning">. <span style="text-decoration: line-through;">3D head tracking class</span>. <span style="text-decoration: line-through;">Small OpenGL demos</span>. </a></blockquote><p><a id="Achievements_and_Future_planning">2nd Month: </a></p><blockquote><a id="Achievements_and_Future_planning">Body tracking, and <span style="color: rgb(255, 0, 0);">gesture recognition classes</span>. <span style="color: rgb(255, 0, 0);">Zoom and rotation </span>features. <span style="color: rgb(255, 0, 0);">Documentation of classes through tutorials, code documentation and demos </span></a></blockquote><p><a id="Achievements_and_Future_planning">3rd Month: </a></p><blockquote><a id="Achievements_and_Future_planning"><span style="color: rgb(51, 51, 255);">Motion flow and 3d model wireframe tracking</span> classes. <span style="color: rgb(255, 0, 0);">Documentation. Project packaging through Google Summer of Code </span>and Natural User Interface sites. </a></blockquote>Packaging in Natural User Interface site is supposed to happen in September 3th.<br /><br />In the end, most of the initially planned features have been implemented and documented.<br /><br />I'd like to thank:<br />Everyone from OpenCV project (for creating this amazing library)<br />Pawel Solyga, NUI (for being such a great mentor)<br />Thomás Cavichioli Dias, ITA (for teaching me how to use OpenCV as well as for giving me depth information on how to use and create cascade classifiers) <em style="font-style: italic;"></em><br />Juan Wachs, BGU, Israel (for creating hand detection cascade)<br />Stefano Fabri, Sapienza - Università di Roma (for all the interesting papers, articles and attention)<br />Roman Stanchak, OpenCV (for all the help with Swig and Python interfaces)<br />Len Van Der Westhuizen (for creating and releasing the head model used throughout the project)<br />Vincent Lepetit, Computer Vision laboratory, EPFL (for the great survey and advices)<br />Mike Nigh (for the Irrlicht work)<br />Jared Contrascere, Bowling Green (for the OpenCV/Ehci/Windows work)<br />my professors at Instituto Tecnológico de Aeronáutica (for all the knowledge taught)<br />Johnny Chung Lee, Carnegie Mellon (for his great ideas with Wii)<br />everyone else that I'm unfortunately forgetting, and<br />my girlfriend Kathy, family and friends (for supporting me through the project),<br />and, of course, God, Who has given me the strength, love and support to carry this project!Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com9tag:blogger.com,1999:blog-31341696.post-77400320523699631082008-08-06T02:19:00.013-03:002008-08-14T01:56:06.523-03:00EHCI Updates - Version 0.4 has just been released<span style="font-style: italic;">(check project </span><span style="font-style: italic;">site</span><span style="font-style: italic;"> at </span><a style="font-style: italic;" href="http://code.google.com/p/ehci">http://code.google.com/p/ehci</a><span style="font-style: italic;">)</span><br />EHCI (Enhanced Human Computer Interface) now features packaging through a tarball. Installation is supposed to be as simple as <span style="font-style: italic;">configure, make, make install</span>. Besides easier installation, the new version has several features, like:<br /><br />- New features:<br /><ul><li>Hand detection/tracking: now users can interact with the computer using their hands (notice that no accessory besides an ordinary web cam is being used).<br /></li></ul><br /><center><br /><object height="344" width="425"><param name="movie" value="http://www.youtube.com/v/BEMEeCDJ-3I&hl=en&fs=1"><param name="allowFullScreen" value="true"><embed src="http://www.youtube.com/v/BEMEeCDJ-3I&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" height="344" width="425"></embed></object><br />The result can also be seen in a noisier environment in this <a href="http://www.youtube.com/watch?v=JhPDEviPZXI">video</a>.<br /></center><br /><br /><ul><li>Enhanced lightning model/more robust algorithm: this <a href="http://www.youtube.com/watch?v=NNVaU2eOcbs">video</a> shows the new lightning model, as well as the 6 degrees of freedom head tracking in a noisy environment. </li></ul>- New API:<br /><ul><li>EHCI's new API focuses simple functions, so that developers can completely abstract the OpenCV layer. Example functions:</li></ul><blockquote style="font-style: italic;">while(1){<br />ehciLoop(EHCI2DFACEDETECT,0);<br />getHeadBounds(&upperX,&upperY,&headWidth,&headHeight);<br />}<br /></blockquote>- Installation procedure:<br /><ul><li>Autotools based installation is now available: a simple ./configure ./make ./make install should be enough to get developers able to use EHCI library</li><li>A distribution tarball is easily downloadable from ehci project site<br /></li></ul><br />- Updated documentation:<br /><ul><li>new demos (simple2d and simple3d)</li><li>cleaned up code (boxView3d and 6dofhead have been cleaned up)</li><li>tutorials have been posted on project wiki<br /></li><li>the project now features doxygen documentation</li></ul><br />- Robust algorithms:<br /><ul><li>6 degrees of freedom now considers up to 200 feature points to track, which provides better tracking</li><li>Enhancements to the algorithm have been researched and are on the way and documented<br /></li></ul>- Lightning model working:<br /><ul><li>6 degrees of freedom sample now considers normals for accurate lighting</li><li>Blending functions as well as a single glut layer have been added</li></ul>- Tagged versions:<br /><ul><li>SVN tag directory is being updated accordingly</li></ul>- Python bindings:<br /><ul><li>Python bindings are on the way. SWIG is being researched, as well as some drafts have been developed.<br /></li></ul>Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com0tag:blogger.com,1999:blog-31341696.post-14669260610680677192008-07-11T00:30:00.004-03:002008-07-11T00:32:56.367-03:00ITA Latex Users Society - ITALUSQueria deixar um link para o projeto de uso de latex no ITA. Aqui vai uma breve descrição e o link:<br /><br /><a href="http://code.google.com/p/italus">http://code.google.com/p/italus</a><br /><br />Este projeto visa difundir o uso de latex em teses do Instituto Tecnológico de Aeronáutica, tanto para alunos da graduação como para alunos do mestrado e doutorado. O trabalho hospedado neste site é composto por templates para geração das teses nos formatos requisitados pela instituição.<br />Conta-se com o apoio de todos os usuários, tanto na requisição de novas funcionalidades, como para atender a uma nova especificação do ITA, ou mesmo para "codificar" estas alterações.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com1tag:blogger.com,1999:blog-31341696.post-89160249064065456622008-07-08T16:14:00.007-03:002008-07-08T17:08:51.471-03:00Adding keywords to eclipse rcp preferences lookup (search text field)One might need to add more words to eclipse preference search bar while developing an RCP application. By default, it only looks up for the preference page title. In order to add new keywords, one needs to add a keyword reference and a keyword extension point.<br />Supposing the plugin.xml has the following sample page:<br /><br /><extension point="org.eclipse.ui.preferencePages"><br /> <page class="testercp.preferences.SamplePreferencePage" id="testercp.preferences.SamplePreferencePage" name="Sample Preferences"><br /> </page><br /></extension><br /><br />Add a keyword reference through:<br /><br /><extension point="org.eclipse.ui.preferencePages"><br /> <page class="testercp.preferences.SamplePreferencePage" id="testercp.preferences.SamplePreferencePage" name="Sample Preferences"><br /> <keywordreference id="marte.keywords.preferences"><br /> </keywordreference><br /></page></extension><br /><br />And then, add the keyword extension point as:<br /><br /><extension point="org.eclipse.ui.keywords"><br /> <keyword id="marte.keywords.preferences" label="velocity stopping point"><br /> </keyword></extension><br /><br />Now, if anyone types <span style="font-weight:bold;">velocity</span>, <span style="font-weight:bold;">stopping</span>, or <span style="font-weight:bold;">point</span> it will bring the SamplePreferencePage.<br /><br />There's also a way to add these extensions through the wizards.Daniel Lélis Baggiohttp://www.blogger.com/profile/15840721206664035183noreply@blogger.com1