Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCV - Segmentation fault
#6
didn't really expose much, I removed that line and went with ndarray;

#cv2.imshow(WINDOW_NAME, frame)
#ret, enc = cv2.imencode("*.jpg", frame)
results = alpr.recognize_ndarray(frame)
print(results)
this is the output

Output:
root@a6d9d4883914:/anpr# python3 readstream.py {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751373946, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 109.541199, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751374089, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 124.764801, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751374244, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 80.463402, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751374989, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 84.739304, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751375821, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 68.119301, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751376661, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 91.671898, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751377485, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 86.435303, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751378316, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 74.5457, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751379148, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 85.642502, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751379980, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 76.310799, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751380813, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 95.191399, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751381644, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 109.487602, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751382476, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 105.507004, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751383305, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 108.853699, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751384140, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 118.1707, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751384973, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 106.439697, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751385804, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 79.0336, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} {'version': 2, 'data_type': 'alpr_results', 'epoch_time': 1568751386636, 'img_width': 1280, 'img_height': 720, 'processing_time_ms': 105.540497, 'regions_of_interest': [{'x': 0, 'y': 0, 'width': 1280, 'height': 720}], 'results': []} Fatal Python error: Segmentation fault Current thread 0x00007f76c0bcc740 (most recent call first): File "/usr/local/lib/python3.6/dist-packages/openalpr/openalpr.py", line 192 in recognize_ndarray File "readstream.py", line 54 in main File "readstream.py", line 88 in <module> Segmentation fault
Reply


Messages In This Thread
OpenCV - Segmentation fault - by samtwilliams - Sep-15-2019, 07:39 PM
RE: OpenCV - Segmentation fault - by samtwilliams - Sep-15-2019, 08:50 PM
RE: OpenCV - Segmentation fault - by Larz60+ - Sep-16-2019, 12:45 AM
RE: OpenCV - Segmentation fault - by samtwilliams - Sep-17-2019, 07:43 PM
RE: OpenCV - Segmentation fault - by kinetic - Sep-17-2019, 08:05 PM
RE: OpenCV - Segmentation fault - by samtwilliams - Sep-17-2019, 08:18 PM
RE: OpenCV - Segmentation fault - by Larz60+ - Sep-18-2019, 12:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [pyparsing] How to make my simple parser fault tolerant medihack 0 171 May-14-2024, 04:52 PM
Last Post: medihack
  make: *** [Makefile:29: all] Segmentation fault Anldra12 2 1,953 May-01-2022, 06:17 PM
Last Post: Anldra12
  Segmentation fault (core dumped) hobbyist 1 10,663 Jun-07-2021, 12:56 PM
Last Post: supuflounder
  Segmentation fault with large files kusal1 3 2,838 Oct-01-2019, 07:32 AM
Last Post: Gribouillis
  Multiple calls to Python interpreter embedded in C++ application yield segmentation f mmoelle1 0 2,879 Mar-21-2019, 08:54 PM
Last Post: mmoelle1
  Segmentation fault when connecting to modbus device with Libmodbus alice 0 2,513 Dec-18-2018, 04:03 PM
Last Post: alice
  Debugging a seg fault tidymax 1 2,903 Oct-31-2018, 02:58 PM
Last Post: ichabod801
  calling python function in c++ callback getting segmentation fault error Jotirling 3 7,245 Oct-26-2017, 08:55 AM
Last Post: Larz60+
  Compiler fault or some kind of weird referencing bug? Joseph_f2 11 9,275 May-09-2017, 08:50 PM
Last Post: volcano63
  Thai Text Segmentation Module draems 4 8,348 Feb-03-2017, 03:29 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020