[Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Winston Zhang winston.zhang at blacksesame.com.cn
Thu May 3 21:02:24 PDT 2018


Hi, Andrey
[cid:image002.png at 01D3E39F.B8FE86F0]

The picture is captured from https://wiki.elphel.com/wiki/Using_gstreamer#Display, and please look at the red rectangle area, what is this mean? And this web paper introduce an stream of yuv-format(“gst-launch -v rtspsrc location=rtsp://192.168.0.9:554 ! queue ! rtpjpegdepay ! queue ! jpegdec ! queue ! \
    videorate ! capsfilter caps="video/x-raw-yuv, format=(fourcc)I420, width=(int)1024, height=(int)768, framerate (fraction)25/1" ! \
    queue ! avimux ! filesink location=/tmp/test.avi
”), but in you setting web of image, I cannot find the value point to the yuv.


Best Regrad!
Yicheng-Zhang
Email:  winston.zhang at blacksesame.com.cn
Teil:    18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Winston Zhang
发送时间: 2018年5月4日 星期五 11:24
收件人: 'Elphel Support' <support-list at support.elphel.com>
抄送: Elphel Sales | Olga Filippova <sales at elphel.com>; Tao Zhang <tao.zhang at blacksesame.com.cn>; Qun Gu <qun.gu at blacksesame.com>
主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Hello Andrey
      I want to get camera image raw data(.jp4) buffer, but I cannot get it through gstreamer. I should do a demo app with C/C++, how can I get the camera image raw data, and keep the two camera sync?



Best Regrad!
Yicheng-Zhang
Email:  winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>
Teil:    18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Elphel Support [mailto:support-list at support.elphel.com]
发送时间: 2018年4月24日 星期二 23:24
收件人: Winston Zhang <winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>>; Elphel List <support-list at support.elphel.com<mailto:support-list at support.elphel.com>>
抄送: Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Hello Winston,

There are several parameters that tell autoexposure daemon - what to do.
The main are autoexposure window (it will not pay attention to anything outside of it), and then
AEXP_FRACPIX (0..100% in GUI, 0..0xffff in parameter editor)
AEXP_LEVEL(0..255 in GUI, 0..0xffff in parameter editor)


Autoexposure daemon "looks" at the histogram calculated inside autoexposure window and tries to adjust exposure so that AEXP_FRACPIX fraction of the pixels inside the selected window will have value below AEXP_LEVEL.

In your case you have too much area of the bright lights (it is more that 100%-AEXP_FRACPIX%) for your current settings. You should allow lights to be overexposed and do one of the following:
1) change the window so it will not contain any lights (when capturing outdoor images you may set window below the Sun level)
or
2) reduce the AEXP_FRACPIX to be lower than 100%- percent of pixels corresponding to lamps.

When using camvc gui you may do it this way:

1) turn of autoexposure and manually set desired exposure.
2) move the top slider (AEXP_LEVEL) on the autoexposure settings (https://wiki.elphel.com/wiki/Autoexposure ), the second slider (AEXP_FRACPIX) will move to reflect requirec value of the AEXP_FRACPIX to produce the exposure you selected manually
2) turn autoexposure on - it will follow your settings.

Andrey



---- On Mon, 23 Apr 2018 23:00:43 -0700 Winston Zhang<winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>> wrote ----
Hi, Andrey.

1.    I have updated the firmware successfully(version 20180416), But I could not fix the two camera AE sync problem?

2.    The camera AE value was very small, the value was set as fellow. But actually, the environment light was just suitable.[cid:image003.png at 01D3E39F.B8FE86F0]



Best Regrad!
Yicheng-Zhang
Email:  winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>
Teil:    18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Elphel Support [mailto:support-list at support.elphel.com<mailto:support-list at support.elphel.com>]
发送时间: 2018年1月9日 星期二 10:03
收件人: Winston Zhang <winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>>; support-list at support.elphel.com<mailto:support-list at support.elphel.com>
抄送: Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>; Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Hello Winston,

got the video - difficult to tell w/o settings. Can you open these URLs (modify IP if needed) and post the values?

for port 0:

http://192.168.0.9/parsedit.php?sensor_port=0&EXPOS&WOI_LEFT&WOI_TOP&WOI_WIDTH&WOI_HEIGHT&AUTOEXP_ON&HISTWND_RWIDTH&HISTWND_RHEIGHT&HISTWND_RLEFT&HISTWND_RTOP&AUTOEXP_EXP_MAX&AEXP_FRACPIX&AEXP_LEVEL&AE_THRESH&AE_PERIOD

for port 1:

http://192.168.0.9/parsedit.php?sensor_port=1&EXPOS&WOI_LEFT&WOI_TOP&WOI_WIDTH&WOI_HEIGHT&AUTOEXP_ON&HISTWND_RWIDTH&HISTWND_RHEIGHT&HISTWND_RLEFT&HISTWND_RTOP&AUTOEXP_EXP_MAX&AEXP_FRACPIX&AEXP_LEVEL&AE_THRESH&AE_PERIOD
Andrey


---- On Mon, 08 Jan 2018 17:33:51 -0800 Winston Zhang<winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>> wrote ----
Hi Andrey,
      Please receive the attachment.



Best Regrad!
Yicheng-Zhang
Email:  winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>
Teil:    18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: Elphel Support [mailto:support-list at support.elphel.com<mailto:support-list at support.elphel.com>]
发送时间: 2018年1月9日 星期二 9:24
收件人: Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>
抄送: Winston Zhang <winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>>; Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>
主题: Re: 答复: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Tao,

OK, will wait for the picture. White balance does not need to change for the outdoor (maybe for night city with electrical lights - and I still recommend to use presets). You see there are conditions when it is easy to fool AWB, and while it may be OK for just a regular camera, you need to know exactly how the image is processed to match multiple images.

The AWB algorithm is rather simple. It assumes that the brightest object in the scene is white - and in most cases it works. But when there is nothing white in the scene - AWB fails.

With AE you may try to change those values I mentioned earlier.

Andrey

---- On Mon, 08 Jan 2018 17:06:43 -0800 Tao Zhang<tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>> wrote ----
Hi Andrey,
We will fix the camera on a car. The light condition may change. AWB need to adapt to the change. For AE, the scene is normal in the office, there is not bright light. But it cannot converge to a stable status. We will attach images and videos of those problems later.

Tao Zhang
章   涛

发件人: Elphel Support [mailto:support-list at support.elphel.com<mailto:support-list at support.elphel.com>]
发送时间: 2018年1月9日 4:02
收件人: Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>; Elphel List <support-list at support.elphel.com<mailto:support-list at support.elphel.com>>
抄送: Winston Zhang <winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>>; Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Tao,

I did not get the attached image to see your problem, but I expect you just need to modify the settings. Camera has a flexible control over AWB and AE to provide optimal operation for different lighting conditions. Most likely problem of of the instability is that there is a bright light source in the field of view.

First you need to make AE stable, then set or disable AWB (it only needs to be changed when you move from the indoors to outdoors), so if you work outdoors you may just set AWB once and then save parameters - that will make image matching easier.

For AE you may control:
1) the AE window (camera will only consider exposure for the selected rectangle, ignoring lights outside it.
2) The fraction of pixels that should have intensity values below certain threshold - reduce default value if there are lights in the FOV (especially electrical lights that have flicker)
3) The level (default 250) - target of autoexposure.
There are some illustrations on the wiki: https://wiki.elphel.com/wiki/Autoexposure

Andrey
---- On Mon, 08 Jan 2018 01:10:17 -0800 Tao Zhang<tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>> wrote ----
BTW, your stereo AE has oscillation and AWB is not accurate. Do you have updated firmware to solve these problems?

Tao Zhang
章   涛

发件人: Winston Zhang
发送时间: 2018年1月8日 16:54
收件人: Oleg <support-list at support.elphel.com<mailto:support-list at support.elphel.com>>
抄送: Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Dan Pan <admin at blacksesame.com<mailto:admin at blacksesame.com>>; Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>
主题: 答复: [Elphel-support] 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Hello
      Thank you for your patient to answer my question. But I have some others as follow.

1)    How should I make the left and right camera AWB change synchronously? The left camera image color is very different with right camera image color. Please look at the last email attachment. I followed your advices, and set the WB_EN=0 and GAINR/GAING/GAINB = some value, and made the left and right camera image WB very close. But it just applies only to one situation. If I change the ambient lighting brightness, the GAINR/GAING/GAINB value should be set again.

2)    How should I make the left and right camera exposure change synchronously? The left and right camera exposure at different time and cause the image brightness different. So, if I capture the same timestamp frames, the frames brightness are so different. I want to do some stereo-match work, but all of these get me into trouble.



Best Regrad!
Yicheng-Zhang
Email:  winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>
Teil:    18516291005
Addr:   707 room, 7th floor, building 4th, No.1761, Zhangdong road, Pudong area

发件人: andersonnotgood at gmail.com<mailto:andersonnotgood at gmail.com> [mailto:andersonnotgood at gmail.com] 代表 Oleg
发送时间: 2017年12月28日 星期四 3:13
收件人: Winston Zhang <winston.zhang at blacksesame.com.cn<mailto:winston.zhang at blacksesame.com.cn>>
抄送: Elphel Sales | Olga Filippova <sales at elphel.com<mailto:sales at elphel.com>>; Dan Pan <admin at blacksesame.com<mailto:admin at blacksesame.com>>; Tao Zhang <tao.zhang at blacksesame.com.cn<mailto:tao.zhang at blacksesame.com.cn>>; Qun Gu <qun.gu at blacksesame.com<mailto:qun.gu at blacksesame.com>>; elphel support-list <support-list at support.elphel.com<mailto:support-list at support.elphel.com>>
主题: Re: [Elphel-support] 答复: 答复: 答复: 答复: 答复: Re: Quote for 1 NC393-Stereo camera

Hello,

1)    How could I get the raw data of camera. Because when I got the rgb data from multipart jpeg stream, the image had some color blocks if I amplified eight times. I thought it could be caused by image conversion compression.(please look at the attachments).

You can switch to JP4 format<https://wiki.elphel.com/wiki/JP4> - it's close to raw.
What I see in the attached images is they have different white balance. And also there are overexposed areas which can affect the correct balance.

The white balance is run independently for each sensor - you can try to set it so the images look the same and then turn off for both sensors:
a) open the web interface for each sensor<https://wiki.elphel.com/wiki/Tmp_manual#Web_user_interface_.28camvc.29> - click on the green circle OR
b) set WB_EN=0 (also for both channels) in parameters<https://wiki.elphel.com/wiki/Tmp_manual#Change_parameters> - if you change it through a table (http://192.168.0.9/parsedit.php?sensor_port=2&title=Parameters+for+groups:+whiteBalance+&GTAB_R&GTAB_G&GTAB_GB&GTAB_B&WB_THRESH&WB_PERIOD&WB_MASK&WB_EN&WB_WHITELEV&WB_WHITEFRAC&WB_MAXWHITE&WB_SCALE_R&WB_SCALE_GB&WB_SCALE_B&GAIN_MIN&GAIN_MAX&GAIN_CTRL&GAIN_STEP&ANA_GAIN_ENABLE) then there is a broadcast mask to set the parameter for all sensors at the same time - set it to F.

if I amplified eight times.
What are the gains and exposure for each sensor?

2)    The camera temperature has risen quickly, and I could not capture images. Because it was so slowly to run the video when the camera had been opened for four hours. But If I closed the camera and the temperature dropped down, the video was showed normally.

What is the temperature? http://192.168.0.9 > Temperature monitor
If it's around 70-80 it's ok (at 90 degrees the camera is forced to shut down)
Also, the camera should reach the steady temperature pretty much in the the first 30-60 mins.

- what is the image quality?
- what are the exposure times? you can try limiting exposure time. The default fps is 10 - so, It will get slow if exposure times are >100ms.
- is the camera and the pc the only devices in the network? camera connected directly to PC vie cable?
- connect to the camera via ssh and check cpu load:
$ ssh root at 192.168.0.9<http://mailto:root@192.168.0.9>
root at elphel393:~# htop
then click on CPU% table header.
- your PC's cpu load? If you are watching from the browser - it might not be able to handle the streams as well.

Best regards,
Oleg Dzhimiev
Electronics Engineer
phone: +1 801 783 5555 x124
Elphel, Inc.
_______________________________________________
Support-list mailing list
Support-list at support.elphel.com<mailto:Support-list at support.elphel.com>
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com






_______________________________________________
Support-list mailing list
Support-list at support.elphel.com<mailto:Support-list at support.elphel.com>
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com



_______________________________________________
Support-list mailing list
Support-list at support.elphel.com<mailto:Support-list at support.elphel.com>
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20180504/62743721/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 7839 bytes
Desc: image002.png
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20180504/62743721/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 260947 bytes
Desc: image003.png
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20180504/62743721/attachment-0003.png>


More information about the Support-list mailing list