Skip to content

Instantly share code, notes, and snippets.

@yosun
Last active September 30, 2020 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosun/76a90114066f1e9de4518ba9029e1802 to your computer and use it in GitHub Desktop.
Save yosun/76a90114066f1e9de4518ba9029e1802 to your computer and use it in GitHub Desktop.
.bsf format example
0.093202,EyeBlinkRight,0.1324285;EyeWideRight,0;MouthLowerDownLeft,0.09674008;MouthRollUpper,0.09566025;CheekSquintLeft,0.1162713;MouthDimpleRight,0.09755987;BrowInnerUp,0.2132732;EyeLookInLeft,0.1252181;MouthPressLeft,0.03375453;MouthStretchRight,0.1353138;BrowDownLeft,0.00347129;MouthFunnel,0.106336;NoseSneerLeft,0.122659;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1015166;BrowOuterUpRight,0.0116115;MouthLeft,0.02777758;CheekSquintRight,0.09180645;JawOpen,0.03460217;EyeBlinkLeft,0.1325821;JawForward,0.02649944;MouthPressRight,0.04004911;NoseSneerRight,0.1252758;JawRight,3.981014E-05;MouthShrugLower,0.1429244;EyeSquintLeft,0.134331;EyeLookOutRight,0.01091583;MouthFrownLeft,0;CheekPuff,0.03729479;MouthStretchLeft,0.1497094;TongueOut,0.0003649702;MouthRollLower,0.05108144;MouthUpperUpRight,0.05227803;MouthShrugUpper,0.1611353;EyeSquintRight,0.1342564;EyeLookDownLeft,0.2631951;MouthSmileLeft,0.2097895;EyeWideLeft,0;MouthClose,0.02895156;JawLeft,0.03577858;MouthDimpleLeft,0.09959596;MouthFrownRight,0;MouthPucker,0.1618416;MouthRight,6.176699E-06;EyeLookUpLeft,0;BrowDownRight,0.003631477;MouthSmileRight,0.1857542;MouthUpperUpLeft,0.04946714;BrowOuterUpLeft,0.01163117;EyeLookUpRight,0;EyeLookDownRight,0.2641164;*(-0.2177, 0.1983, -0.0528)~(0.1721, 0.6903, 0.2463, -0.6582)~(0.2793, 0.7137, 0.2360, -0.5975)^0.189016,EyeBlinkRight,0.1342236;EyeWideRight,0;MouthLowerDownLeft,0.2526755;MouthRollUpper,0.09483565;CheekSquintLeft,0.1037026;MouthDimpleRight,0.05841898;BrowInnerUp,0.2024164;EyeLookInLeft,0;MouthPressLeft,0.03454118;MouthStretchRight,0.1415987;BrowDownLeft,0.0312408;MouthFunnel,0.2525696;NoseSneerLeft,0.1169015;EyeLookOutLeft,0.08757915;EyeLookInRight,0.204028;MouthLowerDownRight,0.2403809;BrowOuterUpRight,0.004792642;MouthLeft,0.02453839;CheekSquintRight,0.09134482;JawOpen,0.1304758;EyeBlinkLeft,0.1346637;JawForward,0.03253578;MouthPressRight,0.0405696;NoseSneerRight,0.1116475;JawRight,3.103083E-05;MouthShrugLower,0.06955844;EyeSquintLeft,0.08500637;EyeLookOutRight,0;MouthFrownLeft,0;CheekPuff,0.0326572;MouthStretchLeft,0.1609976;TongueOut,0.0001200249;MouthRollLower,0.03645901;MouthUpperUpRight,0.09175588;MouthShrugUpper,0.3639965;EyeSquintRight,0.08506048;EyeLookDownLeft,0.3378668;MouthSmileLeft,0.2259383;EyeWideLeft,0;MouthClose,0.03949478;JawLeft,0.02618278;MouthDimpleLeft,0.0617413;MouthFrownRight,0;MouthPucker,0.1702927;MouthRight,4.814555E-06;EyeLookUpLeft,0;BrowDownRight,0.03145184;MouthSmileRight,0.2077891;MouthUpperUpLeft,0.09479363;BrowOuterUpLeft,0.004768271;EyeLookUpRight,0;EyeLookDownRight,0.3359676;*(-0.2168, 0.1973, -0.0505)~(0.1726, 0.7061, 0.2396, -0.6436)~(0.2764, 0.7146, 0.2331, -0.5988)^0.289088,EyeBlinkRight,0.1316365;EyeWideRight,0;MouthLowerDownLeft,0.2974136;MouthRollUpper,0.05979402;CheekSquintLeft,0.06302071;MouthDimpleRight,0.03934317;BrowInnerUp,0.2067028;EyeLookInLeft,0.008297757;MouthPressLeft,0.03372966;MouthStretchRight,0.1822031;BrowDownLeft,0.01660857;MouthFunnel,0.4745532;NoseSneerLeft,0.1141208;EyeLookOutLeft,0;EyeLookInRight,0.1090564;MouthLowerDownRight,0.2821306;BrowOuterUpRight,0.0139448;MouthLeft,0.0191196;CheekSquintRight,0.059554;JawOpen,0.2724838;EyeBlinkLeft,0.1324444;JawForward,0.04746357;MouthPressRight,0.03894536;NoseSneerRight,0.1096457;JawRight,2.418761E-05;MouthShrugLower,0.05718519;EyeSquintLeft,0.05777092;EyeLookOutRight,0;MouthFrownLeft,0;CheekPuff,0.02976893;MouthStretchLeft,0.2169556;TongueOut,8.258833E-06;MouthRollLower,0.03072757;MouthUpperUpRight,0.1887161;MouthShrugUpper,0.5344974;EyeSquintRight,0.05778356;EyeLookDownLeft,0.3642452;MouthSmileLeft,0.05382492;EyeWideLeft,0;MouthClose,0.06001732;JawLeft,0.0246866;MouthDimpleLeft,0.04551467;MouthFrownRight,0;MouthPucker,0.1727575;MouthRight,3.752803E-06;EyeLookUpLeft,0;BrowDownRight,0.01658359;MouthSmileRight,0.03181133;MouthUpperUpLeft,0.1989374;BrowOuterUpLeft,0.01400599;EyeLookUpRight,0;EyeLookDownRight,0.3636537;*(-0.2150, 0.1972, -0.0461)~(0.1676, 0.7267, 0.2317, -0.6246)~(0.2792, 0.7127, 0.2353, -0.5990)^0.361357,EyeBlinkRight,0.1214774;EyeWideRight,0;MouthLowerDownLeft,0.3480224;MouthRollUpper,0.04970208;CheekSquintLeft,0.05430147;MouthDimpleRight,0.03524651;BrowInnerUp,0.2210632;EyeLookInLeft,0.08465793;MouthPressLeft,0.03283399;MouthStretchRight,0.2190897;BrowDownLeft,0.01039461;MouthFunnel,0.6228593;NoseSneerLeft,0.1300115;EyeLookOutLeft,0;EyeLookInRight,0.03245566;MouthLowerDownRight,0.3353334;BrowOuterUpRight,0.04191088;MouthLeft,0.01865977;CheekSquintRight,0.05134645;JawOpen,0.341788;EyeBlinkLeft,0.122204;JawForward,0.07355251;MouthPressRight,0.0373369;NoseSneerRight,0.1327019;JawRight,2.04861E-05;MouthShrugLower,0.05629143;EyeSquintLeft,0.04792033;EyeLookOutRight,0;MouthFrownLeft,0;CheekPuff,0.02845663;MouthStretchLeft,0.2553252;TongueOut,1.194191E-06;MouthRollLower,0.02990724;MouthUpperUpRight,0.2772678;MouthShrugUpper,0.5657908;EyeSquintRight,0.04791854;EyeLookDownLeft,0.3736264;MouthSmileLeft,0.04155398;EyeWideLeft,0;MouthClose,0.07399964;JawLeft,0.03395939;MouthDimpleLeft,0.04189313;MouthFrownRight,0;MouthPucker,0.1803661;MouthRight,3.1785E-06;EyeLookUpLeft,0;BrowDownRight,0.0103603;MouthSmileRight,0.04721064;MouthUpperUpLeft,0.277916;BrowOuterUpLeft,0.04190356;EyeLookUpRight,0;EyeLookDownRight,0.3742253;*(-0.2159, 0.1960, -0.0442)~(0.1623, 0.7430, 0.2175, -0.6118)~(0.2793, 0.7125, 0.2357, -0.5990)^0.464949,EyeBlinkRight,0.1279912;EyeWideRight,0;MouthLowerDownLeft,0.4538542;MouthRollUpper,0.04127543;CheekSquintLeft,0.09759594;MouthDimpleRight,0.03538692;BrowInnerUp,0.2114267;EyeLookInLeft,0.1318249;MouthPressLeft,0.03190839;MouthStretchRight,0.2280773;BrowDownLeft,0.00747809;MouthFunnel,0.3112157;NoseSneerLeft,0.1833795;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.4376588;BrowOuterUpRight,0.02295812;MouthLeft,0.00996631;CheekSquintRight,0.09554517;JawOpen,0.4239824;EyeBlinkLeft,0.1280125;JawForward,0.09885047;MouthPressRight,0.03472819;NoseSneerRight,0.1860245;JawRight,0.001013578;MouthShrugLower,0.04729195;EyeSquintLeft,0.0441893;EyeLookOutRight,0.015427;MouthFrownLeft,0;CheekPuff,0.01786456;MouthStretchLeft,0.2584642;TongueOut,6.107925E-07;MouthRollLower,0.02898074;MouthUpperUpRight,0.3644066;MouthShrugUpper,0.5597767;EyeSquintRight,0.04417169;EyeLookDownLeft,0.3876837;MouthSmileLeft,0.3187694;EyeWideLeft,0;MouthClose,0.07030937;JawLeft,0.01029035;MouthDimpleLeft,0.04673196;MouthFrownRight,0;MouthPucker,0.078418;MouthRight,0.003002683;EyeLookUpLeft,0;BrowDownRight,0.007442772;MouthSmileRight,0.3343242;MouthUpperUpLeft,0.3747154;BrowOuterUpLeft,0.0229578;EyeLookUpRight,0;EyeLookDownRight,0.3890684;*(-0.2179, 0.1977, -0.0426)~(0.1628, 0.7560, 0.2118, -0.5976)~(0.2783, 0.7119, 0.2377, -0.5994)^0.569227,EyeBlinkRight,0.1143348;EyeWideRight,0;MouthLowerDownLeft,0.5092798;MouthRollUpper,0.03385318;CheekSquintLeft,0.2014774;MouthDimpleRight,0.06860008;BrowInnerUp,0.2033223;EyeLookInLeft,0.1494271;MouthPressLeft,0.03172923;MouthStretchRight,0.2297951;BrowDownLeft,0.007763273;MouthFunnel,0.1577422;NoseSneerLeft,0.2166204;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.4865812;BrowOuterUpRight,0.01922178;MouthLeft,0.009072134;CheekSquintRight,0.2007833;JawOpen,0.4332598;EyeBlinkLeft,0.1143469;JawForward,0.1105536;MouthPressRight,0.0336166;NoseSneerRight,0.2169946;JawRight,0.003196135;MouthShrugLower,0.03711954;EyeSquintLeft,0.05460561;EyeLookOutRight,0.03381756;MouthFrownLeft,0;CheekPuff,0.01260325;MouthStretchLeft,0.2544954;TongueOut,8.937793E-09;MouthRollLower,0.02823145;MouthUpperUpRight,0.3814291;MouthShrugUpper,0.4645035;EyeSquintRight,0.05451022;EyeLookDownLeft,0.3876696;MouthSmileLeft,0.6379907;EyeWideLeft,0;MouthClose,0.04819348;JawLeft,0.005045145;MouthDimpleLeft,0.08231388;MouthFrownRight,0;MouthPucker,0.04218606;MouthRight,0.002956446;EyeLookUpLeft,0;BrowDownRight,0.007694149;MouthSmileRight,0.6294241;MouthUpperUpLeft,0.397689;BrowOuterUpLeft,0.01870856;EyeLookUpRight,0;EyeLookDownRight,0.3893368;*(-0.2204, 0.2001, -0.0440)~(0.1664, 0.7584, 0.2151, -0.5923)~(0.2779, 0.7116, 0.2411, -0.5986)^0.665210,EyeBlinkRight,-0.0115254;EyeWideRight,0.03705416;MouthLowerDownLeft,0.5257166;MouthRollUpper,0.02978902;CheekSquintLeft,0.1159716;MouthDimpleRight,0.07673889;BrowInnerUp,0.3937284;EyeLookInLeft,0.1550452;MouthPressLeft,0.03101198;MouthStretchRight,0.2588344;BrowDownLeft,0.006348709;MouthFunnel,0.27244;NoseSneerLeft,0.2112136;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.5100632;BrowOuterUpRight,0.2610424;MouthLeft,0.02061889;CheekSquintRight,0.1186727;JawOpen,0.4770974;EyeBlinkLeft,-0.01152533;JawForward,0.1302526;MouthPressRight,0.03279541;NoseSneerRight,0.2117341;JawRight,0.002826343;MouthShrugLower,0.03283189;EyeSquintLeft,0.05986805;EyeLookOutRight,0.03903313;MouthFrownLeft,0;CheekPuff,0.01024538;MouthStretchLeft,0.294529;TongueOut,1.170545E-09;MouthRollLower,0.02794172;MouthUpperUpRight,0.3905986;MouthShrugUpper,0.4934801;EyeSquintRight,0.05977073;EyeLookDownLeft,0.4300958;MouthSmileLeft,0.4033253;EyeWideLeft,0.0371183;MouthClose,0.04325709;JawLeft,0.05811657;MouthDimpleLeft,0.08872139;MouthFrownRight,0;MouthPucker,0.03436875;MouthRight,0.002398913;EyeLookUpLeft,0;BrowDownRight,0.006288303;MouthSmileRight,0.4333655;MouthUpperUpLeft,0.3736912;BrowOuterUpLeft,0.260794;EyeLookUpRight,0;EyeLookDownRight,0.4320186;*(-0.2214, 0.2010, -0.0473)~(0.1656, 0.7581, 0.2105, -0.5947)~(0.2787, 0.7094, 0.2484, -0.5978)^0.725099,EyeBlinkRight,-0.01448392;EyeWideRight,0.1941406;MouthLowerDownLeft,0.3107322;MouthRollUpper,0.038994;CheekSquintLeft,0.02967009;MouthDimpleRight,0.02698017;BrowInnerUp,0.5079858;EyeLookInLeft,0.1608337;MouthPressLeft,0.03053581;MouthStretchRight,0.2571988;BrowDownLeft,0.005417977;MouthFunnel,0.4684276;NoseSneerLeft,0.09054087;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.3035864;BrowOuterUpRight,0.3794329;MouthLeft,0.01174495;CheekSquintRight,0.02942699;JawOpen,0.3575878;EyeBlinkLeft,-0.0144846;JawForward,0.06332109;MouthPressRight,0.03127296;NoseSneerRight,0.0902822;JawRight,0.05280424;MouthShrugLower,0.0389754;EyeSquintLeft,0.05156363;EyeLookOutRight,0.04436437;MouthFrownLeft,0;CheekPuff,0.01453214;MouthStretchLeft,0.237741;TongueOut,5.065575E-07;MouthRollLower,0.02786104;MouthUpperUpRight,0.117663;MouthShrugUpper,0.4361178;EyeSquintRight,0.05149512;EyeLookDownLeft,0.4288595;MouthSmileLeft,0.02493131;EyeWideLeft,0.1941895;MouthClose,0.1309108;JawLeft,-0.003204035;MouthDimpleLeft,0.04035331;MouthFrownRight,0.004451461;MouthPucker,0.2433341;MouthRight,0.005335241;EyeLookUpLeft,0;BrowDownRight,0.00536592;MouthSmileRight,0.01169003;MouthUpperUpLeft,0.1353007;BrowOuterUpLeft,0.3794032;EyeLookUpRight,0;EyeLookDownRight,0.4308891;*(-0.2217, 0.2003, -0.0494)~(0.1722, 0.7598, 0.2087, -0.5911)~(0.2792, 0.7078, 0.2520, -0.5980)^0.825191,EyeBlinkRight,-0.01007198;EyeWideRight,0.3632789;MouthLowerDownLeft,0.1537511;MouthRollUpper,0.1196956;CheekSquintLeft,0.04013751;MouthDimpleRight,0.01846157;BrowInnerUp,0.5420893;EyeLookInLeft,0.1602519;MouthPressLeft,0.03001694;MouthStretchRight,0.2381652;BrowDownLeft,0.004236221;MouthFunnel,0.5791323;NoseSneerLeft,0.0851337;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1472017;BrowOuterUpRight,0.4004976;MouthLeft,0.04438002;CheekSquintRight,0.03740578;JawOpen,0.2215045;EyeBlinkLeft,-0.01007217;JawForward,0.03752495;MouthPressRight,0.03027454;NoseSneerRight,0.08291468;JawRight,0.007263499;MouthShrugLower,0.1049061;EyeSquintLeft,0.05352623;EyeLookOutRight,0.04231014;MouthFrownLeft,0.1067874;CheekPuff,0.0987611;MouthStretchLeft,0.2355769;TongueOut,0.0002771841;MouthRollLower,0.04281126;MouthUpperUpRight,0.03067589;MouthShrugUpper,0.2051186;EyeSquintRight,0.05341957;EyeLookDownLeft,0.349072;MouthSmileLeft,-0.01449938;EyeWideLeft,0.3632547;MouthClose,0.1848318;JawLeft,-0.01095023;MouthDimpleLeft,0.03067398;MouthFrownRight,0.1233192;MouthPucker,0.6403574;MouthRight,0.004869666;EyeLookUpLeft,0;BrowDownRight,0.004195357;MouthSmileRight,-0.01545521;MouthUpperUpLeft,0.04334192;BrowOuterUpLeft,0.4002679;EyeLookUpRight,0;EyeLookDownRight,0.3508112;*(-0.2211, 0.1991, -0.0508)~(0.1882, 0.7567, 0.2133, -0.5887)~(0.2789, 0.7082, 0.2527, -0.5973)^0.925077,EyeBlinkRight,-0.007677673;EyeWideRight,0.4130719;MouthLowerDownLeft,0.2079031;MouthRollUpper,0.1353528;CheekSquintLeft,0.04572481;MouthDimpleRight,0.01891225;BrowInnerUp,0.5455037;EyeLookInLeft,0.1586079;MouthPressLeft,0.02899461;MouthStretchRight,0.2515895;BrowDownLeft,0.003304013;MouthFunnel,0.693786;NoseSneerLeft,0.0927015;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1986525;BrowOuterUpRight,0.4015265;MouthLeft,0.02674254;CheekSquintRight,0.04401951;JawOpen,0.3447799;EyeBlinkLeft,-0.00767777;JawForward,0.03840528;MouthPressRight,0.02929384;NoseSneerRight,0.09340087;JawRight,0.0001158649;MouthShrugLower,0.09996582;EyeSquintLeft,0.05829921;EyeLookOutRight,0.04013851;MouthFrownLeft,0.1434721;CheekPuff,0.1093338;MouthStretchLeft,0.2730042;TongueOut,6.991108E-05;MouthRollLower,0.04981372;MouthUpperUpRight,0.02592563;MouthShrugUpper,0.2187337;EyeSquintRight,0.0581589;EyeLookDownLeft,0.3380176;MouthSmileLeft,-0.01050091;EyeWideLeft,0.4130634;MouthClose,0.2871698;JawLeft,0.02958549;MouthDimpleLeft,0.02949398;MouthFrownRight,0.1255208;MouthPucker,0.6859277;MouthRight,0.003904788;EyeLookUpLeft,0;BrowDownRight,0.003272117;MouthSmileRight,-0.01052629;MouthUpperUpLeft,0.03180868;BrowOuterUpLeft,0.4013411;EyeLookUpRight,0;EyeLookDownRight,0.3397506;*(-0.2204, 0.1988, -0.0512)~(0.1931, 0.7568, 0.2138, -0.5868)~(0.2781, 0.7100, 0.2501, -0.5968)^1.025367,EyeBlinkRight,-0.005957969;EyeWideRight,0.5919967;MouthLowerDownLeft,0.2082377;MouthRollUpper,0.1974589;CheekSquintLeft,0.0482112;MouthDimpleRight,0.02081717;BrowInnerUp,0.5770587;EyeLookInLeft,0.1679624;MouthPressLeft,0.02799428;MouthStretchRight,0.2549081;BrowDownLeft,0.002575688;MouthFunnel,0.605304;NoseSneerLeft,0.09799384;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.201755;BrowOuterUpRight,0.461805;MouthLeft,0.02208859;CheekSquintRight,0.04928646;JawOpen,0.4479546;EyeBlinkLeft,-0.005958037;JawForward,0.0511777;MouthPressRight,0.02807481;NoseSneerRight,0.09974461;JawRight,-0.0007600991;MouthShrugLower,0.09548306;EyeSquintLeft,0.07121444;EyeLookOutRight,0.04873367;MouthFrownLeft,0.1835098;CheekPuff,0.1588092;MouthStretchLeft,0.279778;TongueOut,0.0001497693;MouthRollLower,0.06785818;MouthUpperUpRight,0.02489151;MouthShrugUpper,0.1354618;EyeSquintRight,0.07101679;EyeLookDownLeft,0.3406959;MouthSmileLeft,-0.008019555;EyeWideLeft,0.5920107;MouthClose,0.4268093;JawLeft,0.03260004;MouthDimpleLeft,0.02999442;MouthFrownRight,0.1502408;MouthPucker,0.7267759;MouthRight,0.003060385;EyeLookUpLeft,0;BrowDownRight,0.002550818;MouthSmileRight,-0.007956816;MouthUpperUpLeft,0.02905994;BrowOuterUpLeft,0.4618087;EyeLookUpRight,0;EyeLookDownRight,0.3426278;*(-0.2197, 0.1991, -0.0510)~(0.1925, 0.7558, 0.2144, -0.5879)~(0.2785, 0.7102, 0.2501, -0.5963)^1.125088,EyeBlinkRight,-0.004639989;EyeWideRight,0.7007157;MouthLowerDownLeft,0.2004733;MouthRollUpper,0.206301;CheekSquintLeft,0.05157052;MouthDimpleRight,0.02365459;BrowInnerUp,0.5992593;EyeLookInLeft,0.1648218;MouthPressLeft,0.02777757;MouthStretchRight,0.2537133;BrowDownLeft,0.002007719;MouthFunnel,0.5934072;NoseSneerLeft,0.09966519;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1953934;BrowOuterUpRight,0.4916562;MouthLeft,0.02160452;CheekSquintRight,0.05444279;JawOpen,0.4355168;EyeBlinkLeft,-0.00464004;JawForward,0.05591723;MouthPressRight,0.0275292;NoseSneerRight,0.1014562;JawRight,-0.0007228795;MouthShrugLower,0.09423374;EyeSquintLeft,0.08395416;EyeLookOutRight,0.04584322;MouthFrownLeft,0.187605;CheekPuff,0.1735997;MouthStretchLeft,0.2792573;TongueOut,0.001877202;MouthRollLower,0.07842149;MouthUpperUpRight,0.02374727;MouthShrugUpper,0.1261748;EyeSquintRight,0.08369363;EyeLookDownLeft,0.3456134;MouthSmileLeft,-0.006226656;EyeWideLeft,0.7007491;MouthClose,0.4271775;JawLeft,0.03117733;MouthDimpleLeft,0.03111789;MouthFrownRight,0.155032;MouthPucker,0.7256943;MouthRight,0.002388043;EyeLookUpLeft,0;BrowDownRight,0.001988333;MouthSmileRight,-0.006164637;MouthUpperUpLeft,0.02724409;BrowOuterUpLeft,0.4916719;EyeLookUpRight,0;EyeLookDownRight,0.3475181;*(-0.2202, 0.1981, -0.0514)~(0.1927, 0.7558, 0.2126, -0.5886)~(0.2775, 0.7111, 0.2498, -0.5958)^1.229358,EyeBlinkRight,-0.00361611;EyeWideRight,0.7025139;MouthLowerDownLeft,0.1944916;MouthRollUpper,0.2177426;CheekSquintLeft,0.05360925;MouthDimpleRight,0.02559779;BrowInnerUp,0.6019088;EyeLookInLeft,0.1546305;MouthPressLeft,0.02766725;MouthStretchRight,0.2544692;BrowDownLeft,0.001564965;MouthFunnel,0.6080859;NoseSneerLeft,0.1014981;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1893423;BrowOuterUpRight,0.4970196;MouthLeft,0.02194898;CheekSquintRight,0.05667352;JawOpen,0.4108698;EyeBlinkLeft,-0.00361615;JawForward,0.05775175;MouthPressRight,0.02708156;NoseSneerRight,0.1030917;JawRight,-0.0005834598;MouthShrugLower,0.09448845;EyeSquintLeft,0.08993083;EyeLookOutRight,0.03529127;MouthFrownLeft,0.1841557;CheekPuff,0.2035034;MouthStretchLeft,0.2785378;TongueOut,0.002884835;MouthRollLower,0.08538079;MouthUpperUpRight,0.02246454;MouthShrugUpper,0.1149057;EyeSquintRight,0.08962855;EyeLookDownLeft,0.3456796;MouthSmileLeft,-0.00484976;EyeWideLeft,0.7025394;MouthClose,0.4006901;JawLeft,0.01880611;MouthDimpleLeft,0.03204425;MouthFrownRight,0.15281;MouthPucker,0.728974;MouthRight,0.001861802;EyeLookUpLeft,0;BrowDownRight,0.001549854;MouthSmileRight,-0.004799407;MouthUpperUpLeft,0.02560933;BrowOuterUpLeft,0.4970376;EyeLookUpRight,0;EyeLookDownRight,0.3474337;*(-0.2199, 0.1972, -0.0514)~(0.1921, 0.7542, 0.2146, -0.5901)~(0.2774, 0.7109, 0.2499, -0.5960)^1.337434,EyeBlinkRight,-0.002818555;EyeWideRight,0.6033484;MouthLowerDownLeft,0.1623595;MouthRollUpper,0.2078081;CheekSquintLeft,0.05521163;MouthDimpleRight,0.02698901;BrowInnerUp,0.543267;EyeLookInLeft,0.1311388;MouthPressLeft,0.02745334;MouthStretchRight,0.2515399;BrowDownLeft,0.001219845;MouthFunnel,0.5346398;NoseSneerLeft,0.1033263;EyeLookOutLeft,0;EyeLookInRight,0;MouthLowerDownRight,0.1556326;BrowOuterUpRight,0.4267678;MouthLeft,0.02474207;CheekSquintRight,0.05779756;JawOpen,0.2836795;EyeBlinkLeft,-0.002818586;JawForward,0.05520166;MouthPressRight,0.02679232;NoseSneerRight,0.1045553;JawRight,-0.0004578559;MouthShrugLower,0.09730577;EyeSquintLeft,0.09144558;EyeLookOutRight,0.0117068;MouthFrownLeft,0.1665544;CheekPuff,0.2118874;MouthStretchLeft,0.2712011;TongueOut,0.003942657;MouthRollLower,0.0866423;MouthUpperUpRight,0.02156851;MouthShrugUpper,0.1125005;EyeSquintRight,0.09115511;EyeLookDownLeft,0.3274615;MouthSmileLeft,-0.003779671;EyeWideLeft,0.6033537;MouthClose,0.2949182;JawLeft,0.01559357;MouthDimpleLeft,0.03252122;MouthFrownRight,0.1430823;MouthPucker,0.7248315;MouthRight,0.00145128;EyeLookUpLeft,0;BrowDownRight,0.001208066;MouthSmileRight,-0.003740114;MouthUpperUpLeft,0.02444466;BrowOuterUpLeft,0.4267651;EyeLookUpRight,0;EyeLookDownRight,0.3288076;*(-0.2204, 0.1970, -0.0516)~(0.1914, 0.7511, 0.2174, -0.5933)~(0.2778, 0.7102, 0.2503, -0.5965)^1.392998,EyeBlinkRight,-0.002387209;EyeWideRight,0.4328822;MouthLowerDownLeft,0.1410379;MouthRollUpper,0.17765;CheekSquintLeft,0.05931708;MouthDimpleRight,0.02778936;BrowInnerUp,0.3886673;EyeLookInLeft,0.1088834;MouthPressLeft,0.0273644;MouthStretchRight,0.2405532;BrowDownLeft,0.001033168;MouthFunnel,0.5004256;NoseSneerLeft,0.1088556;EyeLookOutLeft,0;EyeLookInRight,0.01001717;MouthLowerDownRight,0.1359313;BrowOuterUpRight,0.2667514;MouthLeft,0.02655203;CheekSquintRight,0.05912438;JawOpen,0.1958275;EyeBlinkLeft,-0.002387235;JawForward,0.04319697;MouthPressRight,0.02682242;NoseSneerRight,0.1088664;JawRight,-0.0003882097;MouthShrugLower,0.1041548;EyeSquintLeft,0.09229236;EyeLookOutRight,0;MouthFrownLeft,0.1366938;CheekPuff,0.2122866;MouthStretchLeft,0.2567725;TongueOut,0.01473031;MouthRollLower,0.08628474;MouthUpperUpRight,0.02115955;MouthShrugUpper,0.1118094;EyeSquintRight,0.09201983;EyeLookDownLeft,0.2663639;MouthSmileLeft,-0.003201178;EyeWideLeft,0.4328611;MouthClose,0.2038206;JawLeft,0.01422124;MouthDimpleLeft,0.03282029;MouthFrownRight,0.1213907;MouthPucker,0.7122022;MouthRight,0.001229194;EyeLookUpLeft,0;BrowDownRight,0.001023192;MouthSmileRight,-0.003167632;MouthUpperUpLeft,0.02386636;BrowOuterUpLeft,0.2667444;EyeLookUpRight,0;EyeLookDownRight,0.2672604;*(-0.2208, 0.1971, -0.0516)~(0.1927, 0.7484, 0.2200, -0.5953)~(0.2784, 0.7101, 0.2498, -0.5966)^

bsf is blend shape format... a dead simple "any parser" way to represent blendshape data input from an iPhone X+

Here is the pseudocode for this format:

For each frame, as supplied from ARKit face tracking. Note delimiters:

time,Genblendshapes()*headPosition(Vector3)~headRotation(quaternion)~camRotation(Quaternion)^

Note that time is in seconds since the beginning of the animation. If you are using a FPS or ticks based system, simply multiply by the number of frames or ticks per second to convert.

And Genblendshapes() defined as a SSV or "semicolin-separated value" dump of the 52 blendshapes and their corresponding coefficients per frame with blendShapeCoefficient normalized to 1:

blendShapeLocation,blendShapeCoefficient;

(For example: EyeBlinkRight,0.1324285;EyeWideRight,0;MouthLowerDownLeft,0.09674008; (etc))

public static string DumpBlendShapes(List<NativeArray<ARKitBlendShapeCoefficient>> listBlendShapes, List<float> listTimes, List<Vector3> pos, List<Quaternion> rot, List<Quaternion> camrot)
{
string s = "";
for (int i = 0; i < listBlendShapes.Count; i++)
{
s += listTimes[i].ToString("F6") + "," + GenBlendlet(listBlendShapes[i]); // first blendlet has time attached to it
// Debug.Log("jawOpen "+i+" "+listBlendShapes[i]["jawOpen"]);
s += "*" + pos[i].ToString("F4") + "~" + rot[i].ToString("F4") + "~" + camrot[i].ToString("F4");
s += "^";
}
Debug.Log("DumpBlendShapes " + listBlendShapes.Count);
return s;
}
static string GenBlendlet(NativeArray<ARKitBlendShapeCoefficient> bs)
{
string s = "";
ARKitBlendShapeCoefficient[] blendshapes = bs.ToArray();
for (int i = 0; i < blendshapes.Length; i++)
{
//s += kvp.Key + "," + kvp.Value + ";";
s += bs[i].blendShapeLocation + "," + bs[i].coefficient + ";";
// s += bs[i].coefficient + "," + bs[i].coefficient + ";";
}
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment