jasmcaus / caer Goto Github PK
View Code? Open in Web Editor NEWHigh-performance Vision library in Python. Scale your research, not boilerplate.
Home Page: https://caer.readthedocs.io
License: MIT License
High-performance Vision library in Python. Scale your research, not boilerplate.
Home Page: https://caer.readthedocs.io
License: MIT License
import caer
ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import caer
~/QWE/ASD/ZXC/FGH/VBN/caer/init.py in
70
71 # Preprocessing
---> 72 from .preprocess import (
73 preprocess_from_dir,
74 sep_train,
~/QWE/ASD/ZXC/FGH/VBN/caer/preprocess.py in
16
17 from .utilities import get_classes_from_dir, to_array
---> 18 from .io import imread
19 from .preprocessing import MeanProcess
20 from ._internal import _check_target_size, _check_mean_sub_values
~/QWE/ASD/ZXC/FGH/VBN/caer/io.py in
11
12
---> 13 import cv2 as cv
14 from urllib.request import urlopen
15
~/QWE/ASD/ZXC/FGH/VBN/cv2/init.py in
3 import sys
4
----> 5 from .cv2 import *
6 from .data import *
7
ModuleNotFoundError: No module named 'cv2.cv2'
I am learning OpenCV and at first, I saw the youtube video from freecodecamp OpenCv Course by Jason Dzousa In the last video the line:
train = caer.preprocess_from_dir(char_path, characters, IMG_SIZE, channels, isShuffle=True)
throws the error:
ValueError: verbose flag must be either 1 (display progress to terminal) or 0 otherwise
I can't understand why this error comes.
There are quite a few functions in the repo that need to be annotated.
This issue will be left open for external contributions. If you wish to contribute, please submit a PR for the same!
Thanks!
-J
Hey sorry to bother again. I upgraded caer to 2.0.1
I proceeded but again
from tensorflow.keras.utils import to_categorical
--> featureSet = caer.normalize(featureSet)
labels = to_categorical(labels, len(characters))
the second line throws an error.
AttributeError: module 'caer' has no attribute 'normalize'
Title ^
Open for contributions :)
-J
Add support for the LUV colorspace in caer.color
Open for contributions :)
Hey I noticed that you all still have the copyright for the software set to 2020. Would it be okay for me to go into the codebase and update that for 2021 when you've confirmed that the copyright has been updated, assuming you haven't already done that yet.
Hi,
I am trying out your code for face recognition using Tensorflow's implementation of Keras. I am having an issue when creating the training data, with the following line:
"train = caer.preprocess_from_dir(...)"
As datasets, I have several folders with 10-16 images in each folder. And in the previous lines of code everything worked fine but when I am trying to train the images, it is processing only 3 images of the first folder (which contains 16 images). It is processing the last 3 images of the first folder, then it crashes.
The error is as follows:
File "C:\Python38\lib\site-packages\caer\preprocess.py", line 132, in preprocess_from_dir for image_path in img_list:
TypeError: 'NoneType' object is not iterable
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.