Posts by André Carvalho • 138 points
12 posts
-
0
votes0
answers182
viewsQ: Transactional Spring is not rollback when some Excpetion is released
I am using springboot 2.2.4 and mysql, as an example I have two classes: Client and Dependent: import javax.persistence.*; @Entity public class Cliente { @Id @GeneratedValue(strategy =…
-
1
votes0
answers38
viewsQ: How to persist and query embeddable entities that have no bidirectional relationship using Jparepository
Using as an example a hotel booking app, I have something like public class Reserva{ ... @CollectionTable(name = "custo_extras", joinColumns = @JoinColumn(name = "reserva_id")) private…
-
0
votes1
answer34
viewsA: Function Circle, how to send the center parameter?
Try to use this: circle(imgOr,Point(2953,1999),224,Scalar(255,0,0)); just take care that this circle does not exceed the edges of the image
opencvanswered André Carvalho 138 -
1
votes1
answer32
viewsQ: How to create a command that sums using latex
I need to put page numbering in the document I’m creating, but this document starts from page 20 for example, so I should use a command that does something like: \cfoot{Página \thepage+20 de (Número…
latexasked André Carvalho 138 -
1
votes2
answers726
viewsQ: How to read numbers from a txt file in C#?
This is an example file: 2 0.03159527 0.1990048 0.9794891 0.02173799 0.9969404 0.07508247 The first number indicates how many lines are, for each line are always three numbers I tried to do…
-
1
votes1
answer641
viewsA: How to show image in Opencv?
Response to editing: Rect roi = Rect(0,0,208,242); Mat copia = image(roi).clone(); imshow("teste", copia); this is the most efficient way to solve your problem…
-
0
votes1
answer574
viewsQ: How to check if the value of a key exists on a map in c++
I am doing a graph TAD and I use a map structure to map the ID of a vertex to its index in the adjacency matrix and to do this I need to first check if given the vertex id it is already added to the…
-
2
votes1
answer245
viewsA: Is it possible to access the Hough transform accumulator using opencv?
A long time later I discovered that the vector of circles returned comes ordered according to those who obtained the largest vote, so the circle of index 0 is the best circle among all. Mat out;…
-
1
votes2
answers1220
viewsA: Aspect ratio of an image resized with Opencv?
To maintain the proportions of the original image without any distortions you can only choose arbitrarily the size of one of the new dimensions, the other dimension will increase or decrease…
-
1
votes1
answer564
viewsA: Grayscale in Images - OPENCV
Mat img = imread("sua_imagem.bmp", CV_LOAD_IMAGE_GRAYSCALE); vector<int> acumulador(8); for (int i = 0; i < img.rows; i++) for (int j = 0; j < img.cols; j++) { int index =…
-
0
votes0
answers107
viewsQ: What is the best way to use projection histograms as characteristics in classifiers or Nns without using a resize on the image
I’m doing some work for digit recognition on digital displays and I’m looking to use projection histograms as characteristics for some classifier, however the images are all of different sizes…
-
2
votes1
answer245
viewsQ: Is it possible to access the Hough transform accumulator using opencv?
I am with this small prolema, I searched a lot on the internet and in the documentation but I did not find anything related, I need to know what the accumulation value of each circle generated by…