S
S
Sergey Ilyin2019-05-04 20:27:49
Python
Sergey Ilyin, 2019-05-04 20:27:49

How to overcome OpenCV video module error?

There is a project with OpenCV (ball tracking)
In the project, in addition to cv2 (this is ok, it was installed normally via pip3), the video module is used.
When executed:
import video
I get: Tell me what to do? I downloaded OpenCV from the GitHub repository, it is on the hard drive. Why it doesn't import - I don't know (
ModuleNotFoundError: No module named 'video'

Answer the question

In order to leave comments, you need to log in

5 answer(s)
K
Kirill, 2019-05-04
@sunsexsurf

You need to add video.py to your project. It's not a package that you need to install, but a module of it that exists in the same repo.

P
padlyuck, 2017-04-09
@rusline

Show the console application config and specify the exact version of your copy of yii. It would also be nice to specify which skeleton you are using (basic or advanced).

S
Sergey Malovichko, 2017-04-09
@mrSerg161

Manually delete already created tables and repeat the
AND command, the relationship must be added to the already created table, i.e. First apply the second migration

M
Maxim Timofeev, 2017-04-10
@webinar

this is the meaning of migration, so as not to repeat the one that has already been used. If you need to make changes, you need to write a new migration, and not make changes to the used one.

P
Papa, 2017-04-10
Stifflera @PapaStifflera

The m170409_113615_transaction migration tries to create a foreign key for a table that does not exist at the time of the migration (it is created in the m170409_113632_category migration ).
MySQL does not support transactions in DDL, and therefore the creation of all constraints is best done in separate migrations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question