03-07-2014 12:24 PM
Hi experts,
I have 1 requirement to capture image from WEBCAM on some action in SAP ABAP Program.
Is there any possible way by which I can achieve this.
-Regards
Rohit
03-07-2014 1:17 PM
Hi Rohit,
Microsoft has provided some video capturing APIs using which you can create a small application and invoke the same using system commands.
There is a simple C program available using Video For Windows(VFW) APIs.
Please refer link below for the capturing program.
http://batchloaf.wordpress.com/2011/04/06/snapz-a-command-line-cam-image-grabber/
And for calling system commands refer link:
Let me know if it helped?
Thanks,
Zuber
03-07-2014 2:49 PM
03-07-2014 7:21 PM
Hello Rohit,
You can try the below option.
Find the location of exe file for Webcam in your system.
Pass the path to anyone one of the below function modules, run the function module, then it will launch the webcam application.
GUI_RUN
GUI_EXEC
Class CL_GUI_FRONTEND_SERVICES and method EXECUTE
Regards,
Thanga
03-10-2014 4:37 AM
Hi Experts,
Thanks for the replies,
I tried all this but didn't get any success.
@Zuber as advised by Zuber, I tried CommandCam also, but this program wont capture Images when we run it with ABAP code.
Please advice.
-Regars
Rohit
03-10-2014 9:01 AM
Hello Rohit,
Have you tried by using the above function module which I referred ?
Did you find any luck on it ?
Regards,
TP
03-10-2014 9:18 AM
Hi,
it depends on how is that webcam used, if it has any API etc...
But most webcams can usually stream pictures over FTP and so you can acces this picture anytime from SAP over HTTP/S or FTP/S.
I have no experience with this, but there are definitely some options to load file (picture) over HTTP/S. For example cl_gui_picture method load_picture_from_url might be worth try
Let us know, if you made it work. It is interesting requirement
03-10-2014 11:35 AM
Hiii,
You want something like below program ??? than you need to work out with CFW and Activex controls
03-11-2014 4:51 PM
Yes Ashish,
I want some like this..
Please guide me, how this can be possible.
-regards
Rohit
03-24-2014 5:06 PM
03-25-2014 5:46 AM
Hi rohit,
I was busy in my work ..... for accessing webcam in ABAP screen you need activeX for starting and capturing images via WEBCAM or you can search free version activeX. than you need to inherit class cl_gui_control in your z* class and register that activeX and access its method inside it .
BR
Ashish
04-14-2014 8:39 PM
hello all
I'm with the same need for Rohit Madnawat.
You could better detail this solution?
Thank you.
04-16-2014 8:14 AM
Hi @julio cesar de souza ,@Rohit Madnawat),
I'd recently posted document for you guys
04-17-2014 12:40 PM
Thanks for the help, I'll try to apply to my environment. Thank you.
09-04-2019 11:52 AM
Hi,
can you tell me how to use ActiveX in sap ABAP, i also have same requirement that's why i want to know about it.
please help me.