Reading Microsoft tags - c#

You guys are probably aware of Microsoft Tags.
We have a barcode gun in our office and I would like to read these tags using C#.
Any idea how I can go about doing this?
Thanks

The Microsoft Tag initiative is based around image recognition, a barcode gun won't have any idea of what to do with a 'Tag', but you can use your phone camera. There's a sample app in the Apple App Store if you have an iPhone, not sure if they've written a version for Windows Mobile yet.
The principle is that you can resolve the tag to a short alpha-numeric code (think GUID but smaller) and then look that up using Microsoft's register of tags, using Web Services.

The question is why?
There have been companies spruiking this for years and it just doesn't make sense.
I'd rather have an application that read a URL from a photo, OCR'd it and then punched it into a browser for me. That way you get the ability to click and view, but you don't need a phone in your hand to write down the URL. They're all striving for a vendor lock in.
Call me a luddite or blind to the way of the future but I just don't see this as a "killer app".

Related

Windows 8 RT online Flash Movie

I'm programming a Windows 8 RT app that uses the API of Rotten Tomatoes. It gives me access to trailers/clips of the selected movie. I checked out the link and it appears all of the links are online Flash movies.
I tried playing around with the 'WebView' control and the 'MediaElement', but none seem to satisify my needs.
Is it even possible to play Flash movies. If not what are my options?
If you code like this <WebView Source="http://www.rottentomatoes.com/m/last_vegas_2013/trailers/11178829" />, you can see it's opening whole page. Good thing is that video gets play. So you need to remove the non-relevant portion using InvokeScript method & JavaScript. I don't know too much JS otherwise I would have give you proper solution.
I am confident JS will help you, the reason is this app itself. It's basically a Facebook website with RELEVANT portion.
Disclaimer: I am not the owner of that app.
Also check out this feature request.

How to use WIA on webpage to get image from client computer

I am trying to figure out how to use WIA on a ASP.NET/C# web page to capture an image from a camera that is on the client computer. The user will be using a Microsoft LifeCam camera and from my webpage I want them to be able to take the picture and store it in a database. I imagine I will need to use DirectX for this and that is an acceptable solution but any solution would be great.
My big problem is I cannot seem to find any samples/documentation on how to do this on a webpage. All I am finding is stuff that says it can be done but no explanation on how. Any help anyone could provide would be greatly appreciated. Thanks.
It seems you have to generate a dll for the interface with tlibimp (from wiascr.tlb) which you can add as a reference in c#, then you can follow the tutorial (http://msdn.microsoft.com/en-us/library/ms629859(v=vs.85).aspx).

take a photo using webcam with C#

I want to take a photo using a webcam from my application. How do I accomplish that? My application is developed in C# and to make a visitor's pass, I want to take a photo of the particular visitor when he enters the company building.
Try out jQuery Webcam
I am struggling to get the save function to work, but its a start.
Webcams all use a different API. Find the API that your webcam supports...let me know, and I will happily talk you through how to do it.
I assume that you are talking WinForms?
You are going to need some kind of trusted client side code, if you want to do this. Java, Flash, SilverLight are all possibilities. But they may create a dependency on a particular WebCam/Software/API.
You'd be much better off configuring your web cam to put its photos in a single place and have a web form that accepts a file upload.
This way when your web cam breaks and you can't get the exact same device you don't have to recode.

Control webcam from C#

I have a Creative Life CAM Optia AF webcam, the software included in the package is able to control the camera in different ways, like set autofocus to auto or manual, and a bunch of gamma and brightness settings.
I'm capturing the feed with the AForge Computer vision library, and it's working great.
But i would like to be able to set the manual focus from inside my application.
Ive been searching for a tutorial, but come up empty handed.
Can i somehow either disassemble the included software, or is there some way to fetch the traffic / instructions being sent to the device?
Thanks in advance.
If the license agreement that comes with the software allows you to disassemble it, you can do so with Reflector (assuming that it's a .NET application).
How to programatically disable the auto-focus of a webcam?
I think i found a way to do this. But i have never written any C++, that is C++ right?
Thanks :)

Using data from Google Maps in a C# Program for Windows Mobile

I'm making a charity Windows Mobile 6 app in C# to help those affected by Alzheimer's.
The aim is for this app to let the carer set a boundary by tapping in Google maps to set points. The carer would then put the windows mobile device in the patient's hand bag or coat, so that when the patient walks out on their own, thinking that they are "going home", the carer receives an SMS text with their position, heading and speed.
However, I don't know how to...
Switch from app to google maps for mobile
tap to select points
import the coordinates of that point to my C# program
use the coordinates to Calculate the boundary
Send the text with the position information
Switch back to my C# program
HTC's HD2 comes with a compass that uses this "tap to select a point then return to app" functionality, so surely it's possible for us too?
If anyone would be able to give me a hand my out I would be EXTREMELY grateful as this will help all those affected by Alzheimer's and other similar conditions. My Gran, for example, recently started trying to walk back to the property she lived in 20 years ago...
Thanks everyone! This means sooo much! I'll even come and buy you a drink to say thanks!
James
Whatever technical issues you're considering, I think you should realize that this type of usage is, AFAICS, contrary to the terms of service of google maps. See:
http://code.google.com/apis/maps/terms.html
That is, you may only use the google maps content if its accessible for everybody, not just whomever you hand out your program to:
Your Maps API Implementation must be generally accessible to users without charge.
If you're building it as a web app, it must be accessible through the internet, not intranet:
[your Maps API Implementation must not:] operate only behind a firewall or only on an internal network (except during the development and testing phase).
Some of the terms in header 10 also seem applicable:
[you must not (nor may you permit anyone else to):]
10.8 use the Static Maps API other than in an implementation in a web browser;
10.9 use the Service or Content with any products, systems, or applications for or in connection with:
(a) real time navigation or route guidance, including but not limited to turn-by-turn route guidance that is synchronized to the position of a user's sensor-enabled device;
Why would you want to kludge something together like that? Trying to have your app interface with another application for which you don't have source, whether it's Google Maps fopr Mobile or anything else, is difficult and should only be used as a last resort.
If this app is going to be free and not require users to log in, you can use the Bing Maps Web Service API directly from your application without cost. You could then use built-in GPS through the GPSID APIs as well, and you'd have control over what data goes where, what maps to draw, etc.
This seems like a much easier path to achieve what you're after.
As a side note, I gave a link above for the GPSID sample from Microsoft. I'd recommend looking at it and the native GPSID APIs but the managed wrapper Microsoft provided is, IMO, pure garbage, so you might consider wrapping the lower APIs yourself.
To restate the problem I believe you're trying to solve:
You've a use case when a carer will sent up a "virtual boundary" on a device. If that device leaves the bounded area, you'd like an alert sent via SMS sent to a predefined recipient, saying where that device is.
My suggestion would be to use something like OpenStreetMap maps (as they're free) for when you're setting up the virtual boundary. For their tiles (each 256px square), there is a relatively trivial method for converting between lat/long and pixel co-ordinates.
You might also be able to do what you want by cannibalising one of their existing Windows Mobile applications intended for surveying, such as OSMtracker, which already includes the map controls, downloads and the like, just leaving point 5 and part of point 4 on your list to tackle.

Categories

Resources