src/ChildWidget.cpp
/*
 * Replace original image with Thresholded image from tesseract
 */
Replace original image with Thresholded image from tesseract
Replace original image with Thresholded image from tesseract
void ChildWidget::binarizeImage() {
  if (DMESS > 10) qDebug() << Q_FUNC_INFO;
  imageScene->removeItem(imageItem);
  QImage image = gItem2qImage();
  delete imageItem;
  QImage bImage = TessTools::GetThresholded(image);
  imageItem = imageScene->addPixmap(QPixmap::fromImage(bImage));
}
void ChildWidget :: binarizeImage ( ) { if ( DMESS > 10 ) qDebug ( ) << Q_FUNC_INFO ; imageScene -> removeItem ( imageItem ) ; QImage image = gItem2qImage ( ) ; delete imageItem ; QImage bImage = TessTools :: GetThresholded ( image ) ; imageItem = imageScene -> addPixmap ( QPixmap :: fromImage ( bImage ) ) ; }
Replace original image with Thresholded image from tesseract
Replace original image with Thresholded image from tesseract