We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
将视频流程中的人脸美颜后输出, 下面是用法: lipstick_filter = LipstickFilter::create(); blusher_filter = BlusherFilter::create(); face_reshape_filter = FaceReshapeFilter::create();
创建用于处理视频流的输入对象 source_raw_input = SourceRawDataInput::create(); source_raw_input->RegLandmarkCallback([=](std::vector landmarks) { lipstick_filter->SetFaceLandmarks(landmarks); blusher_filter->SetFaceLandmarks(landmarks); face_reshape_filter->SetFaceLandmarks(landmarks); });
beauty_face_filter = BeautyFaceFilter::create();
获取处理结果的输出对象及回调 source_output = TargetRawDataOutput::create(); source_output->setPixelsCallbck( [=](const uint8_t* data, int width, int height, int64_t timestamp) {
std::cout << "target output callback" << std::endl; });
source_raw_input->addTarget(lipstick_filter) ->addTarget(blusher_filter) ->addTarget(face_reshape_filter) ->addTarget(beauty_face_filter) ->addTarget(source_output);
将解析后的视频流逐帧调用 source_raw_input->uploadBytes(videoData,width, height, width);
发现如下问题: TargetRawDataOutput中的 GLubyte* ptr = (GLubyte*)glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY); 始终返回null, glGetError()获取的值为1282
The text was updated successfully, but these errors were encountered:
No branches or pull requests
将视频流程中的人脸美颜后输出,
下面是用法:
lipstick_filter = LipstickFilter::create();
blusher_filter = BlusherFilter::create();
face_reshape_filter = FaceReshapeFilter::create();
创建用于处理视频流的输入对象
source_raw_input = SourceRawDataInput::create();
source_raw_input->RegLandmarkCallback([=](std::vector landmarks) {
lipstick_filter->SetFaceLandmarks(landmarks);
blusher_filter->SetFaceLandmarks(landmarks);
face_reshape_filter->SetFaceLandmarks(landmarks);
});
beauty_face_filter = BeautyFaceFilter::create();
获取处理结果的输出对象及回调
source_output = TargetRawDataOutput::create();
source_output->setPixelsCallbck(
[=](const uint8_t* data, int width, int height, int64_t timestamp) {
source_raw_input->addTarget(lipstick_filter)
->addTarget(blusher_filter)
->addTarget(face_reshape_filter)
->addTarget(beauty_face_filter)
->addTarget(source_output);
将解析后的视频流逐帧调用
source_raw_input->uploadBytes(videoData,width, height, width);
发现如下问题:
TargetRawDataOutput中的
GLubyte* ptr = (GLubyte*)glMapBuffer(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY);
始终返回null,
glGetError()获取的值为1282
The text was updated successfully, but these errors were encountered: