ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

How to get started with Python and OpenCV?

(1/2) > >>

Deozaan:
[EDIT] Originally posted in this thread: Dice analyzer machine project before being split off into its own thread. [/EDIT]

This is slightly off-topic so if you'd like me to start a new thread I'll do that, but...

I've been toying with an idea to write a little utility that would need to analyze a few words/numbers on the screen (or from a screenshot) and then make a decision and emulate some keyboard input based on that. The thing that's holding me back is that I'm concerned it will take me much more time and effort writing the utility than it would save me from just manually doing the thing I want to automate.

Do you have a recommendation or suggestion or ideas on the relative ease or difficulty it would be for someone like me who is familiar with coding but never really used Python or OpenCV before to get started on extracting data (essentially OCR with a very clear font) from an image?

I can go into more specific details if you'd like but I was attempting to keep this short to prevent myself from derailing this thread too far.

mouser:
The thing that's holding me back is that I'm concerned it will take me much more time and effort writing the utility than it would save me from just manually doing the thing I want to automate.

--- End quote ---

This is always a concern, and an age old dilemma.  Part of the answer so such questions comes down to your personal distaste for doing repetitive manual actions.  Some of us coders have precious little patience for such things and would rather spend 10 hours coding a solution over 1 hour of manual data entry..

If you just have a finite number of times you have to do this, the manual way will probably be quicker.  But if you have to do it over and over for an indefinite amount of time..

Your first test might be to see how good the ocr reading works as that will likely be your biggest bottleneck.  If that works on, the rest should be fairly painless.

Deozaan:
Are there any resources you would recommend that would help me get started with setting up Python and OpenCV?

mouser:
Probably best to split this off into a separate thread.  There is a post about a nice beginner IDE (Thonny) for learning python: https://www.donationcoder.com/forum/index.php?topic=44811
But that may not be well suited to using a big library like OpenCV (I'm not sure).
I do think that learning OpenCV will serve you well.

Deozaan:
I split the thread off. Thanks for the suggestion!

I also found that Packt has a free eBook on Python and OpenCV: Learning OpenCV 3 Computer Vision with Python

Navigation

[0] Message Index

[#] Next page

Go to full version