原创 (-215) (scn == 3 || scn == 4) && (depth == 0 || depth == 5) in function cv::cvtColor
出錯誤的代碼: error Traceback (most recent call last) <ipython-input-2-cc1e21e7784e> i
原创 Retrofit2 上傳圖片(服務器端+Android端)
implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.5.0
原创 學習筆記 numpy.nditer
class numpy.nditer(op,flags = None,op_flags = None,op_dtypes = None,order ='K',cast ='safe',op_axes = None,itershape =
原创 python range arange
python中的range 以及numpy包裏面的arange range類型表示不可變的數字序列,通常用於在 循環中循環指定的次數。 class range(start, stop[, step]) #range arange
原创 python 字符串前加u,r,b,f
#字符串前加u "我是含有中文字符組成的字符串。" a = u'李四as12' print(a) a = '李四asd' print(a) #字符串前加r r"\n\n\n\n” # 表示一個普通生字符串 \n\n\n
原创 點擊圖片然後換成另一個圖片
boolean Change = true; one.setOnClickListener(new View.OnClickListener() { @Override public vo
原创 Retrofit2 上傳圖片
implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.5.0
原创 設置ImageView的大小
imageView_menu = (ImageView) findViewById(R.id.imageView_menu); LinearLayout.LayoutParams params = new LinearLayout.L
原创 java.net.MalformedURLException: no protocol
看一下自己訪問的url, 應該是缺少http://的
原创 Android 上傳圖片到服務器,服務器再上傳圖片到ftp圖片服務器
第一步:先從相冊獲取圖片,將圖片轉換爲File ,然後上傳圖片到服務器 public class uploadLicensePicture extends AppCompatActivity { private Button
原创 上傳文件到ftp服務器(服務器端書寫)
@Controller @RequestMapping("uploadmenupicture.do") @ResponseBody public ServerResponse upload(@RequestPar
原创 Android7.0 可以使用的從相冊獲取圖片顯示(這是自己轉載的,發現可以用,所以在此記錄一下,原文地址在最下面)
public class uploadLicensePicture extends AppCompatActivity { private Button getPicture_Button; private Image
原创 Linux 圖片服務器和tomcat服務器
我的tomcat服務器使用的是8080端口 圖片服務器是使用nginx和vsftpd搭建的,使用的是80端口 nginx 的配置文件nginx.conf user (可以訪問文件的用戶名); worker_processes 1
原创 android 獲取網絡上服務器圖片
layout文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/andro
原创 Linux MySQL 添加數據庫,刪除數據庫,將sql文件導入數據庫中
Linux創建數據庫,並且將從Windows的MySQL導出的.sql文件導入到Linux的數據庫中 進入數據庫 查看數據庫 新建數據庫(graduationproject爲數據庫的名字) 查看一下 Windows的MySQL中導