jpg to mid conversion is most likely looked up by users that have music sheets saved as JPEG pictures and would like to turn them either to regular music sheets or even directly to MIDI instrumental music. You will need good OMR solution for this, something like CadenCV you can find on GitHub.
Updated: August 1, 2023