Студопедия

Главная страница Случайная страница

Разделы сайта

АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторикаСоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника






Список использованных источников. 1. Http://www. Controlengrussia. Com/innovatsii/sistemy-komp-yuternogo-zreniya-sovremenny-e-zadachi-metody/






 

1. https://www.controlengrussia.com/innovatsii/sistemy-komp-yuternogo-zreniya-sovremenny-e-zadachi-metody/

2. https://habrahabr.ru/post/133826/

3. https://locv.ru/

4. https://develnet.ru/blog/493.html

5. https://habrahabr.ru/post/208092/

6. https://habrahabr.ru/post/134857/

7. https://habrahabr.ru/post/216019/

8. https://blog.vidikon.com/? paged=17

9. https://geektimes.ru/post/67937/


ПРИЛОЖЕНИЕ А

Листинг программы

Листинг Main Cpp:

#include " MainForm.h"

 

 

namespace GUIFaceDetection {

 

CascadeClassifier face_cascade; // Создаем объект классификатора для лица.

CascadeClassifier eyes_cascade; // Создаем объект классификатора для глаз.

cv:: String window_name = " Capture - Face detection";

 

System:: Void MainForm:: btnStart_Click(System:: Object^ sender, System:: EventArgs^ e) {

//-- 1. Load the cascades - xml-файл с описанием характеристик каскада.

cv:: String face_cascade_name = " C: /Libraries/opencv/sources/data/haarcascades/haarcascade_frontalface_alt.xml";

cv:: String eyes_cascade_name = " C: /Libraries/opencv/sources/data/haarcascades/haarcascade_eye_tree_eyeglasses.xml";

stop = 0;

if (! face_cascade.load(face_cascade_name))

{

MessageBox:: Show(" Error loading face cascade", " GUIfaceDetection", MessageBoxButtons:: OK, MessageBoxIcon:: Exclamation);

return;

}

if (! eyes_cascade.load(eyes_cascade_name))

{

MessageBox:: Show(" Error loading eyes cascade", " GUIfaceDetection", MessageBoxButtons:: OK, MessageBoxIcon:: Exclamation);

return;

}

 

CvCapture *capture; // Здесь будет файл (видео)

// IplImage *img;

Mat frame;

 

//-- 2. Read the video stream

// capture = cvCaptureFromCAM(0); // или cvCreateCameraCapture(0) // видеопоток получаем

capture = cvCreateCameraCapture(0);

cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH, 640);

cvSetCaptureProperty(capture, CV_CAP_PROP_FRAME_HEIGHT, 480);

if (capture == NULL) // если камера не обнаружена, то выйти

{

MessageBox:: Show(" Don't open camera -- Exit", " GUIfaceDetection", MessageBoxButtons:: OK, MessageBoxIcon:: Exclamation);

return;

}

 

while (true)

{

frame = cvQueryFrame(capture); // Читаем кадр из файла.

// frame = cvarrToMat(img);

//-- 3. Apply the classifier to the frame

if (! frame.empty()) // если удалось получить кадр из видеопотока

{

detectAndDisplay(frame); // вызвать функцию обнаружения и отображения

}

// else

// {

// printf(" (!)No captured frame -- Break");

// break;

// }

 

char c = cvWaitKey(30); // считывание кнопок

if (c == 27 || stop == 27) { break; } // ESC для выхода.

}

cvReleaseCapture(& capture); // освобождаем память выделенную под capture и закрываем видео файл.

}

 

// function detectAndDisplay

System:: Void MainForm:: detectAndDisplay(Mat frame)

{

vector< cv:: Rect> faces(3); // vector objects - вектор прямоугольников, описывающих области с обнаруженными объектами

Mat frame_gray; //переменная содержащая черно-белый кадр

 

cvtColor(frame, frame_gray, CV_BGR2GRAY); // конвертируем цветное изображение в черно-белое. cvCvtColor - для IplImage.

equalizeHist(frame_gray, frame_gray); // Выравнивание яркости (гистограммы). cvEqualizeHist - для IplImage.

//-- Detect faces. Ищем объекты на изображении frame_gray и сохраняем объекты в вектор faces:

face_cascade.detectMultiScale(

frame_gray, // где ищем

faces, // куда сохраняем

1.13, // scale-параметр

6, // минимальное кол-во соседей, удаление лишних прямоугольников.

0 | CV_HAAR_SCALE_IMAGE, //? поиск объектов с заданным масштабом.

//0|CV_HAAR_FIND_BIGGEST_OBJECT, // поиск больших объектов.

//0|CV_HAAR_DO_ROUGH_SEARCH, // грубый поиск.

//0|CV_HAAR_DO_CANNY_PRUNING, // пропускать маловероятные области.

cv:: Size(96, 96) // минимальный размер подобласти, с которой начинается поиск объекта.

);

 

nFaces-> Text = faces.size().ToString();

 

if (faces.size() == 0) {

imshow(window_name, frame);

return;

}

 

for (int i = 0; i < faces.size(); ++i)

{

// Находим центр лица

cv:: Point center(faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.5); // (int)((double)

ellipse(frame, center, cv:: Size(faces[i].width*0.5, faces[i].height*0.5), 0, 0, 360, cv:: Scalar(49, 226, 209), 2, 8, 0);

}

 

vector< cv:: Rect> eyes(4);

eyes_cascade.detectMultiScale(

frame_gray(faces[0]),

eyes,

1.1,

6,

0 | CV_HAAR_SCALE_IMAGE,

cv:: Size(32, 32)

);

 

nEyes-> Text = eyes.size().ToString();

 

if (eyes.size() == 0) {

imshow(window_name, frame);

return;

}

 

prevСntrEye = currСntrEye;

currСntrEye = System:: Drawing:: Point(0, 0);

 

for (int j = 0; j < eyes.size(); ++j)

{

// Находим центр глаз

cv:: Point center(faces[0].x + eyes[j].x + eyes[j].width*0.5, faces[0].y + eyes[j].y + eyes[j].height*0.5);

currСntrEye.X += center.x; currСntrEye.Y += center.y;

// Находим радиус круга

int radius = cvRound((eyes[j].width + eyes[j].height)*0.25);

// Рисуем круг

circle(frame, center, radius, cv:: Scalar(255, 0, 0), 4, 8, 0);

}

if (eyes.size()! = 0) {

currСntrEye.X /= eyes.size(); currСntrEye.Y /= eyes.size();

}

pictureBox1-> Refresh();

 

//-- Show what you got

imshow(window_name, frame);

}

 

System:: Void MainForm:: btnExit_Click(System:: Object^ sender, System:: EventArgs^ e)

{

stop = 27;

Close();

}

 

System:: Void MainForm:: ToolStripMenuItem_Click(System:: Object^ sender, System:: EventArgs^ e) {

stop = 27;

Close();

}

 

// при открытии формы

System:: Void MainForm:: MainForm_Load(System:: Object^ sender, System:: EventArgs^ e) {

// вычмслить центр области рисования (PictureBox)

currСntrEye = System:: Drawing:: Point(pictureBox1-> Width / 2, pictureBox1-> Height / 2);

// присвоить предыдущей позиции курсора текущую

prevСntrEye = currСntrEye;

// загрузить картинку

pictureBox1-> Image = pictureBox1-> Image-> FromFile("../1_2.jpg");

}

 

// при обновлении области рисования (вызов функции Refresh PictureBox'а)

System:: Void MainForm:: pictureBox1_Paint(System:: Object^ sender, System:: Windows:: Forms:: PaintEventArgs^ e) {

// вычисляем приращение по оси x

int dx = prevСntrEye.X - currСntrEye.X; txtdx-> Text = dx.ToString();

// вычисляем приращение по оси y

int dy = prevСntrEye.Y - currСntrEye.Y; txtdy-> Text = dy.ToString();

// вычисляем координаты позиции курсора (приращения умножаем на коэф. и прибавляем пред положение)

System:: Drawing:: Point eyePos(dx * k + prevСntrEye.X, dy * k + prevСntrEye.Y);

// рисуем курсор

e-> Graphics-> DrawLine(Pens:: Red, eyePos.X, eyePos.Y - 10, eyePos.X, eyePos.Y + 10);

e-> Graphics-> DrawLine(Pens:: Red, eyePos.X - 10, eyePos.Y, eyePos.X + 10, eyePos.Y);

}

};

Листинг stdafx.h:

// stdafx.h: включаемый файл для стандартных системных включаемых файлов

// или включаемых файлов дл¤ конкретного проекта, которые часто используются, но

// не часто изменяются

#pragma once

 

// TODO: встановите здесь ссылки на дополнительные заголовки, требующиеся для программы

#include < iostream>

#include < stdio.h>

#include < Windows.h>

 

#pragma comment (lib, " opencv_core2410d.lib")

#pragma comment (lib, " opencv_highgui2410d.lib")

#pragma comment (lib, " opencv_ml2410d.lib")

#pragma comment (lib, " opencv_video2410d.lib")

#pragma comment (lib, " opencv_imgproc2410d.lib")

#pragma comment (lib, " opencv_legacy2410d.lib")

#pragma comment (lib, " opencv_objdetect2410d.lib")

 

Листинг GUIFaceDetection.cpp:

// GUIFaceDetection.cpp: главный файл проекта.

 

#include " stdafx.h"

#include " MainForm.h"

 

using namespace GUIFaceDetection;

 

[STAThreadAttribute]

int main(array< System:: String ^> ^args)

{

// Включение визуальных эффектов Windows XP до создания каких-либо элементов управления

Application:: EnableVisualStyles();

Application:: SetCompatibleTextRenderingDefault(false);

 

// Создание главного окна и его запуск

Application:: Run(gcnew MainForm());

return 0;

}

Листинг MainForm.h:

#pragma once

 

#include < opencv2\objdetect\objdetect.hpp>

#include < opencv2\highgui\highgui.hpp>

#include < opencv2\imgproc\imgproc.hpp>

 

#define k 5

 

namespace GUIFaceDetection {

 

using namespace System;

using namespace System:: ComponentModel;

using namespace System:: Collections;

using namespace System:: Windows:: Forms;

using namespace System:: Data;

using namespace System:: Drawing;

using namespace cv;

 

/// < summary>

/// Сводка для MainForm

/// < /summary>

public ref class MainForm: public System:: Windows:: Forms:: Form

{

public:

MainForm(void)

{

InitializeComponent();

//

//TODO: добавьте код конструктора

//

}

 

protected:

/// < summary>

/// Освободить все используемые ресурсы.

/// < /summary>

~MainForm()

{

if (components)

{

delete components;

}

}

private: System:: Windows:: Forms:: GroupBox^ groupBox1;

private: System:: Windows:: Forms:: Label^ nEyes;

private: System:: Windows:: Forms:: Label^ nFaces;

private: System:: Windows:: Forms:: Label^ label8;

private: System:: Windows:: Forms:: Label^ label7;

private: System:: Windows:: Forms:: Label^ label6;

private: System:: Windows:: Forms:: Label^ label5;

private: System:: Windows:: Forms:: Label^ label4;

private: System:: Windows:: Forms:: Label^ label3;

private: System:: Windows:: Forms:: Label^ label2;

private: System:: Windows:: Forms:: Label^ label1;

private: System:: Windows:: Forms:: GroupBox^ groupBox2;

private: System:: Windows:: Forms:: Button^ btnExit;

private: System:: Windows:: Forms:: Button^ btnStart;

private: System:: Windows:: Forms:: MenuStrip^ menuStrip1;

private: System:: Windows:: Forms:: ToolStripMenuItem^ файлToolStripMenuItem;

private: System:: Windows:: Forms:: ToolStripMenuItem^ ToolStripMenuItem;

private: System:: Windows:: Forms:: ToolStripMenuItem^ помощьToolStripMenuItem;

private: System:: Windows:: Forms:: ToolStripMenuItem^ оПрограммеToolStripMenuItem;

private: System:: Windows:: Forms:: PictureBox^ pictureBox1;

private: System:: Drawing:: Point currСntrEye;

private: System:: Drawing:: Point prevСntrEye;

private: System:: Int32 stop;

private: System:: Windows:: Forms:: Label^ txtdy;

 

private: System:: Windows:: Forms:: Label^ txtdx;

 

private: System:: Windows:: Forms:: Label^ label10;

private: System:: Windows:: Forms:: Label^ label9;

 

private:

/// < summary>

/// Требуется переменная конструктора.

/// < /summary>

System:: ComponentModel:: Container ^components;

 

#pragma region Windows Form Designer generated code

/// < summary>

/// Обязательный метод для поддержки конструктора - не изменяйте

/// содержимое данного метода при помощи редактора кода.

/// < /summary>

void InitializeComponent(void)

{

this-> groupBox1 = (gcnew System:: Windows:: Forms:: GroupBox());

this-> txtdy = (gcnew System:: Windows:: Forms:: Label());

this-> txtdx = (gcnew System:: Windows:: Forms:: Label());

this-> label10 = (gcnew System:: Windows:: Forms:: Label());

this-> label9 = (gcnew System:: Windows:: Forms:: Label());

this-> nEyes = (gcnew System:: Windows:: Forms:: Label());

this-> nFaces = (gcnew System:: Windows:: Forms:: Label());

this-> label8 = (gcnew System:: Windows:: Forms:: Label());

this-> label7 = (gcnew System:: Windows:: Forms:: Label());

this-> label6 = (gcnew System:: Windows:: Forms:: Label());

this-> label5 = (gcnew System:: Windows:: Forms:: Label());

this-> label4 = (gcnew System:: Windows:: Forms:: Label());

this-> label3 = (gcnew System:: Windows:: Forms:: Label());

this-> label2 = (gcnew System:: Windows:: Forms:: Label());

this-> label1 = (gcnew System:: Windows:: Forms:: Label());

this-> groupBox2 = (gcnew System:: Windows:: Forms:: GroupBox());

this-> btnExit = (gcnew System:: Windows:: Forms:: Button());

this-> btnStart = (gcnew System:: Windows:: Forms:: Button());

this-> menuStrip1 = (gcnew System:: Windows:: Forms:: MenuStrip());

this-> файлToolStripMenuItem = (gcnew System:: Windows:: Forms:: ToolStripMenuItem());

this-> ToolStripMenuItem = (gcnew System:: Windows:: Forms:: ToolStripMenuItem());

this-> помощьToolStripMenuItem = (gcnew System:: Windows:: Forms:: ToolStripMenuItem());

this-> оПрограммеToolStripMenuItem = (gcnew System:: Windows:: Forms:: ToolStripMenuItem());

this-> pictureBox1 = (gcnew System:: Windows:: Forms:: PictureBox());

this-> groupBox1-> SuspendLayout();

this-> groupBox2-> SuspendLayout();

this-> menuStrip1-> SuspendLayout();

(cli:: safe_cast< System:: ComponentModel:: ISupportInitialize^> (this-> pictureBox1))-> BeginInit();

this-> SuspendLayout();

//

// groupBox1

//

this-> groupBox1-> Controls-> Add(this-> txtdy);

this-> groupBox1-> Controls-> Add(this-> txtdx);

this-> groupBox1-> Controls-> Add(this-> label10);

this-> groupBox1-> Controls-> Add(this-> label9);

this-> groupBox1-> Controls-> Add(this-> nEyes);

this-> groupBox1-> Controls-> Add(this-> nFaces);

this-> groupBox1-> Controls-> Add(this-> label8);

this-> groupBox1-> Controls-> Add(this-> label7);

this-> groupBox1-> Controls-> Add(this-> label6);

this-> groupBox1-> Controls-> Add(this-> label5);

this-> groupBox1-> Controls-> Add(this-> label4);

this-> groupBox1-> Controls-> Add(this-> label3);

this-> groupBox1-> Controls-> Add(this-> label2);

this-> groupBox1-> Controls-> Add(this-> label1);

this-> groupBox1-> Location = System:: Drawing:: Point(12, 27);

this-> groupBox1-> Name = L" groupBox1";

this-> groupBox1-> Size = System:: Drawing:: Size(410, 85);

this-> groupBox1-> TabIndex = 0;

this-> groupBox1-> TabStop = false;

this-> groupBox1-> Text = L" Контрольная информация";

//

// txtdy

//

this-> txtdy-> AutoSize = true;

this-> txtdy-> Location = System:: Drawing:: Point(250, 37);

this-> txtdy-> Name = L" txtdy";

this-> txtdy-> Size = System:: Drawing:: Size(13, 13);

this-> txtdy-> TabIndex = 13;

this-> txtdy-> Text = L" 0";

//

// txtdx

//

this-> txtdx-> AutoSize = true;

this-> txtdx-> Location = System:: Drawing:: Point(250, 16);

this-> txtdx-> Name = L" txtdx";

this-> txtdx-> Size = System:: Drawing:: Size(13, 13);

this-> txtdx-> TabIndex = 12;

this-> txtdx-> Text = L" 0";

//

// label10

//

this-> label10-> AutoSize = true;

this-> label10-> Location = System:: Drawing:: Point(223, 37);

this-> label10-> Name = L" label10";

this-> label10-> Size = System:: Drawing:: Size(21, 13);

this-> label10-> TabIndex = 11;

this-> label10-> Text = L" dy: ";

//

// label9

//

this-> label9-> AutoSize = true;

this-> label9-> Location = System:: Drawing:: Point(223, 16);

this-> label9-> Name = L" label9";

this-> label9-> Size = System:: Drawing:: Size(21, 13);

this-> label9-> TabIndex = 10;

this-> label9-> Text = L" dx: ";

//

// nEyes

//

this-> nEyes-> AutoSize = true;

this-> nEyes-> Location = System:: Drawing:: Point(175, 37);

this-> nEyes-> Name = L" nEyes";

this-> nEyes-> Size = System:: Drawing:: Size(13, 13);

this-> nEyes-> TabIndex = 9;

this-> nEyes-> Text = L" 0";

//

// nFaces

//

this-> nFaces-> AutoSize = true;

this-> nFaces-> Location = System:: Drawing:: Point(175, 16);

this-> nFaces-> Name = L" nFaces";

this-> nFaces-> Size = System:: Drawing:: Size(13, 13);

this-> nFaces-> TabIndex = 8;

this-> nFaces-> Text = L" 0";

//

// label8

//

this-> label8-> AutoSize = true;

this-> label8-> Location = System:: Drawing:: Point(58, 59);

this-> label8-> Name = L" label8";

this-> label8-> Size = System:: Drawing:: Size(47, 13);

this-> label8-> TabIndex = 7;

this-> label8-> Text = L" Unknow";

//

// label7

//

this-> label7-> AutoSize = true;

this-> label7-> Location = System:: Drawing:: Point(58, 37);

this-> label7-> Name = L" label7";

this-> label7-> Size = System:: Drawing:: Size(25, 13);

this-> label7-> TabIndex = 6;

this-> label7-> Text = L" 480";

//

// label6

//

this-> label6-> AutoSize = true;

this-> label6-> Location = System:: Drawing:: Point(58, 16);

this-> label6-> Name = L" label6";

this-> label6-> Size = System:: Drawing:: Size(25, 13);

this-> label6-> TabIndex = 5;

this-> label6-> Text = L" 320";

//

// label5

//

this-> label5-> AutoSize = true;

this-> label5-> Location = System:: Drawing:: Point(138, 37);

this-> label5-> Name = L" label5";

this-> label5-> Size = System:: Drawing:: Size(34, 13);

this-> label5-> TabIndex = 4;

this-> label5-> Text = L" Глаз: ";

//

// label4

//

this-> label4-> AutoSize = true;

this-> label4-> Location = System:: Drawing:: Point(138, 16);

this-> label4-> Name = L" label4";

this-> label4-> Size = System:: Drawing:: Size(30, 13);

this-> label4-> TabIndex = 3;

this-> label4-> Text = L" Лиц: ";

//

// label3

//

this-> label3-> AutoSize = true;

this-> label3-> Location = System:: Drawing:: Point(6, 59);

this-> label3-> Name = L" label3";

this-> label3-> Size = System:: Drawing:: Size(24, 13);

this-> label3-> TabIndex = 2;

this-> label3-> Text = L" fps: ";

//

// label2

//

this-> label2-> AutoSize = true;

this-> label2-> Location = System:: Drawing:: Point(6, 37);

this-> label2-> Name = L" label2";

this-> label2-> Size = System:: Drawing:: Size(48, 13);

this-> label2-> TabIndex = 1;

this-> label2-> Text = L" Высота: ";

//

// label1

//

this-> label1-> AutoSize = true;

this-> label1-> Location = System:: Drawing:: Point(6, 16);

this-> label1-> Name = L" label1";

this-> label1-> Size = System:: Drawing:: Size(49, 13);

this-> label1-> TabIndex = 0;

this-> label1-> Text = L" Ширина: ";

//

// groupBox2

//

this-> groupBox2-> Controls-> Add(this-> btnExit);

this-> groupBox2-> Controls-> Add(this-> btnStart);

this-> groupBox2-> Location = System:: Drawing:: Point(429, 27);

this-> groupBox2-> Name = L" groupBox2";

this-> groupBox2-> Size = System:: Drawing:: Size(143, 85);

this-> groupBox2-> TabIndex = 1;

this-> groupBox2-> TabStop = false;

this-> groupBox2-> Text = L" Меню управления";

//

// btnExit

//

this-> btnExit-> Location = System:: Drawing:: Point(77, 19);

this-> btnExit-> Name = L" btnExit";

this-> btnExit-> Size = System:: Drawing:: Size(60, 23);

this-> btnExit-> TabIndex = 1;

this-> btnExit-> Text = L" Выход";

this-> btnExit-> UseVisualStyleBackColor = true;

this-> btnExit-> Click += gcnew System:: EventHandler(this, & MainForm:: btnExit_Click);

//

// btnStart

//

this-> btnStart-> Location = System:: Drawing:: Point(6, 19);

this-> btnStart-> Name = L" btnStart";

this-> btnStart-> Size = System:: Drawing:: Size(60, 23);

this-> btnStart-> TabIndex = 0;

this-> btnStart-> Text = L" Старт";

this-> btnStart-> UseVisualStyleBackColor = true;

this-> btnStart-> Click += gcnew System:: EventHandler(this, & MainForm:: btnStart_Click);

//

// menuStrip1

//

this-> menuStrip1-> Items-> AddRange(gcnew cli:: array< System:: Windows:: Forms:: ToolStripItem^ > (2) {

this-> файлToolStripMenuItem,

this-> помощьToolStripMenuItem

});

this-> menuStrip1-> Location = System:: Drawing:: Point(0, 0);

this-> menuStrip1-> Name = L" menuStrip1";

this-> menuStrip1-> Size = System:: Drawing:: Size(584, 24);

this-> menuStrip1-> TabIndex = 2;

this-> menuStrip1-> Text = L" menuStrip1";

//

// файлToolStripMenuItem

//

this-> файлToolStripMenuItem-> DropDownItems-> AddRange(gcnew cli:: array< System:: Windows:: Forms:: ToolStripItem^ > (1) { this-> ToolStripMenuItem });

this-> файлToolStripMenuItem-> Name = L" файлToolStripMenuItem";

this-> файлToolStripMenuItem-> Size = System:: Drawing:: Size(48, 20);

this-> файлToolStripMenuItem-> Text = L" Файл";

//

// ToolStripMenuItem

//

this-> ToolStripMenuItem-> Name = L" ToolStripMenuItem";

this-> ToolStripMenuItem-> Size = System:: Drawing:: Size(108, 22);

this-> ToolStripMenuItem-> Text = L" Выход";

this-> ToolStripMenuItem-> Click += gcnew System:: EventHandler(this, & MainForm:: ToolStripMenuItem_Click);

//

// помощьToolStripMenuItem

//

this-> помощьToolStripMenuItem-> DropDownItems-> AddRange(gcnew cli:: array< System:: Windows:: Forms:: ToolStripItem^ > (1) { this-> оПрограммеToolStripMenuItem });

this-> помощьToolStripMenuItem-> Name = L" помощьToolStripMenuItem";

this-> помощьToolStripMenuItem-> Size = System:: Drawing:: Size(68, 20);

this-> помощьToolStripMenuItem-> Text = L" Помощь";

//

// оПрограммеToolStripMenuItem

//

this-> оПрограммеToolStripMenuItem-> Name = L" оПрограммеToolStripMenuItem";

this-> оПрограммеToolStripMenuItem-> Size = System:: Drawing:: Size(158, 22);

this-> оПрограммеToolStripMenuItem-> Text = L" О программе...";

//

// pictureBox1

//

this-> pictureBox1-> Location = System:: Drawing:: Point(12, 118);

this-> pictureBox1-> Name = L" pictureBox1";

this-> pictureBox1-> Size = System:: Drawing:: Size(560, 340);

this-> pictureBox1-> TabIndex = 3;

this-> pictureBox1-> TabStop = false;

this-> pictureBox1-> Paint += gcnew System:: Windows:: Forms:: PaintEventHandler(this, & MainForm:: pictureBox1_Paint);

//

// MainForm

//

this-> AutoScaleDimensions = System:: Drawing:: SizeF(6, 13);

this-> AutoScaleMode = System:: Windows:: Forms:: AutoScaleMode:: Font;

this-> ClientSize = System:: Drawing:: Size(584, 467);

this-> Controls-> Add(this-> pictureBox1);

this-> Controls-> Add(this-> groupBox2);

this-> Controls-> Add(this-> groupBox1);

this-> Controls-> Add(this-> menuStrip1);

this-> MainMenuStrip = this-> menuStrip1;

this-> Name = L" MainForm";

this-> Text = L" Практическая часть диплома. Близнюк Д.В.";

this-> Load += gcnew System:: EventHandler(this, & MainForm:: MainForm_Load);

this-> groupBox1-> ResumeLayout(false);

this-> groupBox1-> PerformLayout();

this-> groupBox2-> ResumeLayout(false);

this-> menuStrip1-> ResumeLayout(false);

this-> menuStrip1-> PerformLayout();

(cli:: safe_cast< System:: ComponentModel:: ISupportInitialize^> (this-> pictureBox1))-> EndInit();

this-> ResumeLayout(false);

this-> PerformLayout();

 

}

#pragma endregion

private: System:: Void btnStart_Click(System:: Object^ sender, System:: EventArgs^ e);

private: System:: Void detectAndDisplay(cv:: Mat frame);

private: System:: Void btnExit_Click(System:: Object^ sender, System:: EventArgs^ e);

private: System:: Void ToolStripMenuItem_Click(System:: Object^ sender, System:: EventArgs^ e);

private: System:: Void MainForm_Load(System:: Object^ sender, System:: EventArgs^ e);

private: System:: Void pictureBox1_Paint(System:: Object^ sender, System:: Windows:: Forms:: PaintEventArgs^ e);

};

}

 

 


ПРИЛОЖЕНИЕ Б






© 2023 :: MyLektsii.ru :: Мои Лекции
Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав.
Копирование текстов разрешено только с указанием индексируемой ссылки на источник.