iOS - Detecting color combination on camera feed - ios

I need to detect something like a barcode but colored on live video (I don't necessarily need tracking, it is optional).I could use OpenCV but I thought it is worth a try asking here. The problem with openCV is that I am not very familiar with the whole concept of image processing. The other problem is that I use swift in most of the time, and however I could write an Obj-C wrapper with the help of google, the fact that OpenCV is written in C++ does not help at all, so maybe it would take too much time to use OpenCV.
Do you know any SDK-s that could help me in that? (It is not a problem if it is not free)
EDIT:
To be clear. By "something like a barcode" I mean that it is colored and instead of the width of the bars the colors are what metter.

Related

AR.js Custom Markers

I am new to WebAR, but I have experience with building AR scenes with Unity3D and software such as Vuforia and 8thWall.
I have a question with the markers with AR.js. Why are they stuck with the thick black border? Is the software not able to just recognize a unique image like how Vuforia and Wikitude works? I apologize for how naive I may be when it comes to WebAR, however, I see this as an issue for the adoption rate of this technology if developers cannot use truly custom images and patterns. Is there a solution available that I may have missed somewhere? What happens if someone deletes/erases the big black border on the marker? Does it still work?
Thanks to anyone who can shed some light on this!
Ar.js uses artoolkit and therefore is marker based. If you want to use it, there is not much you can do about it. Still You can have unique images inside the black box but not much else.
Worth mentioning, it is possible to make the borders thinner, there's even a branch - work in progress worth looking into.
Aframe-argon tried integrating aframe and vuforia, but i'm not sure if it's up to date.

Add sunflare kind of lighting effect on image

I am looking for sunflare kind of lighting effect on Image. In my case light source is bulb instead of Sun. And I understand that changing light source changes rays effect and even different type of bulb produces different type of light beams.
Here is an example of focus light : http://www.photoshopessentials.com/photo-effects/focus-light/
I have looked into standard photo filters and OpenCV but we didn't find something obvious. I am looking for approach and direction to achieve it.
My knowledge is limited to iOS business apps only. I have heard only name of frameworks like OpenGL,SceneKit and MetalKit.So, I would prefer to have solution which fits into my knowledge stack but yes I would love to know all possible solutions.
Let me know if you want me to explain more.
Any help would be appreciated.

Ios how to recognize a simple Logo on a white background?

I'm trying to write an app that recognize a logo saved in app bundle and readed as UIImage. I have did a search before make this question, the only free solution seems to be OpenCv. I have tried it in a demo i had download from toptal_logo_detector . The demo works and i can find my logo everywhere i place it. Anyway the camera is very slow, too slow to use it in a real app. Maybe there's a way to optimize it, but my question is another.
I have to recognize a vector logo (always the same logo) centered in a white background ,something like this wifi logo:
My only solution is the complex OpenCV? There's a free and simpler way to achive the result: YES here there's your logo/No there isn't ?
I found this tutorial (with project download) that does what you want using OpenCV

How to binaries image using ImageMagick?

I have got one image like this
to only black and white colored image.
And I come across this ImageMagick resource
Does this can be used to generate black and white image from the above given image?
Does it is good to use this one?
If it is good one then does there is any documentation or tutorial on "How to use?".
UPDATE
SO GOT THE BEST SOLUTION FROM #ale0xB's SUGGESTION.
No third party api is required for doing this as apple's COREIMAGE.FRAMEWORK is the best for doing what I want to do. It's filters are working like charm :)
Thanks for the suggestion :)
I use this image filter. And it is great in speed and provides great output :)
Why would you want to use imageMagick instead of the standard Core Image to produce black and White images? I haven't used it before, but I doubt it's gonna give a much better performance than the native framework when it's just about creating a filter.
Since iOS 6 you have it really easy, have a look: Core Image filters, specially to CIColorMonochrome, which is the one you may be interested in.
If you're playing with images in your app, this is definitely worth checking: Core Image Programming Guide

What algorithm is used here?

This is simple text detection video made using an opencv.
Any ideas how was that made?
Opencv video 1
Opencv video 2
The author describes what he's doing in the comments to the video you linked.
I basically look for dark pixels
aligned horizontally, put a box around
them and call them letters.
He also mentions
If you like i could share the source code.
...so if you're still curious, you know what to do.

Resources