我在我的应用上使用推送通知.我曾经在推送通知到来时显示通知,如果我发送另一个通知(不清除先前的通知),它会替换新通知.
这是我使用的代码
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
int icon = R.drawable.ic_launcher;
CharSequence tickerText = "New notification Pending";
long time = System.currentTimeMillis();
Notification notification = new Notification(icon, tickerText, time);
notification.flags = Notification.DEFAULT_LIGHTS
| Notification.FLAG_AUTO_CANCEL;
// Context context = getApplicationContext();
CharSequence contentTitle = "Notifications";
CharSequence contentText = newMessage;
Intent notificationIntent = new Intent(this, LoginActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
notificationIntent, 0);
notification.setLatestEventInfo(context, contentTitle, contentText,
contentIntent);
mNotificationManager.notify(1, notification);
Run Code Online (Sandbox Code Playgroud)
但我不想替换通知,我想将其添加为新通知.
目前,我正在开发实时 IRIS 检测应用程序。
我想对从网络摄像头拍摄的帧执行反转操作,如下所示:

我设法得到了这行代码,但这并没有给出上述结果。也许需要更改参数,但我不确定。
CvInvoke.cvThreshold(grayframeright, grayframeright, 160, 255.0, Emgu.CV.CvEnum.THRESH.CV_THRESH_BINARY_INV);
Run Code Online (Sandbox Code Playgroud)