xcode 照片编辑应用程序有这些功能吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1513411/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:52:53  来源:igfitidea点击:

photo editing app are these functions possible?

objective-cxcodeiphone-sdk-3.0image-processing

提问by Rahul Vyas

User would open the app and it would ask if User wants to use the camera or use a saved picture. If user selects camera, it would link with the camera view so that they can immediately take a picture. Application would present the user with an outline of a human body so as to match up with a subject they wish to photograph. alt text

用户会打开应用程序,它会询问用户是要使用相机还是使用保存的图片。如果用户选择了相机,它将与相机视图链接,以便他们可以立即拍照。应用程序将向用户呈现人体轮廓,以便与他们想要拍摄的主题相匹配。 替代文字

Example – this would be clear except for the outline of the body and the user would be able to move the phone or have the subject move until they closely fit into the shape seen above. Once in position the subject would be photographed and the resulting photo WOULD NOT display the outline above. It is used for targeting and alignment only. Once photo is taken a set of clothing could be held up and the same outline above could be used to align the clothes within the shape and photographed thus allowing the two photos to be merged and the subject would see what the clothing would look like on them. Application would then eliminate all of the image out side the body image. In more specific terms would isolate the subject from the subject's surroundings. The result would be the subject alone in a blank field. Now that subject is isolated application would allow for other images to be placed over subject image. (example: new clothes could be imaged in a similar manner as the subject and dragged on to the isolated image.

示例 - 除了身体的轮廓之外,这将是清晰的,并且用户将能够移动手机或让对象移动,直到它们紧密贴合上图所示的形状。一旦就位,拍摄对象将被拍摄,生成的照片将不会显示上面的轮廓。它仅用于定位和对齐。拍完照片后,可以举起一套衣服,上面相同的轮廓可以用来对齐形状内的衣服并拍照,从而使两张照片合并,拍摄对象将看到衣服穿在身上的样子. 然后应用程序将消除身体图像之外的所有图像。更具体地说,将主体与主体的周围环境隔离开来。结果将是空白字段中单独的主题。现在该主题是孤立的,应用程序将允许将其他图像放置在主题图像上。(例如:新衣服可以以与主题类似的方式成像,然后拖到孤立的图像上。

ok thanks for your answer.it really helps me alot..

好的,谢谢你的回答。它真的帮助了我很多..

now tell me if these functions are possible

现在告诉我这些功能是否可行

Application will allow for adding isolated subject onto a background imaged stored on the iphone. (example: subject is photographed in San Francisco but background is replaced to make it appear subject is in New York City. All functions described above should be available to be employed with stored images as well. Image of subject should be able to be “morphed” to appear heavier or thinner.

应用程序将允许将孤立的主题添加到存储在 iphone 上的背景图像上。(例如:主体在旧金山拍摄,但背景被替换以使其看起来主体在纽约市。上述所有功能也应可用于存储的图像。主体的图像应能够“变形” ” 显得更重或更瘦。

Below are some additional desired features which are price sensitive – please provide an estimate based on adding some of these features. If a feature is listed below and it appears above please disregard. Once photo is taken, app would ask user if they want to cut the head, replace the outfit or "try on". This would drive the subsequent actions. If cut head is selected User would circle the outline of the head and the app would cut out the image of the head and save to the side User would then select another body from the picture,?from a body template, or body from another saved/stored photo. Once body is selected, user would touch the saved head and it will automatically fill on to the body. If outfit is selected User would touch key body parts such as the two shoulders, hands, waist, legs and feet from left to right. This would allow the app to know how best to superimpose the outfit. User would then select an outfit from the many available templates Once selected, user would hit a confirm type of button and this would put the new outfit on to the body. The outfit should conform to the person's body in the photo. i.e. stretch side ways to make the person fatter, make thinner, shorter, longer, etc. If app could be aware of spatial alignment, that would be ideal. i.e. if someone is turned to the side, the replaced outfit would be a side view. Another feature should be is for the user to manually alter the photo with the new outfit to make the person look taller, shorter, skinnier, fatter, etc. App would also have option pose for frontal and rear view photo In the camera view when this option is selected, a standard body outline would show in the frame. The user would try and match as closely as possibly the subject to the body outline shown in the frame. Once closely matched, user would take the phone of the frontal and rear view of the subject. At clothing stores, the user can take a front and back photo of the clothes and have it superimposed to the "posed" photo of the body they took. User would open the app, and it would start as outlined in the first bullet point above User would select the camera option User would take the photo of the front and back of the clothing Once photo taken, app would ask if they want to cut the head, replace the outfit, or try on.. User selects try on App asks if it's a top, bottom, or both AND if user wants frontal/rear view of the clothing User touches key points of the outfit as needed, ie.?shoulders, wrist, waist, etc. Once key points touched and confirmed, app automatically fits the clothing into the saved/posed photo App would need to conform the clothing photo to the user's body shape and type. The app should work for saved pictures as well. ie stores have pictures online and the user is able to copy and save the clothing photo from the store's website to their iphone and use this feature the same.

以下是一些对价格敏感的其他所需功能 - 请提供基于添加其中一些功能的估计值。如果下面列出了一个功能并且它出现在上面,请忽略。拍照后,应用程序会询问用户是否要剪头、更换衣服或“试穿”。这将推动后续行动。如果选择切割头,用户将圈出头部的轮廓,应用程序将切出头部的图像并保存到侧面用户然后从图片中选择另一个身体,从身体模板中选择另一个身体,或者从另一个保存的身体中选择身体/存储的照片。一旦选择了身体,用户将触摸保存的头部,它会自动填充到身体上。如果选择了服装,用户会从左到右触摸身体的关键部位,如两个肩膀、手、腰、腿和脚。这将使应用程序知道如何最好地叠加服装。然后用户将从许多可用模板中选择一套服装 一旦选择,用户将点击确认类型的按钮,这会将新服装放在身体上。服装应符合照片中人物的身体。即拉伸侧面的方式使人变胖,变瘦,变短,变长等。如果应用程序可以意识到空间对齐,那将是理想的。即如果有人转向一边,更换的装备将是侧视图。另一个功能应该是让用户手动更改带有新衣服的照片,使人看起来更高,更矮,更瘦,更胖等。应用程序还将有正面和背面照片的选项姿势 在相机视图中选项,标准的身体轮廓将显示在框架中。用户会尝试尽可能地将主体与框架中显示的身体轮廓相匹配。一旦紧密匹配,用户将拿起被摄对象的正面和背面视图的手机。在服装店,用户可以拍摄衣服的正面和背面照片,并将其叠加到他们拍摄的身体的“摆姿势”照片上。用户将打开应用程序,它将按照上面第一个要点中的概述开始 用户将选择相机选项 用户将拍摄衣服正面和背面的照片 拍下照片后,应用程序会询问他们是否要剪裁衣服头,更换衣服,或试穿。肩、腕、腰等。触摸并确认关键点后,应用程序会自动将衣服放入保存/摆出的照片中,应用程序需要将衣服照片与用户的体型和类型相匹配。该应用程序也应该适用于保存的图片。即商店有在线图片,用户可以将服装照片从商店网站复制并保存到他们的 iphone 并使用相同的功能。

回答by zoul

The targetting part can be easily done in 3.1, you'll simply set a view with a?transparent body image as the custom camera view (setCameraOverlayViewdocs). The body outline will only be visible in the view finder, not on the photograph. Once you have the image aligned, you can then separate the body image from the background using a PNG mask image with an alpha channel. This image would only show the parts that fall inside the body outline, and you can also have a decent feather on the border. I am just not sure about the quality of the resulting image, the aligning is bound to be pretty imprecise.

定位部分可以在 3.1 中轻松完成,您只需将带有透明身体图像的视图设置为自定义相机视图(setCameraOverlayView文档)。身体轮廓仅在取景器中可见,在照片上不可见。对齐图像后,您可以使用带有 Alpha 通道的 PNG 蒙版图像将身体图像与背景分开。此图像只会显示落在身体轮廓内的部分,并且您还可以在边框上有一个像样的羽毛。我只是不确定生成的图像的质量,对齐肯定会非常不精确。