vstadnytskyi / lcp-flir

BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

slow image update #5

Open vstadnytskyi-FDA opened 2 years ago

vstadnytskyi-FDA commented 2 years ago

Server

caproto-sandbox\caproto_sandbox\transition\pcaspy>python simple_image_push_server.py


In [144]: for i in range(100):
     ...:     t1 = time()
     ...:     image = camera.convert_raw_to_image(camera.queue.peek_last_N(1)[0])
     ...:     print("1", time() - t1)
     ...:     out = cv2.normalize(image, out, 0, 255, cv2.NORM_MINMAX)
     ...:     print("2", time() - t1)
     ...:     img_reshaped[:, :, 1] = out.astype("float64")
     ...:     print("3", time() - t1)
     ...:     pv1.put(img_reshaped.flatten())
     ...:     print("4", time() - t1)
1 0.02803325653076172
2 0.03203248977661133
3 0.06503605842590332
4 1.5367040634155273
1 0.046000003814697266
2 0.055001020431518555
3 0.10600066184997559
4 1.7905762195587158
1 0.07509016990661621
2 0.08707618713378906
3 0.16007685661315918
4 1.7902987003326416
1 0.06501126289367676
2 0.08103203773498535
3 0.1780393123626709
4 1.7863237857818604
1 0.07899785041809082
2 0.08699822425842285