php-opencv icon indicating copy to clipboard operation
php-opencv copied to clipboard

Problem in Class Mat

Open BbenWeb1 opened this issue 2 years ago • 0 comments

Hello Try trying the following coding

<?php 
namespace  CV;
use CV\Mat;
use CV\Scalar;
$mat = new Mat(2, 2, CV_8UC3, new Scalar(0,0,255));
echo "M = \r\n";
$mat->print();
?> 

In windows it displays the following M = [ ] In wsl2 ubuntu it displays the following M = [ 0, 0, 255, 0, 0, 255; 0, 0, 255, 0, 0, 255]

BbenWeb1 avatar Jun 23 '23 22:06 BbenWeb1