
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
25
automatically, darker, OSD will be brighter, and the twinkle function is closed
unsigned short *Forma1, Format2
strings overlay to describe the position and
sequence of character, the description about them
as follows:
USHORT X
,
USHORT Y
,
CHAR0
,
CHAR1
,
CHAR2
,
… CHARN, NULL
X and Y means the initiative position of this string in the normal CIF image, and X
must be the multiple of 16, and Y can be set in the extent of image height: (0-575) PAL, (0-479)
NTSC. CHARN is a parameter of USHORT, it can be ASCII or GB code Characters. When want
to display the current time, you can point it as the fixed constant value, and they are as follows:
_OSD_YEAR4 show year time by length of 4, for example: 2004
_OSD_YEAR2 show year time by length of 2, for example: 02
_OSD_MONTH3 show month time in English, for example: Jan
_OSD_MONTH2 show month time by two Arabic numerals, for
example :07
_OSD_DAY show daytime by two Arabic numerals, for example: 31
_OSD_WEEK3 show week time in English, for example: Tue
_OSD_CWEEK1 show week time in Chinese GB code , for example :
星期二
_OSD_HOUR24 show 24 hours clock, for example: 18
_OSD_HOUR12 show 12 hours clock, for example: AM09 or PM09
_OSD_MINUTE show minute time by length of 2
_OSD_SECOND show second time by length of 2
Note that we must set NULL in the end of format strings, otherwise there will show some error
contents.
The display of string and time can be set in FORMAT1 or FORMAT2, and they can be mixed
together, but the width of them can not exceed the width of four line CIF image.
The format string about showing the string of ‗office‘ on the position (16,19) as follows:
unsigned short Format[] = {16, 19, 'O', 'f', 'f', 'i', 'c', 'e', ‗\0‘};
The time string showing on the position (8, 3) as follows:
unsigned short Format[]=
{8,3,_OSD_YEAR4,‘:‘OSD_MONTH2,‘:‘,_OSD_HOUR24,‘:‘_OSD_MINUTE,‘:
‘,_OSD_SECOND,‘\0‘};
If we only want to show one line of them, we can define the format string as follows:
unsigned short FormatNoDisplay [] = {0, 0, ‗\0‘};
Return value:
0—success; -1 – failed;
4.2.41.
int SetOsd(int channelHandle, int Enable);
Parameter:
int channelHandle channel handle
int Enable
enables
Explanation:
Enable or disable the OSD. It can make the currently system time(such as year , month ,
day ,hour ,minute and second ) or custom string overlay with the real-time active video
window, translucent processing is also permitted.