Better HN
topnewbestaskshowjobs
Log inSign up

gincent

21 karma · joined Mar 15, 2023 (3y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

On Samsung devices that support this, it's implemented in the file libsuperresolution_raw.arcsoft.so in /system/lib64, if you're curious to have a look at how it works.

Some strings from that file, relating to the moon detection and enhancement process:

    AHDR_SetMoonMask
    ai_moon
    ArcSoft_Moon_Detection_2.1.125231001.2
    ArcSoft_MoonEnhancement_1.1.12021.257
    ARC_SRR_DisableDaytimeMoonScene
    ARC_SRR_GetMoonSceneType
    ARC_SRR_SetMoonWeight
    bMoonMode
    bMoonProtect
    MFSR Moon Detect
    moon count is %d
    MoonDetect
    MoonDetect_Init
    %s_%02d_AIE_Output_ISO_%d_DRC_%0.2f_HDRMoon_%d_%dx%d
    %s_%02d_CropMoonMask_Idx_%d_%dx%d
    %s_%02d_DaynightAIMoon_Output_Idx_%d_%dx%d
    %s_%02d_DaytimeAIMoon_Output_Idx_%d_%dx%d
    %s_%02d_MoonDetection_Input_%dx%d
    %s_%02d_MoonHDR_Output_ISO_%d_DRC_%0.2f_HDR_%d_Moon_%d_%dx%d
    %s_%02d_MoonMask_Idx_%d_%dx%d
    %s_%02d_ResizedMoonMask_Idx_%d_%dx%d
    /sdcard/download/arcsr/%s_moon_mask_%dx%d.gray
    %s/FusionRun_pMoonmask_%dx%d.gray
    void mfsr_moon_detect(gk_mfsr *)

comment 3y ago · link · parent

It's not in the cloud, this is all done on-device. They have a moon detection AI model that they pass the image through, the output of which is then used to set up and then run the moon enhancement model, which fills in the detail from moon images it's been trained upon.

These are part of a larger package of super-resolution models and processing pipeline that Samsung licenses from ArcSoft, a computational photography software company that specialises in mobile devices.