ImageProcess

YWT20 - Code Plugins - Jun 8, 2021

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.

  • Supported Platforms
  • Supported Engine Versions
    4.26 - 4.27, 5.0 - 5.4
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

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.


Please note: 

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.

Technical Details


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.


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