It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm rather novice in C++ and I must realize this schoolar project :
Assume an image in a document containing both texts and images.
There should be a program written in C++ whose the goal is to load the document and extract separately texts and images in order to output it in
some target destinations like UI or file.
Furthermore, if image contains any texts like legends, program should be able to extract it separately too.
Is there an existing c++ library that respond to those requirements ?
Yes, OpenCV.
http://sourceforge.net/projects/opencvlibrary/
No doubt in that, use OpenCV.
But remember, you have a long way to go.
1. First of all, you should be good in C++ and object oriented programming.
Well, if you are not good, try to learn it first. Check out following link for some best resources : https://stackoverflow.com/questions/909323/what-are-good-online-resources-or-tutorials-to-learn-c
2. Then get OpenCV and install
Check out OpenCV homepage to get info about downloading and installing OpenCV.
3. Now get and read some good books on OpenCV
The best book on OpenCV is "Learning OpenCV" written by Gary Bradsky, main founder of OpenCV.
Second one is "OpenCV cookbook".
These books contains lots of examples on OpenCV along with description
4. Check out OpenCV documentation.
OpenCV documentation contains details of complete functions. It also includes a lot of tutorials, which are really good for all.
5. Also try running OpenCV samples. It contains a lot of good programs
And always, Google is your best friend. Ask everything there first. Come here only when you are lost in your path.
Acquire all the above things. Then you will be really good in OpenCV and i am sure you will enjoy its power. Once you are done with these, you will get enough idea on realizing your project.( Otherwise, you will post new questions every day asking codes to realize your project, which will be useless for you. )
For your understanding, your project include advanced things like Optical Character Recognition. It is a big topic. So build yourself from basics. And it will take time.
All the best.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
So i am basically a newbie when it comes to qt. I want to learn it ,but entirely in C++ and without even touching desinger because for me it's not coding anymore. The problem is that every single tutorial/guide/book uses it and the API documentation is just (for me) overwhelming - i dont know where to start.
These references are useful if you have a background in C++ or a similar syntax language, like Java or Javascript. Of course having the Qt Libraries and Qt Creator on your computer is an important pre-step, too.
Many different options have worked well for me:
Youtube - One pretty high quality one I found called VoidRealms did a good job of explaining what he was doing while he was doing it. There may be other channels out there of similar quality, this is one that I've seen. I don't remember if he spends a lot of time in Qt Designer or not, but he does show other methods, too.
https://www.google.com/search?q=voidrealms+qt&safe=active&tbm=vid
https://www.youtube.com/playlist?list=PL2D1942A4688E9D63
The Qt Conference Video Archive - At the Qt Conferences they record the slides and what was taught/discussed. A number of these have great info on best practices with Qt. Each video is about an hour long and goes pretty in depth.
https://www.google.com/search?q=qt%20developer%20days%20videos
Welcome Tab > Examples - There are tons of well written and well documented examples. I would pick one of those and make tweaks to it and see what happens... see what builds and what doesn't.
http://doc.qt.io/qt-5/qtexamplesandtutorials.html
Here is a really comprehensive example. There are many other quality ones, too.
http://doc.qt.io/qt-5/qtwidgets-mainwindows-application-example.html
Read The Fine Manual. Qt has set a high bar in excellence in its documentation. When digging through someone else's code or the examples you click on any "Q" and press F1, and you get high quality information in plain english... or even any of the methods coming off of any of the instances of any of the functions. I think the doxygen project was started trying to model its output after the Qt documentation.
http://doc.qt.io/
http://doc.qt.io/qt-5/gettingstarted.html
The broad topics that come out are really good, too.
http://doc.qt.io/qt-5/overviews-main.html#best-practices
Stackoverflow. Sorting answers by votes yields a great source of FAQ's with quality answers.
https://stackoverflow.com/questions/tagged/qt?sort=votes&pageSize=50
Read a book; the books for Qt development are well organized and written for learning it from scratch; most of the authors have many years of experience with it.
https://wiki.qt.io/Books
As you start down the path of Qt/C++, awareness of the QML/Qt Quick/Javascript side is important, too. Qt Cascades Book has a lot of quality information.
https://qmlbook.github.io/ (getting the zip of examples for each chapter out takes a few minutes to find)
Take a class, online or at a college.
Ask questions to a co-worker or professor or TA that has experience with it.
Hope that helps.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am wondering if there is any good tutorial or a book on loading,creating and editing bitmaps in c++. I need to edit bitmap pixel by pixel but none of the tutorials don't show how. I want to understand how does bitmap "work" and wikipedia helped a little.
If you want to manipulate bitmaps on the pixel level, then you should start learning Image Processing and then read something about bitmap file formats. It is not a C++ question. C++ is just icing on the cake in such task.
Here you can find some lectures on Image processing:
http://www.archive.org/details/Lectures_on_Image_Processing
And here is the description of BMP file format:
http://www.fileformat.info/format/bmp/spec/e27073c25463436f8a64fa789c886d9c/view.htm
You can easily find a lot of sources for other formats as well. Good luck, I have been studying this topic three years at the university... I think you really should use some open source library as David Grayson advised.
If you want to edit a bitmap you only need to learn about the format you want to edit. How many bits per component, how many components per pixel, where is the width and height defined, what's the standard for said format files. If you want to use the popular BMP you can find all this in Wikipedia.
If all this made little sense to you, then you should try a tutorial on digital image processing first.
An image is just an array of structures (pixels) with a certain number of components each, you just need to read and write said array to do whatever edition you want. But be warned, although common crops and pixel replacement are almost trivial, advanced edition and altering are not.
I'm assuming you searched Google already and didn't find anything good.
If I were you, I would learn about the binary format of bitmaps first. You can learn about it by reading the specifications and/or looking at bitmap files with a hex editor like WinHex or ghex2.
Then I would learn how to read files and work with binary data in C++.
But really you could probably save a lot of effort if you just used the Magick++ library:
http://www.imagemagick.org/Magick++/
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am trying to develop a chess like game for iphone/ipad, I have developed the internal game logic using objective-c and c++ , that's fine but I am wondering what's the possible ways to develope a good GUI on iphone/ipad ?
As far as I know I could use Core Graphic, cocos2d.
Are there any more ?
And which one might be best suitable for chess like game?
(e.g display a fixed board, add chess piece to the board, remove piece from board, move piece around on board)
If my question was causing come confusing, I have rephrased it, hope this makes it a bit clearer.
Many thanks
For game frameworks, the obvious one is cocos2d.
Having almost finished a - relatively - simple 2d game, I would highly recommend using a framework like cocos2d. With Core Animation you can do a lot of amazing stuff. However, for game type scenarios, you hit problems that Core Animation doesn't solve.
For example, what if the user gets a call during the game right in the middle of an animation? You'll have to handle all that manually. I mean, you'll have to check the state of thepresentationLayer, update the model layer, save all the state, then reconstruct it all when the app moves to the foreground again.
For this sort of issues, I'd seriously consider a game framework.
There are alternatives to cocos2d, e.g. Kobold2D. So definitely have a look around.
A couple of GUI apis.
CoconutKit - When designing components, I strongly emphasize on clean and documented interfaces, as well as on code quality. My goal is to create components that are easy to use, reliable, and which do what they claim they do, without nasty surprises. You should never have to look at a component implementation to know how it works, this should be obvious just by looking at its interface. I also strive to avoid components that leak or crash. If those are qualities you love to find in libraries, then you should start using CoconutKit now! Moreover, CoconutKit will never use any private API and will therefore always be AppStore friendly.
Three20 - Three20 is a open source Objective-C library used by dozens of well-known brands in the App Store, including Facebook, Posterous, Pulse, Meetup.com, and SCVNGR. Three20 provides powerful view controllers such as the Launcher, the popular Photo Browser, and internet-aware tables.
tapku - Tapku Library is an open source iOS framework built for iPhone & iPad. The framework includes popular API's including coverflow, calendar grid and chart view. The framework also has tidbits of code that will make iPhone and iPad development all the more enjoyable and faster. Integrating the framework is easy and can be incorportated right into your applications now. Try out the demo to see some of the things you can take advantage of in the framework.
Direct comments from their sites.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I would like to write a simple text editor. I would like it to be GUI-based, and written using Qt.
Qt provides the class QTextEdit, which is a pretty fully-featured text editor (it supports ctrl+c, x , and z, text highlighting, and moving the cursor around left-right-top-down). I would like to write something similar, but I would like to implement all this functionality from scratch.
So my requirements are:
A simple window.
Be able to read text from a user, and output the prepared file to the screen.
The user must be able to access the text for editing.
I have taken a look at the source code to qtextedit.cpp from the official Qt site to get some idea of how this was implemented. Unfortunately I am not experienced enough to understand it (there are nearly 4000 lines of code, and many macros).
How might I make some progress with my project?
I think you are best off taking a look at some of the code here: http://kde-apps.org/index.php?xcontentmode=241
Take a look at the code, try coding something of your own, and realise that Qt requires one to know C++ fairly well. You will, at the very least, need to understand classes and pointers. If that feels manageable, then the best way is generally to try: you'll run into some problems, and then you can see how other people have solved that problem.
I think the most specific advice I can give is to write tests for everything that looks like it can reasonably be tested, that may save you some debugging time. Other than that, there's little more to say without example code and a more specific question.
This is a major job of work. If you want a decent editor, you are more or less forced to start with the Scintilla edit control, because it's simply the best (and it comes with a Lesser General Public Licence). But then you have to implement an editor on top of it. You don't really want to do this (trust me), so you have to use an existing open-source editor. The best of these is probably Notepad++, which has way more than 4000 lines of code. It comes with a General Public Licence, which is not compatible with the project I'm currently working on, so I ended up using the SciTE editor instead. I have implemented an interface for this which lets me embed it in a Qt application, and it works like a charm. In the next two or three months I hope to get this interface accepted by the SciTE community and incorporated into the official release. Meanwhile, if you are not bound by the licensing requirements, you might want to look at QScintilla.
In the Qt Demo application there is an MDI text editor that teaches a lot (http://doc.qt.nokia.com/latest/mainwindows-mdi.html).
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an unfinished MathML rendering library written in C++. I ceased development a few months ago due to lack of time. The library [still] uses the TrueType version (unsupported) of the STIX fonts beta [version 1.0 of the STIX fonts (OpenType Postscript format) has since been released].
Development of this kind of library is a HUGE undertaking and, in fact, requires a number of programmers/developers. In my case, I am doing it alone, and here's my question:
Does anyone of you know of any foundations/philanthropists who may be interested to fund my project in return for open sourcing the code?
The funding will serve as an incentive for me to finish the library - perhaps by taking a sabbatical :p - and, of course, as 'payment' for the intellectual property involved.
I've searched the web, contacted some [e.g., foundations, VCs, angels, etc.], but I either did not get a response (from VCs and angels) or was rejected (one reason is geography since these foundations support only US-based projects).
As an aside, when I search the web for MathML, the results are often outdated. I guess there's not much activity concerning MathML. Yet, I believe this library will be very useful not only to developers but also to anyone who uses math, especially students and teachers. It is useful for e-learning, can be used with desktop apps and web servers (Windows), makes it easy to insert images of formulas in PowerPoint documents, etc.
Any suggestions are most welcome. Thank you.
EDITS: I have finished this library finally without funding, although I don't rule out seeking one.
You can find my new site below with lots of sample formulas; click on the download link to download the SDK.
http://reformath.webnode.com/ (preferred for statistical reason)
http://reformath.weebly.com/ (please use the above link instead)
DON'T forget to provide some feedback - or donations. Thanks!!!!!
Since we've already got open source MathML (Firefox has had it for years) that mean you'd have to do something better than the existing OSS solutions. And at that point, why not work on an existing open source project?
So that leaves commercial apps that may want a closed library for MathML rendering. I would go after companies like the makers of MathCad, Matlab, or any other engineering software that may want to display equations neatly. You should have something that already works for some subset of the things you/they will want it to do. You should also turn yourself into a company before going to those places so they take you seriously and you can license it to multiple customers. Otherwise the most you're likely to get is a job offer where they'd like you to hand over what you've got (for free if they can get you to) and then work on it as an employee - which may be all you want if you love it and hate your day job ;-)
You should probably ask on www-math list, also if you ask there, we can list your application in the software implementations page
http://www.w3.org/Math/Software/