Ask Your Question

littletom's profile - activity

2020-04-27 18:37:00 -0600 received badge  Popular Question (source)
2019-11-02 08:05:14 -0600 received badge  Popular Question (source)
2019-03-06 22:27:50 -0600 received badge  Famous Question (source)
2018-10-29 09:28:03 -0600 received badge  Famous Question (source)
2018-06-07 01:55:13 -0600 received badge  Notable Question (source)
2018-05-04 10:22:59 -0600 received badge  Notable Question (source)
2018-04-27 01:02:20 -0600 received badge  Popular Question (source)
2017-12-30 15:09:05 -0600 received badge  Popular Question (source)
2016-09-20 10:48:41 -0600 marked best answer load the existing svm with python

How can I load the existing svm in opencv3 by python?

2016-09-20 10:48:38 -0600 received badge  Student (source)
2016-09-08 07:26:46 -0600 commented question an urgent question about PCA on image!

yeah,I'm trying to extract the main information in order to reduce the noise and meaningless information in the pictures.As you told,if I can't do so or there are other ways to extract the main information using PCA?

2016-09-08 06:56:36 -0600 commented question an urgent question about PCA on image!

I've trained an eigenvector matrix from 100 pictures through PCA algorithm.Then I tried to recover one of these 100 images using the matrix I gained,and succeed. It,however,was failure when I tried to recover those images other than in that 100 training samples.That is,information loss greatly.BTW,recovering in there means projecting a picture and then back project it.Please let me know if you are clear this time so I can edit the question again.

2016-09-07 03:31:51 -0600 asked a question an urgent question about PCA on image!

I've trained an eigenvector matrix from 100 pictures through PCA algorithm.Then I tried to recover one of these 100 images using the matrix I gained,and succeed. It,however,was failure when I tried to recover those images other than in that 100 training samples.That is,information loss greatly.BTW,recovering in there means projecting a picture and then back project it.

2016-09-04 02:30:34 -0600 commented question why dose the maxComponent argument in function cv.PCACompute doesn't work???

I'd like to visualize a image using different amount of eigenvectors,that is, I need to know what it looks like if the image have more or less features.

2016-09-03 03:51:19 -0600 commented question why dose the maxComponent argument in function cv.PCACompute doesn't work???

well,the output image doesn't change even if I've made an ajustment on the argument maxComponents. I'm sorry about that confusing anyone,and I am totally a greenhand in this filed.

2016-09-03 03:37:29 -0600 asked a question why dose the maxComponent argument in function cv.PCACompute doesn't work???
import cv2 as cv
import numpy as np

img=cv.imread(r'T/s.jpg',cv.IMREAD_GRAYSCALE)
img=cv.resize(img,(512,512))
tdata=img.flatten()
tdata=tdata.reshape(512*512,1)
tdata=tdata-tdata.mean()
tdata=tdata/np.sqrt(tdata.var())
mean=np.array([])
mean,eigenvectors=cv.PCACompute(tdata,mean,cv.PCA_DATA_AS_COL,
                                maxComponents=9)
projectedVectors=cv.PCAProject(tdata,mean,eigenvectors)
result=cv.PCABackProject(tdata,mean,eigenvectors)
result=result.reshape(512,512)
cv.imshow('show',img)
cv.waitKey()
cv.imshow('show',result)
cv.waitKey()
cv.destroyAllWindows()
2016-09-03 03:23:02 -0600 asked a question python functions' documentation

for example : PCACompute(data, mean[, eigenvectors[, maxComponents]]) in this documentation,what does these square brakets mean???

2016-09-03 02:41:31 -0600 received badge  Enthusiast
2016-09-03 02:41:31 -0600 received badge  Enthusiast
2016-09-02 21:38:34 -0600 commented answer load the existing svm with python

maybe you need a master,for example,the guy who'd already answered this question.

2016-09-02 01:30:44 -0600 commented answer How to save multiple images in a "for" loop?

Although I've figured it out,thank you.

2016-09-02 00:39:11 -0600 asked a question How to save multiple images in a "for" loop?

I need to save a lot of pictures in a "for" loop.I use python,imported opencv3.0.0 library already.

2016-08-26 01:05:34 -0600 commented answer How to read a series of images with python using OpenCV?

It works!You're amazing!

2016-08-26 01:04:39 -0600 received badge  Supporter (source)
2016-08-26 00:11:11 -0600 commented question How to read a series of images with python using OpenCV?

I mean reading many images at the same time so that I don't need to read them in one by one.Since I have to process these pictures using the same algorithm.

2016-08-25 23:07:01 -0600 asked a question How to read a series of images with python using OpenCV?

I don't know the way to load multiple images with python using OpenCV's API

2016-08-20 03:08:36 -0600 commented question how can I learn opencv3's API with python

look! guys,you are welcome!

2016-08-19 23:08:13 -0600 asked a question how can I learn opencv3's API with python

as the title

2016-08-19 23:07:27 -0600 asked a question how can I learn opencv3's API with python

as the title

2016-08-19 23:05:13 -0600 commented question how should I use the function orb.detectAndCompute() correctly

well,it is not.

2016-08-19 11:58:03 -0600 asked a question how should I use the function orb.detectAndCompute() correctly
import cv2 as cv

imgpath='testImg.jpg'
img=cv.imread(imgpath,cv.IMREAD_GRAYSCALE)

orb=cv.ORB_create()
keypoints,descriptor=orb.detectAndCompute(img,None)

error: (-215) The data should normally be NULL! in function NumpyAllocator::allocate