Thank you for all answers.
I am thinking to use OpenCV and C++ language. Okay, after deleting musical portrait, how can I classify what kind of musical notes they are without machine learning(full note, 1/2 note, 1/4 note) and how can I recognize it is C, D, A, B etc.
(I am asking ideas, methods, tasks etc.)