![lepton thermal camera lepton thermal camera](https://img.alicdn.com/imgextra/i3/574218057/O1CN0129O9ZYmDxzlRb8u_!!574218057.jpg)
Parser.add_argument('-o', '-output_dir', action='store', dest='output_dir', default='./output/' , Parser.add_argument('-v', '-video_path', action='store', dest='video_path', default='./data/example.mp4' , Img = plot.social_distancing_view(frame1, bxs_mat, boxes1, risk_count)Ĭv2.imwrite(output_dir+"frame%d.jpg" % count, img)Ĭv2.imwrite(output_dir+"bird_eye_view/frame%d.jpg" % count, bird_image) # Draw bird eye view and frame with bouding boxes around humans according to risk factorīird_image = plot.bird_eye_view(frame, distances_mat, person_points, scale_w, scale_h, risk_count)
![lepton thermal camera lepton thermal camera](https://core-electronics.com.au/media/catalog/product/cache/1/image/fe1bcd18654db18f328c2faaaf3c690a/1/7/17544-purethermal_mini_pro_-_jst-sr_with_flir_lepton_3.5-01.jpg)
Risk_count = utills.get_count(distances_mat) # Here we will calculate distance between transformed points(humans)ĭistances_mat, bxs_mat = utills.get_distances(boxes1, person_points, distance_w, distance_h) Person_points = utills.get_transformed_points(boxes1, prespective_transform) # Here we will be using bottom center point of bounding box for all boxes and will transform all those Idxs = (boxes, confidences, confid, thresh) (centerX, centerY, width, height) = box.astype("int")īoxes.append() If len(mouse_pts) = 1 and len(mouse_pts) confid:īox = detection * np.array() # Function will be called on mouse eventsĭef get_mouse_points(event, x, y, flags, param): Horizontal and vertical scale will be different. # horizontal line and point 5 and 7 should form verticle line. # Points should pe in pre-defined order - bottom-left, bottom-right, top-right, top-left, point 5 and 6 should form # horizontal and vertical direction and those should form parallel lines with ROI. Next 3 points will define 6 feet(unit length) distance in # lines in real world if seen from above(birds eye view). # event.First four points will define ROI where we want to moniter social distancing. It will take 8 points on first frame using mouse click # Function to get points for Region of Interest(ROI) and distance scale. I tried to use different OpenCV commands but it does not work The original lepton resolution is (160 x 120) and I would like to resize it to (640 x 480). I am streaming lepton FLIR camera on jetson nano using python3 and OpenCV and I have problems that I can not resize live video.