private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
try {
//capture = new VideoCapture(openFileDialog.FileName);
var imgScene = new Image<Bgr, byte>(openFileDialog.FileName);
Mat imgOut = new Mat();
CvInvoke.MatchTemplate(imgScene, template, imgOut, Emgu.CV.CvEnum.TemplateMatchingType.CcoeffNormed);
Mat imgoutNorm = new();
CvInvoke.Normalize(imgOut, imgoutNorm,0,1, Emgu.CV.CvEnum.NormType.MinMax);
float[,] matches = (float[,])imgoutNorm.GetData();
for (int y = 0; y < matches.GetLength(0); y++)
{
for (int x = 0; x < matches.GetLength(1); x++)
{
double matchScore = matches[y, x];
if (matchScore > 0.99)
{
Rectangle rect = new Rectangle(new Point(x, y), template.Size);
imgScene.Draw(rect, new Bgr(Color.Blue), 1);
}
}
}
pictureBox1.Image = imgScene.AsBitmap();
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
//capture.Read(img);
// pictureBox1.Image = img.ToBitmap();
}
}
command: '../usr/local/lib/libtdjson.so',
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
const result = words.filter(rates => rates.id == id);
elem.classList.toggle("display");
if (text.is(':visible')){
text.addClass('display');
$('.arrow_down').removeClass('rotate');
}
else {
text.removeClass('display');
$('.arrow_down').addClass('rotate');
}
}
var number;
var res = document.getElementById('result');
f1();
function f1() {
number = Math.ceil( Math.random() * 100);
console.log(number);
};
document.getElementById('button').onclick = function() {
var input = document.getElementById('input').value;
input = parseInt(input);
console.log(input);
console.log('asd')
if (input == number) {
res.innerHTML = 'Вы угадали!';
}
else if (input > number) {
res.innerHTML = 'Вы не угадали! Число меньше';
}
else {
res.innerHTML = 'Вы не угадали! Число больше';
}
}