Pesquisar na Comunidade
Mostrando resultados para as tags ''webcam''.
Encontrado 5 registros
-
Boa noite, tenho um Ideapad 330 i5 com webcam integrada Easycamera e não consigo sair da tela preta por nada. No skype, kamoso, cheese e VLC a luz acende mas sem nenhuma imagem Já cheguei até em forums da frança e nada do que tentei funcionou. Se alguém souber eu mando um sorvete de ifood uahuahuah. Segue o necessário (acho) uname -sr Linux 5.9.0-1-amd64 dmesg | grep uvcvideo [ 26.818012] uvcvideo: Found UVC 1.00 device EasyCamera (174f:241a) [ 26.826718] uvcvideo 1-8:1.0: Entity type for entity Extension 3 was not initialized! [ 26.826721] uvcvideo 1-8:1.0: Entity type for entity Processing 2 was not initialized! [ 26.826722] uvcvideo 1-8:1.0: Entity type for entity Camera 1 was not initialized! [ 26.827008] usbcore: registered new interface driver uvcvideo lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 174f:241a Syntek EasyCamera Bus 001 Device 003: ID 8087:0a2a Intel Corp. Bluetooth wireless interface Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ls -l /dev/video0 crw-rw----+ 1 root video 81, 0 nov 2 18:40 /dev/video0 inxi -Fxzd System: Kernel: 5.9.0-1-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.0 Desktop: GNOME 3.38.1 Distro: Debian GNU/Linux bullseye/sid Machine: Type: Laptop System: LENOVO product: 81FE v: Lenovo ideapad 330-15IKB serial: Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: UEFI: LENOVO v: 8TCN51WW date: 12/08/2018 Battery: ID-1: BAT0 charge: 14.0 Wh condition: 23.4/30.0 Wh (78%) model: LGC L16L2PB2 status: Discharging CPU: Info: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 6144 KiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800 Speed: 734 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 700 2: 700 3: 700 4: 700 5: 701 6: 701 7: 700 8: 700 Graphics: Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 Device-2: Syntek EasyCamera type: USB driver: uvcvideo bus ID: 1-8:4 Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa resolution: 1366x768~60Hz OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.1 direct render: Yes Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 Sound Server: ALSA v: k5.9.0-1-amd64 Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3000 bus ID: 01:00.0 IF: enp1s0 state: down mac: Device-2: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi v: kernel port: 3000 bus ID: 02:00.0 IF: wlp2s0 state: up mac: Drives: Local Storage: total: 931.51 GiB used: 334.74 GiB (35.9%) ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-24Z10T0 size: 931.51 GiB temp: 42 C Message: No Optical or Floppy data was found. Partition: ID-1: / size: 905.86 GiB used: 334.44 GiB (36.9%) fs: ext4 dev: /dev/sda4 Swap: ID-1: swap-1 type: partition size: 5.00 GiB used: 304.6 MiB (5.9%) dev: /dev/sda2 Sensors: System Temperatures: cpu: 37.0 C mobo: N/A Fan Speeds (RPM): N/A Info: Processes: 252 Uptime: 2h 39m Memory: 3.76 GiB used: 1.83 GiB (48.7%) Init: systemd runlevel: 5 Compilers: gcc: 10.2.0 Packages: 3079 Shell: Bash v: 5.1.0-rc1 inxi: 3.1.08 v4l2-ctl --info --device /dev/video1 Driver Info: Driver name : uvcvideo Card type : EasyCamera: EasyCamera Bus info : usb-0000:00:14.0-8 Driver version : 5.9.1 Capabilities : 0x84a00001 Video Capture Metadata Capture Streaming Extended Pix Format Device Capabilities Device Caps : 0x04a00000 Metadata Capture Streaming Extended Pix Format Media Driver Info: Driver name : uvcvideo Model : EasyCamera: EasyCamera Serial : Bus info : usb-0000:00:14.0-8 Media version : 5.9.1 Hardware revision: 0x00000013 (19) Driver version : 5.9.1 Interface Info: ID : 0x03000005 Type : V4L Video Entity Info: ID : 0x00000004 (4) Name : EasyCamera: EasyCamera Function : V4L2 I/O root@debian:/home/anneaf# lspci 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08) 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21) 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1) 00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 02:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3165 Plus Bluetooth (rev 99) v4l2-ctl -d /dev/video0 --list-ctrls brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50 contrast 0x00980901 (int) : min=0 max=100 step=1 default=50 value=50 saturation 0x00980902 (int) : min=0 max=100 step=1 default=50 value=50 hue 0x00980903 (int) : min=0 max=100 step=1 default=50 value=50 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gamma 0x00980910 (int) : min=0 max=100 step=1 default=50 value=50 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1 white_balance_temperature 0x0098091a (int) : min=2500 max=6500 step=1 default=4500 value=4500 flags=inactive sharpness 0x0098091b (int) : min=0 max=100 step=1 default=50 value=50 exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 privacy 0x009a0910 (bool) : default=0 value=0 lsmod Module Size Used by rfcomm 90112 4 snd_seq_dummy 16384 0 snd_hrtimer 16384 1 snd_seq 86016 7 snd_seq_dummy snd_seq_device 16384 1 snd_seq fuse 143360 3 ctr 16384 2 ccm 20480 6 cmac 16384 6 algif_hash 16384 3 algif_skcipher 16384 3 af_alg 32768 14 algif_hash,algif_skcipher bnep 28672 2 cpufreq_powersave 20480 0 cpufreq_conservative 16384 0 cpufreq_userspace 20480 0 binfmt_misc 24576 1 nls_ascii 16384 1 nls_cp437 20480 1 vfat 20480 1 fat 86016 1 vfat uvcvideo 114688 0 videobuf2_vmalloc 20480 1 uvcvideo videobuf2_memops 20480 1 videobuf2_vmalloc videobuf2_v4l2 32768 1 uvcvideo videobuf2_common 61440 2 videobuf2_v4l2,uvcvideo videodev 278528 3 videobuf2_v4l2,uvcvideo,videobuf2_common mc 61440 4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common btusb 61440 0 intel_rapl_msr 20480 0 intel_rapl_common 32768 1 intel_rapl_msr btrtl 24576 1 btusb btbcm 20480 1 btusb btintel 32768 1 btusb bluetooth 729088 33 btrtl,btintel,btbcm,bnep,btusb,rfcomm intel_pmc_core_pltdrv 16384 0 intel_pmc_core 45056 0 jitterentropy_rng 16384 1 x86_pkg_temp_thermal 20480 0 intel_powerclamp 20480 0 coretemp 20480 0 drbg 28672 1 ansi_cprng 16384 0 kvm_intel 319488 0 ecdh_generic 16384 1 bluetooth ecc 36864 1 ecdh_generic kvm 831488 1 kvm_intel snd_soc_skl 180224 0 iwlmvm 327680 0 irqbypass 16384 1 kvm ghash_clmulni_intel 16384 0 snd_soc_hdac_hda 24576 1 snd_soc_skl mac80211 917504 1 iwlmvm snd_hda_codec_hdmi 73728 1 mei_me 45056 0 snd_hda_ext_core 36864 2 snd_soc_hdac_hda,snd_soc_skl aesni_intel 372736 13 sg 36864 0 snd_hda_codec_generic 98304 1 snd_soc_sst_ipc 20480 1 snd_soc_skl serio_raw 20480 0 snd_soc_sst_dsp 40960 1 snd_soc_skl libarc4 16384 1 mac80211 snd_soc_acpi_intel_match 45056 1 snd_soc_skl libaes 16384 2 bluetooth,aesni_intel snd_soc_acpi 16384 2 snd_soc_acpi_intel_match,snd_soc_skl ledtrig_audio 16384 1 snd_hda_codec_generic snd_soc_core 315392 2 snd_soc_hdac_hda,snd_soc_skl crypto_simd 16384 1 aesni_intel snd_compress 32768 1 snd_soc_core snd_hda_intel 57344 3 snd_intel_dspcfg 24576 2 snd_hda_intel,snd_soc_skl snd_hda_codec 163840 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_soc_hdac_hda snd_hda_core 106496 7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_hdac_hda,snd_soc_skl snd_hwdep 16384 1 snd_hda_codec snd_pcm 135168 7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_compress,snd_soc_core,snd_soc_skl,snd_hda_core iwlwifi 290816 1 iwlmvm snd_timer 49152 3 snd_seq,snd_hrtimer,snd_pcm cryptd 24576 5 crypto_simd,ghash_clmulni_intel intel_xhci_usb_role_switch 16384 0 roles 16384 1 intel_xhci_usb_role_switch cfg80211 897024 3 iwlmvm,iwlwifi,mac80211 mei 126976 1 mei_me snd 110592 19 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm soundcore 16384 1 snd ideapad_laptop 24576 0 joydev 28672 0 sparse_keymap 16384 1 ideapad_laptop glue_helper 16384 1 aesni_intel rfkill 28672 9 bluetooth,ideapad_laptop,cfg80211 intel_pch_thermal 16384 0 evdev 28672 10 rapl 16384 0 tpm_crb 20480 0 intel_cstate 20480 0 intel_uncore 167936 0 tpm_tis 16384 0 tpm_tis_core 28672 1 tpm_tis tpm 73728 3 tpm_tis,tpm_crb,tpm_tis_core efi_pstore 16384 0 pcspkr 16384 0 efivars 20480 1 efi_pstore rng_core 16384 1 tpm acpi_pad 28672 0 ac 16384 0 wmi_bmof 16384 0 intel_wmi_thunderbolt 20480 0 squashfs 65536 9 loop 36864 18 parport_pc 40960 0 ppdev 24576 0 lp 20480 0 parport 69632 3 parport_pc,lp,ppdev efivarfs 16384 1 ip_tables 28672 0 x_tables 53248 1 ip_tables autofs4 53248 2 ext4 798720 1 crc16 16384 2 bluetooth,ext4 mbcache 16384 1 ext4 jbd2 139264 1 ext4 crc32c_generic 16384 0 usbhid 65536 0 hid_rmi 24576 0 sd_mod 61440 4 rmi_core 86016 1 hid_rmi t10_pi 16384 1 sd_mod crc_t10dif 20480 1 t10_pi crct10dif_generic 16384 0 hid_generic 16384 0 i915 2658304 21 i2c_algo_bit 16384 1 i915 drm_kms_helper 262144 1 i915 ahci 40960 3 libahci 45056 1 ahci cec 49152 2 drm_kms_helper,i915 xhci_pci 20480 0 r8169 98304 0 xhci_hcd 286720 1 xhci_pci libata 290816 2 libahci,ahci realtek 24576 1 drm 614400 6 drm_kms_helper,i915 crct10dif_pclmul 16384 1 mdio_devres 16384 1 r8169 usbcore 323584 5 xhci_hcd,usbhid,uvcvideo,btusb,xhci_pci crct10dif_common 16384 3 crct10dif_generic,crc_t10dif,crct10dif_pclmul libphy 151552 3 r8169,mdio_devres,realtek crc32_pclmul 16384 0 scsi_mod 258048 3 sd_mod,libata,sg crc32c_intel 24576 2 i2c_i801 32768 0 i2c_hid 32768 0 i2c_smbus 20480 1 i2c_i801 intel_lpss_pci 24576 0 hid 147456 4 i2c_hid,usbhid,hid_generic,hid_rmi intel_lpss 16384 1 intel_lpss_pci usb_common 16384 3 xhci_hcd,usbcore,uvcvideo idma64 20480 0 wmi 36864 3 intel_wmi_thunderbolt,wmi_bmof,ideapad_laptop button 24576 0 battery 20480 0 video 53248 2 ideapad_laptop,i915
-
- easycamera
- webcam
- (e %d mais)
-
Olá! Estou fazendo um projeto em que a webcam padrão tira fotos a cada 1 segundo utilizando o opencv. Por enquanto ,nesse code, ao clique do botão capturar você seleciona a pasta onde quer e ele captura uma foto.Preciso, alem do loop para ele tirar fotos a cada segundo, salva-las em um determinada pasta. public class jfmPrincipal extends javax.swing.JFrame { VideoCaptura webCam; ExibeQuadro exibeQuadro; Thread executor; private DaemonThread myThread = null; int count = 0; VideoCapture webSource = null; Mat frame = new Mat(); MatOfByte mem = new MatOfByte(); class DaemonThread implements Runnable { protected volatile boolean runnable = false; @Override public void run() { synchronized(this) { while(runnable) { if(webSource.grab()) { try { webSource.retrieve(frame); Highgui.imencode(".bmp", frame, mem); Image im = ImageIO.read(new ByteArrayInputStream(mem.toArray())); BufferedImage buff = (BufferedImage) im; Graphics g=jlbCaptura.getGraphics(); if (g.drawImage(buff, 0, 0, getWidth(), getHeight() -150 , 0, 0, buff.getWidth(), buff.getHeight(), null)) if(runnable == false) { System.out.println("Going to wait()"); this.wait(); } } catch(Exception ex) { System.out.println("Error"); } } } } } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int returnVal = jFileChooser1.showSaveDialog(this); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = jFileChooser1.getSelectedFile(); Highgui.imwrite(file.getPath(), frame); } else { System.out.println("Acesso negado."); } }
-
- java
- programação
-
(e %d mais)
Tags:
-
Escolher caminho de imagem capturada por DelphiTwain
uma questão postou Gabriel Cabral Delphi, Kylix
Boa tarde. Estou utilizando o componente DelphiTwain para captura de imagem através de webcam. Quando chamo o evento para capturar a imagem, ele abre uma tela do próprio windows e faz quantas capturas você quiser. O problema é que essas imagens capturadas não são gravadas em nenhum outro lugar, a não ser no dispositivo de imagem (webcam). Elas ficam armazenadas no dispositivo como Imagem 001, Imagem 002, e assim por diante. Gostaria de saber se há um jeito de já gravar com um nome e em um caminho escolhido por mim. Ou então se tem algo no Delphi que copie essas imagens do dispositivo para uma outra pasta. Obrigado. -
Boa tarde, pessoal. Tudo bem?! Estou precisando de uma grande ajuda para utilizar mais de uma webcam. Preciso de algo que liste as webcams instaladas ou alguma outra forma que eu possa escolher qual webcam utilizar. Já vi inúmeros tópicos relativos a webcam, mas nada que me ajudasse neste caso. O programa está fazendo a captura de imagem da seguinte forma: var frmCapturaImg: TfrmCapturaImg; hWndC: THandle = 0; rg: string; implementation uses U_frmCadMoradores; {$R *.dfm} const WM_CAP_START = WM_USER; const WM_CAP_STOP = WM_CAP_START + 68; const WM_CAP_DRIVER_CONNECT = WM_CAP_START + 10; const WM_CAP_DRIVER_DISCONNECT = WM_CAP_START + 11; const WM_CAP_SAVEDIB = WM_CAP_START + 25; const WM_CAP_GRAB_FRAME = WM_CAP_START + 60; const WM_CAP_SEQUENCE = WM_CAP_START + 62; const WM_CAP_FILE_SET_CAPTURE_FILEA = WM_CAP_START + 20; const WM_CAP_SEQUENCE_NOFILE =WM_CAP_START+ 63; const WM_CAP_SET_OVERLAY =WM_CAP_START+ 51 ; const WM_CAP_SET_PREVIEW =WM_CAP_START+ 50; const WM_CAP_SET_CALLBACK_VIDEOSTREAM = WM_CAP_START +6; const WM_CAP_SET_CALLBACK_ERROR=WM_CAP_START +2; const WM_CAP_SET_CALLBACK_STATUSA= WM_CAP_START +3; const WM_CAP_SET_CALLBACK_FRAME= WM_CAP_START +5; const WM_CAP_SET_SCALE=WM_CAP_START+ 53 ; const WM_CAP_SET_PREVIEWRATE=WM_CAP_START+ 52; function capCreateCaptureWindowA(lpszWindowName : PCHAR; dwStyle : longint; x : integer; y : integer;nWidth : integer;nHeight : integer;ParentWin : HWND; nId : integer): HWND; STDCALL; EXTERNAL 'AVICAP32.DLL'; ///// === CONECTA WEBCAM === ///// if hWndC <> 0 then exit; hWndC := capCreateCaptureWindowA('WINACESSO',WS_CHILD or WS_VISIBLE ,image1.Left,image1.Top,image1.width,image1.height,frmCapturaImg.Handle,0); if hWndC <> 0 then begin SendMessage(hWndC, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0); SendMessage(hWndC, WM_CAP_SET_CALLBACK_ERROR, 0, 0); SendMessage(hWndC, WM_CAP_SET_CALLBACK_STATUSA, 0, 0); SendMessage(hWndC, WM_CAP_DRIVER_CONNECT, 0, 0); SendMessage(hWndC, WM_CAP_SET_SCALE, 1, 0); SendMessage(hWndC, WM_CAP_SET_PREVIEWRATE, 66, 0); SendMessage(hWndC, WM_CAP_SET_OVERLAY, 1, 0); SendMessage(hWndC, WM_CAP_SET_PREVIEW, 1, 0); end; ///// === CAPTURA IMAGEM === ///// rg := frmCadMoradores.txtCadMoradores_RG.Text; if hWndC <> 0 then begin SendMessage(hWndC,WM_CAP_SAVEDIB,0,longint(pchar('C:\WINACESSO\FOTOS\' + rg + '.bmp'))); end; ///// === DESCONECTA WEBCAM === ///// if hWndC <> 0 then begin SendMessage(hWndC, WM_CAP_DRIVER_DISCONNECT, 0, 0); hWndC := 0; end;
-
Pessoal estou com o seguinte problema eu preciso fazer um aplicativo que mostre 4 webcams USB. E também capturar a imagem da webcam e salvar em determinado diretorio. Obrigado.