Posts by zampnrs • 70 points
14 posts
-
1
votes1
answer34
viewsQ: Error while sending ZIP file via Intent on Android
I am trying to send a ZIP file via Intent on Android with the code below: Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_STREAM,…
-
0
votes1
answer56
viewsA: Make the camera fill the entire screen with Python/Kivy
I don’t know why I showed white screen before, but now when using: Camera: resolution: (self.width, self.height) It worked perfectly. Maybe I wrote it wrong and didn’t realize... The only thing is…
-
0
votes1
answer56
viewsQ: Make the camera fill the entire screen with Python/Kivy
I’m not facing errors, but when accessing the camera using kivy, I don’t know how to make the image occupy the whole size of the window. Below is the part of Kv file that does this:…
-
0
votes1
answer405
viewsQ: Problem when displaying text with cv2.QT_FONT_BOLD source using Opencv in Python
I’m having trouble showing a specific text in an image, I believe the problem is in the source used (cv2.QT_FONT_BOLD), because when I change the source to another as cv2.FONT_HERSHEY_COMPLEX_SMALL,…
-
-1
votes1
answer74
viewsQ: Mosaicing in Python or C++?
I am developing a program that, in the future, I intend to transform into app for android. I’m developing in Python, my idea was to use kivy to develop the entire app. In the current step I am…
-
0
votes1
answer1248
viewsQ: Creating new environments (Nvironments) in Anaconda 3
First I apologize if my question is too basic or if it doesn’t make sense to you, I’m still starting my walk in the Python language. To the point, my question is: Why should we create new…
-
-2
votes1
answer76
viewsQ: How to create a script on Ubuntu
I need to make a script to run the command below on the terminal several times: opencv_createsamples -img toras/toras_00001.jpg -bg negativas/negativas.txt -info positivas1/positivas1.txt -maxxangle…
-
1
votes1
answer73
viewsA: Problem Running Watershed Distance Transform in Opencv 4.0.0
Apparently, the function of imshow() only shows images in CV_8U format. Then it was necessary to change the function parameters normalize(), being like this: normalize(dist, dist, 0, 255.0,…
-
0
votes1
answer73
viewsQ: Problem Running Watershed Distance Transform in Opencv 4.0.0
I am working on an object detection project. I use Opencv 4.0.0 and codeblocks 16.01 on Ubuntu 18.04.1. I am testing the Watershed Distance Transform technique using the code of this tutorial:…
-
0
votes0
answers108
viewsQ: Floating point Exception (core dumped) when running trainhog.cpp from Opencv
Hello, I am developing a solution for object detection in an image, using HOG+SVM. So far I have only set up my database of positive and negative samples. I was using the sample code of Opencv…
-
0
votes0
answers92
viewsQ: Adapt code to return mouse position
I have the following code that shows me the values of the coordinates X and Y when I double click with the left mouse button. #include <opencv2/opencv.hpp> #include <iostream> using…
-
1
votes0
answers16
viewsQ: Problem running main components
Hello, I’m running an algorithm for sorting objects in an image. At the present moment I need to determine the coordinates of the center of the obejto to calculate the diameter and apply…
-
2
votes1
answer58
viewsA: Use Opencv in Ubuntu c++
It probably should be because Qt does not find the libraries in this path that you reported, when I installed opencv here, these files were in "/usr/local/lib", try this:use this path for the . so…
-
0
votes1
answer40
viewsQ: Equivalent to _kbhit() and _getch() on Ubuntu
Guys, No Windows I used to use the following code: int userQuit = 0; while (!userQuit) { cout << "Algo acontece...\n"; if (_kbhit()) { char key = _getch(); switch (key) { case 32: { cout…