Ejemplo n.º 1
0
void QOpenCV::OpenCVWindow::onMarkerStartCancel( bool checked )
{
	if ( checked ) {
		mMarkerPB->setEnabled( false );
		mMarkerPB->setText( tr( "Stop Marker" ) );
		mMarkerBehindCB->setEnabled( true );
		mUpdateCorParPB->setEnabled( true );
		emit setCapVideoMarker( OpenCV::CamSelectCore::getInstance()->selectCamera() );
		emit startMarker();
		mMarkerPB->setEnabled( true );
		emit arucoRunning( true );

		if ( Util::ApplicationConfig::get()->getValue( "Viewer.SkyBox.Noise" ).toInt() >1 ) {
			mMarkerBackgrCB->setEnabled( true );
		}
	}
	else {
		mMarkerPB->setEnabled( false );
		mMarkerBehindCB->setEnabled( false );
		mCorEnabledCB->setEnabled( false );
		mUpdateCorParPB->setEnabled( false );
		mMarkerBackgrCB->setEnabled( false );
		emit stopMarker( true );
		emit arucoRunning( false );
	}
}
Ejemplo n.º 2
0
void QOpenCV::OpenCVWindow::onMultiMarkerStartCancel( bool checked )
{
	qDebug() << "checked = " << checked;
	if ( checked ) {
		mMultiMarkerPB->setText( tr( "Stop Aruco" ) );
		emit setMultiMarker( true );
		emit setCapVideoMarker( OpenCV::CamSelectCore::getInstance()->selectCamera() );
		emit startMultiMarker();
	}
	else {
		mMultiMarkerPB->setText( tr( "Start Aruco" ) );
		emit stopMultiMarker( true );
		emit setMultiMarker( false );

	}
}
Ejemplo n.º 3
0
void QOpenCV::FaceRecognitionWindow::onMultiMarkerStartCancel( bool checked )
{
	if ( checked ) {
		qDebug() << "Clicked MultiMarkerButton" << checked;
		mMultiMarkerStartCancelPB->setText( tr( "Stop MultiMarker" ) );
		emit setMultiMarker( true );
		emit setCapVideoMarker( OpenCV::CamSelectCore::getInstance()->selectCamera() );
		emit startMultiMarker();
	}
	else {
		qDebug() << "Clicked MultiMarkerButton" << checked;
		mMultiMarkerStartCancelPB->setText( tr( "Start MultiMarker" ) );
		emit stopMultiMarker( true );
		emit setMultiMarker( false );
	}
}