반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- error
- ros
- 오블완
- CUDA
- 맛집
- humble
- 분당맛집
- 딥러닝
- Android
- 터미널
- pytorch
- ChatGPT
- socketio
- CLASS
- 티스토리챌린지
- ROS2
- GPT
- linux
- tensorflow
- 스팸
- TTS
- openAI
- no space left on device
- 판교
- python
- Torch
- opencv
- string
- timm
- ubuntu
Archives
- Today
- Total
목록Line (1)
RoBoLoG
[Python] LINE Notify를 사용하여 LINE에 사진 메시지 전송
로봇에서 찍은 사진을 LINE 메신저로 보내고 싶어져서 만들어 보았습니다. 아래는 파이썬에서 LINE Notify를 사용하여 이미지를 전송하는 예시 코드입니다. import requests # LINE Notify 액세스 토큰 TOKEN = "" # 이미지 파일 경로 image_path = "" # LINE Notify API 엔드포인트 URL url = "https://notify-api.line.me/api/notify" # 이미지 파일 열기 with open(image_path, 'rb') as file: # POST 요청 보내기 response = requests.post( url, headers={'Authorization': 'Bearer ' + TOKEN}, files={'imageFile'..
Study/Python
2023. 6. 21. 18:22