Code Modules:

  •  ImageProcessBPFunctionLibrary [Runtime]

Number of C++ Classes: 2

Network Replicated: No

Supported Development Platforms: (“Windows”)

Supported Target Build Platforms: (“Win64”, “Win32”)

Doc: Link

Example: Link

代码模块:

  •  ImageProcessBPFunctionLibrary [运行时]

C++ 类数量:2

网络复制:否

支持的开发平台:(“Windows”)

支持的目标构建平台:(“Win64”、“Win32”)

文档:链接

示例:链接

Process the image -color mapping, image contour recognition, mosaic, frosted glass, oil painting, sketch, relief, lens, blur, face detection, cat face detection, license plate detection, etc.

Open the Content Browser window, in the upper right corner of the Content Browser, click the Settings button, This will open a menu where you can adjust various settings for the current instance of the Content Browser, Under the View category, check the Show Plugin Content option, Find the ImageProcess->Content->ImageProcess directory, There are sample levels and related assets inside.

Change log : (2023/06)

Support 5.2 version

5.1-5.2:

Added RenderTargetToTexture2D function.

Add MediaTextureToTexture2D function.

Note that if the conversion is performed every frame or some calculation-intensive functions will cause stuttering.

In UE5, you need to add plugin content in Additional Asset Directories to Cook in the project settings. Otherwise, it will crash when used after packaging. And when loading pictures, try to use PNG pictures, JPG still has problems that have not been solved.

Including some common functions (get all the file names in the path, load and save the picture file, crop the picture, superimpose the picture, reset the picture size, etc.)

  • Most functions have the original function and the function P and the function TMS.
  • FunctionP==>>The input image can be the disk path where the image is located.
  • FunctionTMS==>>The input image can be the FTAndM structure returned by other functions. (Mainly used to accept Mat).
  • The face detection function will have different accuracy rates based on different cascaded classifiers.
  •  Most area parameters are FBox, from Min coordinate point to Max coordinate point. For example, if it is Min (100, 100)-Max (100, 100), then the area of this area is equal to 0 instead of taking the width 100 and height 100 from Min (100, 100).
  • Numerical parameters generally have default values. If the value is modified to a wrong value and the wrong result is obtained, the value can be restored to the default value.
  • When setting the texture properties, you also need to set the value of MipGenSettings to NoMipmaps.
  •  GetPathFiles–Get all file names in the disk path
  •  LoadFileToTexture2D–Add image files to Texture2D through the disk file path
  •  SaveTexture2DToFile–Save Texture2D to the disk file of the corresponding path, and determine the file type according to the file name
  • ResizeTexture2D–Reset the size of Texture2D
  • CutOutTexture2D–Cut out a part of the area from Texture2D
  • OverlayTexture2D–Overlay another Texture2D to the specified area for Texture2D
  • MakeTAndM–Create a TAndM
  • FindContours–Identify the contour in the image and return the point data of the contour
  • ApplyColorMap–Apply a color map to Texture2D
  • Mosaic–Apply a mosaic filter to the specified area for Texture2D
  • FrostedGlass–Apply a Frosted glass filter to the specified area for Texture2D
  • OilPainting–Apply a Oil Painting filter to the specified area for Texture2D
  • Sketch–Convert Texture2D to sketch filter
  • ReliefSculpture–Convert Texture2D to Relief Sculpture filter
  • Lens–Convert Texture2D to Lens filter
  • Blurred–Convert Texture2D to Blurred filter
  • FaceDetection–According to the use of different CascadeClassifier to carry out different target detection.

处理图像——颜色映射、图像轮廓识别、马赛克、磨砂玻璃、油画、素描、浮雕、镜头、模糊、人脸检测、猫脸检测、车牌检测等。

打开内容浏览器窗口,在内容浏览器的右上角,单击设置按钮,这将打开一个菜单,您可以在其中调整内容浏览器当前实例的各种设置,在视图类别下,选中显示插件内容选项,找到ImageProcess->Content->ImageProcess目录,里面有示例关卡和相关资源。

更新日志:(2023/06)

支持5.2版本

5.1-5.2:

添加RenderTargetToTexture2D功能。

添加MediaTextureToTexture2D

请注意,如果每帧都进行转换,否则某些计算密集型函数会导致卡顿。

在 UE5 中,您需要在项目设置中将“Additional Asset Directorys to Cook”中的插件内容添加到“Cook”中。 否则打包后使用时会崩溃。并且在加载图片时,尝试使用PNG图片,JPG仍然存在问题没有解决。

包括一些常用函数(获取路径中所有文件名、加载并保存图片文件、裁剪图片、叠加图片、重置图片大小等)

  • 大部分函数都有原来的函数以及函数P和函数TMS。
  • FunctionP==>>输入图像可以是图像所在的磁盘路径。
  • FunctionTMS==>>输入图像可以是其他函数返回的FTAndM结构体。 (主要用于接受Mat)。
  • 人脸检测函数根据级联分类器的不同,会有不同的准确率。
  •  大部分区域参数都是FBox,从Min坐标点到Max坐标点。例如,如果是Min(100, 100)-Max(100, 100),那么这个区域的面积就等于0,而不是从Min(100, 100)中取宽度100和高度100。
  • 数值参数一般都有默认值。如果修改了错误的值,得到了错误的结果,可以将该值恢复为默认值。
  • 设置纹理属性时,还需要将MipGenSettings的值设置为NoMipmaps。
  •  GetPathFiles–获取磁盘路径下的所有文件名
  •  LoadFileToTexture2D–通过磁盘文件将图像文件添加到Texture2D中path
  •  SaveTexture2DToFile–将Texture2D保存到对应路径的磁盘文件中,并根据文件名确定文件类型
  • ResizeTexture2D–重置Texture2D的大小
  • CutOutTexture2D–从Texture2D中剪切出一部分区域
  • OverlayTexture2D–将另一个Texture2D叠加到指定区域上Texture2D
  • MakeTAndM–创建TAndM
  • FindContours–识别图像中的轮廓,并返回轮廓的点数据
  • ApplyColorMap–对Texture2D应用色彩图
  • Mosaic–对Texture2D的指定区域应用马赛克滤镜
  • FrostedGlass–对Texture2D应用磨砂玻璃滤镜指定区域的Texture2D
  • OilPainting–将油画滤镜应用到指定的Texture2D区域
  • Sketch–将Texture2D转换为草图滤镜
  • ReliefSculpture–将Texture2D转换为浮雕滤镜
  • Lens–将Texture2D转换为镜头滤镜
  • Blurred–将Texture2D转换为模糊过滤器
  • FaceDetection——根据使用不同的CascadeClassifier来进行不同的目标检测。
声明:本站所有资源都是由站长从网络上收集而来,如若本站内容侵犯了原著者的合法权益,可联系站长删除。