daiyangyang945 / UyaliBeautyFaceSDK

UyaliBeautyFaceSDK supports beauty filters, LUTs (Look-Up Tables), facial adjustments such as enlarging eyes and slimming faces, and millisecond-level facial recognition and tracking.UyaliBeautyFace美颜SDK,支持美颜(Beauty Filter),滤镜(LUTs),脸部微调如大眼、瘦脸等,毫秒级人脸识别、人脸跟踪。
55 stars 10 forks source link

Compiled module was created by a different version of the compiler #2

Open lc418998951 opened 1 year ago

lc418998951 commented 1 year ago

Compiled module was created by a different version of the compiler; rebuild 'UyaliBeautyFaceSDK' and try again: /Users/lc/Downloads/UyaliBeautyFaceSDK-main/iOS_demo/UyaliBeautyFaceSDKDemo/UyaliBeautyFaceSDKDemo/UyaliBeautyFaceSDK.framework/Modules/UyaliBeautyFaceSDK.swiftmodule/arm64-apple-ios.swiftmodule

daiyangyang945 commented 1 year ago

This should be an issue caused by Xcode 14.3. I am sorry that I am unable to use Xocde 14.3 to recompile the project again at this time. Perhaps you can revert back to Xcode 14.2 version, or I will update to Xcode 14.3 and recompile it in a few days when I have free time.

HoneyJt commented 1 year ago

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file UyaliBeautyFaceSDK/BeautyFaceProcessor.swift, line 419

daiyangyang945 commented 1 year ago

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file UyaliBeautyFaceSDK/BeautyFaceProcessor.swift, line 419

你是用的OC的demo吗,还是swift的demo

HoneyJt commented 1 year ago

oc的demo,把framework拖到我的工程里面 初始化filter 退出控制器报错

HoneyJt commented 1 year ago

找到原因了 我这边没有调用输入的pixelBuffer 就崩溃了

daiyangyang945 commented 1 year ago

找到原因了 我这边没有调用输入的pixelBuffer 就崩溃了

好的

HoneyJt commented 1 year ago

我想请教一下 这个framework 如何来处理图片 是吧图片转换成 pixelBuffer 处理完成 在转回去image么

daiyangyang945 commented 1 year ago

这个我已经实现了,只是有很多地方要改,包括用来展示pixelBuffer的OpenGLView也需要修改,加上这几个月一直很忙所以就没更新。

我可以跟你讲讲具体的实现思路:

let context = CIContext() CVPixelBufferLockBaseAddress(originPixelBuffer, CVPixelBufferLockFlags(rawValue: 0)) timer = DispatchSource.makeTimerSource(queue: DispatchQueue.global()) timer.schedule(deadline: .now(), repeating: .microseconds(100)) timer.setEventHandler(handler: {[weak self] in guard let self = self else { return } context.render(self.ciImage!, to: self.pixelBuffer!) self.filter.process(pixelBuffer: self.pixelBuffer!) self.openGLView.display(pixelBuffer: self.pixelBuffer!) }) timer.resume() 将UIImage转换为CIImage作为全局变量,通过context.render将它渲染到pixelBuffer(该pixelBuffer也是全局变量)中(如果缺少了这一步,那么滤镜将不是从原图开始处理,而是直接在上一张滤镜处理后的pixelBuffer开始处理,会造成严重的失真),再用美颜滤镜去process这个pixelBuffer.然后通过一个定时器每0.1秒执行一次,这样就能再画面上展现出美颜的效果来了。 最后完成的时候只需要将pixelBuffer转换为UIImage即可

daiyangyang945 commented 1 year ago

我想请教一下 这个framework 如何来处理图片 是吧图片转换成 pixelBuffer 处理完成 在转回去image么

我更新了demo,增加了图片美颜,不过时间有限,只有swift版的,但是思路是一样的,你可以参考一下

HoneyJt commented 1 year ago

好的 感谢 

花开不败 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年5月22日(星期一) 晚上7:23 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [daiyangyang945/UyaliBeautyFaceSDK] Compiled module was created by a different version of the compiler (Issue #2)

我想请教一下 这个framework 如何来处理图片 是吧图片转换成 pixelBuffer 处理完成 在转回去image么

我更新了demo,增加了图片美颜,不过时间有限,只有swift版的,但是思路是一样的,你可以参考一下

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

lc418998951 commented 9 months ago

嗨大神,能更新一下库吗?15.2编译不了,谢谢大神 ---- Replied Message @.>Date05/22/2023 19:27 @.> @.>@.>SubjectRe: [daiyangyang945/UyaliBeautyFaceSDK] Compiled module was created by a different version of the compiler (Issue #2) 好的 感谢 

花开不败

@.***

 

------------------ 原始邮件 ------------------

发件人: @.***>;

发送时间: 2023年5月22日(星期一) 晚上7:23

收件人: @.***>;

抄送: @.>; @.>;

主题: Re: [daiyangyang945/UyaliBeautyFaceSDK] Compiled module was created by a different version of the compiler (Issue #2)

我想请教一下 这个framework 如何来处理图片 是吧图片转换成 pixelBuffer 处理完成 在转回去image么

我更新了demo,增加了图片美颜,不过时间有限,只有swift版的,但是思路是一样的,你可以参考一下

Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you commented.Message ID: @.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/daiyangyang945/UyaliBeautyFaceSDK/issues/2#issuecomment-1557049427", "url": "https://github.com/daiyangyang945/UyaliBeautyFaceSDK/issues/2#issuecomment-1557049427", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

daiyangyang945 commented 9 months ago

你把邮箱发我吧,最近挺忙的,我直接本地编译一下发你邮箱好了

lc418998951 commented 9 months ago

@. ---- Replied Message @.>Date01/19/2024 17:56 @.> @.>@.***>SubjectRe: [daiyangyang945/UyaliBeautyFaceSDK] Compiled module was created by a different version of the compiler (Issue #2) 你把邮箱发我吧,最近挺忙的,我直接本地编译一下发你邮箱好了

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/daiyangyang945/UyaliBeautyFaceSDK/issues/2#issuecomment-1900093820", "url": "https://github.com/daiyangyang945/UyaliBeautyFaceSDK/issues/2#issuecomment-1900093820", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

lc418998951 commented 9 months ago

@.*** 谢谢大佬 😄

lc418998951 commented 9 months ago

@.*** 谢谢大佬 

WangJace commented 2 weeks ago

swift版本的demo编译不通过,提示如下错误: /UyaliBeautyFaceSDK/iOS_demo/UyaliBeautyFaceSDKDemo/UyaliBeautyFaceSDKDemo/MakeupItems.swift:9:8 Compiled module was created by a different version of the compiler '5.10.0.13'; rebuild 'UyaliBeautyFaceSDK' and try again: /UyaliBeautyFaceSDK/iOS_demo/UyaliBeautyFaceSDKDemo/UyaliBeautyFaceSDKDemo/UyaliBeautyFaceSDK.framework/Modules/UyaliBeautyFaceSDK.swiftmodule/arm64-apple-ios.swiftmodule

framework 是不是得重新编译一下呀