科学网

 找回密码
  注册
matplotlib scatter画空心彩色marker
袁野 2022-6-17 14:10
importnumpyasnp importmatplotlib.pyplotasplt frommatplotlibimportcm importmatplotlibasmpl defplot01(): dat0=np.loadtxt('data01_forplt.txt',delimiter=',')   ...
个人分类: note1|2682 次阅读|没有评论
opencv python cv2的cv2.xfeatures2d.SIFT_create()版本问题
袁野 2021-7-30 13:21
使用opencv的sift特征描述子时,一般文都使用一下函数。 sift = cv2.xfeatures2d.SIFT_create() 新版本cv2无法使用,通常指定到 opencv-python==3.4.2 opencv-contrib-python==3.4.2 而不能使用最新的版本。 最近实测,4.5.3版本中,使用 sift=cv2.SIFT_create()函数代替上面的那个 ...
6686 次阅读|没有评论
balser相机的python包pypylon设置曝光时间
袁野 2020-6-12 19:23
camera.Open() camera.ExposureTimeRaw.SetValue(1000000) camera.GainRaw.SetValue(150) 相机要先open,否则设置的时候会提示不可写。
个人分类: note1|4764 次阅读|没有评论
某次import numpy的错误
袁野 2020-1-19 11:27
现象: $ python Python 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) on linux2 Type help, copyright, credits or license for more information. import numpy Traceback (most recent call last): File stdin, line 1, in module F ...
7989 次阅读|没有评论
class 在 lmv 时候的 Axes order not recognized
袁野 2015-9-29 18:28
似乎cube的header里,要有个 RESTFREQ= xxxxxx / 即使第三轴用的是速度,完全不用频率。。。 否则会有 E-LMV, Axes order not recognized F-SIC, Segmentation fault 啥的。。。
个人分类: note1|2012 次阅读|没有评论
当greg的plot支持三维数组之后。。。
袁野 2015-9-18 22:45
从163的blog搬运过来一个,试试。。。 . ******************************************************* set box match image 0133p560_ac51-w4-int-3.fits.gdf ! only used to set the limit lim /rg def image a1 0133p560_ac51-w4-int-3.fits.gdf write def image a2 0133p560_ac51-w3-int-3.fits.gdf wr ...
个人分类: note1|2178 次阅读|没有评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-27 03:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部