Skip to content

Instantly share code, notes, and snippets.

View YoshiRi's full-sized avatar

Yoshi Ri YoshiRi

  • Shinagawa, Tokyo, Japan
View GitHub Profile
@YoshiRi
YoshiRi / region_capture.py
Created October 16, 2025 02:36
Python ros2 screen capture node
import rclpy
from rclpy.node import Node
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
import cv2
import mss
import numpy as np
# マウス選択用の状態を保持する辞書
selection_state = {
@YoshiRi
YoshiRi / patent_parser.py
Created July 29, 2025 10:29
Snippet for patent parsing with jupyter notebook
# WidgetでGooglePatentをParseする
from googlepatentscraper.document import Document
from google.colab import widgets
import ipywidgets as widgets
from IPython.display import display, HTML, clear_output
url_box = widgets.Text(
value='',
placeholder='Google PatentのURLを入力してください',
description='URL:',
@YoshiRi
YoshiRi / pc_analisys.ipynb
Created August 8, 2024 07:36
PointcloudStatsAnalizer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YoshiRi
YoshiRi / PublishDetectedObjects
Created January 18, 2023 07:54
python mock to publish dummy detected objects
#!/usr/bin/env /usr/bin/python3
# -*- coding: utf-8 -*-
# -----------------------------------------------
# ROS2 Node 送信側
#
# The MIT License (MIT)
# Copyright (C) 2022 yoshi ri.
# -----------------------------------------------
@YoshiRi
YoshiRi / gather_discussion.py
Last active September 7, 2022 07:20
Gather discussions with Graph QL API (Need access token and gh cli)
"""Gather Discussions in Github Repo with GraphQL
Returns:
CSV output file
"""
from ast import parse
import subprocess
import json
@YoshiRi
YoshiRi / README.md
Last active June 14, 2022 13:17
Autoware Installation

Autowareのインストールテスト

検証環境

2022/6/13

  • Windows10
    • Intel Core i7 7th gen
    • メモリ16GB
# -*- coding: utf-8 -*-
# 年収から所得税を計算する
import numpy as np
import sys
# bollowed from : https://qiita.com/hideorder/items/a878a794418ef99b7f19
def CalcTax(income):
@YoshiRi
YoshiRi / main.py
Created July 23, 2021 10:45
Check zoom rate
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"import cv2\n",
"import matplotlib.pyplot as plt\n",
@YoshiRi
YoshiRi / result02.csv
Last active June 3, 2021 19:12
KatabamiData
Id Answer
IMG_4973.JPG 19
IMG_4974.JPG 11
IMG_4976.JPG 20
IMG_4981.JPG 4
IMG_4998.JPG 2
IMG_4999.JPG 0
IMG_5005.JPG 0
IMG_5017.JPG 3
IMG_5021.JPG 10
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.