How to highlight different part of human anatomy when tapping on [closed] - ios

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So, I have searched enough, got one or two ways but failed to get an exact solution to my problem. I have an image of a body like this:
Now when tapping on different body parts, those bodyparts will be highlighted like below image:
This is a back body portion image for reference.
Now I have small images like:
To highlight the body parts. Can anyone please suggest me a way how I can achieve this. Just guide me with a way that will be enough. Thanks in advance.

It should be fairly easy, let's say the full human body is 400x800, and you got like 5 body parts, then create 5x 400x800 images with each body parts in the exact location, stack each on top of each other, the invisible layer will match and display the whole body normally.
To highlight, simply switch the image in the corresponding imageView. To handle user touch, you should have a tap gesture to figure the location, then change the correct image layer.

Related

In Swift 4, how do you create bright/shiny/glowy views? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Im trying to create a view that glows very intensely and in the dark even, kind of like what this app here has accomplished (https://itunes.apple.com/us/app/mood-colors/id545822095?mt=8). I tried adding a sprite kit particle to the view and started messing with that but it really didn't take me anywhere and I couldn't get the results I wanted. Any help would be greatly appreciated. Also, incase you want to know, I am working with Swift 4 on a regular single view app and I am a bit of a beginner.
Thanks in advance.
This is only images showed with bright colors. If the images have very vibrant colors this could be achieved. It also looks like there are several shapes that the user can set a color to themself. But please bear in mind that phones using OLED (as iPhone X) can burn the image in and destroy the screen if something is shown very statically.
If you like to draw shapes (like a star) there is a solution That can be found here
Happy coding!

Recognising complex objects in an image [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm going to be more specific about the situation:
I've captured a screenshot from the game DotA. The information I want to get is what objects eg. heroes (also its name, hp, ...), creeps (also which side), towers, etc. is visible in the image and where they are. A problem come from the fact that in DotA 2 many of these object can be viewed from many perspective, so let's reduce the problem and assume that every object have only one orientation. How might this problem be solved quickly enough, that it can recognise all objects in real time at about 30fps? Any help or suggestions is welcome.
I think that you have the good flags: CNN for image segmentation. So my point is that for so many different objects from different points of view and scale (because I guess that you can zoom in/out on your heroes/objects), the easiest way (but the heaviest in term of computation) is to build one CNN for each type of object.
But images would help a lot to get a better understanding of the problem.

How to create a randomly generated line using Swift in xCode [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In the Image above (Top Image), suppose the black boundary is the phone.
What i was trying to achieve is to randomly generate the red path from the top of the screen and at the same time the red line (path) moves downwards.
Notice how the red path is random and does not have a uniform shape.
My question is how do i achieve this?
I know this has something to do with the random function.
But then generating the random path has been my main obstacle since 8 hours.
I could not generate a shape at every interval of the timer with a specific x coordinate and y coordinate but then as you can see in the next image, how would i generate the line at an angle (rotated)
Have tried hard to search everywhere on the internet but failed.
I always keep stackoverflow my last destination after I fail to achieve any functionality after numerous hours.
Would really appreciate if anyone could help me out with this.
It looks like you could achieve the effect you wish by starting at the top center, and repeatedly choosing 2 random numbers: how far down to go, and how far horizontally to go (positive or negative), until you got to the bottom of the screen. You'd have to be careful not to go off either edge, or you could instead choose a random x-coordinate each step.

Creating a words grid for a search word game [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to draw a words grid that user can select the wrods, like the image below
I think the best way is to use a UICollectionView element for draw a grid but how can I handle touch events and mark selected letters?
There is no one answer to your question. You could use individual UIButtons for each letter or set up your own touch coordinate tracking system corresponding to letters or do something completely different. It boils down to what you feel comfortable working with and your experience level. To get the ball rolling, I would suggest you take a look at this Ray Wenderlich tutorial which shows how to create a letter word game by dragging letter tiles. The tech in this tutorial will definitely help you with your project.
Updated:
If you go the button route, you can create them programmatically and pretty much do anything you want. Change their title (in your case) letter, show or hide them, track various kind of touches, and so on. For the letters and tracking touches, there are probably a number of methods of doing this. Try putting your letters on a subview while keeping track of their center coordinates. Then add a new subview over your letters to track the user's touches.
You will have to read and understand the UIGestureRecognizer Class.
Here is an example of how to get a user's screen coordinates from a touch.

Parsing powerpoint into one Image per slide [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I would like to convert a powerpoint presentation into a series of images. One per slide specifically so they can be uploaded as an image gallery to a blog. Does anyone know of any libraries that can convert a .ppt into images. Any language is fine as long as it can run on a *nix server, so no C# or .Net dependent libraries.
Even if one existed, and I would guess one does, it can't address animations in a meaningful way. I see more and more ppt presentations making good use of animations to get their points across. Many of these animations will overlap one another. How could such a slide be turned into a single image? How would you prioritize which animated image segments should overlap the others? You may want to keep an eye on this thread: Converting ppt to png using Apache poi
This might get you a solution via php How to work with powerpoint in php?
This might work with python: https://stackoverflow.com/q/4995877/657003
This is a good discussion of the problem you face: http://www.joelonsoftware.com/items/2008/02/19.html

Resources