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 / 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.
@YoshiRi
YoshiRi / put_japanese_to_cvimg.py
Created January 2, 2021 15:58
日本語の文字をOpenCVの画像ファイルに書き込む関数(PIL経由)
import pyocr
import cv2
import numpy as np
import pyocr.builders
import matplotlib.pyplot as plt
from PIL import Image, ImageDraw, ImageFont
## 参考:https://qiita.com/mo256man/items/82da5138eeacc420499d
def cv2_putJPText(img, text, org, fontFace='C:\Windows\Fonts\HGRPP1.TTC', fontScale=10, color=(255,0,0), mode=0):
"""
@YoshiRi
YoshiRi / spl.traineddata
Last active January 2, 2021 13:46
Splatoon2のカタカナを学習したフォントファイル。(Tesseract用)spl.traineddataが数字専用,spl2.traineddataがカタカナ専用