Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 24th, 2018
100
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
```
# coding:utf-8
import cv2
img = cv2.imread(p)
img.dtype = 'uint8'
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
img.tofile(p + '.bin')
cv2.imwrite(p + '.jpg', img)
```
opencv读取图片采用的顺序是BGR
Add Comment
Please,
Sign In
to add comment
Public Pastes
Crypto Exchange Binance Secures Full VASP Lic...
PHP | 3 min ago | 0.08 KB
Untitled
C# | 10 min ago | 22.13 KB
Untitled
PHP | 16 min ago | 0.97 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 55 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 59 min ago | 0.38 KB
cloneRecord
JavaScript | 1 hour ago | 0.83 KB
Untitled
PHP | 1 hour ago | 5.65 KB
Soccer Prediction Betting Tips 19042024
PHP | 2 hours ago | 0.07 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!