JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 技巧文件  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 How to use a Logitech WebCam in Java [精華]
Eva

甜膩的酒窩



發文: 101
積分: 1
於 2003-06-22 18:30 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I do this for the students who are enrolled at Robotics Class.
For someone who are interesting in JMF, it may be helpful.

http://ltu164.ltu.edu/itseng/version.htm


Eva edited on 2003-06-22 19:37
reply to postreply to post
作者 Re:JMF (Java Media FrameWork) [Re:Eva]
browser

戀香

版主

發文: 3570
積分: 1
於 2003-06-22 18:39 user profilesend a private message to usersend email to browserreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Eva wrote:
I do this for my professor's Robot class.
For someone who are interesting in JMF, it may be helpful.

http://ltu164.ltu.edu/itseng/version.htm


標題不如改為

How to use a Logitech WebCam in Java

我想會更吸引人 .. Tongue


reply to postreply to post
作者 Re:JMF (Java Media FrameWork) [Re:browser]
Eva

甜膩的酒窩



發文: 101
積分: 1
於 2003-06-22 18:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
browser wrote:
標題不如改為

How to use a Logitech WebCam in Java

我想會更吸引人 .. Tongue

Yes, Sir! Wink


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
x8zmac





發文: 17
積分: 0
於 2003-06-28 17:29 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
能不能用支援640*480的logitech web cam來擷取影像

reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:x8zmac]
Eva

甜膩的酒窩



發文: 101
積分: 1
於 2003-06-29 00:41 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
x8zmac wrote:
能不能用支援640*480的logitech web cam來擷取影像


Sure!
I tried "QuickCam Pro 4000" and "QuickCam Express".

In fact, I think it works not only for Logitech's camera but also others.
The point is that I try to demonostrate how to get vision data by USB port and JAVA.

Enjoy it!

SmileSmileSmileSmileSmileSmileSmile


Eva edited on 2003-06-29 12:35
reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
x8zmac





發文: 17
積分: 0
於 2003-06-29 10:33 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sony或是其他中高階攝影機
能不能做擷取來源


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
Eva

甜膩的酒窩



發文: 101
積分: 1
於 2003-06-29 12:32 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
In fact, I don't know!

Since my department doesn't have budget to buy expensive one,Clown
I never tried that.

If you can connect camera with laptop by USB, I guess it works after you modified some code at the file of "video.properites".

If it works, please let me know.
Good luck!Big Smile


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
yuzhang





發文: 3
積分: 0
於 2003-07-04 22:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我實作真的可以~_~,但我比較想放在web上,有誰可以把它放在java applet 上的請給個樣本吧 3Q~~

reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:yuzhang]
Eva

甜膩的酒窩



發文: 101
積分: 1
於 2003-07-05 12:09 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
yuzhang wrote:
我實作真的可以~_~,但我比較想放在web上,有誰可以把它放在java applet 上的請給個樣本吧 3Q~~


請問一下 你是用WebCam 還是 中高階攝影機 ??
突然想到 我也可以請我教授去跟EE借那台貴死人的攝影機來玩玩說

applet??
你是指把我那個test.java 轉為Applet嗎??


Eva edited on 2003-07-05 12:17
reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
yuzhang





發文: 3
積分: 0
於 2003-07-05 12:40 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不好意思
我用的是logitech QuickCam Messenger,一般貨,畫質不是很理想,先買來試試看可不可以用。
目前我在試
1.我看每一秒抓一張圖,然後再從對applet 每秒show 圖。
如果可以抓圖存在某地方,那其他的source code 我有,我應該可以解決
2.最好是可以後記憶體直接丟給applet。
不過我還在試,但還有試出來
如果誰試出來的話,請分享一下3q


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
sog



發文: 0
積分: 0
於 2003-07-08 18:51 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
yuzhang 參考我們研究室學弟弄得小東東..

http://140.116.86.173/webcam/index4.html


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:sog]
browser

戀香

版主

發文: 3570
積分: 1
於 2003-07-08 21:23 user profilesend a private message to usersend email to browserreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sog wrote:
yuzhang 參考我們研究室學弟弄得小東東..

http://140.116.86.173/webcam/index4.html


sog .. That's cool ....
你可以多做一些簡短的介紹嗎 ...


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:browser]
sog



發文: 0
積分: 0
於 2003-07-09 02:01 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
本來學弟也是想要使用JMF的..
但是因為只是做好的玩..所以只是採用現成的WebCam軟體..
讓他每一秒鐘產生一個jpg檔案..
再使用Applet貼圖即可...
快速又方便...不過效果有點爛...Tongue

browser wrote:
sog .. That's cool ....
你可以多做一些簡短的介紹嗎 ...


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
peterabcd





發文: 13
積分: 0
於 2003-07-09 09:44 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
i used Sanyo MZ3 digital camera,
it works!!!!
well done and thx for share!!


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:sog]
yuzhang





發文: 3
積分: 0
於 2003-07-09 23:53 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sog wrote:
yuzhang 參考我們研究室學弟弄得小東東..

http://140.116.86.173/webcam/index4.html

感恩喔


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
sursino



發文: 0
積分: 0
於 2003-07-24 20:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
I have worked on an application that uses logica webcam to capture
picture and display on webpages.
That application does not work with high-end DV.
I thought the problem was that JMF only supports Vfw driver and now
most hardware vendor only release WDM driver for Win2K/XP. The result
is that JMF application would not work.
Hope this helps in case you have problem using high-end DV as video
source for your JMF app. which works with logica webcam.
HOWEVER, if your application works fine with both video sources.....please
share your insight =)


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
alnetkane





發文: 1
積分: 0
於 2003-08-23 16:00 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我看了文件,也寫了幾個影像處理的程式,發覺處理速度很慢!!!
請問,有解決的方法嗎?


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
chuang5089





發文: 254
積分: 0
於 2004-04-22 21:21 user profilesend a private message to usersend email to chuang5089reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Hi all members

when i saw you introducation for

How to use a Logitech WebCam in Java this subject quite interested to me
and when i follow you direction to install everything and you test.java class ... after that when i run it on my pc , it came out some error code which it called
1
2
3
4
5
6
Requested format not supported
Exception in thread "main" java.lang.NullPointerException
        at Test.<init>(Test.java:46)
        at Test.main(Test.java:82)
 
image1 = vision1.getBufferedImage();


can you please tell what's wrong with my webcam or my step
thanks you

my webcam condication is

Intel USB Video Camera III


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
chuang5089





發文: 254
積分: 0
於 2004-04-22 21:28 user profilesend a private message to usersend email to chuang5089reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
when i open JMStudio -> file -> preference -> capture Devices
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
15. javax.media.format.AudioFormat
  LINEAR, 22050.0 Hz, 8-bit, Mono, Unsigned
16. javax.media.format.AudioFormat
  LINEAR, 16000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
17. javax.media.format.AudioFormat
  LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed
18. javax.media.format.AudioFormat
  LINEAR, 16000.0 Hz, 8-bit, Stereo, Unsigned
19. javax.media.format.AudioFormat
  LINEAR, 16000.0 Hz, 8-bit, Mono, Unsigned
20. javax.media.format.AudioFormat
  LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
21. javax.media.format.AudioFormat
  LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
22. javax.media.format.AudioFormat
  LINEAR, 11025.0 Hz, 8-bit, Stereo, Unsigned
23. javax.media.format.AudioFormat
  LINEAR, 11025.0 Hz, 8-bit, Mono, Unsigned
24. javax.media.format.AudioFormat
  LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
25. javax.media.format.AudioFormat
  LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
26. javax.media.format.AudioFormat
  LINEAR, 8000.0 Hz, 8-bit, Stereo, Unsigned
27. javax.media.format.AudioFormat
  LINEAR, 8000.0 Hz, 8-bit, Mono, Unsigned
 


what's does that mean by it
i guess my camera it does support this program
i am right or wrong ?


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:chuang5089]
Duncan

還隱隱作痛

版主

發文: 7816
積分: 39
於 2004-04-22 22:32 user profilesend a private message to usersend email to Duncanreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
chuang5089 wrote:
when i open JMStudio -> file -> preference -> capture Devices

what's does that mean by it
i guess my camera it does support this program
i am right or wrong ?


press [Detect Capture Devices] button in this tab。


reply to postreply to post

給我
辣味豆腐 其餘免談
作者 Re:How to use a Logitech WebCam in Java [Re:alnetkane]
Duncan

還隱隱作痛

版主

發文: 7816
積分: 39
於 2004-04-22 22:41 user profilesend a private message to usersend email to Duncanreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
alnetkane wrote:
我看了文件,也寫了幾個影像處理的程式,發覺處理速度很慢!!!
請問,有解決的方法嗎?


是指顯示很慢,還是影像處理很慢?多慢?


reply to postreply to post

給我
辣味豆腐 其餘免談
作者 Re:How to use a Logitech WebCam in Java [Re:chuang5089]
Duncan

還隱隱作痛

版主

發文: 7816
積分: 39
於 2004-04-22 22:51 user profilesend a private message to usersend email to Duncanreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
chuang5089 wrote:
1
2
3
4
5
6
Requested format not supported
Exception in thread "main" java.lang.NullPointerException
        at Test.<init>(Test.java:46)
        at Test.main(Test.java:82)
 
image1 = vision1.getBufferedImage();


can you please tell what's wrong with my webcam or my step
thanks you

my webcam condication is

Intel USB Video Camera III


如果你在 JMStudio 裡有偵測到你的 WebCam driver,那麼你改一下 video.properties 中的 colour-depth property 成 16 or 24 (bits)試試,你跑不起來是因為不支援 32 bit depth。


reply to postreply to post

給我
辣味豆腐 其餘免談
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
Duncan

還隱隱作痛

版主

發文: 7816
積分: 39
於 2004-04-23 23:53 user profilesend a private message to usersend email to Duncanreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Eva wrote:
I do this for the students who are enrolled at Robotics Class.
For someone who are interesting in JMF, it may be helpful.

http://ltu164.ltu.edu/itseng/version.htm


網頁上的 Test 程式要改,delay 1 ms 太短了,改成 33 ms(約 frame rate: 30) 在我的 K7 550 跑起來都不是很順了。

用 JMF 附的 JMStudio 來使用 WebCam,播放起來(也可以 export 成檔案)流暢多了多了(我裝 Performance Pack for Windows 有用 native code)。


reply to postreply to post

給我
辣味豆腐 其餘免談
作者 Re:How to use a Logitech WebCam in Java [Re:Eva]
chuang5089





發文: 254
積分: 0
於 2004-04-24 02:09 user profilesend a private message to usersend email to chuang5089reply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在 JMStudio 裡有偵測到你的 WebCam driver = Yes
那麼你改一下 video.properties 中的 colour-depth property 成 16 or 24 (bits)試試 = Yes

But it still does not work on this program ..
1
2
3
4
5
Requested format not supported
Exception in thread "main" java.lang.NullPointerException
        at Test.<init>(Test.java:47)
        at Test.main(Test.java:83)
 


any idea for it .. It may be my WebCam problem or something else ?

Best


reply to postreply to post
作者 Re:How to use a Logitech WebCam in Java [Re:chuang5089]
Duncan

還隱隱作痛

版主

發文: 7816
積分: 39
於 2004-04-24 02:54 user profilesend a private message to usersend email to Duncanreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
chuang5089 wrote:
在 JMStudio 裡有偵測到你的 WebCam driver = Yes
那麼你改一下 video.properties 中的 colour-depth property 成 16 or 24 (bits)試試 = Yes

But it still does not work on this program ..


啟動 JMStudio,執行 File->Capture,選擇你的 WebCam device,拉下 [Video Size] and [Bits per pixel] combo box 看看到底你的 WebCam 支援什麼。

你可以順便就以 JMStudio 來從你的 WebCam 擷取影像,來確保 driver 沒問題。


reply to postreply to post

給我
辣味豆腐 其餘免談
go to first page go to previous page  1   2  go to next page go to last page
» JWorld@TW »  Java 技巧文件

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8