Skip to content

Instantly share code, notes, and snippets.

View hasanaga's full-sized avatar
🏠
Working from home

hasanaga

🏠
Working from home
View GitHub Profile
@hasanaga
hasanaga / editor.rb
Last active October 13, 2020 16:16
For support Android Fastlane/FrameIt
#Add Framefile.json, background images, fonts, languages folders with title.strings, keyword.strings into fastlane/frameit folder.
config_path = File.join(File.expand_path("../frameit", screenshot.path), "Framefile.json")
#Add this after above
config_path = File.join(File.expand_path("../../../../../../frameit", screenshot.path), "Framefile.json") unless File.exist?(config_path)
#...
strings_path = File.join(File.expand_path("..", screenshot.path), "#{type}.strings")
#Add this after above
@hasanaga
hasanaga / GameFlappyBird.pro
Last active December 27, 2017 19:13
Flappy Bird - with QT & OpenCV
#-------------------------------------------------
#
# Project created by QtCreator 2014-02-14T16:58:57
#
#-------------------------------------------------
QT += core gui
TARGET = GameFlappyBird
TEMPLATE = app
@hasanaga
hasanaga / capture_rtsp_stream_ffmpeg.cpp
Created December 27, 2017 19:06
Capture frame from RTSP Stream witg FFMPEG Api, OpenCV
#include <QtCore/QCoreApplication>
#include <QDebug>
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#define UINT64_C
#define WinMain@16
#include "fcntl.h"
int f_desw;
@hasanaga
hasanaga / capture_frame_ffmpeg_opencv.cpp
Created December 27, 2017 19:06
Capture frame from webcam witg FFMPEG Api and display image with OpenCV
//To get devices name in pc run following code on command line.
// ffmpeg -list_devices true -f dshow -i dummy
#include <QtCore/QCoreApplication>
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#define UINT64_C
#define WinMain@16
#include "fcntl.h"
@hasanaga
hasanaga / CaptureFrame.cpp
Created December 27, 2017 19:02
Capture opencv frame from Ximea MU9PC camera
#include <QtCore/QCoreApplication>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <QDebug>
#include <string>
#include <xiApi.h>
#include <xiExt.h>
@hasanaga
hasanaga / example.cpp
Created December 27, 2017 19:01
Read Frame from uEye camera with uEye SDK, OpenCv
#include <QtCore/QCoreApplication>
#include <uEye.h>
#include <uEye_tools.h>
#include <ueye_deprecated.h>
#include <wchar.h>
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
@hasanaga
hasanaga / AdjustHSV.cpp
Last active December 27, 2017 19:00
Adjust HSV of image on Opencv
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
using namespace std;
/// Global variables