ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Not detecting correct camera resolutions?
 New Topic  Topic Locked
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

cpstevenc

USA
125 Posts

Posted - Feb 10 2014 :  10:44:12  Show Profile
I have some tablets with the OV8830 and OV2720
cameras on it.

For both cameras, the max rez found for both are
640x480

Uses the ImageEn example programs and they had the same
problem also.

Max is 1920x1080 for one of them and
3264x2448 for the other.

http://www.ovt.com/products/sensor.php?id=91
http://www.ovt.com/products/sensor.php?id=102

Delphi 7 and ImageEN 5.0.0

Program is running on a win8 tablet.

Only my dev machine, it finds all the proper
resolutions fine, and on another win7 laptop without
problems.

cpstevenc

USA
125 Posts

Posted - Feb 12 2014 :  08:19:24  Show Profile
http://www.grizzlymotion.com/Download/Werkstatt/VSampleDemo/vsampledemo.html

I tried this demo out, and it works. On both cameras I am able
to see and use resolutions past 640x480.

I went back to using the ImageEN demos and they all have the same
problem of only seeing upto 640x480 on both these cameras.

On the tablet, I plugged in a USB camera and my program and the ImageEN
demos saw the 1920x1080 on it, but still 640x480 on the other two.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 12 2014 :  09:49:47  Show Profile
I am thinking this comes down to compression levels that ImageEN does
not support, and filters those out completely.

If so, does ImageEN have any time line on adding support for new compressions for
these and other new cameras coming out? As it seems there is a few out there
not support. The Above VSample demo while worked with things past 640x480, it to did not have every single resolution supported. It did not support NV12 compression for example.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 12 2014 :  10:17:04  Show Profile
http://www.imageen.com/info/HistoryFull.html



- TImageEnVideoView: support capture card with IYU1, IYU2, UYVY, UYNV, cyuv, YUY2 YUNV, YVYU, Y41P, Y211, CLJR, YVU9, YV12, I420, IYUV input formats

Couldn't find any other version with changes like this?

NV12 needs added or converted into another it appears?
Go to Top of Page

xequte

39053 Posts

Posted - Feb 12 2014 :  21:00:01  Show Profile
Hi

Can you clarify whether you are using the Video for Windows (TImageEnVideoView) demos, or the DirectShow ones?


You should not use the deprecated component, TImageEnVideoView, because it uses Video for Windows which is not supported by newer versions of Windows

You should use TImageEnView.IO.DShowParams to capture video from cameras, because it uses the more modern DirectShow API:

http://www.imageen.com/help/TImageEnIO.DShowParams.html


Also see the DirectShow capture demos at:

http://www.imageen.com/demos/

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 12 2014 :  22:12:47  Show Profile
DirectShow version.

Infact, we used the DirectShow6\DShowCap project as the basis of how
to do our code.

Using any of the ImageEN Directshow demo apps as they are, all show the same problem on these tablets of 640x480.

We have two brands of tablets, but both have these exact cameras, both
reproduce the same problem.


Go to Top of Page

fab

1310 Posts

Posted - Feb 18 2014 :  05:58:59  Show Profile
Please run DirectShow2 and let me know the complete content of "Supported formats" listbox.

Unfortunately I haven't a tablet or notebook with OV8830 or OV2720. Do you know an external USB webcam with the same problem?
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 18 2014 :  11:10:43  Show Profile
this is what shows in the list box. Values are the same
for both cameras

448x252 to 448x252
YUY2 448x252 to 448x252
640x360 to 640x360
YUY2 640x360 to 640x360
640x480 to 640x480
YUY2 640x480 to 640x480
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 20 2014 :  08:30:30  Show Profile
Next problem is, doesn't matter what resolution is selected, the output
from the camera is always 448x252 it appears.

I tried the program on my system, works fine, tried it again on the tablet,
and the resolution and file output in the demos always shows and saves out to 448x252.

Getting my teeth kicked in over here by management over this problem
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 20 2014 :  10:03:18  Show Profile
I noticed, in that list... the Format value is null for 1,3,5... which I assume are the NV12 formats.

Also in our code and the Demos it has code like this

ImageEnView1.IO.DShowParams.SetVideoInput(ComboBox1.ItemIndex,
StrToIntDef(edit4.Text,0),
w, // capture width
h, // capture height
'' // format
);


The format appears to be always blank. So if you have a resolution in 2 or more formats, what is being used?
In cases of ones in my case where the format IS coming back blank, hows that play into all of this?

In the documentation all I could find is format parameter does not need passed. But I can't find what
that means in the long run. If a '' is passed / nothing passed at all, what does that exactly mean then?

TIEDirectShow.SetVideoInput

Declaration

procedure SetVideoInput(idx:integer; instanceIndex:integer = 0; width:integer = 0; height:integer = 0; format:AnsiString = '');

Description

Allows selection of a video input. You can get an index from VideoInputs property.
InstanceIndex specifies the video input on the same device.
width and height specifies video frame size in pixels.
format specifies video format (ie. 'YUY2',...)

Example

ImageEnView.IO.DShowParams.SetVideoInput(0, 0, 640, 480); // captures at 640x480



In my case, we want to use the highest/bestest/greatest video input size and quality
that can be had from the camera.

With the windows 8 camera software, it appears to do this but no idea how they determine so.
If there is a simple call that can be set to tell the camera "hey, best quality everything" or
they have a list of this format is better then this one, and they run through a list.

Go to Top of Page

fab

1310 Posts

Posted - Feb 20 2014 :  14:38:26  Show Profile
quote:
Next problem is, doesn't matter what resolution is selected, the output
from the camera is always 448x252 it appears.

I tried the program on my system, works fine, tried it again on the tablet,
and the resolution and file output in the demos always shows and saves out to 448x252.

Getting my teeth kicked in over here by management over this problem


About this specific problem, I'd like you test another application.
In particular I'd like you test VLC (http://www.videolan.org/vlc), select menu Media->Open Capture Device.
Do you see the 448x252 rectangle (instead of the full image)?

ImageEn will support Windows Media Foundation starting from next minor version, which should solve these problems.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 20 2014 :  18:01:39  Show Profile
thanks fab, i will let you know in the morning once im at the office on the results.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 21 2014 :  09:04:06  Show Profile
VLC worked at 640x480.. streamed/saved fine. Could not figure out how
to change resolution easily. Had a video size input box but couldn't get
that working.

Any ETA on the next version that would have WMF support?
Go to Top of Page

fab

1310 Posts

Posted - Feb 26 2014 :  02:02:07  Show Profile
Next minor version will have Media Foundation support, at least for camera video capture. It will be released as soon as possible.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Feb 28 2014 :  08:00:14  Show Profile
thanks fab, ill be looking out for it.
Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Apr 01 2014 :  07:03:35  Show Profile
Just checking in if any progress has been made on this front?
Go to Top of Page

xequte

39053 Posts

Posted - Apr 01 2014 :  13:29:14  Show Profile
The update is running a little behind, but should be ready in the next week or so.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

wadeauch

New Zealand
5 Posts

Posted - Apr 10 2014 :  14:18:57  Show Profile
I have a very similar problem to this (Toshiba Encore Win 8.1 tablet, 2 cameras, XE5).

I have just tried the ImageEn 5.1 MediaFoundationCam demo.

Things have improved, but there is still a problem.

The good stuff: Both cameras work and both offer resolutions up to 1280 x 960 and now NV12 is supported as well as YUY2.

However, the rear camera is 8MP so I would expect to see a much higher resolution.

As a comparison, when I run the demo on a desktop computer with a Logitech camera there are much greater resolutions listed (and they work)

Any ideas?

Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Apr 15 2014 :  13:52:54  Show Profile
Ran the demo program for the new Media Foundation support.

Problems still exist.

OV8830 and OV2720 cameras both only show 640x480.

NV12 and YUY2 show up in the resolution list box.

When tried on my laptop, it works fine and see's all the
available resolutions.

Go to Top of Page

cpstevenc

USA
125 Posts

Posted - Apr 15 2014 :  13:56:28  Show Profile
Also my offer still stands to setup to offending tablet for you guys to remote into and test on with these cameras. I assume my problem is very similar to wadeauch's... SOMETHING strange not documented/handled properly is causing grief on these resolutions and can only be found by actually being able to access
the hardware.
Go to Top of Page

wadeauch

New Zealand
5 Posts

Posted - Apr 15 2014 :  14:25:54  Show Profile
For reference, the Toshiba Encore cameras are:

Front: OV2722
Resolutions reported (NV12 and YUY2): 640x480, 640x360, 1280x720, 1280x960

Rear: IMX175
Resolutions reported (NV12 and YUY2): 640x480, 640x360, 1280x720, 1280x960
(i.e. the same).

On the OV2722 sensor there are resolutions not reported (It is a 1080p camera so I would expect to see 1920x1080)

The IMX175 is 8MP so there must be several higher resolutions that are not listed.

Likewise, I can make a tablet available for remote connection.

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
Jump To: