/
Manifest
/
Real_Texture
Обзор
Документация
Войти
/
Manifest
/
Real_Texture
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Plugins/pixelreader/Source/PixelReader/Public/FenceCaptureLibrary.h
76 строк
2 KB
m.samodurov
init commit for The Invaders
17 фев 2026, 04:57
17 фев 2026, 04:57
4a668d4
Код
Авторство
О чём код?
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "ImageStruct.h" #include "Async/Async.h" #include "IImageWrapper.h" #include "IImageWrapperModule.h" #include "Modules/ModuleManager.h" #include "Misc/FileHelper.h" #include "Misc/Paths.h" #include "ReadPixelsLib.h" THIRD_PARTY_INCLUDES_START #undef check #include "opencv2/opencv.hpp" THIRD_PARTY_INCLUDES_END #include "CoreMinimal.h" #include "Kismet/BlueprintFunctionLibrary.h" #include "FenceCaptureLibrary.generated.h" UCLASS() class PIXELREADER_API UFenceCaptureLibrary : public UBlueprintFunctionLibrary { GENERATED_BODY() public: // Capture by Fence. Return UFUNCTION(BluePrintCallable, Category = "Fence Capture Library | Capture By Fence. Image Reterned") static bool CaptureByFenceReterned ( FImageStruct& img_data, USceneCaptureComponent2D* CameraCapture, E_PR_ImageFormat imFormat = E_PR_ImageFormat::PNG, int imQuality = 0 ); // Capture by Fence. Return with Saving UFUNCTION(BluePrintCallable, Category = "Fence Capture Library | Capture By Fence with Save. Image Reterned") static bool CaptureByFenceWithSaveReterned ( FImageStruct& img_data, USceneCaptureComponent2D* CameraCapture, FString FileName, FString SubFolder, E_PR_ImageFormat imFormat = E_PR_ImageFormat::PNG, int imQuality = 0, bool bNeedSaved = true ); // Resize inpute image. Return with Saving UFUNCTION(BluePrintCallable, Category = "Fence Capture Library | Capture By Fence with Save. Image Reterned") static bool ReturnedResizeImageWithSave ( FImageStruct inImageData, FResizeImgParams ResizeImageParams, FString FileName, FString SubFolder, FImageStruct& outImgData ); private: static void SaveCVImage ( const cv::Mat& mat_image, E_PR_ImageFormat ImgFormat, const FString& FileName, const FString& SubFolder ); };