psi43
psi43
I found a solution. I'll share it on here tomorrow, when I'm at work (don't have the solution at home).
add this to the utils/visualization_utils.py ``` def return_coordinates( image, boxes, classes, scores, category_index, instance_masks=None, instance_boundaries=None, keypoints=None, use_normalized_coordinates=False, max_boxes_to_draw=20, min_score_thresh=.5, agnostic_mode=False, line_thickness=4, groundtruth_box_visualization_color='black', skip_scores=False, skip_labels=False): # Create a display string (and...
> @PraveenNellihela Do you by any chance know how to return the percentage scores as well? I added to return scores but cant seem to get it to work. Hey,...
@iqrammm in your case, with the changes you made to the return_coordinates function, it would be something like this: ``` coordinates = vis_util.return_coordinates( frame, np.squeeze(boxes), np.squeeze(classes).astype(np.int32), np.squeeze(scores), category_index, use_normalized_coordinates=True, line_thickness=10,...
> > for coordinate in coordinates: > > print(coordinate) > > (y1, y2, x1, x2, accuracy, classification) = coordinate > > I believe this not complete since class_name will return...
> I got it working. The piece that you have modified for your use case it is open source ? Sadly no. Even if I planned on making it open...
@SinaMojtahedi In the example I gave for cropping, where I loop through the coordinates, you could replace that with writing the coordinates and other info into a .csv file. That...
@MousaAlnajjar I believe it does, I can't remember for sure. But I seem to remember needing to remove them because they were saved as part of the image, not entirely...