- This topic has 4 replies, 3 voices, and was last updated 11 years, 4 months ago by
Brandon.
-
AuthorPosts
-
hardsofftMemberAs image is always in the format of axb pixels. so it may be rectangular or square. my point of view is i used photoshop to select only a car using lasso tool but while saving, it is saved as a rectangular car image. i used image button for popup alert in mobione but i am not getting what i need.
what i need is when i select ” Only on Car ” it should Popup Alert ——– ‘OK’.
what i need is when i select ” Other Than Car ” it should Popup Alert —————‘ NOT OK’.the information is given in attachment
See attachment IMG_0376[1].JPG
Attachments:
You must be logged in to view attached files.January 30, 2014 at 9:18 am #346537
BrandonMemberAs mobione will affect the whole image you can use a transparent panel or smaller object over just the car spot and use the code on that object.
January 30, 2014 at 9:34 am #346543
hardsofftMembercincy wat ever u said is right and i already tried with that as well. As the car is invariable(curve) shape i.e., not a straight one. how can i manage to do that…please give me some detailed information or an example wil be helpful for other forum members ….
January 30, 2014 at 11:41 am #346559
support-michaelKeymasterI don’t know of an immediate solution but here are some ideas that come to mind:
This assumes that selection is of non-rectangular objects embedded in an image and the selection region is object’s bounds.
1a) if your image(s) shapes and backgrounds are very simply then perhaps a computer vision algo to detect the objects in an image (return list of polygons). Then compare if any polygon contains the touch pt. I have not researched embeddable js or native mobile image processing libs.
1b) depending up on your latency and online requirements do all the computation on a server. Send the app and touch context to the server and have it do the computation.
There is a really cool online service (need to find the link) with web api for vision analysis.
2) an optimization of #1a is to precompute the object bounds (polygons) and only perform bounds analysis.
Can you share more about your app’s operation?
January 30, 2014 at 1:13 pm #346572
BrandonMemberI have not tried to implement this but it does seem to be a possibility:
http://www.outsharked.com/imagemapster/default.aspx?what.html
-
AuthorPosts