Sharpness script

fuyghjb

Member
Joined
Apr 12, 2015
Messages
89
Reaction score
14
Country
Austria
Any ideas ?
( about noise filter , bitrate , resolution, color correction scrips i know )
 
This has been asked and also answered many many times.
 
This has been asked and also answered many many times.
I search, and dont find anything. Can you help me ?
( not needed information about lens focusing, or noise filter or somthing like this )
I just search information about commands for autoexec.ash to adjust sharpness.
 
Last edited:
I have the same question. Regarding the luma sharpening that is applied to videos. In software. This camera has a nasty "unsharp mask" / luma sharpening effect over all video, that kills half the resolution. if you compare to gopro v2, it has sharpness settings- Yi looks like "high" sharpness, while "low" sharpness is the unchanged picture. Which of course is much better for editing videos professionally.

This _could_ also be the result of really bad pixel binning. But could also be software and/or both.
 
Last edited:
May be this information can help:
Code:
Usage: t is2 -shp mode [mode] : Setup mode indicator of sharpening commands
                  mode: 0 - video
                        1 - fast still
                        2 - lowISO still
                        3 - highISO still
Usage: t is2 -shp [alpha|fir|spat|cor|sig_retain|level_min|level_all]
                : get the sharpening filter settings of specified modes
       t is2 -shp max_change [max_chg_up] [max_chg_down]
                : set sharpening max change setting
       t is2 -shp fir [str] ([coef0] .. [coef5])
                : set sharpening fir setting
       t is2 -shp fir-2 get [Path]
                : get sharpening fir setting(for strength = -2)
       t is2 -shp fir-2 set [Path]
                : set sharpening fir setting(for strength = -2)
       t is2 -shp spat [mode] [iso_str] [dir_str] [edge_thresh] [max_change] [wide_edge_detect] [adaptation]
                      level_str_adj [not_T0T1_level_based] [high] [high_delta] [high_strength] [low] [low_delta] [low_strength] [mid_strength]
                : set sharpening spatial filter setting
       t is2 -shp dir_shp [enable]
                : set directional sharpening
       t is2 -shp dir_shp dir_str [dir0]...[dir8]
                : set dir_strength of directional sharpening
       t is2 -shp dir_shp iso_str [dir0]...[dir8]
                : set iso_strength of directional sharpening
       t is2 -shp dir_shp dir_amt [dir0]...[dir8]
                : set dir_amounts of directional sharpening
       t is2 -shp cor [coring_path]
                : set sharpening coring table setting by reading text based file
       t is2 -shp sig_retain [str]
                : set sharpening signal retain level strength
       t is2 -shp level_min [low] [low_delta] [low_strength] [mid_strength] [high] [high_delta] [high_strength]
                : set level control for minimum sharpness
       t is2 -shp level_all [low] [low_delta] [low_strength] [mid_strength] [high] [high_delta] [high_strength]
                : set level control for overall sharpness

       t is2 -shp smooth [select] : Test DE smoothing
                 select: 2 -low smooth
                 select: 3 -mid smooth
                 select: 4 -high smooth
This command with parameters work in SJ5000Plus, so it should work in Xiaomi.
 
Thank you! do you have any example scripts?
I can not find anything on sharpness for the sj5000plus.

I tried:
Code:
t is2 -shp dir_shp disable
t is2 -shp dir_shp dir_str dir0
t is2 -shp dir_shp dir0
t is2 -shp fir coef0
t is2 -shp spat 0 100 0 0 0 0 0
t is2 -shp 0 0 0 0 100 0 0
- camera boots up fine. but no change.
 
Last edited:
I can not find anything on sharpness for the sj5000plus.
I can not find too :) This command i find in disassembled firmware.
do you have any example scripts?
Yes, i tried these variants:
Code:
t is2 -shp mode 0
t is2 -shp fir 100 0 0 0 0 0 0
t is2 -shp max_change 5 5
Code:
t is2 -shp mode 0
t is2 -shp fir 46000 0 0 0 0 0 0
t is2 -shp max_change 5 5
and i seen changes.
The most visible change I got with the script:
t is2 -shp cor d:\coring.txt
where coring.txt has the following contents:
Code:
104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 92 84 72 60 52 48 40 40 32 28 104 104 28 32 40 48 60 68 76 84 96 100 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104 104
This file need to copy to root of SD card.
Original coring setting are 256 numbers with values about 18-24. Large values of these numbers are given more sharpness in the image.
But I do not know what these numbers mean and how to choose correctly. I think they are the coefficients of a digital filter (FIR), but I could be wrong.
 
Thanks so much, I tried these on the Yi- did you try them on the Yi as well?
Can you attach an untouched coring.txt? (because of the formatting)
I am trying to disable sharpening. I have not seen any change with these commands.
 
That script really works! I set all values to zero, and the picture looks very soft.
Values of all 10 seem to make the most natural picture. THANKS, this is GREAT!
 
Last edited:
Schnurbi, how does your ash file look? And you also got a coring.txt file now?
 
any one can upload picture maybe with value 0 and value 10 to show diffrent? thanks!
 
these are the three lines in my ash for sharpening:
#disable sharpening
t is2 -shp mode 0
t is2 -shp cor d:\coring.txt

they only work with coring.txt that is full of numbers 8-10. I use 10 right now.
It removes all fake detail.
I attached samples for coring 50 and coring 8 (always 256 times the same number in the txt)
I also attached my coring file.
 

Attachments

  • coring.txt
    767 bytes · Views: 256
  • coring50.png
    coring50.png
    77 KB · Views: 510
  • coring8.png
    coring8.png
    86.6 KB · Views: 507
these are the three lines in my ash for sharpening:


they only work with coring.txt that is full of numbers 8-10. I use 10 right now.
It removes all fake detail.
I attached samples for coring 50 and coring 8 (always 256 times the same number in the txt)
I also attached my coring file.


its work for videos or pictures?
 
its work for videos or pictures?
With both. It is only necessary to substitute the appropriate option in the t -shp mode at the beginning of the script:
Code:
mode:
        0 - video
        1 - fast still
        2 - lowISO still
        3 - highISO still
 
@fuyghjb:
yes it is fake details. this is what coring is for. enhancing contrast at egdes. you will see if you sharpen the coring 8 picture in photoshop or another application. (try unsharp mask) it will get same or better results than with coring 50 - so you have the choice (as a filmmaker I want this) - If you love the oversharpened look, use it! :)
 
Last edited:
With both. It is only necessary to substitute the appropriate option in the t -shp mode at the beginning of the script:
Code:
mode:
        0 - video
        1 - fast still
        2 - lowISO still
        3 - highISO still
can i put all options in a script? haha
 
You can make a command for video and a separate command for photo in your script, but not all options. Try it & see.
 
Back
Top