Related to the topic of Oskin (http://www.zoneminder.com/forums/viewto ... f=9&t=3657)
I found out that with the use of ImageMagick you can achieve a more accurate brightness (lumination) calculation. The basic command to analyze a video frame is:
LUM_CURR=`convert $TMPDIR/Monitor.jpg -colorspace gray -format "%[fx:100*mean]" info:`
If you want to stick to your original (zoneMinder) Brightness settings (DEF_ZM=32768) with a lumination setting of 60 (TARGET) the calculation will look like this (in bash):
LUM_NEW=$(echo "scale=2; $TARGET/$LUM_CURR*$DEF_ZM" | bc)
echo $LUM_NEW |cut -c1-5
The rest is up to your creative minds!!
Good luck, Christo
Brightness Control
If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Return to “User Contributions”
Jump to
- General
- ↳ Announcements
- ↳ Website Issues
- Support
- ↳ ZoneMinder 1.36.x
- ↳ ZoneMinder 1.34.x
- ↳ Mobile Apps and Event Server
- ↳ Docker
- ↳ ZoneMinder Distributions
- ↳ ZoneMinder Translations
- ↳ Archive [End of Life Versions]
- ↳ ZoneMinder 1.35.x Development Branch
- ↳ ZoneMinder 1.33.x Development Branch
- ↳ ZoneMinder 1.32.x
- ↳ ZoneMinder 1.31.x
- ↳ ZoneMinder 1.30.x
- ↳ ZoneMinder 1.29.x
- ↳ ZoneMinder 1.28.x
- ↳ ZoneMinder 1.27.x
- ↳ ZoneMinder 1.26.x
- ↳ ZoneMinder 1.25.x
- ↳ ZoneMinder 1.24.x
- ↳ ZoneMinder Previous Versions
- Development
- ↳ ZoneMinder 1.37.x Development Branch
- ↳ Feature Requests
- ↳ User Contributions
- Miscellaneous
- ↳ ZoneMinder Hints & Tips
- ↳ Non-ZoneMinder Chat
- ↳ Jobs / For Sale / Wanted / Exchange
- ↳ Hardware Compatibility List
- ↳ Hardware Queries