You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to be able to scan grayscale images with ONS. In my opinion, grayscale images are often the best compromise between file size, OCR quality/readability for computers, and optical impression/readability for humans.
Steps to reproduce:
Scan a new document. You can choose between (full) color oder black & white mode (using the "palette" icon).
Expected behaviour:
The ability to choose grayscale, as a third option.
Would you like to work on the issue?
Potentially. In your app, this would only affect very few lines (colorModeButton.setOnClickListener in OpenNoteScannerActivity.kt would have to have three options instead of the existing two, plus you would need to show a new message in addtion to string.bwMode and string.colorMode). That part is straightforward, so I could write a pull request and test it.
Unfortunately, I do not understand the OpenCV part at all, i.e. which "colorMode" to send to the function sendImageProcessorMessage(). Or maybe that's not even possible and one would have to use OpenCV's cvtColor() on a full color image. I don't know when/if I will find the time to figure that out... 🤷♂️
Alternatively, one could consider implementing some sort of "outsourced" camera control (as requested in #97). In this case, one could choose grayscale mode in the external (?) camera settings screen. From ONS' point of view, we would then receive a "color image" that happens to contain only gray colors.
The text was updated successfully, but these errors were encountered:
I would love to be able to scan grayscale images with ONS. In my opinion, grayscale images are often the best compromise between file size, OCR quality/readability for computers, and optical impression/readability for humans.
Steps to reproduce:
Scan a new document. You can choose between (full) color oder black & white mode (using the "palette" icon).
Expected behaviour:
The ability to choose grayscale, as a third option.
Would you like to work on the issue?
Potentially. In your app, this would only affect very few lines (
colorModeButton.setOnClickListener
inOpenNoteScannerActivity.kt
would have to have three options instead of the existing two, plus you would need to show a new message in addtion tostring.bwMode
andstring.colorMode
). That part is straightforward, so I could write a pull request and test it.Unfortunately, I do not understand the OpenCV part at all, i.e. which "colorMode" to send to the function
sendImageProcessorMessage()
. Or maybe that's not even possible and one would have to use OpenCV'scvtColor()
on a full color image. I don't know when/if I will find the time to figure that out... 🤷♂️Alternatively, one could consider implementing some sort of "outsourced" camera control (as requested in #97). In this case, one could choose grayscale mode in the external (?) camera settings screen. From ONS' point of view, we would then receive a "color image" that happens to contain only gray colors.
The text was updated successfully, but these errors were encountered: