在课程上找不到postImage的设置器/字段

时间:2019-01-22 16:41:25

标签: java android

import cv2
import numpy as np

img=cv2.imread('//home/ze/Downloads/blue.jpg ')

lower = np.array([0,0,204], np.uint8)
upper = np.array([204,255,255], np.uint8)
mask = cv2.inRange(img, lower, upper)

res = cv2.bitwise_and(img, img, mask= mask)  

cv2.imshow('Result', res)

k=cv2.waitkey(5) & 0xFF

if k==27:
    cv2.destroyAllWindows()

我是Android开发的新手,出现以下错误:-

W / ClassMapper:在com.example.newjunk.Model.Post类上找不到postImage的设置程序/字段(字段/设置者区分大小写!)

package com.example.newjunk.Model;

公共类帖子{

W/ClassMapper: No setter/field for postImage found on class com.example.newjunk.Model.Post (fields/setters are case sensitive!)
    No setter/field for postImage found on class com.example.newjunk.Model.Post (fields/setters are case sensitive!)

}

PostAdapter.java

公共类PostAdapter扩展了RecyclerView.Adapter {

private String postid;
private String postimage;
private String description;
private String publisher;

public Post(String postid, String postimage, String description, String publisher) {
    this.postid = postid;
    this.postimage = postimage;
    this.description = description;
    this.publisher = publisher;
}

public Post() {
}

public String getPostid() {
    return postid;
}

public void setPostid(String postid) {
    this.postid = postid;
}

public String getPostimage() {
    return postimage;
}

public void setPostimage(String postimage) {
    this.postimage = postimage;
}

public String getDescription() {
    return description;
}

public void setDescription(String description) {
    this.description = description;
}

public String getPublisher() {
    return publisher;
}

public void setPublisher(String publisher) {
    this.publisher = publisher;
}

0 个答案:

没有答案