Advice on "Matrix Metering" for Cams ?

Liste des GroupesRevenir à col misc 
Sujet : Advice on "Matrix Metering" for Cams ?
De : c186282 (at) *nospam* nnada.net (c186282)
Groupes : comp.os.linux.misc
Date : 04. May 2025, 06:24:21
Autres entêtes
Message-ID : <uhucnXb6KohhZIv1nZ2dnZfqn_GdnZ2d@giganews.com>
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
I've got half a dozen security cams. Some are
straight IP, others - PI and others - use 'motion'
to create an MPEG stream.
Wrote a display app (python) that rolls through
the cams so I can see what's going on. Also a
sep app that RECORDS selected cams as MP4s
mostly using OpenCV stuff.
HOWEVER ... while I do have a little daemon that
sets day/night values for v4l2 that's not always
good enough. Super-bright, or cloudy, days can
result in kinda crappy images.
Tried simple histogram expansion - but that kinda
looked WORSE in most cases - TOO much contrast.
SO ... wrote a little app that breaks the images
into a 7x5 matrix and yields 'average brightness'
figures for each segment ... the basic of 'matrix
metering'.
Alas even after extensive searching I can't find
any advice on HOW to make use of those figures,
HOW to adjust brightness/contrast based on that
matrix analysis.
Camera makers HAVE figured this out, and 'matrix'
almost always yields great images. Alas the HOW
is not published.
OpenCV2 can adjust both brightness and contrast
quite easily - but what VALUES to feed it .....
Have you seen anybody addressing this problem,
this issue, on the net where I might get advice
on how best to analyze those image segments and
derive the needed adjustment figures ??? This
drifts into "statistics" - not my best issue.

Date Sujet#  Auteur
4 May 25 * Advice on "Matrix Metering" for Cams ?3c186282
4 May 25 `* Re: Advice on "Matrix Metering" for Cams ?2rbowman
5 May 25  `- Re: Advice on "Matrix Metering" for Cams ?1c186282

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal