CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

PiCam stream in webvisu
https://forum.codesys.com/viewtopic.php?f=21&t=5814
Page 1 of 1

Author:  Edwin Schwellinger [ Mon Jul 28, 2014 9:24 pm ]
Post subject:  PiCam stream in webvisu

Hi,

maybe some of you need the info how a PiCam stream could be inserted in the CODESYS webvisu.
Sure the official element in the visu will come to the 3.5SP6 release (end of the year)
but this is an example how to use it now:

Raspberry.org give us an RPi Cam Web Interface this is also nice to play around with the mode/settings for raspistill and raspivid:


http://www.raspberrypi.org/forums/viewt ... 43&t=63276


sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update

Code:
git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
cd RPi_Cam_Web_Interface
chmod u+x RPi_Cam_Web_Interface_Installer.sh
./RPi_Cam_Web_Interface_Installer.sh install

after reboot you could execute the RPi_Cam_Web_Interface by
http://IP_Rasperry
this is hosted by apache webserver independent from webvisu (this we use to check all settings of the cam)


Using the stream in our CODESYS webpage:
copy webvisuwithcameraoverlay.htm (edit in that file the IP address of the pi) to the pi into the 'visu' directory (by codesys filebrowser)
instead of calling your CODESYS Wevisu http://ip_adress_pi:8080/webvisu.htm use now http://ip_adress_pi:8080/webvisuwithcameraoverlay.htm

BR
Edwin

Author:  fixstuff555 [ Fri Feb 13, 2015 6:53 am ]
Post subject:  Re: PiCam stream in webvisu

Hello,

Is this feature possible yet? Is there an example project with a webcam embedded in the visualization?

I tried following the first post, with the http://192.168.1.111:8080/webvisuwithcameraoverlay.htm address, but all I get is a empty box along with the rest of my visualization. I did edit the htm file with the ip address updated in it (attached also)

I remember mention of this feature being better integrated into SP6 somewhere. I have seen the webpage object in the toolbox, but if I embed the image, using these variables for my parameters, i can't get video working. This test address is working for me, I can view either in mjpeg streaming, or h.264. I have the resolution set to 320x240 at 30fps.

showurl: BOOL:=TRUE;
URLADR: WSTRING:="192.168.1.111:9000/stream";

Any advice on how to proceed? I've tried everything I know for now.

Author:  Edwin Schwellinger [ Fri Feb 13, 2015 8:10 am ]
Post subject:  Re: PiCam stream in webvisu

Hi,

we'll release (next week) with the 3.5.SP6 Package an example beside the other new features, Piface LCD etc..

BR
Edwin

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/