原创 利用雙目視覺進行三維重建
三維重建的方法介紹
原创 leetcode 128 python
class Solution: def longestConsecutive(self, nums: List[int]) -> int: if not nums: return 0
原创 拼多多算法筆試2020
https://www.nowcoder.com/test/question/4efe0a1953114c4ea5cdec4cddbbfa88?pid=23354036&tid=33813424 import math if
原创 xcode配置最新版opencv
關於下面這個部分的修改,無論試了網上所有的方法都報錯,這是因爲在include後面還有個opencv4文件夾,應該改爲下面的路徑:
原创 python+opencv中imread函數第二個參數的含義
= 0: 灰度圖 0:三通道彩色圖 <0:原圖,帶alpha通道
原创 subline修改字體大小和空格問題
使用python的時候有時會碰到和identation相關的問題,很多時候是由於混用了空格和製表符。 在sublime中顯示空格和製表符後,便可以輕鬆修改。 點擊: preferences > settings: 在右面輸入: {
原创 hive sql之lateral view explode用法
這篇文章講的特別好
原创 \r:command not found
今天在xshell下運行.sh的腳本,裏面寫的是hive語句,但是報\r:command not find 的錯誤,查了一下說是linux下不能認出win的換行符,所以在vi界面下輸入::set fileformat=unix即可
原创 k-means算法實現python
import numpy as np import matplotlib.pyplot as plt # 兩點距離 def distance(e1, e2): return np.sqrt((e1[0]-e2[0])**
原创 利用request庫請求api
import requests def re(): url = 'http://shuyantech.com/api/entitylinking/cutsegment?q=' word = '打球的李娜
原创 深入理解計算機系統
leal和mov的用法: https://blog.csdn.net/farmwang/article/details/75103220 xorl的用法: https://blog.csdn.net/linuxheik/artic
原创 leetcode 198 python
題目要求: https://leetcode-cn.com/problems/house-robber/ class Solution: def rob(self, nums: List[int]) -> int: