Cómo conectar una cámara USB al PLC Raspberry

Uso del PLC Industrial Raspberry
28 de abril de 2021 por
Cómo conectar una cámara USB al PLC Raspberry
Boot & Work Corp. S.L., Fernandez Queralt Martinez
Your Dynamic Snippet will be displayed here... This message is displayed because you did not provided both a filter and a template to use.

Explanation

TAKING PICTURES 


1. Connect the Raspberry PLC to a WIFi network



2. Open up a terminal windows and issue the following command to install the fswebcam package:

sudo apt update
sudo apt install fswebcam

3. Add your user to the video group:

sudo usermod -a -G video <username>


4. Enter the command fswebcam followed by a filename. A picture will be taken using the webcam, and saved to the filename specified:

fswebcam image.jpg


5. Specify the resolution using the -r flag:

fswebcam -r 1280x720 image.jpg


For more information, please go to:

 https://www.raspberrypi.org/documentation/usage/webcams/


RECORDING VIDEOS

1. Install the ffmpeg packages:

sudo apt update
sudo apt install ffmpeg


2. Exec the next command to record a video from an input file, an save it to an output file:

ffmpeg -i <input file> <output file>


Check out the ffmpeg documentation for more details

https://www.ffmpeg.org/ffmpeg.html


Raspberry PLC Industrial Controller

Raspberry PLC
Controlador Industrial

 Una solución industrial basada en la placa Raspberry Pi


Si necesita más información, no deje de contactar con nosotros.

Do you want to know how to implement our open source PLC Raspberry Pi devices?

Visit our Case Studies about Raspberry Pi automation, monitoring and control.

Buscar en nuestro blog

Cómo conectar una cámara USB al PLC Raspberry
Boot & Work Corp. S.L., Fernandez Queralt Martinez 28 de abril de 2021
Compartir

¿Estás buscando tu Controlador Lógico Programable ideal?

Echa un vistazo a esta comparativa de producto de varios controladores industriales basados en Arduino.

Comparamos entradas, salidas, comunicaciones y otras especificaciones con las de los equipos de otras marcas destacadas.


Industrial PLC comparison >>>