Is there a way to control a USB camera from an iOS device?

I have a requirement to control USB CAM from any iOS device by sending a command, for example, to take a picture, zoom in and zoom out. Also, the live video should be a stream on the iOS device, so I can see the camera view on the screen of the iOS device and perform the required actions.

  • Can I achieve this using the external application framework or by registering with Apple MFI ?
  • Is any external hardware support needed , like arduino or raspberry-pi ?
  • Do USB CAM companies provide any SDKs for this?

Thanks in advance.

A similar application in the application store, but it uses its own equipment

+6
source share
1 answer

So, briefly, there are several different ways to achieve what you are trying to do here, and each of them offers its pros and cons. So, firstly, you can go to the 100% hardware end and create yourself a camera that simply displays what it sees to the web server on the local device. Pop WebView in your application, connect, and you are golden.

Dowsides:

  • Your camera is now a public device, and not a locked iOS device (if that's what you are looking for)
  • You will most likely have to connect to the network if the camera does not have its own DHCP server; which further complicates the situation.

The next option you can use is to create a camera that will only connect to the device you want with a handshake, and yes for this method you need an external apple infrastructure. On the way to hardware support, you're probably not going to do this with the Arduino, perhaps the Raspberry Pi, but then you have to adapt everything that Apple's sound nightmare is!

In my opinion, I would go with the approach to the web server and call it java, etc. to make sure that the device you are connecting to is of the correct type / formfactor. If you have raspberry pi and picamera, you can use this Git, my personal experience with it was good, and I shared some of the code so that it works with the quadcopter project. Here: https://github.com/ccrisan/motionPie

+1
source

Source: https://habr.com/ru/post/989660/


All Articles