https://github.com/yuukitoriyama/opencv.js-playground
環境構築なしにOpenCV.jsを試してみるにはこちら(開発中)
https://github.com/yuukitoriyama/opencv.js-playground
opencv opencv-js
Last synced: 2 months ago
JSON representation
環境構築なしにOpenCV.jsを試してみるにはこちら(開発中)
- Host: GitHub
- URL: https://github.com/yuukitoriyama/opencv.js-playground
- Owner: YuukiToriyama
- License: mit
- Created: 2021-05-06T03:56:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-29T19:11:46.000Z (about 5 years ago)
- Last Synced: 2025-06-28T11:17:06.499Z (12 months ago)
- Topics: opencv, opencv-js
- Language: TypeScript
- Homepage: https://yuukitoriyama.github.io/opencv.js-playground/
- Size: 65.5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opencv.js-playground
環境構築なしにOpenCV.jsを試してみるにはこちら(開発中)
## 開発Memo
- 読み込んだ画像のサイズを知りたい場合、`width`,`height`の代わりに`naturalWidth`,`naturalHeight`を用いる必要がある
- widthプロパティは実際に表示されているサイズを返すため
- 画像本来のサイズを知りたい場合は`naturalWidth`,`naturalHeight`を用いる
```javascript
const image_h9a1o13onus = document.getElementById("h9a1o13onus"); // 読み込んだ画像にアクセス
console.log(image_h9a1o13onus.naturalWidth);
```