Using OpenCV with python for ios apps - python

I am looking for ways to write an OpenCv program using python that detects objects in real time for an ios apps. Thus, it's probably going to be a mobile web application since i am using python. Now is there a way to initialize the ios cams like than of an iphone to get a live video feed. Normally in desktop applications OpenCV will initialize the desktop cam upon
cam = cv2.videocapture(). how about for ios devices, when creating mobile web apps?

Related

How to use smartphone camera with OpenCV (via USB) - Python

I am trying to use my iPhone camera with OpenCV. However, Python doesn't recognize the camera.
Some months ago I did it simply writing:
cap = cv2.VideoCapture(1)
Does anyone know how to solve this?
I know that there are other solutions like using IP address to use the camera with OpenCV, but I want to use the camera via USB.
As of now, your way of accessing the camera of your iPhone is not supported by OpenCV, but there are other ways to implement OpenCV on iOS.
OpenCV Documentation tells you to
add a camera controller to the view controller and initialize it when the view has loaded.
This is done using an XCode project utilizing the OpenCV Framework, more information can be found here: OpenCV iOS - Video Processing.

VideoWriter output to Google Cloud Storage

I am creating a web application that makes animation from frames. I use opencv and VideoWriter to implement it. But there is a problem. I want to host my application on Google App Engine, so I cannot save files on it. Is it possible to output the VideoWriter video to Google Cloud Store directly, without saving it on the machine, or I must find other library to implement it?
Generally speaking, streaming transfers are supported by Cloud Storage for other languages, but for Python, or Ruby. OpenCV has C++, Python, Java and MATLAB interfaces and supports Windows, Linux, Android and Mac OS. In other words, if you don't plan to use the Python, or Ruby library version, your setup should work.

How to use the stereo camera of Android phone for OpenCV in PC?

My question is a little different from this post.
My Android smartphone has a stereo rear camera setup which includes a normal 48MP camera and a 5MP depth sensor.
I am learning OpenCV with Python and for making some real-time applications, I need to use both of those cameras as a webcam for my PC since I want the depth information along with the image.
I have seen many posts and blogs which demonstrates the use of the phone's primary camera and there are many apps available for that purpose, but I haven't ever found anything regarding this setup of streaming stereo camera data from mobile to PC.
Is there currently any way to achieve what I want? If not, can you give me some guidance about how to create such a setup of my own? I don't mind if I need to create the programs myself.
If you need, here are my device information:
Mobile: Samsung Galaxy M21 with Android 10
PC running Ubuntu 20.04

How do i send response from Raspberry Pi to a web client

I am doing a project on Attendance Tracking using Raspberry Pi. I have used Python with opencv for this. I have installed python and opencv in RPi. Next I trained the system with already available faces of some students. Then I trained those faces and stored the training data in a separate file. Then using Picamera I captured the image and did the recognition part with already available trained data. When I did everything separately everything works fine.
But I have some confusing questions in my mind!
1) How can I run the code in raspberry pi via Android app?
2) How do I send the correctly identified face labels to the android app?
I need to do it with node.js. If it's possible please guide me.

How to Build a Browser Interface for a Numpy/Opencv Based Python Application

I have an application written in Python using numpy and OpenCV. Currently I am using OpenCV's GUI functionality; however, I'm finding it has various issues and behaves differently across platforms. I would like to build a browser interface. The application includes a live video feed and its state is updated about once every 1/15th of a second-- I would need the browser display to update at this rate. What is a good tool to accomplish this? I have built small apps in EmberJS but I think that getting it to communicate with Python is too much overhead.
You probably want to connect your app to a Python web framework like Flask so that you can make a restful interface. You could then build a frontend app in Angular or Backbone that queries the server for every update.

Categories