Commandline: apt install -y python3-picamera2 libcamera-apps
Commandline: apt install vim
Commandline: apt install -y python3-opencv
Commandline: apt install netcat-openbsd
Commandline: apt install libgtk2.0-dev libcanberra-gtk-module
Commandline: apt install libcap-dev
Commandline: apt install -y libcamera-dev libcamera-apps python3-libcamera
Commandline: apt install fonts-nanum fonts-noto-cjk
Commandline: apt install wmctrl xdotool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- A) core ํญ ์ค๋น (extract๊ฐ ํ์คํ ๋ฆฌ๋ฅผ ํ์๋ก ํจ) | |
| export HOMEBREW_NO_INSTALL_FROM_API=1 | |
| brew tap homebrew/core || true | |
| git -C "$(brew --repo homebrew/core)" fetch --unshallow --tags 2>/dev/null || \ | |
| git -C "$(brew --repo homebrew/core)" fetch --tags | |
| # --- B) ๋ด ๋ก์ปฌ ํญ ๋ง๋ค๊ธฐ | |
| brew tap-new $USER/local-tap | |
| # --- C) opencv 4.11 ์ถ์ถ(4.11.1 ์ฐ์ , ์๋๋ฉด 4.11.0) ๋ฐ ์ค์น |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffplay -probesize 32 -vf "rotate=PI" rtsp://admin:EdgePTZ%[email protected]/Stream/Live/101?transportmode=unicast&profile=ONFProfileToken_101 | |
| libcamera-hello -t 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xml.etree.ElementTree as ET | |
| import csv | |
| from datetime import datetime | |
| def export_body_mass_to_csv(xml_file, csv_file): | |
| context = ET.iterparse(xml_file, events=("end",)) | |
| with open(csv_file, 'w', newline='', encoding='utf-8') as f: | |
| writer = csv.writer(f) | |
| writer.writerow(['Date', 'Weight']) |
MotionScoreServer๋ C++๋ก ์์ฑ๋ ๊ฐ๋จํ HTTP ์๋ฒ๋ก, ์ค๋ฒ๋ ์ด ์ ์ด์ ์ด๋ ์์/์ข ๋ฃ ์์ฒญ์ ์ฒ๋ฆฌํฉ๋๋ค.
๋น๋๋ ์คํ ํ์ผ์ธ MotionScoreServer๋ฅผ ์คํํ๋ฉด ์๋ฒ๊ฐ ์๋์ผ๋ก ํฌํธ 8080์์ ์์๋ฉ๋๋ค.
./MotionScoreServer- First item
Set angle of MEMS mirrors. It returns when MEMS mirror finishes targeting. This method is synchronous.
- Return value:
truewhen setting angle successfully,falsewhen timeout occured or otherwise. x: Radian angle in x axis.y: Radian angle in y axis.timeout: timeout in microseconds.
Return current angle of MEMS mirrors. This method synchronous.
- Return value:
truewhen getting angle successfully,falseotherwise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import numpy as np | |
| a = np.zeros((1080 * 4, 1920, 3)) | |
| last_time = time.time() * 1000 | |
| for i in range(1000) : | |
| np.save('{}.npy'.format(i), a) | |
| now = time.time() * 1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auto node = ClippingRectangleNode::create(Rect(-100, -100, 200, 200)); | |
| auto sprite = Sprite::create("HelloWorld.png"); | |
| node->addChild(sprite); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "title":"Shawshank Redemption", | |
| "category_id":1, | |
| "synopsis":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venom", | |
| "thumbnail_image_url":"http://lge.com/sdk/shawshank_redemption_thumbnail.jpg", | |
| "full_image_url":"http://lge.com/sdk/shawshank_redemption_full.jpg", | |
| "video_url":"http://lge.com/sdk/shawshank_redemption_video.mp4" | |
| }, | |
| { |
NewerOlder