frigate_plate_recognizer icon indicating copy to clipboard operation
frigate_plate_recognizer copied to clipboard

Error getting snapshot: 404

Open blakdog1978 opened this issue 2 years ago • 7 comments

This is my log how do I fix this error

- Time: 2024-02-29 08:13:36.009
2024-02-29 08:13:36,009 - __main__ - INFO - Python Version: 3.12.2 (main, Feb 10 2024, 12:07:07) [GCC 13.2.1 20231014]
2024-02-29 08:13:36,009 - __main__ - INFO - Frigate Plate Recognizer Version: 1.8.10
2024-02-29 08:13:36,009 - __main__ - DEBUG - config: {'logger_level': 'DEBUG', 'frigate': {'frigate_url': 'http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000', 'camera': ['iegeek', 'cucina'], 'objects': ['car', 'person'], 'watched_plates': ['DT995YH', 'FN681DZ'], 'mqtt_server': '192.168.8.209', 'mqtt_auth': True, 'mqtt_username': 'mosquitto', 'mqtt_password': 'Martina;10012011', 'main_topic': 'frigate', 'return_topic': 'plate_recognizer', 'min_score': 0.8, 'fuzzy_match': 0.6, 'always_save_snapshot': True, 'save_snapshots': True, 'draw_box': False, 'frigate_plus': False}, 'code_project': {'api_url': 'http://192.168.8.209:32168/v1/image/alpr'}}
2024-02-29 08:13:36,009 - __main__ - INFO - Using CodeProject.AI API
2024-02-29 08:13:36,009 - __main__ - INFO - Starting MQTT client. Connecting to: 192.168.8.209
2024-02-29 08:13:36,010 - __main__ - INFO - MQTT Connected
2024-02-29 08:16:34,879 - __main__ - DEBUG - Skipping first message
2024-02-29 08:16:39,881 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190994.64374, 'snapshot': {'frame_time': 1709190994.64374, 'box': [1042, 242, 1917, 1067], 'area': 721875, 'region': [964, 124, 1920, 1080], 'score': 0.7265625, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.70703125, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.7265625, 'box': [1042, 242, 1917, 1067], 'area': 721875, 'ratio': 1.0606060606060606, 'region': [964, 124, 1920, 1080], 'stationary': False, 'motionless_count': 3, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190999.73126, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.734375, 'box': [917, 136, 1761, 755], 'area': 522436, 'ratio': 1.3634894991922455, 'region': [833, 0, 1825, 992], 'stationary': False, 'motionless_count': 19, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}
2024-02-29 08:16:39,883 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True
2024-02-29 08:16:39,883 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg
2024-02-29 08:16:39,891 - __main__ - ERROR - Error getting snapshot: 404
2024-02-29 08:16:46,285 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190999.73126, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.734375, 'box': [917, 136, 1761, 755], 'area': 522436, 'ratio': 1.3634894991922455, 'region': [833, 0, 1825, 992], 'stationary': False, 'motionless_count': 19, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191006.042506, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.71484375, 'box': [909, 139, 1734, 745], 'area': 499950, 'ratio': 1.3613861386138615, 'region': [833, 0, 1817, 984], 'stationary': True, 'motionless_count': 51, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}
2024-02-29 08:16:46,287 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True
2024-02-29 08:16:46,287 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg
2024-02-29 08:16:46,293 - __main__ - ERROR - Error getting snapshot: 404
2024-02-29 08:16:47,511 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191006.042506, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.71484375, 'box': [909, 139, 1734, 745], 'area': 499950, 'ratio': 1.3613861386138615, 'region': [833, 0, 1817, 984], 'stationary': True, 'motionless_count': 51, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191007.239496, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.83203125, 'box': [924, 166, 1604, 644], 'area': 325040, 'ratio': 1.4225941422594142, 'region': [236, 0, 1920, 1684], 'stationary': False, 'motionless_count': 0, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}
2024-02-29 08:16:47,512 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True
2024-02-29 08:16:47,512 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg
2024-02-29 08:16:47,523 - __main__ - ERROR - Error getting snapshot: 404
2024-02-29 08:16:57,806 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191007.239496, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.83203125, 'box': [924, 166, 1604, 644], 'area': 325040, 'ratio': 1.4225941422594142, 'region': [236, 0, 1920, 1684], 'stationary': False, 'motionless_count': 0, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191011.657149, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.787109375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': 1709191017.041694, 'score': 0.6953125, 'box': [775, 99, 1077, 266], 'area': 50434, 'ratio': 1.8083832335329342, 'region': [576, 0, 1920, 1344], 'stationary': False, 'motionless_count': 3, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'end'}
2024-02-29 08:16:57,807 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True
2024-02-29 08:16:57,807 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg
2024-02-29 08:16:57,812 - __main__ - ERROR - Error getting snapshot: 404

blakdog1978 avatar Feb 29 '24 07:02 blakdog1978

This is my log how do I fix this error


- Time: 2024-02-29 08:13:36.009

2024-02-29 08:13:36,009 - __main__ - INFO - Python Version: 3.12.2 (main, Feb 10 2024, 12:07:07) [GCC 13.2.1 20231014]

2024-02-29 08:13:36,009 - __main__ - INFO - Frigate Plate Recognizer Version: 1.8.10

2024-02-29 08:13:36,009 - __main__ - DEBUG - config: {'logger_level': 'DEBUG', 'frigate': {'frigate_url': 'http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000', 'camera': ['iegeek', 'cucina'], 'objects': ['car', 'person'], 'watched_plates': ['DT995YH', 'FN681DZ'], 'mqtt_server': '192.168.8.209', 'mqtt_auth': True, 'mqtt_username': 'mosquitto', 'mqtt_password': 'Martina;10012011', 'main_topic': 'frigate', 'return_topic': 'plate_recognizer', 'min_score': 0.8, 'fuzzy_match': 0.6, 'always_save_snapshot': True, 'save_snapshots': True, 'draw_box': False, 'frigate_plus': False}, 'code_project': {'api_url': 'http://192.168.8.209:32168/v1/image/alpr'}}

2024-02-29 08:13:36,009 - __main__ - INFO - Using CodeProject.AI API

2024-02-29 08:13:36,009 - __main__ - INFO - Starting MQTT client. Connecting to: 192.168.8.209

2024-02-29 08:13:36,010 - __main__ - INFO - MQTT Connected

2024-02-29 08:16:34,879 - __main__ - DEBUG - Skipping first message

2024-02-29 08:16:39,881 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190994.64374, 'snapshot': {'frame_time': 1709190994.64374, 'box': [1042, 242, 1917, 1067], 'area': 721875, 'region': [964, 124, 1920, 1080], 'score': 0.7265625, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.70703125, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.7265625, 'box': [1042, 242, 1917, 1067], 'area': 721875, 'ratio': 1.0606060606060606, 'region': [964, 124, 1920, 1080], 'stationary': False, 'motionless_count': 3, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190999.73126, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.734375, 'box': [917, 136, 1761, 755], 'area': 522436, 'ratio': 1.3634894991922455, 'region': [833, 0, 1825, 992], 'stationary': False, 'motionless_count': 19, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}

2024-02-29 08:16:39,883 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True

2024-02-29 08:16:39,883 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg

2024-02-29 08:16:39,891 - __main__ - ERROR - Error getting snapshot: 404

2024-02-29 08:16:46,285 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709190999.73126, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.734375, 'box': [917, 136, 1761, 755], 'area': 522436, 'ratio': 1.3634894991922455, 'region': [833, 0, 1825, 992], 'stationary': False, 'motionless_count': 19, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191006.042506, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.71484375, 'box': [909, 139, 1734, 745], 'area': 499950, 'ratio': 1.3613861386138615, 'region': [833, 0, 1817, 984], 'stationary': True, 'motionless_count': 51, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}

2024-02-29 08:16:46,287 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True

2024-02-29 08:16:46,287 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg

2024-02-29 08:16:46,293 - __main__ - ERROR - Error getting snapshot: 404

2024-02-29 08:16:47,511 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191006.042506, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.71484375, 'box': [909, 139, 1734, 745], 'area': 499950, 'ratio': 1.3613861386138615, 'region': [833, 0, 1817, 984], 'stationary': True, 'motionless_count': 51, 'position_changes': 1, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191007.239496, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.83203125, 'box': [924, 166, 1604, 644], 'area': 325040, 'ratio': 1.4225941422594142, 'region': [236, 0, 1920, 1684], 'stationary': False, 'motionless_count': 0, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'update'}

2024-02-29 08:16:47,512 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True

2024-02-29 08:16:47,512 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg

2024-02-29 08:16:47,523 - __main__ - ERROR - Error getting snapshot: 404

2024-02-29 08:16:57,806 - __main__ - DEBUG - mqtt message: {'before': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191007.239496, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.771484375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': None, 'score': 0.83203125, 'box': [924, 166, 1604, 644], 'area': 325040, 'ratio': 1.4225941422594142, 'region': [236, 0, 1920, 1684], 'stationary': False, 'motionless_count': 0, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'after': {'id': '1709190993.84333-malcn5', 'camera': 'iegeek', 'frame_time': 1709191011.657149, 'snapshot': {'frame_time': 1709190996.647101, 'box': [916, 161, 1739, 765], 'area': 497092, 'region': [124, 0, 1920, 1796], 'score': 0.84375, 'attributes': []}, 'label': 'car', 'sub_label': None, 'top_score': 0.787109375, 'false_positive': False, 'start_time': 1709190993.84333, 'end_time': 1709191017.041694, 'score': 0.6953125, 'box': [775, 99, 1077, 266], 'area': 50434, 'ratio': 1.8083832335329342, 'region': [576, 0, 1920, 1344], 'stationary': False, 'motionless_count': 3, 'position_changes': 2, 'current_zones': [], 'entered_zones': [], 'has_clip': True, 'has_snapshot': True, 'attributes': {}, 'current_attributes': []}, 'type': 'end'}

2024-02-29 08:16:57,807 - __main__ - DEBUG - Getting snapshot for event: 1709190993.84333-malcn5, Crop: True

2024-02-29 08:16:57,807 - __main__ - DEBUG - event URL: http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000/api/events/1709190993.84333-malcn5/snapshot.jpg

2024-02-29 08:16:57,812 - __main__ - ERROR - Error getting snapshot: 404

Your frigate url is wrong. ccab4aaf_frigate-beta:5000 shouldn't be there.

http://192.168.8.209:8123/ccab4aaf_frigate-beta:5000

kyle4269 avatar Feb 29 '24 12:02 kyle4269

using that address in double take works... I'm using frigata as an addon in Hassioos...

blakdog1978 avatar Feb 29 '24 15:02 blakdog1978

using that address in double take works...

I'm using frigata as an addon in Hassioos...

192.168.8.209:8123 is where home assistant is running correct? If so the frigate_url needs to be the address frigate is running on.

kyle4269 avatar Feb 29 '24 15:02 kyle4269

Could this be the same as when configuring the add-on? http://ccab4aaf-frigate-beta:5000

blakdog1978 avatar Feb 29 '24 15:02 blakdog1978

Could this be the same as when configuring the add-on?

http://ccab4aaf-frigate-beta:5000

If you can access frigate from that url. Yes. Use that in frigate_url

kyle4269 avatar Feb 29 '24 15:02 kyle4269

To view the frigate's dashboard, this is the address http://192.168.8.209:8123/ccab4aaf_frigate-beta/ingress

blakdog1978 avatar Feb 29 '24 16:02 blakdog1978

OK this worked http://ccab4aaf-frigate-beta:5000/ I'm using CodeProject.AI Server with active license plate detection module and YOLOv5 6.2 running, I don't have frigate plus, It seems to work, it saves the snapshots for me but even if you see the license plate in the snapshot it doesn't recognize it

blakdog1978 avatar Mar 01 '24 07:03 blakdog1978