Picture Manager

In [1]:
from xv.kids.managers import PictureManager
In [2]:
ke = PictureManager()
ke
Out[2]:
2176374163200@PictureManager

PictureManager


Minimum Grade: 3
Maximum Grade: 12


Examples
--------
from xv.english import PictureManager
root_folder = "books_text"
ke = PictureManager(root_folder = root_folder, parent_depth = 3, verbose = False)
ke

ke.printProblemTypes()

ke.getRandomProblem()
ke.getRandomProblem(problem_type = 0)
...

ke.printProblem()
ke.printAnswer()
ke.printSolution()

doc_style: xv_doc

In [3]:
ke.printProblemTypes()
0. _problem_draw_image
1. _problem_identify_definitions_physics
2. _problem_identify_animals
3. _problem_identify_birds
4. _problem_identify_carpenter_tools
5. _problem_identify_colors
6. _problem_identify_desserts
7. _problem_identify_electronics
8. _problem_identify_foods
9. _problem_identify_furnitures
10. _problem_identify_homeware
11. _problem_identify_human_body
12. _problem_identify_picture_animals
13. _problem_identify_picture_music_instruments
14. _problem_identify_picture_vegetables
15. _problem_identify_playground
16. _problem_identify_restaurant_items
17. _problem_identify_shapes
18. _problem_identify_traffic_signs
19. _problem_identify_vegetables
20. _problem_identify_weapons
In [4]:
ke.getRandomProblem(problem_type = 11)
Out[4]:

Which one of these is NAVEL?
1.
2.
3.
4.
In [5]:
from IPython.display import HTML
n = len(ke._problemTemplates)
max_loop = 1
for j in range(0, max_loop):
    for i in range(n):
        problem_type = i
        display(HTML(f"<h2>problem_type: {problem_type}/{n-1} (loop {j}/{max_loop-1})</h2>"))
        ke.getRandomProblem(problem_type = problem_type, verbose = True)
        display(ke.printProblem())

        display(HTML(f"<h6>Answer:</h6>"))
        display(ke.printAnswer())

        display(HTML(f"<h6>Solution:</h6>"))
        display(ke.printSolution())
        pass

problem_type: 0/20 (loop 0/0)

Problem Template: _problem_draw_image
Identify and draw this image?
Answer:
tools
Solution:
tools

problem_type: 1/20 (loop 0/0)

Problem Template: _problem_identify_definitions_physics
Write a term for this definition.
The process of converting an atom or molecule into an ion by adding or removing charged particles such as electrons or other ions.
Answer:
ionization
Solution:
ionization

problem_type: 2/20 (loop 0/0)

Problem Template: _problem_identify_animals
Name the animal.

🐼

Answer:
PANDA
Solution:
PANDA

problem_type: 3/20 (loop 0/0)

Problem Template: _problem_identify_birds

What is this image?
1. hawk-cuckoo
2. cuckoo
3. cockatoo
4. bat
Answer:
cockatoo
Solution:
cockatoo

problem_type: 4/20 (loop 0/0)

Problem Template: _problem_identify_carpenter_tools

Match the columns:
1. CUTTER 1.
2. WOODLAND 2.
3. WOOD 3.
4. RULLER 4.
Answer:
1. CUTTER 3.
2. WOODLAND 4.
3. WOOD 1.
4. RULLER 2.
Solution:
1. CUTTER 3.
2. WOODLAND 4.
3. WOOD 1.
4. RULLER 2.

problem_type: 5/20 (loop 0/0)

Problem Template: _problem_identify_colors

Identify maroon.
1.
2.
3.
4.
Answer:
Solution:

problem_type: 6/20 (loop 0/0)

Problem Template: _problem_identify_desserts
What is this image?
Answer:
MILLE FEUILLE
Solution:
MILLE FEUILLE

problem_type: 7/20 (loop 0/0)

Problem Template: _problem_identify_electronics
What is this image?
Answer:
Radio
Solution:
Radio

problem_type: 8/20 (loop 0/0)

Problem Template: _problem_identify_foods

Match the columns:
1. FORK AND SPOONS 1.
2. PIZZA SLICE 2.
3. FOOD TRUCK 3.
4. DONUT 4.
Answer:
1. FORK AND SPOONS 3.
2. PIZZA SLICE 2.
3. FOOD TRUCK 4.
4. DONUT 1.
Solution:
1. FORK AND SPOONS 3.
2. PIZZA SLICE 2.
3. FOOD TRUCK 4.
4. DONUT 1.

problem_type: 9/20 (loop 0/0)

Problem Template: _problem_identify_furnitures
What is this image?
Answer:
FIREPLACE
Solution:
FIREPLACE

problem_type: 10/20 (loop 0/0)

Problem Template: _problem_identify_homeware

Which one of these is WATERING CAN?
1.
2.
3.
4.
Answer:
Solution:

problem_type: 11/20 (loop 0/0)

Problem Template: _problem_identify_human_body

Which one of these is ELBOW?
1.
2.
3.
4.
Answer:
Solution:

problem_type: 12/20 (loop 0/0)

Problem Template: _problem_identify_picture_animals
What is this image?
Answer:
bird-eagle-min
Solution:
bird-eagle-min

problem_type: 13/20 (loop 0/0)

Problem Template: _problem_identify_picture_music_instruments

Match the columns:
1. music 1.
2. AMPLIFIER 2.
3. MEGAPHONE 3.
4. DISC 4.
Answer:
1. music 1.
2. AMPLIFIER 2.