Hello
Well, I was needing to use the OpenCv library in Corona SDK , I asked a question here in the forum myself and found that I could work with C ++ code as well (I still have questions if this works well for windows), so by taking a look I found about connecting LUA and C ++ in this link :
https://gist.github.com/Shchvova/68a3c667327ff33e3cfe0ccd7474135c
So what I want to do is a classified traffic count, there are several links with already created projects of this, but that’s not what I need, I’ll post some examples:
https://github.com/alex-drake/OpenCV-Traffic-Counter
https://github.com/ahmetozlu/vehicle_counting_tensorflow
https://github.com/andrewssobral/simple_vehicle_counting
Relevant issues
1 - ** Why are not these projects what you need?**
Because this is just doing a count of the vehicles that go through the line without sorting them (like car, motorcycle, bus and truck), and another question is, is performing the count in just one line.
2- What does the project need to do?
I need to do pretty much what these git projects already do, even if I can use them it will be great!
I will do exactly this to perform the count after going through a line but, the program will have to perform a different count for each type of vehicle category (car, motorcycle, bus, truck).
And I will also make the person can draw the lines on top of the video, thus making a project more global, can count on more than one street at a time
3- What exactly do you want to ask in this topic?
Well, now that I’ve explained the project, you can better understand the need for this question.
As I said before, the user can draw lines on top of the video, right? But to draw these lines, the corona would make me a lot easier, so my idea is to allow the user to draw these lines on the corona platform, and after it has finished, the corona sends the information to the code in c ++ (because it will be the one that will be with all the main code, since I believe it is impossible to do this using only the crown).
After you have finished undoing the video, you will have a “play” button where you will start the video and perform the whole count, and the data of this count will be stored in the code in C ++, so to create a text file in the repository, I need to send the code information in C ++ for the LUA and it has the array with all the count information.
Now … How can I do this transfer of information between the two codes and test it on the corona simulator? Can someone help me ?
Note: If you have a suggestion for a better method, I would also like to hear it!