This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'rom1dep' | |
import cv2 | |
from cv2 import imread, imshow, waitKey | |
import numpy as np | |
img = imread("piano.jpg") | |
(h, w, _) = img.shape | |
roi = img[160:180, :] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalafx.application.JFXApp | |
import scalafx.application.JFXApp.PrimaryStage | |
import scalafx.beans.binding.Bindings | |
import scalafx.beans.property.ObjectProperty | |
import scalafx.collections.ObservableBuffer | |
import scalafx.scene.Scene | |
import scalafx.scene.control.{Button, Label} | |
import scalafx.scene.layout._ | |
object Main extends JFXApp { |