Serial Communication in OpenCV - c++

I am building an application involving identification of color of object and then sorting it with the help of a robotic hand manipulator. The code for Color Identification is ready in OpenCV, what I do not know is how to transfer this data to my Arduino UNO board connected by USB. I have made this kind of application previously in MATLAB, but have no idea how to do it in OpenCV. Do we have any way to send data over Serial port in OpenCV?

Have you considered using OpenFrameworks? I personally haven't played around with OpenCV but I have played around with serial communications to arduinos on OF. OF also includes the OpenCV library so you can link your work with it.

Prerequisites :Install opencv with python bindings.I usually work on Mac Os.Its pretty easy installing opencv with python bindings on mac using macports.I have no idea about windows and linux but there is no shortage of tutorials to do so.Just google.
And about python,don't worry,You can learn a lot of python in 2 days.Google python classes are definitely a good start.
Check this out for different python opencv methods.And this is a good site for starting opencv with python

Related

How to connect a YX5300 serial mp3 player module to esp32?

I'm pretty new to IOT and esp32 but so far managed to learn by myself, however, when I tried connecting a YX5300 serial mp3 module to my esp32 I have struggled to even make the #include libraries work.
I am using vscode along with platformio and I installed the "SerialMP3Player" library in my project to make it work.
After installing the library to my project i got errors saying that the "SoftwareSerial" library needs to be installed aswell, so I installed it and now, after doing that, my current error is this:
the build error i recieved after installing both libraries
So my question is what to do now? continue to find and install libraries that pop up in build errors or am i just missing something obvious?
Also, is it even possible to connect this module to an esp32 board? I only came across examples using arduino board variants.
Thanks!
The SoftwareSerial library is meant for Microchip Atmega microcontrollers. Most likely nobody has ever bothered to use this device's library (SerialMP3Player) with other devices, you might be the first to port it to ESP32 - if you feel up to the task.
After a quick look this doesn't seem very difficult - the code looks to be quite well abstracted and only talks to the SoftwareSerial library. You'd need to replace that with something that works on ESP32. I'd suggest a regular old HardwareSerial which uses a hardware UART - there are plenty of those on ESP32.

HowTo print with Qt5 without driver (PostScript / PCL)

I'm developing a application that should run on an embedded device. The app should be able to communicate with different printers, without deploying a driver for each.
That's why I figured out, that PostScript or PCL are good options for me.
Since Qt5 does not support PCL or PostScript, I would like to use another library for my exports but wasn't able to find a single library till now. I would also like to know, if there are other standards like PCL or PostScript to use a printer without installing a driver.
Qt supports CUPS which sports a flexible driver architecture and supports PostScript, PCL and PDF printers, and many more.

cpp program for SIFT feature extraction

I am using the MATLAB to process the images currently to extract the features of the image and compare it with a reference image. The MATLAB is installed on a windows system.
Now I want to write a cpp program for SIFT in a linux machine. How to use the MATLAB commands there?
Problem: Can I use the executable created in a windows machine in linux? if so how?
Is OPENCV the only option in linux or is there any other way to implement SIFT?
regards,
shiksha

Compiling/Running C++ code on iPhone

I have recently created an Asteroids game/app for one of my CS classes with openGL, GLU and C++ for Linux. The teacher told me that if I get it to run on the iPhone he would give me extra credit. I have been looking around and I think I have to develop/port it to Objective C using the iPhone Development Kit. My questions are:
Would this be easy to port?
Can I install the Development Kit on Windows, or Linux (I do not have a Mac).
Is there an alternative way (shortcut) to maybe emulate Linux binaries on the iPhone?
I have not tried anything yet, because I would like to know first what you guys think. You do not have to tell me exactly what to do, but I would highly appreciate if you would point me in the right direction.
Thanks.
Well, if you don't want to port your program into another language. You CAN use SDL2, it seems pretty stable and it works on iOS (iPhone/iPad/iPod Touch). All you would have to do is change your code and then play around with the controls. You'll have to clone the Mercurial repo from http://hg.libsdl.org/. It will come with a README.iOS file, in which describes how the port works and some other details. I am not sure if it has multi-touch support yet, I have not tested it.
Also, you can use immediate mode on the iPhone, you just can't use OpenGL ES 2 if you do that. All you have to do is make a context for OpenGL ES 1.1.
And you WILL need a Mac, or perhaps you could get a Hackintosh to compile your code and then run it with a jailbroken iPod/iPhone/iPad.
NOTE:
I believe I have heard of some people compiling their code on a Hackintosh and then submitting it to the app store from a Mac within an Apple store.

RTSP library in Python or C/C++?

I am trying to find any RTSP streaming library for Python or C/C++.
If not is there any other solutions for real time streaming?
How much easy or difficult it is to implement RTSP in Python or C/C++ and where to get started?
try live555. They have a lots of libraries and modules for implementing rtp and rtsp (as well as sip) into your c and c++ programs
With Python and Twisted, you could use this module.