Motion Sensing by Camera in iOS

前端 未结 2 1127
自闭症患者
自闭症患者 2020-12-16 06:14

I am working on an app in iOS that will occur an event if camera detects some changes in image or we can say motion in image. Here I am not asking about face recognition o

2条回答
  •  感动是毒
    2020-12-16 06:51

    I don't exactly understand what you mean here:

    Here I am not asking about face recognition or a particular colored image motion, because I got all result for OpenCV when I searched

    But I would suggest to go for opencv as you can use opencv in IOS. Here is a good link which helps you to setup opencv in ios.

    There are lot of opencv motion detection codes online and here is one among them, which you can make use of.

    You need to convert the UIImage ( image type in IOS ) to cv::Mat or IplImage and pass it to the opencv algorithms. You can convert using this link or this.

提交回复
热议问题