JoeHowse / iOSWithOpenCV

These are the projects for my book, iOS Application Development with OpenCV 3.
https://www.packtpub.com/application-development/ios-application-development-opencv
54 stars 18 forks source link

Building the framework from source with extra modules #6

Closed mihai-salari closed 7 years ago

mihai-salari commented 7 years ago

Hi, I have this problem: screen shot 2017-06-05 at 4 31 41 pm Inside of OpenCV3 folder I have: screen shot 2017-06-05 at 4 27 14 pm

In terminal I put: _sudo[and without sudo] ./OpenCV3/opencv/platforms/ios/build_framework.py /Users/ronysteel/Developer/iOS/Other/OpenCV3/framework --contrib /Users/ronysteel/Developer/iOS/Other/OpenCV3/opencvcontrib

the error appear: _sudo: ./OpenCV3/opencv/platforms/ios/buildframework.py: command not found

Can you help me to run successful and build that opencv custom framework from your book?

Thank you

theoknock commented 7 years ago

You are wasting your time in asking this question, and Joe would be wasting his time answering it.

Use CocoaPods to install OpenCV 3. Plain and simple.

James 408-685-4049


From: Rony Steel notifications@github.com Sent: Monday, June 5, 2017 6:34:25 AM To: JoeHowse/iOSWithOpenCV Cc: Subscribed Subject: [JoeHowse/iOSWithOpenCV] Building the framework from source with extra modules (#6)

Hi, I have this problem: [screen shot 2017-06-05 at 4 31 41 pm]https://cloud.githubusercontent.com/assets/22445295/26785706/7c964144-4a0c-11e7-93fc-5b37b947f99e.png Inside of OpenCV3 folder I have: [screen shot 2017-06-05 at 4 27 14 pm]https://cloud.githubusercontent.com/assets/22445295/26785653/2fe6b5cc-4a0c-11e7-9527-b0d1cc91c9c3.png

In terminal I put: sudo[and without sudo] ./OpenCV3/opencv/platforms/ios/build_framework.py /Users/ronysteel/Developer/iOS/Other/OpenCV3/framework --contrib /Users/ronysteel/Developer/iOS/Other/OpenCV3/opencv_contrib

the error appear: sudo: ./OpenCV3/opencv/platforms/ios/build_framework.py: command not found

Can you help me to run successful and build that opencv custom framework from your book?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/JoeHowse/iOSWithOpenCV/issues/6, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABjCM-e0GN1V649lnr39PeSOGTz6-6Nzks5sBAPhgaJpZM4NwC3s.

JoeHowse commented 7 years ago

Hi @ronysteel. @theoknock and some others have had success with CocoaPods, but personally I'm continuing to use the approach outlined in the book.

First, please confirm that OpenCV3/opencv/platforms/ios/build_framework.py exists. Assuming it does exist, there may be a file permissions issue. Make the file executable by running:

$ chmod +x OpenCV3/opencv/platforms/ios/build_framework.py

Then try to execute it again. If this still doesn't work, try to run it with the Python interpreter:

$ python OpenCV3/opencv/platforms/ios/build_framework.py

Let me know how it works. Thanks.

theoknock commented 7 years ago

Use CocoaPods. Joe: don't answer this question.

James 408-685-4049


From: JoeHowse notifications@github.com Sent: Monday, June 5, 2017 7:20:42 AM To: JoeHowse/iOSWithOpenCV Cc: James Alan Bush; Mention Subject: Re: [JoeHowse/iOSWithOpenCV] Building the framework from source with extra modules (#6)

Hi @ronysteelhttps://github.com/ronysteel. @theoknockhttps://github.com/theoknock and some others have had success with CocoaPods, but personally I'm continuing to use the approach outlined in the book.

First, please confirm that OpenCV3/opencv/platforms/ios/build_framework.py exists. Assuming it does exist, there may be a file permissions issue. Make the file executable by running:

$ chmod +x OpenCV3/opencv/platforms/ios/build_framework.py

Then try to execute it again. If this still doesn't work, try to run it with the Python interpreter:

$ python OpenCV3/opencv/platforms/ios/build_framework.py

Let me know how it works. Thanks.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/JoeHowse/iOSWithOpenCV/issues/6#issuecomment-306199744, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABjCM4gKhZPuLwiR2rk7pjLZWnUNEnnvks5sBA66gaJpZM4NwC3s.

mihai-salari commented 7 years ago

@JoeHowse Thank you, it works! @theoknock Thank you too, Man, respect!

mihai-salari commented 7 years ago

@JoeHowse Thank you and for your amazing book!

mihai-salari commented 7 years ago

@JoeHowse BTW, the size of Builded framework is 300MB+, is normally?

JoeHowse commented 7 years ago

Glad it worked. Yes, the framework is normally big. If you need to make it smaller, you can exclude some of the optional OpenCV modules and rebuild.

For the future reference of anyone reading this thread: I don't personally have experience with CocoaPods but it's probably a great choice as a tool to manage pre-packaged builds of OpenCV, opencv_contrib, and lots of other libraries. Particularly, this may suit your needs well if you're simply looking for a recent stable build. On the other hand, manually building from source gives you complete flexibility in case you want to build from OpenCV's master branch, customize the choice of modules, patch the source code, etc. Different approaches will suit different needs.

Thanks!

mihai-salari commented 7 years ago

Thank you @JoeHowse Last question: Do you have any information about document detection+Crop+Perspective+OCR+Change DPI? Maybe you will prepare that in your next book?

Thank you

JoeHowse commented 7 years ago

Mastering OpenCV 3 is a good C++ book that contains a chapter on license plate detection and recognition. This may be comparable to your document detection + OCR problem.

mihai-salari commented 7 years ago

@JoeHowse Wow!!! That's amazing!!! Thank you!