Sufficiency Economy
Group Blog
 
All blogs
 
python : ทดลองใช้ OpenCV

OpenCV เป็น libary ที่มีFunction สำหรับงาน realtime computer vision ซึ่ง support python ด้วย งั้นเริ่มด้วยแสดงภาพละกัน ก็เขียนประมาณนี้
run python
>>>
แล้วเขียน code ประมาณนี้
import cv เพื่อเรียก Libary OpenCV
im = cv.LoadImage("robot.jpg") ต้องมีรูปอยู่ด้วยนะ
cv.ShowImage("Show Picture", im) แสดงรูปที่ load มา จะได้ windows สีเทาๆ ตอนแรกงงอยู่นาน เหมือนมัน update ภาพตลอดเวลาเลยเห็นเป็นสีเทา จึงต้องใส่คำสั่ง
cv.WaitKey() เพื่อรอการกด key ก็จะได้ผลตามรูป








Create Date : 13 พฤษภาคม 2555
Last Update : 13 พฤษภาคม 2555 8:32:39 น. 1 comments
Counter : 1397 Pageviews.

 
แวะมาเยี่ยมในวันหยุด...สวัสดีครับ


โดย: **mp5** วันที่: 13 พฤษภาคม 2555 เวลา:13:51:56 น.  

ชื่อ : * blog นี้ comment ได้เฉพาะสมาชิก
Comment :
  *ส่วน comment ไม่สามารถใช้ javascript และ style sheet
 

wink99_th
Location :
พิษณุโลก Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 8 คน [?]




New Comments
Friends' blogs
[Add wink99_th's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.