External tv monitor showing black screen after connected with HDMI cable - monitor

I have connected my lenovo laptop with my TV as external monitor with HDMI cable,
after connected the cable, my monitor shows only black screen and only my mouse pointer was visible in the monitor screen.
I tried the xrandr command and it shows results like this,
The command shows the HDMI is connected, but application is not visible in the monitor screen.
Screen 0: minimum 320 x 200, current 3280 x 1100, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+20 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.01*+ 60.01 59.97 59.96 59.93
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
eDP-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm
1360x768 60.02*+ 59.80 59.96
1920x1080 59.96 60.00 50.00 59.94 59.93 30.00 25.00 24.00 29.97 23.98 60.01
1920x1080i 60.00 50.00 59.94
1680x1050 59.95 59.88
1400x1050 59.98
1600x900 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1280x800 59.99 59.97 59.81 59.91
1152x864 70.00 60.00 59.97
1280x720 60.00 59.99 59.86 60.00 50.00 59.94 59.74
1024x768 60.04 70.07 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 70.00 65.00 60.00 60.32 56.25
840x525 69.88 60.01 59.88
864x486 59.92 59.57
720x576 50.00
800x512 60.17
700x525 70.06 59.98
800x450 59.95 59.82
720x480 60.00 59.94
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 60.00 59.94
720x405 59.51 58.99
720x400 70.08
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 70.00 60.06
640x360 59.86 59.83 59.84 59.32
512x384 70.07 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
1920x1080 (0x6f) 173.000MHz -HSync +VSync
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.16KHz
v: height 1080 start 1083 end 1088 total 1120 clock 59.96Hz
1920x1080 (0x70) 138.500MHz +HSync -VSync
h: width 1920 start 1968 end 2000 total 2080 skew 0 clock 66.59KHz
v: height 1080 start 1083 end 1088 total 1111 clock 59.93Hz
1680x1050 (0x71) 146.250MHz -HSync +VSync
h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
1680x1050 (0x72) 119.000MHz +HSync -VSync
h: width 1680 start 1728 end 1760 total 1840 skew 0 clock 64.67KHz
v: height 1050 start 1053 end 1059 total 1080 clock 59.88Hz
1400x1050 (0x74) 122.000MHz +HSync +VSync
h: width 1400 start 1488 end 1640 total 1880 skew 0 clock 64.89KHz
v: height 1050 start 1052 end 1064 total 1082 clock 59.98Hz
1600x900 (0x76) 186.500MHz +HSync -VSync DoubleScan
h: width 1600 start 1624 end 1640 total 1680 skew 0 clock 111.01KHz
v: height 900 start 901 end 904 total 926 clock 59.94Hz
1600x900 (0x77) 118.250MHz -HSync +VSync
h: width 1600 start 1696 end 1856 total 2112 skew 0 clock 55.99KHz
v: height 900 start 903 end 908 total 934 clock 59.95Hz
1600x900 (0x78) 97.500MHz +HSync -VSync
h: width 1600 start 1648 end 1680 total 1760 skew 0 clock 55.40KHz
v: height 900 start 903 end 908 total 926 clock 59.82Hz
1280x1024 (0x79) 108.000MHz +HSync +VSync
h: width 1280 start 1328 end 1440 total 1688 skew 0 clock 63.98KHz
v: height 1024 start 1025 end 1028 total 1066 clock 60.02Hz
1440x900 (0x7a) 106.500MHz -HSync +VSync
h: width 1440 start 1520 end 1672 total 1904 skew 0 clock 55.93KHz
v: height 900 start 903 end 909 total 934 clock 59.89Hz
1400x900 (0x7b) 103.500MHz -HSync +VSync
h: width 1400 start 1480 end 1624 total 1848 skew 0 clock 56.01KHz
v: height 900 start 903 end 913 total 934 clock 59.96Hz
1400x900 (0x7c) 86.500MHz +HSync -VSync
h: width 1400 start 1448 end 1480 total 1560 skew 0 clock 55.45KHz
v: height 900 start 903 end 913 total 926 clock 59.88Hz
1280x960 (0x7d) 108.000MHz +HSync +VSync
h: width 1280 start 1376 end 1488 total 1800 skew 0 clock 60.00KHz
v: height 960 start 961 end 964 total 1000 clock 60.00Hz
1440x810 (0x7e) 198.125MHz -HSync +VSync DoubleScan
h: width 1440 start 1548 end 1704 total 1968 skew 0 clock 100.67KHz
v: height 810 start 811 end 814 total 839 clock 60.00Hz
1440x810 (0x7f) 151.875MHz +HSync -VSync DoubleScan
h: width 1440 start 1464 end 1480 total 1520 skew 0 clock 99.92KHz
v: height 810 start 811 end 814 total 833 clock 59.97Hz
1368x768 (0x80) 85.250MHz -HSync +VSync
h: width 1368 start 1440 end 1576 total 1784 skew 0 clock 47.79KHz
v: height 768 start 771 end 781 total 798 clock 59.88Hz
1368x768 (0x81) 72.250MHz +HSync -VSync
h: width 1368 start 1416 end 1448 total 1528 skew 0 clock 47.28KHz
v: height 768 start 771 end 781 total 790 clock 59.85Hz
1360x768 (0x82) 84.750MHz -HSync +VSync
h: width 1360 start 1432 end 1568 total 1776 skew 0 clock 47.72KHz
v: height 768 start 771 end 781 total 798 clock 59.80Hz
1360x768 (0x83) 72.000MHz +HSync -VSync
h: width 1360 start 1408 end 1440 total 1520 skew 0 clock 47.37KHz
v: height 768 start 771 end 781 total 790 clock 59.96Hz
1280x800 (0x84) 174.250MHz -HSync +VSync DoubleScan
h: width 1280 start 1380 end 1516 total 1752 skew 0 clock 99.46KHz
v: height 800 start 801 end 804 total 829 clock 59.99Hz
1280x800 (0x85) 134.250MHz +HSync -VSync DoubleScan
h: width 1280 start 1304 end 1320 total 1360 skew 0 clock 98.71KHz
v: height 800 start 801 end 804 total 823 clock 59.97Hz
1280x800 (0x86) 83.500MHz -HSync +VSync
h: width 1280 start 1352 end 1480 total 1680 skew 0 clock 49.70KHz
v: height 800 start 803 end 809 total 831 clock 59.81Hz
1280x800 (0x87) 71.000MHz +HSync -VSync
h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 49.31KHz
v: height 800 start 803 end 809 total 823 clock 59.91Hz
1152x864 (0x88) 81.620MHz -HSync +VSync
h: width 1152 start 1216 end 1336 total 1520 skew 0 clock 53.70KHz
v: height 864 start 865 end 868 total 895 clock 60.00Hz
1280x720 (0x89) 156.125MHz -HSync +VSync DoubleScan
h: width 1280 start 1376 end 1512 total 1744 skew 0 clock 89.52KHz
v: height 720 start 721 end 724 total 746 clock 60.00Hz
1280x720 (0x8a) 120.750MHz +HSync -VSync DoubleScan
h: width 1280 start 1304 end 1320 total 1360 skew 0 clock 88.79KHz
v: height 720 start 721 end 724 total 740 clock 59.99Hz
1280x720 (0x8b) 74.500MHz -HSync +VSync
h: width 1280 start 1344 end 1472 total 1664 skew 0 clock 44.77KHz
v: height 720 start 723 end 728 total 748 clock 59.86Hz
1280x720 (0x8c) 63.750MHz +HSync -VSync
h: width 1280 start 1328 end 1360 total 1440 skew 0 clock 44.27KHz
v: height 720 start 723 end 728 total 741 clock 59.74Hz
1024x768 (0x8d) 133.475MHz -HSync +VSync DoubleScan
h: width 1024 start 1100 end 1212 total 1400 skew 0 clock 95.34KHz
v: height 768 start 768 end 770 total 794 clock 60.04Hz
1024x768 (0x8e) 65.000MHz -HSync -VSync
h: width 1024 start 1048 end 1184 total 1344 skew 0 clock 48.36KHz
v: height 768 start 771 end 777 total 806 clock 60.00Hz
960x720 (0x8f) 117.000MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1128 total 1300 skew 0 clock 90.00KHz
v: height 720 start 720 end 722 total 750 clock 60.00Hz
928x696 (0x90) 109.150MHz -HSync +VSync DoubleScan
h: width 928 start 976 end 1088 total 1264 skew 0 clock 86.35KHz
v: height 696 start 696 end 698 total 719 clock 60.05Hz
896x672 (0x91) 102.400MHz -HSync +VSync DoubleScan
h: width 896 start 960 end 1060 total 1224 skew 0 clock 83.66KHz
v: height 672 start 672 end 674 total 697 clock 60.01Hz
1024x576 (0x92) 98.500MHz -HSync +VSync DoubleScan
h: width 1024 start 1092 end 1200 total 1376 skew 0 clock 71.58KHz
v: height 576 start 577 end 580 total 597 clock 59.95Hz
1024x576 (0x93) 78.375MHz +HSync -VSync DoubleScan
h: width 1024 start 1048 end 1064 total 1104 skew 0 clock 70.99KHz
v: height 576 start 577 end 580 total 592 clock 59.96Hz
1024x576 (0x94) 46.500MHz -HSync +VSync
h: width 1024 start 1064 end 1160 total 1296 skew 0 clock 35.88KHz
v: height 576 start 579 end 584 total 599 clock 59.90Hz
1024x576 (0x95) 42.000MHz +HSync -VSync
h: width 1024 start 1072 end 1104 total 1184 skew 0 clock 35.47KHz
v: height 576 start 579 end 584 total 593 clock 59.82Hz
960x600 (0x96) 96.625MHz -HSync +VSync DoubleScan
h: width 960 start 1028 end 1128 total 1296 skew 0 clock 74.56KHz
v: height 600 start 601 end 604 total 622 clock 59.93Hz
960x600 (0x97) 77.000MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 74.04KHz
v: height 600 start 601 end 604 total 617 clock 60.00Hz
960x540 (0x98) 86.500MHz -HSync +VSync DoubleScan
h: width 960 start 1024 end 1124 total 1288 skew 0 clock 67.16KHz
v: height 540 start 541 end 544 total 560 clock 59.96Hz
960x540 (0x99) 69.250MHz +HSync -VSync DoubleScan
h: width 960 start 984 end 1000 total 1040 skew 0 clock 66.59KHz
v: height 540 start 541 end 544 total 555 clock 59.99Hz
960x540 (0x9a) 40.750MHz -HSync +VSync
h: width 960 start 992 end 1088 total 1216 skew 0 clock 33.51KHz
v: height 540 start 543 end 548 total 562 clock 59.63Hz
960x540 (0x9b) 37.250MHz +HSync -VSync
h: width 960 start 1008 end 1040 total 1120 skew 0 clock 33.26KHz
v: height 540 start 543 end 548 total 556 clock 59.82Hz
800x600 (0x9c) 81.000MHz +HSync +VSync DoubleScan
h: width 800 start 832 end 928 total 1080 skew 0 clock 75.00KHz
v: height 600 start 600 end 602 total 625 clock 60.00Hz
800x600 (0x9d) 40.000MHz +HSync +VSync
h: width 800 start 840 end 968 total 1056 skew 0 clock 37.88KHz
v: height 600 start 601 end 605 total 628 clock 60.32Hz
800x600 (0x9e) 36.000MHz +HSync +VSync
h: width 800 start 824 end 896 total 1024 skew 0 clock 35.16KHz
v: height 600 start 601 end 603 total 625 clock 56.25Hz
840x525 (0x9f) 73.125MHz -HSync +VSync DoubleScan
h: width 840 start 892 end 980 total 1120 skew 0 clock 65.29KHz
v: height 525 start 526 end 529 total 544 clock 60.01Hz
840x525 (0xa0) 59.500MHz +HSync -VSync DoubleScan
h: width 840 start 864 end 880 total 920 skew 0 clock 64.67KHz
v: height 525 start 526 end 529 total 540 clock 59.88Hz
864x486 (0xa1) 32.500MHz -HSync +VSync
h: width 864 start 888 end 968 total 1072 skew 0 clock 30.32KHz
v: height 486 start 489 end 494 total 506 clock 59.92Hz
864x486 (0xa2) 30.500MHz +HSync -VSync
h: width 864 start 912 end 944 total 1024 skew 0 clock 29.79KHz
v: height 486 start 489 end 494 total 500 clock 59.57Hz
800x512 (0xa3) 51.562MHz +HSync +VSync DoubleScan
h: width 800 start 800 end 828 total 832 skew 0 clock 61.97KHz
v: height 512 start 512 end 514 total 515 clock 60.17Hz
700x525 (0xa4) 61.000MHz +HSync +VSync DoubleScan
h: width 700 start 744 end 820 total 940 skew 0 clock 64.89KHz
v: height 525 start 526 end 532 total 541 clock 59.98Hz
800x450 (0xa5) 59.125MHz -HSync +VSync DoubleScan
h: width 800 start 848 end 928 total 1056 skew 0 clock 55.99KHz
v: height 450 start 451 end 454 total 467 clock 59.95Hz
800x450 (0xa6) 48.750MHz +HSync -VSync DoubleScan
h: width 800 start 824 end 840 total 880 skew 0 clock 55.40KHz
v: height 450 start 451 end 454 total 463 clock 59.82Hz
640x512 (0xa7) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 664 end 720 total 844 skew 0 clock 63.98KHz
v: height 512 start 512 end 514 total 533 clock 60.02Hz
720x450 (0xa8) 53.250MHz -HSync +VSync DoubleScan
h: width 720 start 760 end 836 total 952 skew 0 clock 55.93KHz
v: height 450 start 451 end 454 total 467 clock 59.89Hz
700x450 (0xa9) 51.750MHz -HSync +VSync DoubleScan
h: width 700 start 740 end 812 total 924 skew 0 clock 56.01KHz
v: height 450 start 451 end 456 total 467 clock 59.96Hz
700x450 (0xaa) 43.250MHz +HSync -VSync DoubleScan
h: width 700 start 724 end 740 total 780 skew 0 clock 55.45KHz
v: height 450 start 451 end 456 total 463 clock 59.88Hz
640x480 (0xab) 54.000MHz +HSync +VSync DoubleScan
h: width 640 start 688 end 744 total 900 skew 0 clock 60.00KHz
v: height 480 start 480 end 482 total 500 clock 60.00Hz
640x480 (0xac) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
720x405 (0xad) 22.500MHz -HSync +VSync
h: width 720 start 744 end 808 total 896 skew 0 clock 25.11KHz
v: height 405 start 408 end 413 total 422 clock 59.51Hz
720x405 (0xae) 21.750MHz +HSync -VSync
h: width 720 start 768 end 800 total 880 skew 0 clock 24.72KHz
v: height 405 start 408 end 413 total 419 clock 58.99Hz
684x384 (0xaf) 42.625MHz -HSync +VSync DoubleScan
h: width 684 start 720 end 788 total 892 skew 0 clock 47.79KHz
v: height 384 start 385 end 390 total 399 clock 59.88Hz
684x384 (0xb0) 36.125MHz +HSync -VSync DoubleScan
h: width 684 start 708 end 724 total 764 skew 0 clock 47.28KHz
v: height 384 start 385 end 390 total 395 clock 59.85Hz
680x384 (0xb1) 42.375MHz -HSync +VSync DoubleScan
h: width 680 start 716 end 784 total 888 skew 0 clock 47.72KHz
v: height 384 start 385 end 390 total 399 clock 59.80Hz
680x384 (0xb2) 36.000MHz +HSync -VSync DoubleScan
h: width 680 start 704 end 720 total 760 skew 0 clock 47.37KHz
v: height 384 start 385 end 390 total 395 clock 59.96Hz
640x400 (0xb3) 41.750MHz -HSync +VSync DoubleScan
h: width 640 start 676 end 740 total 840 skew 0 clock 49.70KHz
v: height 400 start 401 end 404 total 415 clock 59.88Hz
640x400 (0xb4) 35.500MHz +HSync -VSync DoubleScan
h: width 640 start 664 end 680 total 720 skew 0 clock 49.31KHz
v: height 400 start 401 end 404 total 411 clock 59.98Hz
576x432 (0xb5) 40.810MHz -HSync +VSync DoubleScan
h: width 576 start 608 end 668 total 760 skew 0 clock 53.70KHz
v: height 432 start 432 end 434 total 447 clock 60.06Hz
640x360 (0xb6) 37.250MHz -HSync +VSync DoubleScan
h: width 640 start 672 end 736 total 832 skew 0 clock 44.77KHz
v: height 360 start 361 end 364 total 374 clock 59.86Hz
640x360 (0xb7) 31.875MHz +HSync -VSync DoubleScan
h: width 640 start 664 end 680 total 720 skew 0 clock 44.27KHz
v: height 360 start 361 end 364 total 370 clock 59.83Hz
640x360 (0xb8) 18.000MHz -HSync +VSync
h: width 640 start 664 end 720 total 800 skew 0 clock 22.50KHz
v: height 360 start 363 end 368 total 376 clock 59.84Hz
640x360 (0xb9) 17.750MHz +HSync -VSync
h: width 640 start 688 end 720 total 800 skew 0 clock 22.19KHz
v: height 360 start 363 end 368 total 374 clock 59.32Hz
512x384 (0xba) 32.500MHz -HSync -VSync DoubleScan
h: width 512 start 524 end 592 total 672 skew 0 clock 48.36KHz```
Anyone faced like this before, Kindly help me to solve this.
Thanks in advance.

Related

Cplex giving infeasible in objective column of log output

I'm getting an infeasible row in objective column of logs, and beacuse of that model keeps running for longs hours.
for given number of constriants model keeps runing for hours and it runs out of memory(even 128GB) , this seems very problematic to assign such heavy resources. I'm attaching logoutput. please help me to how to figure this issue
Model: docplex_model2
- number of variables: 457809
- binary=0, integer=456048, continuous=0, semi-continuous=1761
- number of constraints: 37076
- linear=37076
- parameters:
parameters.emphasis.mip = 1
parameters.mip.tolerances.mipgap = 0.35000000000000
- objective: maximize
- problem type is: MILP
here is log output----
CPXPARAM_Emphasis_MIP 1
CPXPARAM_MIP_Tolerances_MIPGap 0.34999999999999998
Tried aggregator 3 times.
MIP Presolve eliminated 4748 rows and 61614 columns.
MIP Presolve modified 16 coefficients.
Aggregator did 19860 substitutions.
Reduced MIP has 15990 rows, 377635 columns, and 769615 nonzeros.
Reduced MIP has 3955 binaries, 372041 generals, 0 SOSs, and 0 indicators.
Presolve time = 2.21 sec. (2205.73 ticks)
Tried aggregator 1 time.
Detecting symmetries...
Reduced MIP has 15990 rows, 377635 columns, and 769615 nonzeros.
Reduced MIP has 3955 binaries, 372041 generals, 0 SOSs, and 0 indicators.
Presolve time = 1.86 sec. (1558.18 ticks)
Probing fixed 1 vars, tightened 291 bounds.
Probing time = 0.16 sec. (46.27 ticks)
Clique table members: 3626.
MIP emphasis: integer feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 4 threads.
Root relaxation solution time = 1.17 sec. (760.41 ticks)
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
0 0 5447054.2576 568 5447054.2576 7411
0 0 5446256.0396 2550 Cuts: 3105 11523
0 0 5445582.9819 3313 Cuts: 2609 15362
0 0 5443111.8900 3879 Cuts: 1793 19392
0 1 5443111.8900 3879 5443111.8900 19392
Elapsed time = 28.84 sec. (18204.70 ticks, tree = 0.02 MB, solutions = 0)
7 8 5424995.5661 3422 5427140.2491 19602
12 13 5424025.4253 2980 5427140.2491 19901
19 20 5424008.3599 2834 5427140.2491 20019
24 23 5423705.3128 3481 5427119.7653 22030
26 24 5424539.9397 4284 5427057.2493 22919
28 26 5423701.9049 3508 5427057.2493 24217
31 31 5423519.5986 3292 5427024.1000 32459
34 31 5424673.8781 3987 5426984.4114 34984
36 34 5424539.1738 4209 5426984.4114 37899
48 44 5424035.7444 3884 5426984.4114 40985
Elapsed time = 32.69 sec. (22078.80 ticks, tree = 5.41 MB, solutions = 0)
127 74 5422280.0110 3032 5426984.4114 42820
219 164 5422903.9976 3221 5426984.4114 44186
305 255 5422151.6347 2984 5426984.4114 46975
388 316 5409466.1277 2461 5426984.4114 47488
457 391 5419580.4261 2238 5426984.4114 50940
506 448 5419173.6547 2131 5426984.4114 57287
553 481 5401742.1028 1718 5426984.4114 63918
591 529 5389251.7601 1272 5426984.4114 72056
632 574 **infeasible** 5426984.4114 79106
675 596 5398682.6980 1566 5426984.4114 81099
Elapsed time = 43.66 sec. (31720.81 ticks, tree = 181.23 MB, solutions = 0)
705 609 5404307.7518 1513 5426984.4114 85133
754 657 5422924.3660 3173 5426984.4114 97279
825 726 5420872.5251 2739 5426984.4114 101585
898 763 5384923.7790 1488 5426984.4114 103060
966 843 5376292.5417 937 5426984.4114 107764
1031 898 5394081.5952 1003 5426984.4114 109361
1101 976 5372102.4281 1103 5426984.4114 112509
1173 1036 5393219.2485 869 5426984.4114 116229
1252 1106 5398144.9886 1754 5426984.4114 117850
1330 1148 5371456.5486 868 5426984.4114 121077
Elapsed time = 54.19 sec. (41408.05 ticks, tree = 534.37 MB, solutions = 0)
1400 1262 5396613.5760 1430 5426984.4114 126293
1482 1300 5392103.1569 819 5426984.4114 125806
1563 1428 5396352.6299 1234 5426984.4114 133285
1638 1459 5391806.7612 764 5426984.4114 134133
1701 1540 5371435.0973 678 5426984.4114 135347
1755 1603 5391965.9348 717 5426984.4114 141811
1806 1656 5421590.6214 3079 5426984.4114 145378
1873 1687 5386074.1901 649 5426984.4114 148265
1916 1780 5406119.1903 2245 5426984.4114 158126
1952 1802 5400035.4985 1963 5426984.4114 158659
Elapsed time = 65.70 sec. (51106.01 ticks, tree = 956.74 MB, solutions = 0)
1993 1837 5399984.5162 1714 5426984.4114 164792
2046 1868 5399199.1117 1709 5426984.4114 176903
2116 1900 5409091.4055 2920 5426984.4114 180187
2194 1956 5409096.1850 2748 5426984.4114 185734
2263 2045 5395631.1560 1229 5426984.4114 191503
2299 2083 5417884.0649 2180 5426984.4114 195258
2307 2106 5394566.8771 1769 5426984.4114 199129
2326 2131 5409642.8769 2386 5426984.4114 209111
2337 2129 5393094.1052 1774 5426984.4114 214143
2344 2160 5380420.7567 2071 5426984.4114 232449
Elapsed time = 76.93 sec. (61429.58 ticks, tree = 1067.83 MB, solutions = 0)
2395 2173 5412998.2623 3089 5426984.4114 244438
2445 2184 5311151.8238 1640 5426984.4114 255958
2499 2213 5401804.4871 2029 5426984.4114 258719
2531 2282 5393804.1209 1771 5426984.4114 267432
2579 2272 5415355.4047 3780 5426984.4114 267184
2615 2319 5310045.7515 1240 5426984.4114 269611
2663 2377 5408859.8378 2442 5426984.4114 279749
2726 2401 5379550.1445 1486 5426984.4114 282757
2791 2439 5309774.2007 1177 5426984.4114 290254
2834 2510 5413748.0466 3160 5426984.4114 295756
Elapsed time = 89.00 sec. (71126.64 ticks, tree = 1263.45 MB, solutions = 0)
2853 2525 5408741.2417 2684 5426984.4114 296581
2880 2525 5415209.9026 4120 5426984.4114 303367
2916 2566 5418536.5596 3645 5426984.4114 315754
2964 2626 5408703.1497 2705 5426984.4114 323603
3021 2691 5407778.6853 2649 5426984.4114 329944
3086 2716 5399275.4604 2268 5426984.4114 333471
3160 2799 5399364.7532 2316 5426984.4114 337939
3236 2832 5398929.9160 1705 5426984.4114 340882
3292 2928 5398898.9016 1704 5426984.4114 343929
3350 2948 5398898.9008 1683 5426984.4114 344110
Elapsed time = 99.95 sec. (80755.29 ticks, tree = 1414.32 MB, solutions = 0)
3410 2969 5397943.8252 1840 5426984.4114 351908
3462 3018 5395313.6357 986 5426984.4114 353878
3513 3110 5395311.0280 993 5426984.4114 357262
3577 3127 5395288.3990 904 5426984.4114 358271
3645 3168 5397199.3357 1114 5426984.4114 370737
3718 3215 5395066.1468 754 5426984.4114 373522
3788 3339 5395066.1391 700 5426984.4114 381975
3857 3388 5395944.8892 819 5426984.4114 383179
3920 3458 5395066.1391 629 5426984.4114 386279
3985 3437 5396858.2083 850 5426984.4114 385567
Elapsed time = 111.67 sec. (90345.62 ticks, tree = 1588.45 MB, solutions = 0)
4031 3491 5407565.7631 2780 5426984.4114 400026
4098 3640 5405298.0780 2396 5426984.4114 402831
4177 3695 5395052.5234 608 5426984.4114 406870
4250 3737 5395869.1675 682 5426984.4114 409458
4316 3812 5396858.2017 739 5426984.4114 413233
4393 3832 5396858.1944 733 5426984.4114 413317
4471 3900 5394988.6288 546 5426984.4114 413564
4555 4072 5395869.0990 608 5426984.4114 419039
4644 4021 5396858.1910 623 5426984.4114 419080
4733 4115 5395869.0973 590 5426984.4114 419752
Elapsed time = 122.15 sec. (99976.83 ticks, tree = 1856.46 MB, solutions = 0)
4819 4250 5394988.6220 491 5426984.4114 421914
4898 4366 **infeasible** 5426984.4114 425370
4975 4468 5379274.3718 563 5426984.4114 426559
5058 4402 5396199.1795 588 5426984.4114 426041
5138 4600 5394342.0730 473 5426984.4114 429670
5217 4712 5396952.6974 810 5426984.4114 431089
5301 4749 5395586.7800 581 5426984.4114 431476
5383 4908 5396951.9009 738 5426984.4114 432228
5471 4789 5395586.7800 569 5426984.4114 431655
5705 5202 5389705.4806 535 5426984.4114 438101
Elapsed time = 138.72 sec. (112480.76 ticks, tree = 2314.33 MB, solutions = 0)
Nodefile size = 249.91 MB (135.33 MB after compression)
5879 5330 5395614.4696 496 5426984.4114 450886
6168 5528 5389681.1285 545 5426984.4114 474496
6484 5744 5389680.1611 498 5426984.4114 482597
6810 6058 5395611.1982 431 5426984.4114 502814
7033 6364 5388473.8481 490 5426984.4114 511099
7248 6504 5387478.5235 518 5426984.4114 527293
7478 6674 5387476.9499 490 5426984.4114 545602
7761 6958 infeasible 5426984.4114 566811
8105 7342 5392996.6596 1078 5426984.4114 571908
8434 7579 5387466.8418 444 5426984.4114 574887
Elapsed time = 192.15 sec. (150730.09 ticks, tree = 3461.46 MB, solutions = 0)
Nodefile size = 1384.18 MB (691.75 MB after compression)
8709 7810 5397037.0153 838 5426984.4114 578870
9007 8112 5384414.0235 2186 5426984.4114 597517
9269 8293 5396621.2916 673 5426984.4114 596439
9509 8665 5394951.1841 365 5426984.4114 614950
9781 8916 5396630.9062 1311 5426984.4114 632021
10039 9090 5387434.8861 342 5426984.4114 638327
10277 9353 5386224.1164 328 5426984.4114 655878
10528 9467 5382940.5147 1184 5426984.4114 681490
10865 9891 5379821.1913 683 5426984.4114 696064
11275 10109 5386092.4028 307 5426984.4114 704392
Elapsed time = 245.52 sec. (189003.15 ticks, tree = 4796.42 MB, solutions = 0)
Nodefile size = 2692.95 MB (1435.87 MB after compression)
11597 10675 5377146.8013 627 5426984.4114 710049
11877 10706 5395739.9394 1911 5426984.4114 724018
12115 11083 5380946.8455 775 5426984.4114 735232
12416 11357 5390818.3099 896 5426984.4114 741661
12804 11901 5326007.6723 638 5426984.4114 776244
13121 12085 5378349.6560 620 5426984.4114 779793
13458 12363 5389599.2004 643 5426984.4114 788537
13824 12733 5325990.7395 548 5426984.4114 792704
14090 13096 5325963.0516 600 5426984.4114 805870
14354 13319 5397488.8033 1782 5426984.4114 818543
Elapsed time = 302.45 sec. (227261.05 ticks, tree = 6271.27 MB, solutions = 0)
Nodefile size = 4188.32 MB (2302.65 MB after compression)
14627 13512 5386890.7225 556 5426984.4114 821318
14895 13829 5386888.5939 524 5426984.4114 831183
15187 13963 5377020.3945 504 5426984.4114 834645
15455 14294 5377020.3898 505 5426984.4114 844715
15680 14635 5377020.4007 520 5426984.4114 852027
15976 14783 5381527.6047 733 5426984.4114 856152
16177 14937 5381511.9443 520 5426984.4114 861753
16451 15339 5376578.6410 473 5426984.4114 876699
16689 15404 5325878.3808 610 5426984.4114 879652
16935 15755 5325878.3164 613 5426984.4114 891454
Elapsed time = 356.26 sec. (265571.16 ticks, tree = 7501.52 MB, solutions = 0)
Nodefile size = 5404.22 MB (3002.08 MB after compression)
17160 16158 5401085.5148 771 5426984.4114 910569
17388 16285 5380972.9071 472 5426984.4114 912559
17663 16416 5376553.4444 432 5426984.4114 915484
17996 16789 5391612.5021 1154 5426984.4114 945195
18370 17016 5399149.8996 661 5426984.4114 946617
18699 17178 5376545.5419 431 5426984.4114 950159
19014 17641 5379024.1276 486 5426984.4114 954633
19340 17899 5383193.5734 645 5426984.4114 960081
19581 18232 5376404.4175 428 5426984.4114 961628
19853 18478 **infeasible** 5426984.4114 981564
Elapsed time = 413.45 sec. (303842.46 ticks, tree = 8828.29 MB, solutions = 0)
Nodefile size = 6720.90 MB (3762.30 MB after compression)
20165 18909 5385867.9420 1066 5426984.4114 994135
20457 19070 5379016.2952 432 5426984.4114 994483
20728 19337 5360733.6497 607 5426984.4114 1001533
21024 19760 5360732.4758 599 5426984.4114 1011198
21356 19923 5385581.0389 620 5426984.4114 1014584
21702 20302 5360727.4646 589 5426984.4114 1016715
22022 20494 5384699.5095 546 5426984.4114 1018323
22309 20749 5372959.8072 431 5426984.4114 1019547
22593 21255 5372956.2581 440 5426984.4114 1021651
22910 21449 5360374.1876 576 5426984.4114 1022311
Elapsed time = 470.00 sec. (342129.94 ticks, tree = 10417.44 MB, solutions = 0)
Nodefile size = 8263.60 MB (4646.00 MB after compression)
23237 21859 5360335.4920 575 5426984.4114 1031050
23560 22046 5383736.0244 537 5426984.4114 1032783
23879 22426 5360333.9633 576 5426984.4114 1034900
24119 22732 5378781.2447 415 5426984.4114 1036538
24393 22999 5360321.5653 574 5426984.4114 1039237
24617 23392 5398904.1723 1155 5426984.4114 1066359
24936 23397 5392844.8271 1514 5426984.4114 1063103
25291 23694 5372215.0641 428 5426984.4114 1069151
25565 24143 5372213.8210 421 5426984.4114 1080186
25833 24498 5378351.9222 405 5426984.4114 1091270
Elapsed time = 527.85 sec. (380399.19 ticks, tree = 12081.63 MB, solutions = 0)
Nodefile size = 9987.11 MB (5635.13 MB after compression)
26112 24647 5372183.3830 418 5426984.4114 1092716
26388 24796 5391904.6857 967 5426984.4114 1111331
26638 25128 5372042.5916 424 5426984.4114 1110020
26918 25490 5372036.4388 424 5426984.4114 1132170
27227 25682 5390109.8411 640 5426984.4114 1137477
27478 25965 5372001.7107 424 5426984.4114 1148303
27757 26212 5394104.4759 1459 5426984.4114 1171142
28054 26395 5378084.1732 395 5426984.4114 1163286
28399 26826 5378077.2330 392 5426984.4114 1179971
28693 26951 5371934.7413 413 5426984.4114 1182067
I have tried couple of hyperparameters like bbinterval, nodeselect, feasiblity, etc. but it keeps running for hours and not able to find and feasible or optimal solution.

SVG stroke gradient causes horizontal lines to display on iOS Safari

Adding a radial gradient to my SVG path seems to cause weird horizontal (anti-aliasing?) lines on some iOS devices or when you zoom in/out on an iOS device. I wasn't able to replicate it anywhere else.
Here's the (isolated) code:
<svg class="componentClass__chart-svg" width="335" height="318" viewBox="0 0 335 320" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient id="axesGradient" cx="50%" cy="0%" fx="50%" fy="0%" r="50%">
<stop stop-color="#FFFFFF" offset="10%"></stop>
<stop stop-color="#FFFFFF" offset="100%" stop-opacity="0.2"></stop>
</radialGradient>
</defs>
<path class="componentClass__axes" stroke-width="2" stroke="url(#axesGradient)" fill="none" d="M151 12 Q167 0 183 12 L319 108 Q335 120 329 139 L276 299 Q270 318 250 318 L85 318 Q65 318 59 299 L6 139 Q0 120 16 108 Z
M151 37 Q167 25 183 37 L293 116 Q309 128 303 147 L260 275 Q254 294 234 294 L101 294 Q81 294 75 275 L32 147 Q26 128 42 116 Z
M151 62 Q167 50 183 62 L267 124 Q283 136 277 155 L244 251 Q238 270 218 270 L117 270 Q97 270 91 251 L58 155 Q52 136 68 124 Z
M151 87 Q167 75 183 87 L241 132 Q257 144 251 163 L228 227 Q222 246 202 246 L133 246 Q113 246 107 227 L84 163 Q78 144 94 132 Z
M152 113 Q167 100 183 113 L215 139 Q231 152 224 171 L213 203 Q206 222 186 222 L149 222 Q129 222 122 203 L111 171 Q104 152 119 139 Z
" />
</svg>
And the issue:
SVG showing horizontal line
Note this doesn't happen on every iPhone or iPad, but you're usually able to replicate it when you try zooming in and out.
I was able to nail down the issue to this particular use case: as soon as you add the gradient to the stroke, it starts happening. If you change stroke="url(#axesGradient) to just stroke="#FFF", it doesn't seem to happen.
Is there any way I can optimize the SVG to prevent rendering issues?
Here's a Codepen with the exact code above.
Had the same problem, but in my case these lines appeared in any browser on IOS 16, updating to IOS 16.3 fixed it

Darknet on Jetson Nano with Sony IMX219 green screen problem

I am currently trying to run object detection on Jetson Nano with sony IMX219 camera
https://www.waveshare.com/imx219-170-camera.htm
I am trying to run darknet with camera 0:
./darknet detector demo cfg/coco_znacenie.data cfg/yolov3-tiny_znacenie.cfg znacenie1.weights -c 0
And output is:
CUDA-version: 10000 (10000), cuDNN: 7.6.3, GPU count: 1
OpenCV version: 4.1.1
Demo
compute_capability = 530, cudnn_half = 0
net.optimized_memory = 0
mini_batch = 1, batch = 2, time_steps = 1, train = 0
layer filters size/strd(dil) input output
0 conv 16 3 x 3/ 1 416 x 416 x 3 -> 416 x 416 x 16 0.150 BF
1 max 2x 2/ 2 416 x 416 x 16 -> 208 x 208 x 16 0.003 BF
2 conv 32 3 x 3/ 1 208 x 208 x 16 -> 208 x 208 x 32 0.399 BF
3 max 2x 2/ 2 208 x 208 x 32 -> 104 x 104 x 32 0.001 BF
4 conv 64 3 x 3/ 1 104 x 104 x 32 -> 104 x 104 x 64 0.399 BF
5 max 2x 2/ 2 104 x 104 x 64 -> 52 x 52 x 64 0.001 BF
6 conv 128 3 x 3/ 1 52 x 52 x 64 -> 52 x 52 x 128 0.399 BF
7 max 2x 2/ 2 52 x 52 x 128 -> 26 x 26 x 128 0.000 BF
8 conv 256 3 x 3/ 1 26 x 26 x 128 -> 26 x 26 x 256 0.399 BF
9 max 2x 2/ 2 26 x 26 x 256 -> 13 x 13 x 256 0.000 BF
10 conv 512 3 x 3/ 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BF
11 max 2x 2/ 1 13 x 13 x 512 -> 13 x 13 x 512 0.000 BF
12 conv 1024 3 x 3/ 1 13 x 13 x 512 -> 13 x 13 x1024 1.595 BF
13 conv 256 1 x 1/ 1 13 x 13 x1024 -> 13 x 13 x 256 0.089 BF
14 conv 512 3 x 3/ 1 13 x 13 x 256 -> 13 x 13 x 512 0.399 BF
15 conv 18 1 x 1/ 1 13 x 13 x 512 -> 13 x 13 x 18 0.003 BF
16 yolo
[yolo] params: iou loss: mse (2), iou_norm: 0.75, cls_norm: 1.00, scale_x_y: 1.00
17 route 13 -> 13 x 13 x 256
18 conv 128 1 x 1/ 1 13 x 13 x 256 -> 13 x 13 x 128 0.011 BF
19 upsample 2x 13 x 13 x 128 -> 26 x 26 x 128
20 route 19 8 -> 26 x 26 x 384
21 conv 256 3 x 3/ 1 26 x 26 x 384 -> 26 x 26 x 256 1.196 BF
22 conv 18 1 x 1/ 1 26 x 26 x 256 -> 26 x 26 x 18 0.006 BF
23 yolo
[yolo] params: iou loss: mse (2), iou_norm: 0.75, cls_norm: 1.00, scale_x_y: 1.00
Total BFLOPS 5.448
avg_outputs = 324846
Allocate additional workspace_size = 13.11 MB
Loading weights from znacenie1.weights...
seen 64, trained: 320 K-images (5 Kilo-batches_64)
Done! Loaded 24 layers from weights-file
Webcam index: 0
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (1757) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (886) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Video stream: 3264 x 2464
But input from camera is green:
Camera is working when I run it by:
gst-launch-1.0 nvarguscamerasrc sensor_mode=0 ! 'video/x-raw(memory:NVMM),width=3280, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=3280, height=2464' ! nvvidconv flip-method=2 ! nvegltransform ! nveglglessink -e
I was trying to test my camera in chromium but chromium wasn't able to detect camera:
I am using clean installation of latest image for my Jetson Nano and everything is up to date. I've already tried different versions of OpenCv but without any progress.
Anybody know what should I try?
EDIT:
Just found how to solve it:
./darknet detector demo cfg/coco_znacenie.data cfg/yolov3-tiny_znacenie.cfg znacenie1.weights "nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink"

imagemagick - find coordinates of outline of transparent png (not border)

While it's easily done to visually outline, is it possible to have imagemagick output the coordinates of the outline of a transparent image?
Note, by outline, I don't mean just the bounding box border, but the actual contour around an arbitrarily shaped transparent image geometry.
Let's say you start with this image, which has a transparent background:
You can extract the transparency and find the edges like this:
convert penguin.png -alpha extract -edge 1 -threshold 50% edges.png
If, rather than an image, you want a list of the coordinates of the contour (i.e. the white pixels), you could do this instead:
convert penguin.png -alpha extract -edge 1 -threshold 50% -depth 8 txt: | awk -F: '/white/{print $1}'
256,0
253,1
254,1
255,1
257,1
258,1
259,1
253,2
259,2
252,3
253,3
...
...
Replace awk and everything after it with more to see what the awk is actually doing - it is just printing the coordinates of every pixel that is white.
The above pixels come out in row order, not like a contour where adjacent pixels come out together. If you want that, you might prefer to generate an SVG of the transparency with potrace like this:
convert penguin.png -alpha extract -threshold 50% pgm:- | potrace - --svg < alpha.pgm > result.svg
Output
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="500.000000pt" height="577.000000pt" viewBox="0 0 500.000000 577.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.13, written by Peter Selinger 2001-2015
</metadata>
<g transform="translate(0.000000,577.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 3294 l0 -2476 25 16 c31 20 104 21 152 1 20 -8 38 -14 40 -12 2 2
-8 35 -23 73 -49 129 -29 246 43 260 51 10 109 -12 159 -58 43 -40 44 -40 44
-15 0 41 60 120 99 130 28 7 32 11 26 30 -24 70 -15 385 16 637 44 346 171
715 351 1023 34 58 35 77 5 77 -43 0 -242 47 -277 65 -68 35 -196 130 -248
185 -83 86 -119 154 -153 286 -31 124 -38 237 -18 307 13 49 15 49 91 -15 177
-151 388 -309 477 -357 42 -23 108 -60 146 -81 76 -43 194 -83 228 -78 19 3
23 12 28 60 4 32 12 65 19 73 15 18 16 17 -35 34 -88 29 -255 122 -255 141 0
5 12 15 27 22 24 11 48 10 168 -9 77 -12 179 -22 226 -23 80 0 87 2 111 28 60
64 64 105 11 123 -21 6 -76 30 -122 51 l-84 39 -30 -21 c-21 -16 -32 -19 -40
-11 -19 19 8 54 63 84 46 25 59 27 109 22 31 -3 66 -8 79 -11 77 -16 -65 130
-178 182 -84 38 -150 45 -340 35 -225 -12 -242 -15 -322 -55 -57 -28 -68 -31
-68 -17 0 26 77 95 150 134 206 112 479 177 741 177 l97 0 -20 38 c-37 70 -10
186 68 294 54 75 56 88 23 119 -16 15 -29 36 -29 47 0 12 -4 24 -10 27 -19 12
-10 57 18 94 69 89 125 236 167 431 24 113 41 148 68 137 19 -7 43 -83 52
-162 l7 -60 33 90 c18 50 36 110 40 135 10 61 55 111 55 61 0 -11 9 -35 20
-54 29 -49 40 -235 17 -289 -9 -21 -12 -38 -8 -38 4 0 34 22 65 50 31 27 66
55 78 61 20 11 21 9 14 -22 -3 -18 -24 -72 -46 -119 -22 -48 -40 -90 -40 -94
0 -14 43 17 110 80 143 136 324 456 306 545 -4 21 -1 31 12 38 11 7 -402 10
-1260 11 l-1278 0 0 -2476z"/>
<path d="M2613 5669 c17 -82 18 -107 9 -133 -7 -18 -12 -47 -12 -64 0 -18 -14
-60 -31 -93 -17 -34 -28 -64 -25 -67 10 -10 49 17 129 88 43 39 84 70 92 70
23 0 17 -31 -15 -79 -17 -24 -30 -49 -30 -56 0 -6 -32 -58 -70 -115 -39 -56
-69 -104 -67 -106 4 -5 111 33 153 54 33 17 42 18 57 7 9 -7 17 -17 17 -23 0
-16 -104 -125 -134 -141 -14 -8 -26 -17 -26 -20 0 -4 23 -17 50 -30 53 -25
100 -63 100 -80 0 -19 -36 -30 -116 -36 -43 -3 -103 -8 -133 -11 l-54 -6 82
-80 c92 -90 185 -225 230 -331 34 -83 71 -217 71 -260 0 -15 5 -38 12 -50 18
-34 31 -169 29 -311 -1 -97 2 -133 12 -145 8 -9 29 -43 47 -76 19 -33 58 -96
87 -139 64 -93 107 -175 122 -233 10 -36 17 -44 49 -54 59 -18 220 -22 467 -9
127 6 316 15 420 20 184 9 267 15 311 25 46 10 364 35 451 35 64 0 93 -4 96
-12 3 -7 6 566 6 1275 l1 1287 -1204 0 -1203 0 20 -101z"/>
<path d="M4971 3138 c-20 -33 -89 -96 -165 -153 -23 -17 -103 -92 -179 -168
-77 -75 -145 -137 -153 -137 -8 0 -27 -21 -43 -47 -29 -47 -30 -47 -178 -99
-81 -29 -158 -53 -171 -53 -12 -1 -61 -15 -109 -31 -50 -18 -106 -30 -133 -30
-25 1 -101 -2 -170 -6 -100 -5 -136 -3 -179 10 -30 9 -70 16 -89 16 -33 0 -33
-1 -25 -32 4 -18 8 -92 8 -164 l0 -132 32 -20 c17 -12 70 -64 117 -117 68 -76
96 -119 140 -208 58 -118 106 -256 106 -302 0 -24 3 -26 23 -20 12 3 42 9 67
12 69 8 83 -18 98 -180 16 -176 45 -309 96 -446 24 -64 48 -129 54 -146 17
-50 52 -247 52 -295 0 -69 -42 -141 -129 -221 -99 -91 -141 -111 -239 -112
-91 -2 -129 14 -157 67 -23 42 -35 44 -76 14 -35 -26 -138 -36 -191 -19 -60
20 -78 45 -78 106 0 47 4 57 24 70 41 27 148 62 227 74 41 6 89 14 107 17 19
3 32 11 32 20 0 8 12 42 26 75 24 58 25 66 15 145 -7 57 -25 120 -57 204 -26
66 -50 120 -53 120 -16 -1 -49 -42 -73 -90 -56 -110 -125 -182 -277 -287 -66
-46 -158 -73 -248 -73 -82 0 -93 -4 -173 -65 -85 -65 -188 -116 -290 -143
-139 -38 -226 -46 -470 -45 -201 1 -250 4 -339 23 -57 12 -116 20 -130 17 -14
-3 -73 -22 -131 -42 -97 -34 -111 -37 -192 -33 l-87 4 -6 -40 c-4 -23 -9 -55
-12 -73 -7 -43 -51 -82 -104 -92 -25 -5 786 -9 1934 -10 l1977 -1 0 1585 c0
872 -2 1585 -4 1585 -2 0 -14 -15 -25 -32z"/>
<path d="M0 358 l0 -358 458 1 c393 1 450 2 407 14 -146 37 -255 105 -435 270
-30 28 -102 83 -160 122 -173 118 -218 166 -256 271 -11 32 -13 -14 -14 -320z"/>
</g>
</svg>
Assuming you have a transparent "input.png", first convert all nontransparent pixels to white, then use the "-edge" option to find the transitions between transparent and white:
convert input.png -negate -threshold 1 -edge 1 edge.png
Note that this will not only outline the image but will outline any "holes" in it as well. For example, try it with the built-in "logo:" image:
convert logo: -transparent white logotrans.png
convert logotrans.png -negate -threshold 1 -edge 1 t.png
which transforms this
to this

Maple: How to parse such CSV (Comma Separated Values) document?

So I have a large txt file with such contents (like 20mbs long)
20 30 40 550 60 70 80 91
20 30 40 50 60 70 80 92
20 30 40 50 60 70 80 93
20 30 40 50 64 70 80 90
20 30 40 50 60 70 80 90
20 30 40 50 60 70 80 90
20 30 40 40 60 70 80 90
40 30 40 50 60 70 80 90
4 5 6 6
20 30 40 50 60 70 80 91
20 30 40 50 60 70 80 92
20 30 40 50 60 70 80 93
2 30 40 50 64 70 80 90
20 30 20 50 60 70 80 90
20 30 40 50 60 70 80 90
20 30 40 40 60 70 80 90
40 30 40 50 60 70 80 90
4 5 1 6
20 30 40 50 60 70 80 91
20 30 40 50 60 70 80 92
20 30 40 50 60 70 80 93
20 30 40 50 64 70 80 90
20 30 40 50 60 70 80 90
20 30 40 50 60 70 80 90
20 1 40 40 60 70 80 90
40 30 40 50 60 70 80 90
4 5 6 1
I want to get out of that document an array of matrices 8x8 and an array of matrices 1*4 is such thing possible and how to do it?
The following produces a table M of 8x8 Matrices, and a table V of 1x4 row Vectors.
You could optionally create M and V up front as Arrays of size n. Just uncomment those lines. You can see that it is hard-coded for 100 Matrix-Vector pairs of scans. Increase n as you wish. It will stop anyway when it fails to scan the next item, by detecting the fscanf failures and breaking out of the loop.
My example used a plaintext data file that contained just three pairs of Matrix and Vector, and it did a break when failing on the fourth pair of scan attempts.
restart:
Z:="C://TEMP//mydata.txt":
fclose(Z);
#M:=Array(1..100):
#V:=Array(1..100):
for i from 1 to 100 do
try
M[i]:=fscanf(Z,"%{8,8}ldm")[1];
V[i]:=fscanf(Z,"%{4}ldr")[1];
catch "end of input encountered":
break;
end try;
end do;
M[2]; # returns the 2nd entry (a 8x8 Matrix) of M
V[2]; # returns the 2nd entry (a 1x4 row Vector) of V

Resources