jimmyhhua / opencv_tutorials Goto Github PK
View Code? Open in Web Editor NEWOpencv4.0 with python (English&中文), and will keep the update ! 👊
Home Page: https://zhuanlan.zhihu.com/c_1094607699664277504
Opencv4.0 with python (English&中文), and will keep the update ! 👊
Home Page: https://zhuanlan.zhihu.com/c_1094607699664277504
想知道楼主怎么解决的sift等算法在一些opencv高版本中无法使用的问题
应为‘’‘gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)’’‘
我在opencv官方文档里面找到的代码是
def hog(img):
gx = cv.Sobel(img, cv.CV_32F, 1, 0)
gy = cv.Sobel(img, cv.CV_32F, 0, 1)
mag, ang = cv.cartToPolar(gx, gy)
bins = np.int32(bin_n*ang/(2*np.pi)) # quantizing binvalues in (0...16)
bin_cells = bins[:10,:10], bins[10:,:10], bins[:10,10:], bins[10:,10:]
mag_cells = mag[:10,:10], mag[10:,:10], mag[:10,10:], mag[10:,10:]
hists = [np.bincount(b.ravel(), m.ravel(), bin_n) for b, m in zip(bin_cells, mag_cells)]
hist = np.hstack(hists) # hist is a 64 bit vector
return hist
deskewed = [list(map(deskew,row)) for row in train_cells]
hogdata = [list(map(hog,row)) for row in deskewed]
trainData = np.float32(hogdata).reshape(-1,64)
responses = np.repeat(np.arange(10),250)[:,np.newaxis]
opencv_tutorials/python/code_104/opencv_104.py
Lines 6 to 18 in d1dacf7
The code012 lost the "test.avi" file
Hi everyone,
I would love to contribute to this project, however I am not sure if maintainers are still active here ... 🤔
Would appreciate your answer.
如题
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.