[MERGE] merged feature/improve-hand-detection into feature/Start-scene correctly
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace computervision
|
namespace computervision
|
||||||
{
|
{
|
||||||
cv::VideoCapture cap(0);
|
cv::VideoCapture cap(1);
|
||||||
|
|
||||||
cv::Mat img, imgGray, img2, img2Gray, img3, img4;
|
cv::Mat img, imgGray, img2, img2Gray, img3, img4;
|
||||||
|
|
||||||
|
|||||||
10
src/main.cpp
10
src/main.cpp
@@ -68,6 +68,10 @@ int main(void)
|
|||||||
});
|
});
|
||||||
|
|
||||||
bool window_open = true;
|
bool window_open = true;
|
||||||
|
|
||||||
|
computervision::ObjectDetection objDetect;
|
||||||
|
cv::Mat cameraFrame;
|
||||||
|
|
||||||
// Main game loop
|
// Main game loop
|
||||||
while (!glfwWindowShouldClose(window) && window_open)
|
while (!glfwWindowShouldClose(window) && window_open)
|
||||||
{
|
{
|
||||||
@@ -95,8 +99,10 @@ int main(void)
|
|||||||
std::cout << "Wrong return value!!! ->" << std::endl;
|
std::cout << "Wrong return value!!! ->" << std::endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cameraFrame = objDetect.readCamera();
|
|
||||||
|
|
||||||
////////////////////////// KIMS SHIT ////////////////////////////////////
|
////////////////////////// KIMS SHIT ////////////////////////////////////
|
||||||
|
cameraFrame = objDetect.readCamera();
|
||||||
computervision::MenuTest menu_test;
|
computervision::MenuTest menu_test;
|
||||||
|
|
||||||
//Get hand state from camera
|
//Get hand state from camera
|
||||||
@@ -145,7 +151,7 @@ cameraFrame = objDetect.readCamera();
|
|||||||
///////////////////////// END OF KIMS SHIT ///////////////////////////////
|
///////////////////////// END OF KIMS SHIT ///////////////////////////////
|
||||||
|
|
||||||
// Finish up
|
// Finish up
|
||||||
shader.Stop();
|
//shader.Stop();
|
||||||
glfwSwapBuffers(window);
|
glfwSwapBuffers(window);
|
||||||
glfwPollEvents();
|
glfwPollEvents();
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include "../renderEngine/obj_loader.h"
|
#include "../renderEngine/obj_loader.h"
|
||||||
#include "../renderEngine/renderer.h"
|
#include "../renderEngine/renderer.h"
|
||||||
#include "../shaders/entity_shader.h"
|
#include "../shaders/entity_shader.h"
|
||||||
|
#include "../gui/gui_interactable.h"
|
||||||
#include "../toolbox/toolbox.h"
|
#include "../toolbox/toolbox.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -74,7 +75,6 @@ namespace scene
|
|||||||
gui::Button* new_button = ConvertGuiTextureToButton(button);
|
gui::Button* new_button = ConvertGuiTextureToButton(button);
|
||||||
if(new_button != NULL)
|
if(new_button != NULL)
|
||||||
new_button->Update(window);
|
new_button->Update(window);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "scene.h"
|
#include "scene.h"
|
||||||
#include "../gui/gui_interactable.h"
|
#include "../gui/gui_element.h"
|
||||||
|
|
||||||
namespace scene
|
namespace scene
|
||||||
{
|
{
|
||||||
@@ -13,7 +13,6 @@ namespace scene
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Startup_Scene();
|
Startup_Scene();
|
||||||
gui::Button* ConvertGuiTextureToButton(gui::GuiTexture* texture);
|
|
||||||
Scenes start(GLFWwindow* window) override;
|
Scenes start(GLFWwindow* window) override;
|
||||||
void render() override;
|
void render() override;
|
||||||
void update(GLFWwindow* window) override;
|
void update(GLFWwindow* window) override;
|
||||||
|
|||||||
Reference in New Issue
Block a user