Generally, it runs on a PC, but it does not work on arm. Direct segment error to arm. See my previous postHttp://www.oschina.net/question/256295_51872. The reason is thatCvcapture *
Pcapture = cvcreatecameracapture (-1); in this statement, once executed, it will be reportedSegmentation fault.Very annoying. I asked a lot of people at the time and didn't have the answer. Later, many people asked me about it. Later, a nvwa added me and said she had solved the problem. I was working on other projects. If this lesbian or someone else sees this problem and knows how to solve it, please reply.
Therefore, if this problem cannot be solved, you can only use v4l2 to collect camera videos on the arm. There are resources on the Internet, and they can also be used for modification. See:Http://download.csdn.net/detail/yanzi1225627/4223630This was changed based on oschina and can be used, but sometimes it gets stuck.
later, one of my friends gave me another Program using v4l2 to collect camera videos in Linux. It's good, and it's not stuck at all, you can drag the window without being stuck. I will upload it back.