Está en la página 1de 14

1.

Tengo una app bastante completa de nominas laborales, pero quisiera


agregarle un extra, y es que cuando se le da de alta a un nuevo empleado,
quisiera que el form de registro, se pudiera conectar con una camara (acepto
sugerencia de marcas y modelos), que en un boton de capturar imagen, pueda
tomar la fotografia y guardarla en el disco duro en una ubicacion determinada.
Agradezco sus comentarios.

Para conocer a las personas, ve la forma como trata a sus inferiores, no a sus
iguales.
Citar

2.

26/05/2007, 14:56#2

Garfield
Senior MemberExpert@
Fecha de ingreso
18 mar, 07
Mensajes
467

Lo que tengo yo ms menos es:


Modulo para captura la imagen desde una camara:
Public Declare Function SendMessage Lib "USER32" Alias "SendMessageA" (ByVal
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As
Long
Public Declare Function capCreateCaptureWindow Lib "avicap32.dll" Alias
"capCreateCaptureWindowA" (ByVal lpszWindowName As String, ByVal dwStyle As
Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As
Long, ByVal hwndParent As Long, ByVal nID As Long) As Long
Public mCapHwnd As Long
Public
Public
Public
Public

Const
Const
Const
Const

CONNECT As Long = 1034


DISCONNECT As Long = 1035
GET_FRAME As Long = 1084
COPY As Long = 1054

Lo que va con el botn capturar:


'Setup a capture window (You can replace "WebcamCapture" with watever you
want)
mCapHwnd = capCreateCaptureWindow("WebcamCapture", 0, 0, 0, 640, 480,
Me.hwnd, 0)
'Connect to capture device
DoEvents: SendMessage mCapHwnd, CONNECT, 0, 0
Lo que sigue lo coloque en un Timer para poder obtener varias fotos por
segundo y dar la imagen de que se esta viendo un video en tiempo real de
la camara. Si quieres lo puedes colocar junto con las lneas anteriores en
un Clic de un comand que sera el encargado de capturar la foto.
On Error Resume Next

'Get Current Frame


SendMessage mCapHwnd, GET_FRAME, 0, 0
'Copy Current Frame to ClipBoard
SendMessage mCapHwnd, COPY, 0, 0
'Put ClipBoard's Data to picOutput
picOutput.Picture = Clipboard.GetData
'Clear ClipBoard
Clipboard.Clear
Aqui va el cdigo que graba una imagen de un picture en formato BMP, la
segunda lnea es la que llama a la fnucin DLL encargada de recomprimir el
BMP a JPG.
On Error Resume Next
SavePicture CaptureWindow(picOutput.hwnd, True, 0, 0, (picOutput.Width /
Screen.TwipsPerPixelX) - 4, (picOutput.Height / Screen.TwipsPerPixelY) - 4),
"c:\tmp.bmp"
Capturar = DIWriteJpg(Ruta, 20, 0)
Donde Ruta es la ruta y nombre de la imagen con extencin jpg.
El siguiente cdigo lo tengo en un modulo, y es el cdigo que se encarga de
declar la DLL para comprimir y las funciones para copiar el picturebox en
un BMP (el BMP siempre lo tienes que guardar en C:\Temp.bmp ya que por
defecto la libreria que comprime en JPG siempre parte de dicho archivo
para comprimir)
'funcion para conversin de formato de bmp a jpg
Declare Function DIWriteJpg Lib "DIjpg.dll" (ByVal DestPath As String, ByVal
quality As Long, ByVal progressive As Long) As Long
Private Type PALETTEENTRY
peRed As Byte
peGreen As Byte
peBlue As Byte
peFlags As Byte
End Type
Private Type LOGPALETTE
palVersion As Integer
palNumEntries As Integer
palPalEntry(255) As PALETTEENTRY
End Type
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Const RASTERCAPS As Long = 38
Private Const RC_PALETTE As Long = &H100
Private Const SIZEPALETTE As Long = 104
Private Type RECT

Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function CreateCompatibleDC Lib "GDI32" (ByVal hDC As Long) As
Long
Private Declare Function CreateCompatibleBitmap Lib "GDI32" (ByVal hDC As Long,
ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function GetDeviceCaps Lib "GDI32" (ByVal hDC As Long, ByVal
iCapabilitiy As Long) As Long
Private Declare Function GetSystemPaletteEntries Lib "GDI32" (ByVal hDC As Long,
ByVal wStartIndex As Long, ByVal wNumEntries As Long, lpPaletteEntries As
PALETTEENTRY) As Long
Private Declare Function CreatePalette Lib "GDI32" (lpLogPalette As LOGPALETTE)
As Long
Private Declare Function SelectObject Lib "GDI32" (ByVal hDC As Long, ByVal
hObject As Long) As Long
Private Declare Function BitBlt Lib "GDI32" (ByVal hDCDest As Long, ByVal XDest
As Long, ByVal YDest As Long, ByVal nWidth As Long, ByVal nHeight As Long,
ByVal hDCSrc As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal dwRop As
Long) As Long
Private Declare Function DeleteDC Lib "GDI32" (ByVal hDC As Long) As Long
Private Declare Function GetForegroundWindow Lib "USER32" () As Long
Private Declare Function SelectPalette Lib "GDI32" (ByVal hDC As Long, ByVal
hPalette As Long, ByVal bForceBackground As Long) As Long
Private Declare Function RealizePalette Lib "GDI32" (ByVal hDC As Long) As Long
Private Declare Function GetWindowDC Lib "USER32" (ByVal hwnd As Long) As
Long
Private Declare Function GetDC Lib "USER32" (ByVal hwnd As Long) As Long
Private Declare Function GetWindowRect Lib "USER32" (ByVal hwnd As Long,
lpRect As RECT) As Long
Private Declare Function ReleaseDC Lib "USER32" (ByVal hwnd As Long, ByVal hDC
As Long) As Long
Private Declare Function GetDesktopWindow Lib "USER32" () As Long
Private Type PicBmp
Size As Long
Type As Long
hBmp As Long
hPal As Long
Reserved As Long
End Type
Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc As
PicBmp, RefIID As GUID, ByVal fPictureOwnsHandle As Long, IPic As IPicture) As
Long
Public Function CaptureWindow(ByVal hWndSrc As Long, ByVal Client As Boolean,
ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal
HeightSrc As Long) As Picture
Dim hDCMemory As Long
Dim hBmp As Long
Dim hBmpPrev As Long
Dim r As Long
Dim hDCSrc As Long
Dim hPal As Long
Dim hPalPrev As Long
Dim RasterCapsScrn As Long

Dim HasPaletteScrn As Long


Dim PaletteSizeScrn As Long
Dim LogPal As LOGPALETTE ' Depending on the value of Client get the proper
device context
If Client Then
hDCSrc = GetDC(hWndSrc) ' Get device context for client area
Else
hDCSrc = GetWindowDC(hWndSrc) ' Get device context for entire ' window
End If
' Create a memory device context for the copy process
hDCMemory = CreateCompatibleDC(hDCSrc)
' Create a bitmap and place it in the memory DC
hBmp = CreateCompatibleBitmap(hDCSrc, WidthSrc, HeightSrc)
hBmpPrev = SelectObject(hDCMemory, hBmp)
' Get screen properties
RasterCapsScrn = GetDeviceCaps(hDCSrc, RASTERCAPS) 'Raster 'capabilities
HasPaletteScrn = RasterCapsScrn And RC_PALETTE ' Palette 'support
PaletteSizeScrn = GetDeviceCaps(hDCSrc, SIZEPALETTE) ' Size of
' palette
'If the screen has a palette make a copy and realize it
If HasPaletteScrn And (PaletteSizeScrn = 256) Then
' Create a copy of the system palette
LogPal.palVersion = &H300
LogPal.palNumEntries = 256
r = GetSystemPaletteEntries(hDCSrc, 0, 256, LogPal.palPalEntry(0))
hPal = CreatePalette(LogPal)
' Select the new palette into the memory DC and realize it
hPalPrev = SelectPalette(hDCMemory, hPal, 0)
r = RealizePalette(hDCMemory)
End If
' Copy the on-screen image into the memory DC
r = BitBlt(hDCMemory, 0, 0, WidthSrc, HeightSrc, hDCSrc, LeftSrc, TopSrc,
vbSrcCopy)
' Remove the new copy of the on-screen image
hBmp = SelectObject(hDCMemory, hBmpPrev)
' If the screen has a palette get back the palette that was selected in previously
If HasPaletteScrn And (PaletteSizeScrn = 256) Then
hPal = SelectPalette(hDCMemory, hPalPrev, 0)
End If
' Release the device context resources back to the system
r = DeleteDC(hDCMemory)
r = ReleaseDC(hWndSrc, hDCSrc)
' Call CreateBitmapPicture to create a picture object from the
' bitmap and palette handles. Then return the resulting picture ' object.
Set CaptureWindow = CreateBitmapPicture(hBmp, hPal)
End Function
Public Function CreateBitmapPicture(ByVal hBmp As Long, ByVal hPal As Long) As
Picture
Dim r As Long
Dim Pic As PicBmp ' IPicture requires a reference to "Standard OLE Types"
Dim IPic As IPicture
Dim IID_IDispatch As GUID ' Fill in with IDispatch Interface ID
With IID_IDispatch
.Data1 = &H20400

.Data4(0) = &HC0
.Data4(7) = &H46
End With
' Fill Pic with necessary parts
With Pic
.Size = Len(Pic) ' Length of structure
.Type = vbPicTypeBitmap ' Type of Picture (bitmap)
.hBmp = hBmp ' Handle to bitmap
.hPal = hPal ' Handle to palette (may be null)
End With
' Create Picture object
r = OleCreatePictureIndirect(Pic, IID_IDispatch, 1, IPic)
' Return the new Picture object
Set CreateBitmapPicture = IPic
End Function
Lo ltimo es que tienes que buscar y descarga la libreria DIjpg.dll Que es la
encargada de convertir BMP a JPG. Es gratuita y bastante buena, el nico
pero que tiene es que el archivo que deseas comprimir tiene que se
C:\temp.bmp.
Citar

3.

28/05/2007, 07:00#3

kortiz
Senior MemberExpert@

Fecha de ingreso
11 ene, 06
Ubicacin
Guatamala
Mensajes
438

Gracias, Gardfield, muy buena tu explicacion, pero tengo una duda.


Debo de usar a fuerzas una Camara web o hay manera de usar una camara digital
normal para esto?
Para conocer a las personas, ve la forma como trata a sus inferiores, no a sus
iguales.
Citar

4.

28/05/2007, 09:57#4

Garfield
Senior MemberExpert@
Fecha de ingreso
18 mar, 07

Mensajes
467

Yo lo he probado con camara WEB y lo he probado con una camara de vigilancia


conectada a una tarjeta de captura. En ambos casos instale los drivers
correspondiente y primero probe las camaras en windows con los programas
orignales. Si tienes una camara digital que funcione como camara conectada al PC y
no solo como memoria, el programa debera funcionar.
Citar

5.

29/05/2007, 06:26#5

kortiz
Senior MemberExpert@

Fecha de ingreso
11 ene, 06
Ubicacin
Guatamala
Mensajes
438

Instale una WebCam y funciona perfecto, pero tu codigo no puedo hacer que
siquiera muestre alguna imagen el el form.
Para conocer a las personas, ve la forma como trata a sus inferiores, no a sus
iguales.
Citar

6.

29/05/2007, 11:22#6

Garfield
Senior MemberExpert@
Fecha de ingreso
18 mar, 07
Mensajes
467

Es porque el cdigo no carga la imgen sobre el form. Si no sobre un picturebox


lllamdo[img]file:///C:/DOCUME%7E1/Alberto/CONFIG%7E1/Temp/mozscreenshot.jpg[/img][img]file:///C:/DOCUME%7E1/Alberto/CONFIG
%7E1/Temp/moz-screenshot-1.jpg[/img] picOutput.
Fijate en la lnea
'Put ClipBoard's Data to picOutput
picOutput.Picture = Clipboard.GetData
Ah tomas la foto capturada en el portapapeles y la colocas en el picture. Fijate que

cuando tomo la foto para pasarla a BMP tambin se hace referencia a ese
picturebox.
Citar

7.

12/02/2009, 15:28#7

joseal15@hot
Junior MemberIniciad@
Fecha de ingreso
12 feb, 09
Ubicacin
Venezuela
Mensajes
5

buenas amigo este post es viejisimo pero es el q mas me ha servido hasta el


momento estoy enredado en una parte y me gustaria q me lo pudieras aclarar ya q
se ve q t funciona correctamente a ti... en donde coloco todo lo q va despues del
timer??? en el form_load??? o necesito una funcion especifica o en un boton?? por
favor necesito la mayor ayuda q me puedas dar gracias
Citar

8.

12/02/2009, 19:01#8

Garfield
Senior MemberExpert@
Fecha de ingreso
18 mar, 07
Mensajes
467

buenas, de verdad bastante antigua la aplicacin, hasta el da de hoy sigue


funcionando en un estacionamiento (el programa toma las fotos de todos los autos
al momento de entrar y de salir).
he tomado el mismo cdigo que est posteado y lo he reordenado.
Crea un proyecto nuevo proyecto al formulario (no le cambies el nombre), agrega
un picturebox y 4 command buttons
y copia el siguiente cdigo:
Cdigo:

Private Sub Command1_Click()


'llama al procedimiento que conecta con la camara
Conectar_Camara Form1
End Sub
Private Sub Command2_Click()
'llama al procedimiento que captura una imagen y la coloca en un picturebox
Obtener_Imagen Picture1
End Sub

Private Sub Command3_Click()


'graba el contenido del picture1 en una imagen BMP en C:|Temp.bmp
SavePicture CaptureWindow(Picture1.hwnd, True, 0, 0, (Picture1.Width /
Screen.TwipsPerPixelX) - 4, (Picture1.Height / Screen.TwipsPerPixelY) - 4),
"c:\tmp.bmp"
End Sub
Private Sub Command4_Click()
'toma el BMP de c:\temp.bmp y lo guarda como un JPG en c:\temp.jpg
Capturar = DIWriteJpg("c:\temp.jpg", 20, 0)
End Sub

agrega un mdulo al proyecto y copia lo siguiente:


Cdigo:

'funcion para conversin de formato de bmp a jpg


Declare Function DIWriteJpg Lib "DIjpg.dll" (ByVal DestPath As String, ByVal
quality As Long, ByVal progressive As Long) As Long
Private Type PALETTEENTRY
peRed As Byte
peGreen As Byte
peBlue As Byte
peFlags As Byte
End Type
Private Type LOGPALETTE
palVersion As Integer
palNumEntries As Integer
palPalEntry(255) As PALETTEENTRY
End Type
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Const RASTERCAPS As Long = 38
Private Const RC_PALETTE As Long = &H100
Private Const SIZEPALETTE As Long = 104
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function CreateCompatibleDC Lib "GDI32" (ByVal hDC As Long) As
Long
Private Declare Function CreateCompatibleBitmap Lib "GDI32" (ByVal hDC As
Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function GetDeviceCaps Lib "GDI32" (ByVal hDC As Long, ByVal
iCapabilitiy As Long) As Long
Private Declare Function GetSystemPaletteEntries Lib "GDI32" (ByVal hDC As
Long, ByVal wStartIndex As Long, ByVal wNumEntries As Long, lpPaletteEntries
As PALETTEENTRY) As Long
Private Declare Function CreatePalette Lib "GDI32" (lpLogPalette As
LOGPALETTE) As Long
Private Declare Function SelectObject Lib "GDI32" (ByVal hDC As Long, ByVal
hObject As Long) As Long
Private Declare Function BitBlt Lib "GDI32" (ByVal hDCDest As Long, ByVal
XDest As Long, ByVal YDest As Long, ByVal nWidth As Long, ByVal nHeight As
Long, ByVal hDCSrc As Long, ByVal XSrc As Long, ByVal YSrc As Long, ByVal
dwRop As Long) As Long
Private Declare Function DeleteDC Lib "GDI32" (ByVal hDC As Long) As Long
Private Declare Function GetForegroundWindow Lib "USER32" () As Long
Private Declare Function SelectPalette Lib "GDI32" (ByVal hDC As Long, ByVal
hPalette As Long, ByVal bForceBackground As Long) As Long
Private Declare Function RealizePalette Lib "GDI32" (ByVal hDC As Long) As
Long

Private Declare Function GetWindowDC Lib "USER32" (ByVal hwnd As Long) As Long
Private Declare Function GetDC Lib "USER32" (ByVal hwnd As Long) As Long
Private Declare Function GetWindowRect Lib "USER32" (ByVal hwnd As Long,
lpRect As RECT) As Long
Private Declare Function ReleaseDC Lib "USER32" (ByVal hwnd As Long, ByVal hDC
As Long) As Long
Private Declare Function GetDesktopWindow Lib "USER32" () As Long
Private Type PicBmp
Size As Long
Type As Long
hBmp As Long
hPal As Long
Reserved As Long
End Type
Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc
As PicBmp, RefIID As GUID, ByVal fPictureOwnsHandle As Long, IPic As IPicture)
As Long
'Declaraciones para conectar y capturar imagen desde una camara
Public Declare Function SendMessage Lib "USER32" Alias "SendMessageA" (ByVal
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Public Declare Function capCreateCaptureWindow Lib "avicap32.dll" Alias
"capCreateCaptureWindowA" (ByVal lpszWindowName As String, ByVal dwStyle As
Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As
Long, ByVal hwndParent As Long, ByVal nID As Long) As Long
Public mCapHwnd As Long
Public
Public
Public
Public

Const
Const
Const
Const

CONNECT As Long = 1034


DISCONNECT As Long = 1035
GET_FRAME As Long = 1084
COPY As Long = 1054

Public Sub Conectar_Camara(nForm As Form)


'Setup a capture window (You can replace "WebcamCapture" with watever you
want)
mCapHwnd = capCreateCaptureWindow("WebcamCapture", 0, 0, 0, 640, 480,
nForm.hwnd, 0)
'Connect to capture device
DoEvents: SendMessage mCapHwnd, CONNECT, 0, 0
End Sub
Public Sub Obtener_Imagen(nPicture As PictureBox)
On Error Resume Next
'Get Current Frame
SendMessage mCapHwnd, GET_FRAME, 0, 0
'Copy Current Frame to ClipBoard
SendMessage mCapHwnd, COPY, 0, 0
'Put ClipBoard's Data to picOutput
nPicture.picture = Clipboard.GetData
'Clear ClipBoard
Clipboard.Clear
End Sub
Public Function CaptureWindow(ByVal hWndSrc As Long, ByVal Client As Boolean,
ByVal LeftSrc As Long, ByVal TopSrc As Long, ByVal WidthSrc As Long, ByVal
HeightSrc As Long) As picture
Dim hDCMemory As Long
Dim hBmp As Long
Dim hBmpPrev As Long
Dim r As Long
Dim hDCSrc As Long

Dim hPal As Long


Dim hPalPrev As Long
Dim RasterCapsScrn As Long
Dim HasPaletteScrn As Long
Dim PaletteSizeScrn As Long
Dim LogPal As LOGPALETTE ' Depending on the value of Client get the proper
device context
If Client Then
hDCSrc = GetDC(hWndSrc) ' Get device context for client area
Else
hDCSrc = GetWindowDC(hWndSrc) ' Get device context for entire ' window
End If
' Create a memory device context for the copy process
hDCMemory = CreateCompatibleDC(hDCSrc)
' Create a bitmap and place it in the memory DC
hBmp = CreateCompatibleBitmap(hDCSrc, WidthSrc, HeightSrc)
hBmpPrev = SelectObject(hDCMemory, hBmp)
' Get screen properties
RasterCapsScrn = GetDeviceCaps(hDCSrc, RASTERCAPS) 'Raster 'capabilities
HasPaletteScrn = RasterCapsScrn And RC_PALETTE ' Palette 'support
PaletteSizeScrn = GetDeviceCaps(hDCSrc, SIZEPALETTE) ' Size of
' palette
'If the screen has a palette make a copy and realize it
If HasPaletteScrn And (PaletteSizeScrn = 256) Then
' Create a copy of the system palette
LogPal.palVersion = &H300
LogPal.palNumEntries = 256
r = GetSystemPaletteEntries(hDCSrc, 0, 256, LogPal.palPalEntry(0))
hPal = CreatePalette(LogPal)
' Select the new palette into the memory DC and realize it
hPalPrev = SelectPalette(hDCMemory, hPal, 0)
r = RealizePalette(hDCMemory)
End If
' Copy the on-screen image into the memory DC
r = BitBlt(hDCMemory, 0, 0, WidthSrc, HeightSrc, hDCSrc, LeftSrc, TopSrc,
vbSrcCopy)
' Remove the new copy of the on-screen image
hBmp = SelectObject(hDCMemory, hBmpPrev)
' If the screen has a palette get back the palette that was selected in
previously
If HasPaletteScrn And (PaletteSizeScrn = 256) Then
hPal = SelectPalette(hDCMemory, hPalPrev, 0)
End If
' Release the device context resources back to the system
r = DeleteDC(hDCMemory)
r = ReleaseDC(hWndSrc, hDCSrc)
' Call CreateBitmapPicture to create a picture object from the
' bitmap and palette handles. Then return the resulting picture ' object.
Set CaptureWindow = CreateBitmapPicture(hBmp, hPal)
End Function
Public Function CreateBitmapPicture(ByVal hBmp As Long, ByVal hPal As Long) As
picture
Dim r As Long
Dim Pic As PicBmp ' IPicture requires a reference to "Standard OLE Types"
Dim IPic As IPicture
Dim IID_IDispatch As GUID ' Fill in with IDispatch Interface ID
With IID_IDispatch
.Data1 = &H20400
.Data4(0) = &HC0
.Data4(7) = &H46
End With
' Fill Pic with necessary parts
With Pic
.Size = Len(Pic) ' Length of structure
.Type = vbPicTypeBitmap ' Type of Picture (bitmap)

.hBmp = hBmp ' Handle to bitmap


.hPal = hPal ' Handle to palette (may be null)
End With
' Create Picture object
r = OleCreatePictureIndirect(Pic, IID_IDispatch, 1, IPic)
' Return the new Picture object
Set CreateBitmapPicture = IPic
End Function

Para que puedas capturar tienes que darle un click (slo uno) al botn1 , este
conecta la camara.
cada vez que presiones el botn 2, la cmara tomara una foto y la colocara en el
picturebox
el botn 3 toma la imagen del picturebox y la guarda como un BMP
el botn 4 convierte la imagen que esta en BMP en una imagen en jpg

Citar

9.

13/02/2009, 10:00#9

joseal15@hot
Junior MemberIniciad@
Fecha de ingreso
12 feb, 09
Ubicacin
Venezuela
Mensajes
5

Oye hermano de verdad muchas gracias esto funciona de mil maravillas le estoy
inmensamente agradecido
Citar

10.

13/02/2009, 13:12#10

joseal15@hot
Junior MemberIniciad@
Fecha de ingreso
12 feb, 09
Ubicacin
Venezuela
Mensajes
5

OYE VIEJO DISCULPE LA MOLESTIA PERO POR CASUALIDAD NO HABRA MANERA


DE QUE SE VEA EL VIDEO EN VIVO PARA PODER CAPTURAR LA IMAGEN BIEN???
ES Q EL PICTURE SE QUEDA GRIS Y SOLO SE VE LA FOTO ES UNA VES Q FUE
TOMADA... AGRADEZCO TU COLABORACION GRACIAS
Citar

11.

13/02/2009, 19:11#11

Garfield
Senior MemberExpert@
Fecha de ingreso
18 mar, 07
Mensajes
467

la rutina que est en el botn 2 (la que captura la imagen y la coloca en un


picturebox) mtela en un timer, un interval de 50ms te dar la sensacin de que
vez un video en tiempo real.
Citar

12.

16/04/2009, 09:38#12

pacoalejo
Junior MemberIniciad@

Fecha de ingreso
16 abr, 09
Mensajes
1

que tal he utilizado tu codigo que es bastante bueno, pero tengo problemas pongo
el timer y si me da la imagen en tiempo real, capturo imagen y me hace todo el
proceso, pero cuando quiero salir de la aplicacion se queda ciclada y solamente
dando de baja el proceso puedo salir de ella, y me cierra el vb completo y manda el
msg que si deseo enviar el error, no se si me falte cargar alguna libreria o tenga
mal alguna rutina.
gracias
Sursum Corda
Citar

13.

20/11/2012, 19:49#13

flakiztrukizz
Junior MemberIniciad@
Fecha de ingreso
20 nov, 12
Mensajes
1

oye disculpa estoy tratando de usar tu codigo

Oye estoy tratando de usar tu codigo y me marca algunos errores y me cicla el


programa qisiera saber si me puedes ayudar para ver q esta pasando la verdad me
urge mucho es para mi proyecto final de la escuela espero tu respuesta te lo
agradeceria michisimo.
Citar

14.

04/08/2015, 17:55#14

basto
Junior MemberIniciad@
Fecha de ingreso
04 ago, 15
Mensajes
1

Hola, quisiera preguntar si existe alguna manera de verificar si existe una cmara
conectada al computador?
He buscado en muchos foros y temas pero no encuentro nada concreto
Gracias.
Citar

Tema anterior | Prximo tema


Temas similares

1.

Tomar datos de *.txt

Por jaxa en el foro Visual Basic .NET

Respuestas: 5
ltimo mensaje: 10/07/2009, 15:41

2.

Obtener dimension de fotografias

Por Don_Key en el foro Visual Basic 6.0

Respuestas: 1
ltimo mensaje: 06/05/2009, 16:46

3.

Manipulacion de fotografias

Por luis_karlos en el foro Visual Basic 6.0

Respuestas: 0
ltimo mensaje: 30/10/2007, 16:53

4.

librerias para compara fotografias

Por luis_karlos en el foro Visual Basic 6.0

Respuestas: 0
ltimo mensaje: 08/10/2007, 12:05

5.

Tomar dato de un text

Por Germany en el foro Visual Basic 6.0

Respuestas: 4
ltimo mensaje: 08/06/2007, 07:18

Permisos de publicacin

No
No
No
No

puedes
puedes
puedes
puedes

crear nuevos temas


responder temas
subir archivos adjuntos
editar tus mensajes

Cdigos BB estn Activo


Los Emoticonos estn Activo

Cdigo [IMG] est Activo


[VIDEO] code is Activo
Cdigo HTML est Inactivo
Trackbacks are Activo
Pingbacks are Activo
Refbacks are Activo

Reglas del foro

El huso horario es GMT +2. La hora actual es: 00:41.

Archivo

Arriba

La navegacin por nuestras pginas y el acceso y utilizacin de nuestros servicios requieren la


instalacin de cookies propias y de terceros en el equipo del usuario. A menos que bloquee la
instalacin de las cookies, entenderemos acepta el uso de las mismas conforme a nuestra Poltica
de Privacidad

También podría gustarte