How to control webcam to preview and take photo by RVCamera?

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
camel
Posts: 4
Joined: Mon Jan 07, 2019 7:18 am

How to control webcam to preview and take photo by RVCamera?

Post by camel » Mon Jan 07, 2019 7:41 am

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!

giovani.erthal
Posts: 4
Joined: Thu Dec 27, 2018 1:48 am

Re: How to control webcam to preview and take photo by RVCamera?

Post by giovani.erthal » Mon Jan 07, 2019 5:25 pm

I'm not familiar with RVMedia.

But I imagine this is what you want:

https://www.trichview.com/help-media/in ... apshot.htm

camel
Posts: 4
Joined: Mon Jan 07, 2019 7:18 am

Re: How to control webcam to preview and take photo by RVCamera?

Post by camel » Tue Jan 08, 2019 2:20 am

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! :)

Sergey Tkachenko
Site Admin
Posts: 14332
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to control webcam to preview and take photo by RVCamera?

Post by Sergey Tkachenko » Tue Jan 08, 2019 6:34 pm

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\

camel
Posts: 4
Joined: Mon Jan 07, 2019 7:18 am

Re: How to control webcam to preview and take photo by RVCamera?

Post by camel » Wed Jan 09, 2019 2:01 am

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?

Sergey Tkachenko
Site Admin
Posts: 14332
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to control webcam to preview and take photo by RVCamera?

Post by Sergey Tkachenko » Wed Jan 09, 2019 2:18 pm

Some resolution may use encoding unsupported by RVMedia, or not accessible using DirectX method that RVMedia uses.
RVMedia lists all supported video modes.

camel
Posts: 4
Joined: Mon Jan 07, 2019 7:18 am

Re: How to control webcam to preview and take photo by RVCamera?

Post by camel » Thu Jan 10, 2019 2:06 am

OK, I see.
And do you have any plan/intention to use media foundation in the future?
Thx!

Sergey Tkachenko
Site Admin
Posts: 14332
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How to control webcam to preview and take photo by RVCamera?

Post by Sergey Tkachenko » Thu Jan 10, 2019 7:35 am

Probably, there are no definite plans about it yet.
There are works with higher priority (FireMonkey, different platforms, ONVIF support)

Post Reply