HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2007
0426
hsp2ǯÀ¸USB¥«¥á¥é¤Î¥×¥í¥Ñ¥Æ¥£¡¼8̤²ò·è


hsp2ǯÀ¸

¥ê¥ó¥¯

2007/4/26(Thu) 12:21:50|NO.7759

USB¥«¥á¥é¤Î½ÐÎÏ¥µ¥¤¥º¤ä¥Õ¥ì¡¼¥àΨ¤òÀßÄꤹ¤ë¥¹¥È¥ê¡¼¥à·Á¼°¤Î¥×¥í¥Ñ¥Æ¥£¡¼¤òµ¯Æ°¤¹¤ë¤Ë¤Ï
¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤¹¤«¡©
¤Þ¤¿Ê£¿ô¤Î¥­¥ã¥×¥Á¥ã¡¼¥Ç¥£¥Ð¥¤¥¹¤«¤é1¤Ä¤òÁªÂò¤¹¤ë¥À¥¤¥¢¥í¥°¤òɽ¼¨¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎÉ
¤¤¤Î¤Ç¤¹¤«¡©
¹ç¤ï¤»¤Æ¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


HSP2ǯÀ¸

¥ê¥ó¥¯

2007/5/6(Sun) 17:30:00|NO.8090

狼¤é¤âÊÖÅú¤Ê¤¤¤Î¤Ç¼ÁÌä¤Î¤«¤¿¤Á¤ò¤«¤¨¤Þ¤¹¡£

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_capdlgvideoformat.asp

MSDN¤Î¢¬¤Ë¤è¤ë¤È°Ê²¼¤ÎAPI¤ò¼Â¹Ô¤ë¤È¥Ó¥Ç¥ª¥Õ¥©¡¼¥Þ¥Ã¥È¥À¥¤¥¢¥í¥°¤òɽ¼¨¤Ç¤­¤ë¤è¤¦¤Ê¤Î¤Ç¤¹¤¬
¤É¤Î¤è¤¦¤Ë¤·¤ÆHSP¤«¤é¸Æ¤Ó½Ð¤·¤¿¤éÎɤ¤¤Î¤«Ê¬¤ê¤Þ¤»¤óWINAPI¤Ë¶¯¤¤Êýµ¹¤·¤¯¤ª´ê¤¤Ãפ·¤Þ¤¹¡£

BOOL capDlgVideoFormat(
hwnd );

Parameters
hwnd Handle to a capture window.



Kpan

¥ê¥ó¥¯

2007/5/6(Sun) 20:31:19|NO.8091

¤½¤ÎÊýÌ̤ξðÊó¤Ï³§Ìµ¤Ê¤Î¤Ç¡¢¤¢¤¯¤Þ¤Ç¤½¤Î¥Ú¡¼¥¸¤ò¸«¤¿¸Â¤ê¤Ç¤ÎÏÃ
¤Ç¤¹¤¬¡¢ËÜÍè¸Æ¤Ö¤Ù¤­¥á¥Ã¥»¡¼¥¸¤Ï¡ÖWM_CAP_DLG_VIDEOFORMAT¡×¤Ç¤¹¡£
¡ÖcapCreateCaptureWindow¡×´Ø¿ô¤ÇºîÀ®¤·¤¿¥­¥ã¥×¥Á¥ã¥¦¥£¥ó¥É¥¦¤Ë
¤½¤Î¥á¥Ã¥»¡¼¥¸¤òÁ÷¤ë·Á¡©

http://www.codeproject.com/useritems/webcamcapture.asp



¤ê¤µ

¥ê¥ó¥¯

2007/5/6(Sun) 21:58:57|NO.8096

¤³¤ó¤Ë¤Á¤ï¡¢¤ê¤µ¤Ç¤¹¡£

>¤½¤ÎÊýÌ̤ξðÊó¤Ï³§Ìµ¤Ê¤Î¤Ç¡¢¤¢¤¯¤Þ¤Ç¤½¤Î¥Ú¡¼¥¸¤ò¸«¤¿¸Â¤ê¤Ç¤ÎÏÃ

¤¢¤¿¤·¤âÁ´¤¯ÃΤé¤Ê¤¤¤·¡¢¡ÖUSB¥«¥á¥é¤Ã¤Æ²¿¡©¡×¤Ã¤Æ¤¤¤¦´¶¤¸¤Ê¤ó¤Ç¤¹¤¬¡¢
¤Á¤ç¤Ã¤ÈÄ´¤Ù¤Æ¤ß¤Þ¤·¤¿¡£

>capCreateCaptureWindow´Ø¿ô¤ÇºîÀ®¤·¤¿¥­¥ã¥×¥Á¥ã¥¦¥£¥ó¥É¥¦¤Ë
>¤½¤Î¥á¥Ã¥»¡¼¥¸¤òÁ÷¤ë·Á¡©

¤Ê¤Î¤Ç¤¢¤ì¤Ð¡¢

#define WM_CAP_DLG_VIDEOFORMAT 0x00000429 #uselib "VFW32.dll" #cfunc capCreateCaptureWindow "capCreateCaptureWindowA" sptr,sptr,sptr,sptr,sptr,sptr,sptr,sptr nWnd = "WindowName" hCWnd = capCreateCaptureWindow( varptr(nWnd), WS_XXXXX, 0, 0, 320, 480, hWnd, id ) SendMsg hCWnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0

¤ß¤¿¤¤¤Ê´¶¤¸¤À¤È»×¤¦¤Î¤Ç¤¹¤¬¡¦¡¦¡¦Æ°ºî¤Ï¤·¤Þ¤»¤ó¡£

¶Ä¤Ã¤Æ¤ª¤é¤ì¤ëcapDlgVideoFormat¤Ç¤¹¤¬¡¢¤³¤ì¤ÏVFW.h¤È¤¤¤¦¥Ø¥Ã¥ÀÆâ¤Ç

#define capDlgVideoFormat(hwnd) ((BOOL)AVICapSM(hwnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0L))
¤ÈÄêµÁ¤µ¤ì¤Æ¤¤¤ë¤À¤±¤Î¥Þ¥¯¥í¤À¤È»×¤¤¤Þ¤¹¡£
¤¢¤È¡¢¤³¤ÎAVICapSM¤Ç¤¹¤¬¡¢¤³¤ì¤ÏƱ¤¸¤¯VFW.hÆâ¤Ç¡¢

#define AVICapSM(hwnd,m,w,l) ( (IsWindow(hwnd)) ? ::SendMessage(hwnd,m,w,l) : 0)
¤ÈÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤·¤¿¡£

¤½¤ì¤é¤ò¹Í¤¨¤¿¤é¾å¤Î¤è¤¦¤Ê¥¹¥¯¥ê¥×¥È¤Ë¤Ê¤Ã¤¿¤Î¤Ç¡¢¤½¤ì¤À¤±¤´Êó¹ðÃפ·¤Þ¤¹¡£
¡Ê´°Á´¤Ë¸«Åö³°¤ì¤Îͽ´¶¤¬¤¹¤ë¤Î¤Ç¡¢»²¹Í¤Ë¤Ï¤Ê¤é¤Ê¤¤¤«¤È»×¤¤¤Þ¤¹¡Ë

¼ºÎ餷¤Þ¤·¤¿¡£



HSP2ǯÀ¸

¥ê¥ó¥¯

2007/5/7(Mon) 21:00:13|NO.8118

³§¤µ¤ó¾ðÊ󤢤꤬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£

VFW32.dll¤ÏVideo for Window¤ÎDLL¤ÇWinXP´Ä¶­¤Ç¤Ï¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Í¡£¤Á¤Ê¤ß¤ËDirectShow
¤ÎAPI¤Ç¤Ï
DsUtils.ShowCapPinDialog(captureGraphBuilder, captureFilter, this.Handle);
¤é¤·¤¤¤Ç¤¹¤Ç¤¹¤¬Í¾·×Æñ¤·¤¯¡¢¤Þ¤¿²¿¤ÎDLL¤ò»È¤Ã¤¿¤éÎɤ¤¤Î¤«Ê¬¤«¤ê¤Þ¤»¤ó¡£

¤µ¤é¤ËHSP3.1¦Â8¤«¤éƱº­¤ÎHSPCV¤ÎOpenCV¢­¤Ç¤Ï
http://robotics.elec.nara-k.ac.jp/opencv/cvcam.rtf#_Toc517241053

cvcamGetProperty(int camera, const char* property, void* value);
¤ÇƱÍͤÎDIALOG¤ò³«¤±¤ë¤é¤·¤¤¤Î¤Ç¤¹¤¬ÄêµÁ¥Õ¥¡¥¤¥ë¤Î½ñ¤­Êý¤â???¤Ç¤¹
int camera¡§cameraID?¡¡ºÇ½é¤Ë¸«¤Ä¤«¤Ã¤¿¥«¥á¥é¤Ï0¤«¤Ê¡©
const char* property:CVCAM_VIDEOFORMAT¤È»ØÄꤹ¤ì¤ÐOK¡©
void* value¡§NULL¡¡¢«¤³¤ì¤Ï¤É¤¦¤¹¤ë¤Î¡©

DLL¤Ï¿·¤¿¤Ë¼«Ê¬¤Çºî¤é¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤Î¤Ç¤¹¤«¡©

¤É¤ÎAPI¤ò»È¤Ã¤Æ¤Ç¤â¼Â¸½¤·¤¿¤¤¤Î¤Ç¤¹¤¬....
¤³¤ì¤¬½ÐÍè¤ë¤ÈHSP¤ÇWEB¥«¥á¥é¤ò»È¤Ã¤¿¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎÈϰϤ¬ÂçÉý¤Ë¹­¤¬¤ê¤Þ¤¹¡£



Kpan

¥ê¥ó¥¯

2007/5/7(Mon) 21:06:04|NO.8119

capCreateCaptureWindow´Ø¿ô¤Ï¡¢¡Öavicap32.dll¡×¤Ç¤¹¡£



a

¥ê¥ó¥¯

2007/5/7(Mon) 21:14:28|NO.8121

¿Í¤Ëʹ¤¤¤Æ¤Ç¤âº£¤¹¤°¼Â¸½¤µ¤»¤¿¤¤¡©
£±Ç¯¸å¤Î¼Â¸½¤Ç¤â¤¤¤¤¤«¤é¼«Ê¬¤Ç¤¤¤í¤¤¤íõ¤·¤¿¤¤¡©



¤ê¤µ

¥ê¥ó¥¯

2007/5/7(Mon) 22:17:32|NO.8127

>capCreateCaptureWindow´Ø¿ô¤Ï¡¢¡Öavicap32.dll¡×¤Ç¤¹
­ô¡Ê¡±¢¢¡±¡¿
¤½¤ÎÄ̤꤫¤â¤·¤ì¤Þ¤»¤ó¡¢¤¹¤ß¤Þ¤»¤ó¡£
¿§¡¹Ãµ¤·¤Æ¤¤¤¿¤é¡¢¤´¤Á¤ã¤´¤Á¤ã¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£

õ¤»¤Ðõ¤¹¤Û¤Éº®Í𤷤Ƥ­¤Æ¡¢
>¤½¤·¤Æ¡¢vfw32.dll¤¬Ìµ¤¤¤Î¤Ç¡¢avicap32.dll¤ò¡¢vfw32.dll¤È¤¤¤¦Ì¾Á°¤Ç¥³¥Ô¡¼¤·¤Æ¤ª¤¯
¤È¤¤¤¦Ê¸¤ò¸«¤Ä¤±¤¿¤È¤­¤Ë¤Ï¤µ¤Ã¤Ñ¤ê¤Ë¤Ê¤ê¤Þ¤·¤¿¡ÊÎÞ
¡Ê»÷¤Æ¤ë¤â¤Î¤Ê¤ó¤Ç¤·¤ç¤¦¤«¡©¡Ë

¤È¤³¤í¤Ç¡¢DLL̾¤òÊѤ¨¾å¤Î¥¹¥¯¥ê¤ò¼Â¹Ô¤¹¤ë¤È¡¢

#uselib "avicap32.dll" #cfunc capCreateCaptureWindow "capCreateCaptureWindowA" ¡Êά¡Ë #define WM_CAP_DLG_VIDEOFORMAT 0x00000429 #define WS_CHILD 0x40000000 #define WS_VISIBLE 0x10000000 hCWnd = capCreateCaptureWindow( "WindowName", WS_CHILD|WS_VISIBLE, ¡Êά¡Ë SendMsg hCWnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0
NULL°Ê³°¤¬Ê֤äƤ­¤Æ¤¤¤ë¤Î¤Ç¡¢
¥Ï¥ó¥É¥ë¤ò¼èÆÀ½ÐÍè¤Æ¤¤¤ë¤È»×¤¦¤Î¤Ç¤¹¤¬¡¢¤É¤¦¤Ç¤·¤ç¤¦¤«¡©

¤¢¤È¡¢¤â¤¦´Ø·¸¤Ê¤¤¤Ç¤¹¤¬¡¢vfw32.dll¤Ï¥Ø¥Ã¥À¤È¥½¡¼¥¹ÉÕ¤­¤Ç¸«¤Ä¤±¤Þ¤·¤¿¡£
http://www.eqchem.s.u-tokyo.ac.jp/~fumi/workshop/lavbiew_tools/usb_camera/usb_camera.html

¤ªÎϤˤʤ줺¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£



f

¥ê¥ó¥¯

2007/7/7(Sat) 02:36:36|NO.9343

age



ONION software Copyright 1997-2023(c) All rights reserved.