if ( p9== 0x03 ) {
QJsonDocument jsonDocument = QJsonDocument :: fromJson ( p10) ;
QJsonObject convertedJsonObject = jsonDocument. object ( ) ;
QJsonArray p_Object = convertedJsonObject[ "pointsArray" ] . toArray ( ) ;
for ( int i= 1 ; i<= SUPPORTED_MAX_POINTS_PERCAMERA; i++ ) {
paramsPoint point;
QJsonObject p_sub_Object = p_Object. at ( i- 1 ) . toObject ( ) ;
point. setX ( p_sub_Object[ "x" ] . toInt ( ) ) ;
point. setY ( p_sub_Object[ "y" ] . toInt ( ) ) ;
point. setName ( p_sub_Object[ "name" ] . toString ( ) ) ;
point. setValid ( p_sub_Object[ "valid" ] . toInt ( ) ) ;
point. setSubValid ( p_sub_Object[ "subvalid" ] . toInt ( ) ) ;
paramsSubPoint params_sub_point;
QJsonObject sub_point_Object = p_sub_Object[ "subpoint" ] . toObject ( ) ;
params_sub_point. setX ( sub_point_Object[ "x" ] . toInt ( ) ) ;
params_sub_point. setY ( sub_point_Object[ "y" ] . toInt ( ) ) ;
point. setSubpoint ( params_sub_point) ;
params4UDirection params_chnnel_4u;
QJsonObject chnnel_4u_Object = p_sub_Object[ "channel4U" ] . toObject ( ) ;
params_chnnel_4u. setChannel ( chnnel_4u_Object[ "channel" ] . toInt ( ) ) ;
params_chnnel_4u. setDirection ( chnnel_4u_Object[ "direction" ] . toInt ( ) ) ;
point. setChannel4U ( params_chnnel_4u) ;
point. setChannelNo ( p_sub_Object[ "channelNo" ] . toInt ( ) ) ;
paramsChannelType params_PointType;
QJsonObject ChannelType_Object = p_sub_Object[ "pointtype" ] . toObject ( ) ;
params_PointType. setGoChannel ( p_sub_Object[ "go" ] . toInt ( ) , p_sub_Object[ "goEN" ] . toInt ( ) ) ;
params_PointType. setLeftChannel ( p_sub_Object[ "left" ] . toInt ( ) , p_sub_Object[ "leftEN" ] . toInt ( ) ) ;
params_PointType. setLeftChannel ( p_sub_Object[ "right" ] . toInt ( ) , p_sub_Object[ "rightEN" ] . toInt ( ) ) ;
point. setPointtype ( params_PointType) ;
point. setRedLightX ( p_sub_Object[ "redlightx" ] . toInt ( ) ) ;
point. setRedLightY ( p_sub_Object[ "redlighty" ] . toInt ( ) ) ;
point. setSpecValid ( p_sub_Object[ "specvalid" ] . toInt ( ) ) ;
paramsSpecPoint params_spec_point;
QJsonObject spec_point_Object = p_sub_Object[ "specpoint" ] . toObject ( ) ;
params_spec_point. setX ( spec_point_Object[ "x" ] . toInt ( ) ) ;
params_spec_point. setX ( spec_point_Object[ "y" ] . toInt ( ) ) ;
point. setSpecpoint ( params_spec_point) ;
point. setQueueValid ( p_sub_Object[ "queue" ] . toInt ( ) ) ;
point. setCheckmethod ( p_sub_Object[ "checkmethod" ] . toInt ( ) ) ;
point. setGreenLightX ( p_sub_Object[ "greenlightx" ] . toInt ( ) ) ;
point. setGreenLightY ( p_sub_Object[ "greenlighty" ] . toInt ( ) ) ;
point. setGreenLessInterval ( p_sub_Object[ "greenLessInterval" ] . toInt ( ) ) ;
gCarDetectorParams. configParams. getCamera ( camId) -> setPoint ( i, point) ;
}
gCarDetectorParams. saveparam ( ) ;
}