Vuforia/Android Studio - Working with VideoPlayback and image targets samples at the same time - android-studio

I need to use Vuforia, to implement AR in an android app using Android Studio.
I was able to run the samples separately with no issues. My doubt is if any one knows how to use the video playback and image target samples at the same time when the camera is active?
For example, I have two images in my database located on assets. When the first image is recognized, I need to play a video (video playback) and when the second image is recognized, another image is placed with AR above the target (image target).

I know this is a bit late, but perhaps it could be of an assistance nevertheless. I cannot give you any code, but I can tell you for sure that there is no real problem of doing this - in fact, it is only a matter of a correct integration between two of Vuforia's samples. Once you have implemented the functions for drawing an image on a target and for drawing a video on a target, you simply invoke the relevant function based on the target id. Looking at a specific difficulty and trying to help on that would be a lot easier, once you actually did the integration.

Related

API to retrieve images from within an image or pdf

I am looking for a way to extract images from within another image. For example:
Here is a picture taken of a paper. It includes text, an image of a camera, and an image of a qr code. Is there an API that can possibly extract those two(camera and qr code) from this larger image and separate them into their own individual images. I know this is doable with the text(OCR), but I need to find some way to do Image Recognition if that even exists. For now, I cant find any reference to doing this besides extracting images from pdf's, which none of those softwares have the capability to extract them from a non-perfect pdf.
Price for the API(node.js prefered, but i can adapt to use any language) is not a big concern, I'm just not sure this is even possible to due without programming a legitable artificial intelligence using machine learning, which I would no doubt cause a global internet shutdown from breaking everything if I attempted to do so.
Anyway, any suggestions would be great and much appreciated. Thanks!
EDIT: the images aren't always those, it can be an image of anything, from potatoes to flags
For the QR code, you can simply use a QR code scanner library and convert the output back into a QR code. As for the camera, you are going to need an image recognition service like Google Cloud Vision or train your own neural network with something like TensorFlow to recognize pictures of cameras.
QR detectors abound around the web and some are on github but for single objects you could try hotpot API https://hotpot.ai/docs/api
your code example linked into https://hotpot.ai/remove-background
for striping back you may need a secondary autocrop task

Building Recognition in Vuforia&Unity

I would like to make a mobile application so that when a user points at a building it will render various information. My problem is that I really don't know if this can be done. I mean the only way is to take an image of the building and upload it as an image target in unity. But what if the image will change over time (vegetation?) or the user points the camera from a different perspective than the one I used?
Is there a way to make this so that the problem mentioned above won't be an issue?
You can approach this in several ways (or even combine them together):
Write a mechanism that will be able to download updated Vuforia datasets from a server into your app in runtime. This way, you can update the building images when you wish, and ensure it will be detected if something changes
Make sure you take enough pictures of the building from enough perspectives. You can use many images of the building in a single Vuforia dataset
Try to find a partial sections or sections of the building that is very likely to remain unchanged.

Animation Sprite

I want to create a 2D sprite that mimic the provided image:
http://a4.mzstatic.com/us/r1000/069/Purple2/v4/e6/0d/73/e60d73a8-6d78-64c2-dd59-9aabb54c7837/mzl.ujapwanw.320x480-75.jpg
and create different face expressions as provided sprites to unity3d in order to create an android application has multiple face expressions with those sprites... so my question... is what exactly the software I might use through out this process ??
Please, let me know the simplest step-by-step procedures, as I am in my first steps in computer graphics.
Thanks a lot.
Image manipulation is what you are looking for. To modify the current image you have and generate other facial expressions from it, you need to be very good at math. Image manipulation is not a basic stuff and I hope you are not new to programming.
Now that you understand that, you need OpenCV to be able to do this. You need to make a wrapper for it in c#. You can get the already made wrapper [here].1 https://www.assetstore.unity3d.com/en/#!/content/21088 .It works on Windows,Mac, Android and iOS and will save you time. Its NOT free but the price is worth it compare to the time you will spend building the wrappers for all platforms.
Once you get this, you can start learning OpenCV from the following link.
http://docs.opencv.org/doc/tutorials/tutorials.html
http://opencv-srf.blogspot.com/
http://shervinemami.info/openCV.html
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/opencv-intro.html
If you the Unity plugin I mentioned, you can ask the author of the plugin to help you out if you are tuck.

Does android supports SVG or Tiny SVG?

does android supports SVG or Tiny SVG ? I am having doubt like if i want to publish my application to android market which will cover different sizes of android devices then in that case i need to create same images with different densities, sizes etc.. and need to put on the different folders as specified in android developer guides. I just want to avoid it because it will unnecessarily increase the apk file size so rather than using this approach can we create the vector graphics file and store all image related information and add it in to the apk file.
but I am not able to find whether vector graphics approach will work in android or not and if it is working then how to use it?
Please provide me some valuable information about it.
Regards,
Piks
I found TinyLine. I have not tried it, but it seems to be sophisticated.

How to get both the video output and full photo resolution image in AVFoundation Framework

I use a capture session to coordinate data flow as the apple developer document described.
I want to get the video data to verify if the image is good enough to take.
If the condition is met, I want to immediately take the Full resolution photo.
However full photo resolution is not supported for video output.
So I have to set the AVCapture sessionPreset to AVCaptureSessionPresetLow to capture video image data,
then reconfigure the sessionPreset to AVCaptureSessionPresetPhoto when the condition is met.
But the reconfiguration takes about two to three seconds, and does not meet the real-time requirements.
If I use two AVCaptureSessions, one for the video capture, the other for the capture the still image,
then it seemed not work.
Does anybody have more ideas?
Thank you.
Ran into this myself - https://stackoverflow.com/questions/3513722/avcapturesession-commitconfiguration-stuck
(As you can see from the question, there are more hardships to come this way)
As I wrote in that question - There's no official supported method for this. Most references I could find were inside Apple Developer Forums, so I won't mention them here, but trust me - Many want what you want and it's currently not supported.
Sorry dude,
Oded.

Resources