I'm currently developing a computer-vision application for Axis camera. I have compiled the app and installed it to my device, but I can't find the way to test it.
I want to upload a video to my device's OS via app settings page or replace the video stream somehow to find out if the app works correctly or not. I don't know, maybe there is another approach to test the application (on axis device, not locally).
I will be very grateful if someone can help me with this issue.
Related
I'm lost at a seemlingly minor problem. I have a UWP app from windows samples, which counts the faces detected by the camera. I want that app to send that number to another program. I've tried doing it by clipboard, however as the other program is constantly checking the clipboard it wouldn't work.
Then I thought of a simple socket connection but I can't seem to get it working in UWP as all infos seem to be in C# not C++.
Can someone gimme a hint how to send a single int over a tcp socket to another client?
Or any other suggestions how to achieve that?
I'm really desperate...
thanks in advance.
In UWP, app services are the standard way of communicating between apps. You need to create an app service in the source app then consume the service in the second one. The app service also can be consumed by non-UWP apps.
I've created a small Glass app and am trying to help someone else side load the .apk file directly on on their Glass as part of internal testing. I had them install the Eclipse + ADT Bundle, run the SDK Manager, etc (i.e. the basic instructions from here). They verified that the Google USB driver does show up in the SDK Manager.
With the device plugged in, running "adb wait-for-device" hangs. So it doesn't appear device communication is working. The device also does not show up in DDMS in Eclipse.
They verified that USB debugging is enabled on the Glass itself under settings.
I also tried having them follow the instructions here but this also did not help. They are able to see the Glass removable storage device in windows.
Any suggestions on what else to try? I do recall that with my Glass device at one point I put it on and it asked me if I wanted to allow debugging from the computer where it was plugged in. I'm not sure if this could be a roadblock here or not but I'm also not sure how to get to that prompt.
Once you get the correct values into android_winusb.inf it works fine, see
Google Glass ADB devices doesn't find. OMAP4430 driver not installed (can't find it!)
Here's an example on a Win7 box:
(edited to include screen capture)
The easiest workaround is to find a Mac, Chromebook or Linux computer. Windows with ADB and Glass is nothing but pain.
I have to transfer large-sized video file from glass to a server or on a local computer, just after capture (~400Mb), to be viewed as quick as possible on the target device.
I tried to use the mirror API to get the video but the upload time to google platform is really high (more than one hour for a 10-minutes video length).
I also tried to make an app to capture video and send it over the wifi, but it took about 3 minutes for 18Mb (So, more than one hour for 400Mb).
We also studied the android Wi-fi P2P solution, but it seems not available on Glass at this time.
And I tried to launch Droid NAS or AirDroid application to access Glass file system over the air. Application installation is OK, but I can't run them.
Has someone any solution/recommendation ?
Thanks in advance,
Julian
Since you're willing to do it to a local computer, you can just plug Glass into the local machine and transfer the file. Glass is treated as a Camera device, and most PCs and Macs have software that will let you transfer the videos directly over.
--EDIT--
I wasn't very well understood with the initial question, so allow me to rephrase.
I am working in an image processing application for Android.
Let's admit I will send an image from android to some server.
What I want to know is how to process this image with opencv (c/c++) on the server and return the results to mobile.
Look into setting up a web service if you're just trying to offload the processing to a server and send back some processed data. There's a ton of examples and sample setups based on the server environment (OS, speed, bandwidth needs, etc) out there that should help you get started. You would then setup the OpenCV environment on the server, and perform all of your processing through those libraries. We would need more information on what type of image processing you hope to accomplish to help you more, but again there are lots of examples for OpenCV and great documentation as well. The Android side will depend on how you setup the web service, so based on that choice there are different solutions available for easily interfacing with your server.
Is it possible to show a video that is playing onto an existing application?
Application A is running.
Get Video A and place it on top of Application A and then play it.
Thanks! Cheers!
If you mean to load a video and play it, you can use the DirectShow API, which will use the installed Windows codecs to attempt playback. You can also use ffmpeg for a selection of codecs that may not be installed on the computer.