Page 1 of 1
How to control webcam to preview and take photo by RVCamera?
Posted: Mon Jan 07, 2019 7:41 am
by camel
I'm using Rad2010+RVCamera to access the built-in webcam on a surface pro4 device.
I'm wondering if it's possible to preview & take photo by RVCamera component.
It seems that only video stream is supported and the available max resolotion is 1920*1080.
Looking forward to your response, thx a lot!
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Mon Jan 07, 2019 5:25 pm
by giovani.erthal
I'm not familiar with RVMedia.
But I imagine this is what you want:
https://www.trichview.com/help-media/in ... apshot.htm
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Tue Jan 08, 2019 2:20 am
by camel
Yes, I've tried this one, it can only get a picture with the same resolution as the video(1920*1080 pixels).
But I'd like to take photos with much higher resolution(3264*2448 pixels) which the sensor is acutally capable of.
In other words, I want to make the camera work at "photo mode" instead of "video mode".
You got any idea of this? Thanks a lot!
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Tue Jan 08, 2019 6:34 pm
by Sergey Tkachenko
No, it's not possible. RVMedia makes snapshots at the same resolution as the current camera video mode.
You can switch camera to high-res mode, make a snapshot, than switch it back.
The demo for switching video modes is in <RVMedia dir>\Demos\Delphi\Cameras\WebCam\
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Wed Jan 09, 2019 2:01 am
by camel
Hi Sergey, thx for ur reply.
I tried to run this sample on Surface Pro4 but 1920*1080(1920*1080 16bits YUY2) is the highest one in all listed resolutions.
It seems that only those resolutions that supported under "video mode" are enumerated. Why is that?
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Wed Jan 09, 2019 2:18 pm
by Sergey Tkachenko
Some resolution may use encoding unsupported by RVMedia, or not accessible using DirectX method that RVMedia uses.
RVMedia lists all supported video modes.
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Thu Jan 10, 2019 2:06 am
by camel
OK, I see.
And do you have any plan/intention to use media foundation in the future?
Thx!
Re: How to control webcam to preview and take photo by RVCamera?
Posted: Thu Jan 10, 2019 7:35 am
by Sergey Tkachenko
Probably, there are no definite plans about it yet.
There are works with higher priority (FireMonkey, different platforms, ONVIF support)