How can i start the camera and get frame from camera in IPhone
I have a app to do,but i'm a beginner,
- start camera
- start a thread
- get current frame by thread
- thread do something with image and get results
- if the results of step-4 is not correctly then do step-3 until get correctly results
If anyone give me ad开发者_Go百科vice,so thanks!!!
if you have a sample ,that's will great! Thanks one time!
What research have you done to combat this problem? Not much, because what you're saying is partly incorrect.
Let me explain in detail why:
- The first thing you should always do when encountering such a problem is consult the Apple Developer Documentation. Everything public is well documented, so it should give you an idea where to start.
- If you'd have looked there first, you would see that
UIImagePickerController
is responsible for Camera related tasks.UIImagePickerController
belongs toUIKit
- that's where point 2 of your question is entirely wrong - you're not allowed to make calls toUIKit
from a secondary thread or you will encounter crashes/unexpected results. That's in the developer documentation too. - You need to understand that StackOverflow isn't a
give me the codez
website. If you have some code that you wrote yourself that doesn't work correctly, sure, post it and we'll help. But you've shown no attempt to have even researched the topic.
So please, check the developer documentation for more information.
If you're a beginner, I'd recommend the Stanford Podcasts. They provide an excellent start into iOS programing.
It'll take a while, but after all, Rome wasn't built in a day.
精彩评论