大华摄像头通过stm32 叠加字符串


 void putdahuaDataToCamera(int camNo)
 {
     //sprintf(strReturn,"{\"method\":\"configManager.setConfig\",\
\"params\":{\"channel\":0,\"name\":\"VideoWidget\",\"table\":{\"ChannelTitle\":{\"BackColor\":[0,0,0,128],\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":true,\"Rect\":[524,784,3145,1220],\"TextAlign\":2},\
\"Covers\":[{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[0,0,1024,1024]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\
     \"PreviewBlend\":false,\"Rect\":[1024,1024,2048,2048]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[2048,2048,3072,3072]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\
     \"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[3072,3072,4096,4096]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[4096,4096,5120,5120]},\
     {\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[5120,5120,6144,6144]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\
     \"Rect\":[6144,6144,7168,7168]},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[7168,7168,8191,8191]}],\
\"CustomTitle\":[{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[0,0,0,0],\"Text\":\"\"},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\
     \"PreviewBlend\":true,\"Rect\":[20,20,2641,456],\"Text\":\"%s|%s|%s|\
%s\",\"TextAlign\":0},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[5321,7450,7931,7868],\"Text\":\"\"},{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\
     \"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[5321,7450,7931,7868],\"Text\":\"\"}],\
\"FontBorder\":true,\
\"FontSize\":0,\"FontSizeExtra1\":0,\"FontSizeExtra2\":0,\"FontSizeExtra3\":0,\"FontSizeScale\":1,\"FontSizeSnapshot\":0,\"OSDMobileState\":{\"BackColor\":[0,1,1,128],\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":true,\
     \"Rect\":[6295,920,7929,1351]},\"PTZCoordinates\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":0,\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[5553,1046,8175,1481]},\
     \"PTZDirection\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":5,\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[5553,1046,8175,1481]},\"PTZOSDMenu\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":0,\
     \"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[541,3320,541,3320]},\"PTZOSDMenuViaApp\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":60,\"EncodeBlend\":true,\"EncodeBlendExtra1\":true,\
     \"EncodeBlendExtra2\":true,\"EncodeBlendSnapshot\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":true,\"Rect\":[281,1477,2897,1542]},\"PTZPreset\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":5,\"EncodeBlend\":true,\
     \"FrontColor\":[255,255,255,3],\"PreviewBlend\":false,\"Rect\":[5553,1046,8175,1481]},\"PTZZoom\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":0,\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\
     \"Rect\":[5553,1046,8175,1481]},\"PictureTitle\":{\"BackColor\":[0,0,0,128],\"EncodeBlend\":false,\"FrontColor\":[255,255,255,0],\"Name\":\"osd.bmp\",\"PreviewBlend\":false,\"Rect\":[0,0,442,668]},\"PtzPattern\":{\"BackColor\":[0,1,1,128],\
     \"DisplayTime\":0,\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\"PreviewBlend\":false,\"Rect\":[541,3320,541,3320]},\"PtzRS485Detect\":{\"BackColor\":[0,1,1,128],\"DisplayTime\":0,\"EncodeBlend\":true,\"FrontColor\":[255,255,255,0],\
     \"PreviewBlend\":false,\"Rect\":[541,3320,541,332

你可能感兴趣的:(stm32)