Institute of Computer Science
  1. Main page
  2. IT koolidele
ET
Log in

IT koolidele

  • OpenCV sissejuhatus
  • OpenCV paigaldamine
  • Vajalike materjalide allalaadimine
  • Mis on pilt?
  • Pildid
  • Kaamera kasutamine
  • Pilditöötlus
  • Objektide tuvastus
  • Lisa: Panoraam

OpenCV paigaldamine

Kõigepealt veenduge, et teil oleks paigaldatud Thonny Pythoni arenduskeskkond. Kui see ei ole veel paigaldatud, saate selle alla laadida ametlikult Thonny veebisaidilt: https://thonny.org/

Paigaldage OpenCV Pythoni teek. Selleks võite kasutada Thonny sisemist pakihaldurit:

  • Avage Thonny ja valige menüüst Tools > Manage packages.

Attach:thonny_tools.jpg Δ

  • Otsige opencv-python ja klõpsake installimiseks Install nuppu.
  • Oodake, kuni teek on paigaldatud (see võib võtta mõni minut).

Kontrollige, kas OpenCV on korralikult paigaldatud. Selleks looge uus Pythoni fail ja sisestage järgmine kood:

import cv2
# pange tähele, et "version" ees ja taga on kaks alakriipsu järjest!
print(cv2.__version__)

Salvestage fail ja käivitage see (F5 klahviga). Kui kõik on korras, peaks tulemuseks olema OpenCV versiooninumber.

Kas Thonny kuvas versiooninumbri terminali?

  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment