Dahua Camera Picture Overlay

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,673
Reaction score
14,018
Location
USA
I tried to use the Picture Overlay on a Dahua camera, and found it cumbersome to produce an image that fits within the constraints required by the camera. So today I built a program that converts common image formats into a small bitmap image that works with the "Picture Overlay" feature available in some Dahua cameras.

You can get it from GitHub: bp2008/DahuaPictureOverlay

Implementation Details

Dahua cameras require the overlay image to be in BMP format with a 256 color palette, no larger than 16 KiB, and no larger than 128x128 pixels. Additionally, BMP files written by other software may or may not work fully depending on the header format used by that software. There are about a dozen bitmap header format specifications, and I had to try three different ones before I found a format that works well with my cameras. RLE bitmap compression does not appear to be properly supported by the cameras.
 

th182

BIT Beta Team
Joined
Sep 11, 2018
Messages
689
Reaction score
1,204
Location
Minnesota
Now I need to come up with a reason to use the overlay! Thank you for all your contributions to the community!


Sent from my iPhone using Tapatalk
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,474
Reaction score
2,130
Location
SF BayArea, USA
I tried to use the Picture Overlay on a Dahua camera, and found it cumbersome to produce an image that fits within the constraints required by the camera. So today I built a program that converts common image formats into a small bitmap image that works with the "Picture Overlay" feature available in some Dahua cameras.

You can get it from GitHub: bp2008/DahuaPictureOverlay

Implementation Details

Dahua cameras require the overlay image to be in BMP format with a 256 color palette, no larger than 16 KiB, and no larger than 128x128 pixels. Additionally, BMP files written by other software may or may not work fully depending on the header format used by that software. There are about a dozen bitmap header format specifications, and I had to try three different ones before I found a format that works well with my cameras. RLE bitmap compression does not appear to be properly supported by the cameras.
Amazing! Thank you so much !
 

tankman

n3wb
Joined
Jan 14, 2023
Messages
23
Reaction score
6
Location
bc
Has anyone been able to get around the very small 128x128pixel limitation of the image overlay on dahua cameras? with a 4K resolution, the overlay image is absurdly tiny. Thanks.
 
Top