Ask Your Question

Revision history [back]

I can save the model. However, I get a Segmentation fault when I try to read the model from the save file.

if( m_FRModes == FacerecTypes::SAVEMODEL && m_LBPHModelTrained ) { model->save( "ATS_LBPHModel" ); m_mode = m_PrvMode; // restore the previous mode } else if( m_FRModes == FacerecTypes::LOADMODEL ) { model->read( "ATS_LBPHModel" ); // segmentation fault here m_mode = MODE_RECOGNITION; // transition to the recognition mode }

click to hide/show revision 2
retagged

updated 2018-06-08 00:30:18 -0600

berak gravatar image

I can save the model. However, I get a Segmentation fault when I try to read the model from the save file.

if( m_FRModes == FacerecTypes::SAVEMODEL && m_LBPHModelTrained ) { model->save( "ATS_LBPHModel" ); m_mode = m_PrvMode; // restore the previous mode } else if( m_FRModes == FacerecTypes::LOADMODEL ) { model->read( "ATS_LBPHModel" ); // segmentation fault here m_mode = MODE_RECOGNITION; // transition to the recognition mode }