Image (Numbers/Letters) recognition - c++

I'm learning C++ for half a year now (so programming in general) and this site always had the answers I was looking for. But now I came to the point where I need to ask as I couldn't find anything related to my question.
So I want to write a program that takes a screenshot of a particular area of the screen. This screenshot will ONLY contain playcards (so for example Hearth, Seven). What it should do now is return me which card it is, so the symbol and the number/letter.
I already made some researches and the most mentioned thing was the library "OpenCV".
So my question now: First is it even possible with my experience to write something like that?
If so, is this library the way to go? It seems really strong, maybe too strong for just the recognition of numbers/letters and four symbols? So could there be something easier?
And the last question, how could I get a screenshot of a particular area of the screen and not the whole screen and save it somewhere?
I hope you guys have a clue what I really want to know and it was understandable.
Greetings

Definitely use OpenCV. It is not too hard to get into, and once you do you will find it does basically everything you'd want. It makes image processing relatively straightforward and it can solve your problem in a lot of ways.
Here is a good place to start.

Related

Image detection with C++ using opencv

So I have been assigned a project on quite short notice, and given that I have a very small amount of experience with c++ I thought it would be a good idea to ask for some help from the community!
Basically, we have a .png which is an image of a baseball game, and we must use opencv (and its likes) to detect, outline and extract coordinates of the bat, using c++.
So far I have installed opencv onto visual studio 2019 and read through hours and hours of tutorials but feel like I have not made a huge amount of practical progress.
As a beginner, I'm wondering if there is anyone here who could make the path forward a bit more clear for me!
Template machine is one of the easy solutions, below is an example for template matching from open cv -
https://github.com/opencv/opencv/blob/master/samples/cpp/matchmethod_orb_akaze_brisk.cpp
You can do this with many other python library's -
https://scikit-image.org/docs/dev/auto_examples/features_detection/plot_template.html#sphx-glr-download-auto-examples-features-detection-plot-template-py
This will not solve object detection problems in general but will be able to find an object of your interest in many cases, this is one of the quick solutions that I can think of.

fast way to get graphic output in c++ eclipse

Im currently working on an excercise about lagrange interpolation. I'm on the point where i would like to plot my data. So I thought there must be a quick and easy way to generate a window and draw some points in eclipse.
Well seams like I thought wrong. I searched on google and I found a shitload of different libarys, all of them either outdated, useless or with a really long installation guide.
The graphic output is really just to test my interpolation, so I want to spend as less time as possible with it. I remeber that there was a libary for java which was pretty simple. You could just import the libary, make a command to initialise a window, and then draw in it. There was no need for a installation and going from zero to a window with a circle was about three commands.
Is there really nothing like that for C++? What could I do to keep it as simple and fast (to install) as possible?
Thanks
Is there really nothing like that for C++?
Not really. C++ includes the "standard library" and that's it. The functionality you're looking for is provided by third-party libraries, as you've already found.
Asking for library recommendations is specifically off-topic on StackOverflow, by the way.

Speech recognition command C++ in SAPI?

I have spent hours looking for this and can't figure it out. I have a program that I have made which I would like to add voice recognition to (all it does is a few simple commands like time, date, things like that...it's just for fun) and I know I have some form of SAPI on my computer because I had to include sapi.h to get the voice synthesis to work (and that's works fine by the way) but I can't figure out for the life of me how to use the voice recognition.
It appears people have already asked about C++ voice recognition on here so I apologize if this is just a duplicate but none of the others seemed to answer my question, perhaps I'm just missing something (I'm fairly new to C++ so it's very possible) but I could really use some help here.
Thanks a bunch!
----edit----
The code in the link has an issue on my computer, it can't find the file "atlbase.h" which then of course is causing all sorts of other problems (hopefully these will all be resolved when I fix the atlbase.h problem). I found this site which seems to offer an explanation which shows up on quite a few other sites and appears to work, but I don't know how to get to the file that everyone is changing.
https://answers.unrealengine.com/questions/12757/error-cannot-find-atlbaseh-when-compiling-in-vs201.html
Could someone please help me as to where the file they're all changing is?

Global Movement Estimation of squence of images in C++

I need to find a C++ library to find the global movement estimation for a project of super resolution of medical images. But I'm not aware of any of them. Does anyone know a library that could help me do this? I've heard of OpenCV but haven't found anything, maybe I wasn't looking at the right thing.
Thank you.
This looks like a good starting point:
http://www.cvpapers.com/rr.html
although I'm surprised to not see VXL on the list:
http://vxl.sourceforge.net
Have fun!

Problem with displaying graphs on a Qt canvas

Let's say I'm a Qt newbie.
I want a good Qt library for displaying simple graphs. I've found the quanava library. But there is a problem. When I compiled a basic example it looks like graph edges are not painted properly when moving nodes. I don't have any idea where is a bug but this code seems to be rather simple. I think this is a problem with paint method in NodeItem class. Maybe someone has already solved this problem because this library is quite popular.
I usually go for Qwt for my graphing needs - a bit technical for "office graphs", but still, it works.
+1 for Qwt. It gets the job done, and is pretty configurable. The documentation is weak, but the number of examples are extensive enough to make up for it.
Ok, first of all saying graph i mean mathematical concept G=(V,E).
I improved quanava library, which is a very good starting point for graph visualization.