Question

In: Computer Science

(a) An expert system developer lost a court case about a newly deployed system. The general...

(a) An expert system developer lost a court case about a newly deployed system. The general issue was based on the fact that the new system could not be differentiated from the old systems even though the new system functioned normally. In ten points, explain the specific issues about the system that the developer likely failed to present at the compiling stage.

(b) The following code lines represent a simple expert system about a cancer image detection under computer vision. You are required to identify and explain the effect of the different command lines;
4
import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while(1):
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
lower_red = np.array([0,0,0])
upper_red = np.array([255,255,180])
mask = cv2.inRange(hsv, lower_red, upper_red)
res = cv2.bitwise_and(frame,frame, mask= mask)
cv2.imshow('frame',frame)
cv2.imshow('mask',mask)
cv2.imshow('res',res)
k = cv2.waitKey(5) & 0xFF
if k == 27:
break
cv2.destroyAllWindows()
cap.release()

Solutions

Expert Solution

import cv2
import numpy as np
cap = cv2.VideoCapture(0)   # your webcam as video source  0 param for webcam
while(1):
    _, frame = cap.read()    # reads a single frame in frame variable
    hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)   # convert the BGR(blue,Green,Red) to hsv(hue,saturation , value) chennal
    lower_red = np.array([0,0,0])                 # define a lower limit 
    upper_red = np.array([255,255,100])           # define a upper limit
    mask = cv2.inRange(hsv, lower_red, upper_red)  # mask[i][j][k] == 1 if the value of color red in  0 <=frame[i][j][k] <= 180 else mask[i][j][k] = 0; just fiter red 

    # take the bitwise_and of the frame with itself. and output will be res[i][j][k]  = frame[i][j][k] & frame[i][j][k] if mask[i][j][k] != 0
    # that means the pixels where red color is between 0 and 180 are captured and rest are made 0 means black. 
    res = cv2.bitwise_and(frame,frame, mask= mask)
    cv2.imshow('frame',frame)  #showing the "frame" frame
    cv2.imshow('mask',mask)    # showing the "mask" frame
    cv2.imshow('res',res)      # showing the "res" frame
    k = cv2.waitKey(5) & 0xFF  # caputre any keypress
    if k == 27:                # if keypress is Esc then break;
        break
cv2.destroyAllWindows()        # destroy all windows for frames
cap.release()                  # release the resources 

Related Solutions

You have been hired as an expert witness in a court case involving an automobile accident....
You have been hired as an expert witness in a court case involving an automobile accident. The accident involved car A of mass 1430 kg which crashed into stationary car B of mass 1160 kg .The driver of car A applied his brakes 15 m before he skidded and crashed into car B. After the collision, car A slid 18 m while car B slid 30 m.The coefficient of kinetic friction between the locked wheels and the road was measured...
You have been hired as an expert witness in a court case involving an automobile accident....
You have been hired as an expert witness in a court case involving an automobile accident. The accident involved a car of mass 1870 kg (car A) which approached a stationary car of mass 1020 kg (car B). The driver of car A applied his brakes 10 m before he crashed into car B. After the collision, car A slid 17 m while car B slid 30 m. The coefficient of kinetic friction between the locked wheels and the road...
the westboro baptist church supreme court case was about
the westboro baptist church supreme court case was about
What are three general approaches to obtaining an expert system? Give one advantage and one disadvantage...
What are three general approaches to obtaining an expert system? Give one advantage and one disadvantage for each approach.
About Desire2Learn: It is the developer of the Brightspace learning management system which cloud-based software used...
About Desire2Learn: It is the developer of the Brightspace learning management system which cloud-based software used by schools, higher education, and businesses for online and blended classroom learning. D2L is also the developer of Open Courses a Massive Open Online Course platform. The Desire2Learn course management system, often known as D2L, is used to deliver learning resources to students, including syllabi, course content and other documents, and multimedia content. Students also use Desire2Learn to submit assignments, take tests and quizzes,...
What was the 2005 Dover court case about? What is intelligent design (ID), and how does...
What was the 2005 Dover court case about? What is intelligent design (ID), and how does it differ from Darwin’s theory of evolution by means of natural selection? Why is ID considered not to be science by the scientific community? Is there a difference between ID and creationism? Why are scientists opposed to “equal time” for creationism/ID in science classes? What evidence is put forward during the trial to support evolution and counter ID? What evidence is put forward in...
Case Study; The FBI T his is a case about the virtual case file system, which...
Case Study; The FBI T his is a case about the virtual case file system, which has caused FBI IT leaders many problems. a) What do you think were the real reasons why the VCF system failed? Need 300 words discussion,Don't rewrite already existing chegg answers
Check My Work Case Project 1-5: A problem with a newly released operating system While the...
Check My Work Case Project 1-5: A problem with a newly released operating system While the planning department is researching computer options, a computer support person comes across an article in a computer magazine about a newly released operating system that is experiencing frequent memory and CPU problems, such as slow or no response when accessing disk drives or displaying characters on the monitor. a. What might be the cause of these problems? b. Write a short memo for your...
Heart failure; 78 years old, newly diagnosed 1. What's the general education about the diagnosis? 2....
Heart failure; 78 years old, newly diagnosed 1. What's the general education about the diagnosis? 2. Discharge intrustuons/planning 3. Activity/diet 4. Prevention 5. Call MD or return to the hospital if? 6. Medications (at least 3, include action, potential side effects, dosage instructions, and when the patient should follow-up with their provider)
Create a case study about the vision system. Include a summary about what the symptoms, diagnosis,...
Create a case study about the vision system. Include a summary about what the symptoms, diagnosis, and treatments would be. Refer to chapter 11 and 12 on the textbook titled, " Neuroscience" (6th edition) by Dale Purves. Textbook link: file:///C:/Users/tirbal/Downloads/Dale%20Purves%20et%20al.%20(eds.)%20-%20Neuroscience-Sinauer%20Associates%20(2018)%20(2).pdf
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT