WO2024007819A1 - Method and apparatus for acquiring writing on blackboard, and device, system and storage medium - Google Patents

Method and apparatus for acquiring writing on blackboard, and device, system and storage medium Download PDF

Info

Publication number
WO2024007819A1
WO2024007819A1 PCT/CN2023/099469 CN2023099469W WO2024007819A1 WO 2024007819 A1 WO2024007819 A1 WO 2024007819A1 CN 2023099469 W CN2023099469 W CN 2023099469W WO 2024007819 A1 WO2024007819 A1 WO 2024007819A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
blackboard
handwriting content
content
handwriting
Prior art date
Application number
PCT/CN2023/099469
Other languages
French (fr)
Chinese (zh)
Inventor
张青洪
覃东珍
母燕雄
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2024007819A1 publication Critical patent/WO2024007819A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/142Image acquisition using hand-held instruments; Constructional details of the instruments
    • G06V30/1423Image acquisition using hand-held instruments; Constructional details of the instruments the instrument generating sequences of position coordinates corresponding to handwriting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/142Image acquisition using hand-held instruments; Constructional details of the instruments

Definitions

  • Embodiments of the present application relate to the field of image processing technology, and in particular, to a method, device, equipment, system and storage medium for obtaining blackboard writing.
  • the blackboard is a commonly used teaching aid. During the teaching process, teachers write, draw, and other operations on the blackboard to form blackboard content to assist teaching. When the blackboard content is no longer needed, the blackboard content can be erased through a blackboard eraser. .
  • Embodiments of the present application provide a method, device, equipment, system and storage medium for obtaining blackboard writing, so as to solve the technical problem of low accuracy of blackboard writing content obtained through infrared touch detection in related technologies.
  • a method for obtaining blackboard writing includes:
  • the second image is used as the currently acquired blackboard writing content.
  • the display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly enhanced.
  • the display effect is correspondingly weakened;
  • the second image is sent to a display device so that the display device displays the second image and/or stores the second image.
  • a device for obtaining blackboard writing which device includes:
  • An image acquisition unit used to acquire the first image collected in real time by the camera device, which is used to photograph the blackboard;
  • a content recognition unit configured to identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and the non-handwriting content are located in the blackboard area;
  • the effect adjustment unit is used to adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image.
  • the second image is used as the currently acquired blackboard writing content, and the display effect of the handwriting content is correspondingly enhanced, The display effect of the non-handwriting content is correspondingly weakened;
  • An image sending unit configured to send the second image to a display device, so that the display device displays the second image and/or stores the second image.
  • a blackboard acquisition device including: one or more processors,
  • the blackboard writing acquisition method as described in the first aspect is implemented.
  • a blackboard writing acquisition system including: a blackboard writing acquisition device, a camera device, and a display device,
  • the camera equipment is used to photograph the blackboard to obtain a real-time first image
  • the blackboard acquisition device is used to acquire the first image; identify the handwriting content and/or non-handwriting content in the first image, and the handwriting content and the non-handwriting content are located in the blackboard area; adjust the The display effect of the handwriting content and/or the non-handwriting content is obtained to obtain a second image.
  • the second image is used as the currently obtained blackboard writing content.
  • the display effect of the handwriting content is correspondingly enhanced.
  • the display effect of the non-handwriting content is obtained. Corresponding weakening; sending the second image to the display device;
  • the display device is used to display the second image and/or store the second image.
  • an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the blackboard writing acquisition method as described in the first aspect is implemented.
  • a first image obtained by photographing a blackboard with a camera device is obtained, and the handwriting content and/or non-handwriting content located in the blackboard area in the first image is identified, and then the handwriting content and/or non-handwriting content is adjusted.
  • the display effect of the handwriting content in which the display effect of the handwriting content is enhanced and the display effect of the non-handwriting content is weakened to obtain the second image.
  • the second image is used as the currently obtained blackboard writing content.
  • the device is a technical means to enable the display device to display the second image and/or store the second image, which solves the technical problem of low accuracy of blackboard writing content obtained through infrared touch detection in related technologies, and uses the method of photographing images to replace Infrared touch detection can accurately obtain the content on the blackboard.
  • the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction, and the captured images can It includes the color of the chalk when writing and the strokes of the writing strokes, etc., and there will be no disconnection, ensuring the restoration of the content on the blackboard, and the handwriting content and/or non-handwriting content on the blackboard can be identified through the captured images , and adjust the corresponding display effect to make the handwriting content more prominent, thereby making the blackboard writing content in the second image more prominent, and after sending the second image to the display device, real-time display and real-time saving of the blackboard writing content can be realized, etc. , to facilitate subsequent use.
  • Figure 1 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application
  • Figure 2 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application
  • Figure 3 is a schematic diagram of a new type of blackboard provided by an embodiment of the present application.
  • Figure 4 is a data flow block diagram of a blackboard acquisition system provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of handwriting content provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a second image provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a blackboard writing acquisition device provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a blackboard writing acquisition system provided by an embodiment of the present application.
  • an infrared touch frame is installed around the blackboard, and blackboard writing is recorded through the infrared touch frame.
  • the infrared touch frame is the main equipment for realizing infrared touch.
  • the infrared touch frame is set around the blackboard or on the opposite sides, and is equipped with an infrared transmitting device (such as an infrared transmitting lamp) and an infrared receiving device (such as an infrared receiving lamp).
  • the infrared transmitting device emits infrared light according to a certain frequency and is received by the corresponding infrared receiving device.
  • each infrared ray is Corresponds to an infrared transmitter and an infrared receiver.
  • the chalk will block the infrared light it touches.
  • the writing operation can be detected and positioned to obtain the coordinates of the writing, and then based on the writing The coordinates are used to record and save the contents of the blackboard writing. After that, other devices can restore the contents of the blackboard writing by obtaining the written coordinates.
  • each process of transmitting and receiving infrared light can be considered as a scanning process. After scanning at a certain frequency, the detection and positioning of the writing operation can be achieved.
  • the infrared touch frame detects writing operations, due to the hardware limitations of the infrared touch frame, the detection may be inaccurate.
  • the detection may be inaccurate.
  • items such as teaching aids or erasers
  • the contact area between the items and the blackboard It can be determined by the blocked infrared light
  • the adsorbed items and the chalk can be distinguished by the contact area.
  • the object blocks some infrared light, the amount of infrared light passing through the area around the object will be reduced. In this way, when the teacher writes in the area around the object (such as when drawing the border of the object), inaccurate detection will occur. .
  • embodiments of the present application provide a method, device, equipment, system and storage medium for obtaining blackboard writing, so as to accurately obtain the content of the blackboard writing and ensure the accuracy of the recording when recording the content of the blackboard writing.
  • One embodiment of the present application provides a method for obtaining blackboard writing.
  • the method for obtaining blackboard writing can be executed by a blackboard writing obtaining device.
  • the blackboard writing obtaining device can be implemented through software and/or hardware.
  • the blackboard writing obtaining device can be two It is composed of one or more physical entities, or it can be composed of one physical entity.
  • the blackboard writing acquisition device is a device with data processing capabilities.
  • the blackboard writing acquisition device may be an interactive tablet, a tablet computer, a camera device, etc., or may simply be a processor with data processing capabilities.
  • the blackboard writing acquisition device is a processor, if the program executed when the processor is running is relatively complex and the processor's own storage space cannot store the program, the blackboard writing acquisition device may also include a memory, and the memory stores the running process of the processor. procedures performed in.
  • FIG. 1 is a flow chart of a blackboard writing acquisition method provided by an embodiment of the present application.
  • the blackboard writing acquisition device includes the following steps when executing the blackboard writing acquisition method:
  • Step 110 Obtain the first image collected in real time by the camera device, which is used to photograph the blackboard.
  • the camera device refers to a device with a camera function, such as a video camera.
  • the camera equipment may also be recorded as a camera device, a camera terminal, a camera terminal, etc.
  • the camera device receives the light from the lens through the camera sensor and converts the optical signals of these lights into electrical signals to achieve image collection.
  • the camera device takes a picture of the blackboard to obtain the writing content on the blackboard in the form of an image.
  • the blackboard captured by the camera equipment is a traditional blackboard on which chalk can be used to write. It can be understood that in practical applications, a traditional whiteboard can also be used as the blackboard used in this embodiment.
  • a blackboard can be photographed by one or more camera devices. When photographed by multiple camera devices, each camera device captures an area of the blackboard, and the captured areas can be spliced together to obtain the complete area of the blackboard. When photographed by one camera device, one camera device can capture the entire area of the blackboard.
  • a camera device takes a picture of a blackboard as an example for description. It can be understood that when there are multiple blackboards, each blackboard has a camera device to take pictures of it.
  • the relative positional relationship between the camera device and the blackboard can be set according to the actual situation.
  • the camera device is installed on the frame of the blackboard.
  • the position and installation method of the frame where the camera device is installed are not currently limited.
  • the camera device Install it in the middle of the upper frame of the blackboard and photograph the blackboard from top to bottom.
  • the camera equipment can be detachably installed on the blackboard frame, or can be fixedly installed on the blackboard frame. There are currently no restrictions.
  • the camera device after the camera device is turned on, shooting continues.
  • the camera equipment shoots the real-time collected images are sent to the blackboard writing acquisition equipment.
  • the image collected by the camera device is recorded as the first image. It is understood that the first image contains at least the complete area of the blackboard from which it was captured. It should be noted that when the number of blackboards is multiple, the camera equipment corresponding to each blackboard The device sends the first image it collects in real time to the blackboard acquisition device.
  • the blackboard writing acquisition device and the camera device can be the same physical entity.
  • the existing camera device can be used, and the relevant processing logic of the blackboard writing acquisition device is added to the processor of the camera device, that is, the camera device and The blackboard writing acquisition device shares a processor, or a new processor can be added to the camera device, and the relevant processing logic of the blackboard writing acquisition device is implemented through the new processor.
  • the camera device collects the first image, it sends the first image to the blackboard acquisition device through internal wiring.
  • the blackboard writing acquisition device and the camera device can be different physical entities. At this time, the placement position of the blackboard writing acquisition device is currently not limited.
  • the blackboard writing acquisition device is hidden and placed on the side of the blackboard away from the user. Or place it in another location.
  • the camera device and the blackboard writing acquisition device can transmit data in a wired or wireless manner.
  • the camera device transmits the first image to the blackboard writing acquisition device through a wired transmission channel.
  • the transmission protocol used by the camera device and the blackboard acquisition device when transmitting the first image is currently not limited.
  • the camera equipment and the blackboard acquisition equipment implement wired transmission through Universal Serial Bus (USB) or Mobile Industry Processor Interface (MIPI).
  • USB Universal Serial Bus
  • MIPI Mobile Industry Processor Interface
  • this step may specifically include: receiving the first image collected in real time by the camera device through the second USB transmission channel or the MIPI transmission channel.
  • the USB transmission channel refers to a channel that uses the USB protocol to transmit data.
  • the USB standard used by the USB transmission channel is currently not limited.
  • the USB transmission channel between the camera device and the blackboard acquisition device is recorded as the second USB transmission channel.
  • the camera device encodes the first image into a signal suitable for a USB transmission channel, and sends it to the blackboard acquisition device through the second USB transmission channel.
  • the camera device encodes the first image through Image Signal Process (ISP), where ISP is a commonly used encoding technology method in the image processing process and will not be described separately at this time.
  • ISP Image Signal Process
  • MIPI transmission channel refers to a channel that uses the MIPI standard to transmit data.
  • the camera device collects the first image, it sends the first image to the blackboard writing acquisition device in the form of a MIPI signal (implemented through the MIPI transmission channel).
  • the blackboard acquisition device After the blackboard acquisition device receives the signal sent by the camera device, it obtains the corresponding first image.
  • Step 120 Identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and non-handwriting content are located in the blackboard area.
  • the blackboard area refers to the area where the blackboard is located in the first image.
  • Handwriting content refers to the content written in the blackboard area using tools such as chalk.
  • the handwriting content can be text content, graphic content, etc.
  • Non-handwriting content refers to the content in other areas of the blackboard area except the handwriting content.
  • the non-handwriting content may include unwritten board surfaces and target objects on the blackboard, or may only include target objects.
  • the target objects include but are not limited to There is a possibility of contact between the target object and the blackboard surface due to erasers, teaching aids, and human hands.
  • the blackboard writing acquisition device after the blackboard writing acquisition device acquires the first image, it performs image recognition on the first image to obtain the handwriting content located in the blackboard area in the first image.
  • the technical means used in image recognition are not currently limited. For example, through machine learning technology, a neural network model for identifying handwriting content is pre-trained, and then the handwriting content in the first image is recognized through the neural network model.
  • the blackboard acquisition device after the blackboard acquisition device acquires the first image, it performs image recognition on the first image to obtain the non-handwriting content located in the blackboard area in the first image.
  • the technical means used in image recognition are not currently limited.
  • a neural network model for identifying non-handwriting content is pre-trained, and then the neural network model is used to identify non-handwriting content in the first image.
  • the non-handwriting content includes the target object.
  • the type of the target object can be simultaneously identified.
  • the blackboard acquisition device after the blackboard acquisition device acquires the first image, it performs image recognition on the first image to obtain the handwriting content and non-handwriting content located in the blackboard area in the first image.
  • the method of identifying handwriting content and non-handwriting content can refer to the above description. It can be understood that when performing image recognition through machine learning technology, only one neural network model can be used to identify handwriting content and non-handwriting content at the same time, or other methods can be used to identify the handwriting content and non-handwriting content. Handwriting content and non-handwriting content are currently not limited.
  • Step 130 Adjust the display effect of the handwriting content and/or non-handwriting content to obtain a second image.
  • the second image is used as the currently acquired blackboard writing content.
  • the display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened.
  • the display effect of the handwriting content is adjusted.
  • the display effect refers to the effect when displaying the corresponding content.
  • adjusting the display effect of handwriting content is mainly to enhance the display effect of handwriting content. After the display effect is enhanced, the handwriting content can be displayed more prominently, that is, when users view images containing handwriting content, it is easier to pay attention to the handwriting content.
  • the display effect of the handwriting content can be adjusted by modifying the display brightness, color saturation and/or modifying other parameters. When enhancing the display effect of the handwriting content, the color saturation and/or the color saturation of the handwriting content can be enhanced.
  • an adjustment strategy for enhancing the display effect is set in advance, where the adjustment strategy may include adjustment parameters and adjustment amplitudes.
  • the display effect of the handwriting content is enhanced according to the preset adjustment strategy. It should be noted that when the display effect is enhanced, the handwriting color corresponding to the handwriting content will not change significantly, that is, the color of the adjusted handwriting content viewed by the user's naked eye is basically the same as the color of the handwriting content before adjustment.
  • the display effect of the handwriting content in the first image is directly enhanced, and the enhanced first image is recorded as the second image, where the second image can be considered as the current Obtained blackboard content.
  • extract the handwriting content that is, extract the chalk writing trajectory in the first image separately, and then enhance the display effect of the extracted handwriting content and generate a second image.
  • the content of the blackboard writing in the second image only contains content written in chalk.
  • the display effect of the non-handwriting content is adjusted.
  • adjusting the display effect of non-handwriting content mainly involves weakening the display effect of non-handwriting content. After the display effect is weakened, the non-handwriting content is less likely to be noticed by the user when viewing it, which in turn makes the handwriting content more likely to be noticed.
  • the adjustment strategy for weakening the display effect is set in advance. After identifying the non-handwriting content, the display effect of the non-handwriting content is weakened according to the preset adjustment strategy.
  • the display effect of non-handwriting content can be adjusted by modifying the display brightness, modifying the color saturation, modifying the transparency, blurring, and/or other methods.
  • the display effect of the non-handwriting content in the first image is weakened by increasing the transparency of the non-handwriting content and blurring it. At this time, the content located in the blackboard area The handwriting content will be highlighted, thereby achieving the acquisition of the blackboard writing content.
  • the first image after weakening the non-handwriting content is used as the second image.
  • the display effect of the handwriting content in the first image is enhanced, and the display effect of the non-handwriting content in the first image is weakened, and then the display effect is
  • the processed first image is used as the second image.
  • extract the recognized handwriting content and non-handwriting content then enhance the display effect of the extracted handwriting content, weaken the display effect of the extracted non-handwriting content, and then synthesize the handwriting content and non-handwriting content into a new image and use the new image as the second image.
  • the camera equipment when it is shooting, it may capture other areas outside the blackboard (for example, when the blackboard is installed on the wall, the wall surrounding the blackboard is captured). At this time, if the handwriting content and/or content in the first image are captured, or non-handwriting content to adjust the display effect and obtain the second image, then other areas can be deleted in the second image and only the content of the blackboard area can be retained.
  • the blackboard is usually rectangular in shape. Due to the angle limitation of the camera equipment when shooting, the blackboard area in the first image will appear trapezoidal. Therefore, the camera equipment is installed on the frame of the blackboard, adjusts the display effect of the handwriting content and/or the non-handwriting content, and obtains the second image. It also includes: performing trapezoidal correction on the blackboard area in the second image so that the The blackboard area in the second image is restored from a trapezoid to a rectangle, thereby restoring the blackboard writing content in the second image to the content presented on the rectangular blackboard.
  • keystone correction is a common technical means for image processing in the field of photography and will not be described separately at this time.
  • Step 140 Send the second image to the display device, so that the display device displays the second image and/or stores the second image.
  • the blackboard acquisition device sends the second image to other devices so that the other devices can perform corresponding processing on the second image, such as displaying the second image and/or storing the second image, etc. .
  • the second image is sent to a display device, where the display device is a device with a display function, for example, the display device refers to a display screen that can present images.
  • the display device also has functions such as data processing and storage.
  • the display device can also be an interactive tablet, a tablet computer, a notebook computer, a mobile phone and other electronic devices.
  • the blackboard writing acquisition device and the display device can be the same physical entity.
  • the existing display device can be used, and the relevant processing logic of the blackboard writing acquisition device can be added to the processor of the display device, that is, the display device and The blackboard writing acquisition device shares a processor, or a new processor can be added to the display device, and the relevant processing logic of the blackboard writing acquisition device is implemented through the new processor.
  • the blackboard acquisition device sends the second image to the display device through internal wiring.
  • the blackboard writing acquisition device and the camera device can be different physical entities.
  • the blackboard writing acquisition device and the display device can transmit data through wired or wireless methods. Currently, taking wired transmission as an example, the blackboard writing acquisition device The device transmits the second image to the display device through a wired transmission channel.
  • each blackboard writing acquisition device can obtain the second image and send it to the display device .
  • the blackboard writing acquisition device and the camera device are not the same physical entity, if the number of blackboards is multiple, the number of camera devices is multiple.
  • the blackboard writing acquisition device can receive the first image captured by each camera device and process it respectively. Corresponding second images are obtained, and then multiple second images are sent to the display device. After the display device receives multiple second images, if it needs to display the second images, it can display multiple second images at the same time, or display at least one of the second images according to preset display logic or user instructions.
  • sending the second image to the display device includes: sending the second image to the display device through a first USB transmission channel or a multimedia transmission channel.
  • the blackboard writing acquisition device and the display device may use a USB transmission channel to transmit data.
  • the USB transmission channel between the blackboard writing acquisition device and the display device is recorded as the first USB transmission channel.
  • the blackboard acquisition device after the blackboard acquisition device generates the second image, the second image is encoded into a signal suitable for a USB transmission channel, and is sent to the display device through the first USB transmission channel.
  • the encoding rules used by the blackboard acquisition device are currently not limited.
  • the second image may be encoded in H.264 or H.265, where both H.264 and H.265 are video codec standards.
  • the blackboard acquisition device acquires the first image in real time and generates the corresponding second image
  • the real-time second image can be encoded in the form of video data and sent to the display device through the first USB transmission channel, and then, The display device decodes the received video data to obtain a real-time second image.
  • the blackboard acquisition device and the display device may also use a multimedia transmission channel to transmit data.
  • the multimedia transmission channel refers to the channel that uses multimedia interfaces for data transmission.
  • Multimedia interfaces include but are not limited to High Definition Multimedia Interface (HDMI) or DisplayPort (DP).
  • the display device After the display device obtains the second image, it can obtain the writing content of the current blackboard and perform subsequent processing.
  • the subsequent processing includes displaying the content of the blackboard writing and/or storing the content of the blackboard writing, etc.
  • the display device displays the content of the blackboard writing, it sends the second image to its own display screen to display the second image on the display screen.
  • the second image can be displayed on the display screen in real time. It can be understood that currently, the second image is acquired by the processor of the display device and sent to the display screen.
  • the processor of the display device uses Low-Voltage Differential Signaling (LVDS), V-by-One ( VBO), MIPI, Embedded Display Port (EDP) and other methods to send the second image to the display for display.
  • LVDS Low-Voltage Differential Signaling
  • VBO V-by-One
  • MIPI MIPI
  • EDP Embedded Display Port
  • the display rules when the display device displays the second image are currently not limited.
  • the display device stores the content of the blackboard writing, it can save the encoded data stream of the second image.
  • the encoding rules used by the display device are currently not limited. After saving, the user of the display device can retrieve the data stream at any time as needed to obtain the content of the blackboard writing.
  • the display device can also upload the stored blackboard writing content to the network so that other devices in the network can obtain the blackboard writing content.
  • the first image is captured in real time and sent to the blackboard acquisition device.
  • the blackboard acquisition device acquires the first image in real time and performs the above processing to obtain the second image and sends the second image to the device in real time. display screen.
  • the first image obtained after the blackboard is photographed by the camera device is obtained, and the handwriting content and/or non-handwriting content located in the blackboard area in the first image are identified, and then the display effect of the handwriting content and/or non-handwriting content is adjusted. , wherein the display effect of the handwriting content is enhanced, and the display effect of the non-handwriting content is weakened to obtain the second image.
  • the second image is used as the currently obtained blackboard writing content. After that, the second image is sent to the display device, so that the display device
  • the technical means of displaying the second image and/or storing the second image solves the technical problem of low accuracy of blackboard content obtained through infrared touch detection in related technologies.
  • the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction, and the captured image can contain the color of the chalk writing. As well as the written strokes and other content, there will be no disconnection, ensuring the restoration of the content written on the blackboard, and black and white can be recognized through the captured images.
  • the handwriting content and/or non-handwriting content in the board and adjusting the corresponding display effect can make the handwriting content more prominent, thereby making the blackboard writing content in the second image more prominent.
  • real-time display and real-time saving of the content of the blackboard writing can be realized to facilitate subsequent use.
  • Figure 2 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application. Based on the above embodiment, this embodiment further describes the operation of adjusting the display effect of the handwriting content and/or the non-handwriting content.
  • the blackboard captured by the camera device i.e., the traditional blackboard
  • the display device constitute a new blackboard.
  • the new blackboard can also be recorded as a smart blackboard, a smart blackboard, a recording blackboard, etc. No matter which name is used, as long as it can be realized
  • the function of the new blackboard is equivalent to the new blackboard of this application.
  • the display device can be a TV, interactive tablet or other device with a display screen.
  • the interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction. It integrates projectors, electronic whiteboards, screens, speakers, TVs, and video conferencing terminals, etc. One or more functions.
  • the display device has one or more display screens, optionally, the display screen is a liquid crystal display (Liquid Crystal Display, LCD).
  • the display screen may or may not have a touch function.
  • the display screen can be a capacitive screen, a resistive screen, an infrared screen and/or an electromagnetic screen. Users can control the display device by touching the display screen with their fingers or stylus.
  • the display device can also be connected to external devices such as a mouse and keyboard, and users can also control the display device by operating external devices.
  • the display device also includes a processor and a memory.
  • the processor executes various functional applications and data processing of the display device by running software programs, instructions and modules stored in the memory.
  • the display device also includes a power supply. After the display device is connected to the mains, the power supply works to supply power to various internal devices (such as processors, memory, display screens, etc.).
  • the display device and blackboard can be designed integrally or independently.
  • the arrangement between the display device and the blackboard can be set according to actual needs. For example, when the number of blackboards is one, when installing the blackboard and the display device, the blackboard and the display device are arranged horizontally. For another example, when the number of blackboards is two, install the blackboard and the display device. When displaying the device, the display device is located in the middle of the two blackboards. In one embodiment, two blackboards are taken as an example.
  • Figure 3 is a schematic diagram of a new type of blackboard provided by an embodiment of the present application. Referring to Figure 3, there is a display device 13 between the blackboard 11 and the blackboard 12.
  • the camera device is installed on the frame of the blackboard to take pictures of the blackboard.
  • the camera device is installed at the middle position of the upper frame of the blackboard as an example.
  • the upper side of the blackboard 11 A camera device 14 is installed in the middle of the edge, and a camera device 15 is also installed in the middle of the upper edge of the blackboard 12 .
  • the blackboard acquisition device is integrated inside the display device.
  • the blackboard acquisition device is integrated inside the camera device.
  • the blackboard writing acquisition device, the display device and the camera device are all independent of each other.
  • the description is based on the example that the blackboard writing acquisition device and the display device are independent of each other.
  • the existing display device can be used, and a data transmission channel between the display device and the blackboard writing acquisition device can be established.
  • the blackboard writing acquisition device and the display device may be connected in a wireless or wired manner.
  • the blackboard writing acquisition device and the display device are connected in a wired manner for exemplary description.
  • the power supply of the display device can also provide power to the blackboard writing acquisition device so that the blackboard writing acquisition device can operate normally.
  • power can be provided to the camera device so that the camera device starts to collect the first image.
  • Figure 4 is a data flow block diagram of a blackboard writing acquisition system provided by an embodiment of the present application.
  • the data transmission flow between various devices is shown in Figure 4, in which the camera sensor (i.e., camera sensor) is located in the camera device and can also be equivalent to the camera device.
  • the first processor is located in the blackboard writing acquisition device, and may also be equivalent to the blackboard writing acquisition device.
  • the first processor may also be the processor of the camera device, that is, the blackboard acquisition device and the camera device are the same physical entity.
  • the second processor is a processor in the display device, the liquid crystal display screen is a display screen in the display device, and the power supply is a power supply in the display device.
  • the power supply can provide power to the first processor.
  • the first processor starts to work (that is, the blackboard acquisition device works) and provides power to the camera sensor, and the camera sensor works (that is, the camera equipment Work).
  • the camera sensor works, it collects the first image and sends it to the first processor.
  • the first processor processes the first image to obtain the second image, and sends the second image to the second processor.
  • the LCD screen can be controlled to display.
  • the second processor can also control the power supply.
  • the blackboard acquisition device simultaneously identifies the handwriting content and non-handwriting content located in the blackboard area in the first image, and modifies the handwriting content and the display effect of the non-handwriting content.
  • the blackboard writing acquisition method executed by the blackboard writing acquisition device specifically includes:
  • Step 210 Obtain the first image collected in real time by the camera device, which is used to photograph the blackboard.
  • Step 220 Identify handwriting content and/or non-handwriting content in the first image, and both the handwriting content and non-handwriting content are located in the blackboard area.
  • the non-handwriting content includes objects.
  • the target object can be an eraser, teaching aids and other items, or it can be a human hand.
  • the unwritten area on the blackboard is no longer regarded as non-handwriting content.
  • the target object is in contact with the surface of the blackboard, and the contact method is currently not limited. In some cases, there is a situation where the target object blocks the handwriting content.
  • the handwriting content and non-handwriting content in the first image after identifying the handwriting content and non-handwriting content in the first image, it also includes: when detecting that the handwriting content is blocked by the target object, obtaining the historical handwriting content and using it as the current
  • the recognized handwriting content the historical handwriting content is the handwriting content recognized before the target object blocks the handwriting content. For example, when identifying the target object and the handwriting content, you can determine whether the target object blocks the handwriting content.
  • the judgment method is not limited at present. For example, when the target object is detected, the position of the target object in the blackboard area is determined, and then the detection is queried. The recognition result of the position before reaching the target object.
  • the handwriting content displayed at the position is regarded as the historical handwriting content, and it is determined that the target object blocks the handwriting content. If the recognition result is that the handwriting content is not displayed at the position, it is determined that the target object does not block the handwriting content. After determining that the target object blocks the handwriting content, obtain the historical handwriting content at the location of the target object, and use the historical handwriting content as the handwriting content currently recognized at the location, and combine the handwriting content at this location with other currently recognized handwriting content. Together as the handwriting content recognized this time, to ensure the integrity of the blackboard writing content subsequently obtained.
  • the target object blocks the handwriting content.
  • the human hand is determined to be the target object of the set type.
  • the target object is recognized, it is judged Whether the target object is a human hand. If the target object is a human hand, continue to detect whether the target object blocks the handwriting content. If the target object is not a human hand, then no Detection of blocked handwriting content.
  • the advantage of this setting is to avoid misidentification of occlusion when using teaching aids to block the handwriting content or using an eraser to erase the handwriting content due to teaching needs. It should be noted that in actual applications, occlusion detection may not be performed, and subsequent operations can be directly performed after identifying the target object.
  • Step 230 Enhance the display effect of handwriting content and weaken the display effect of non-handwriting content.
  • the recognized handwriting content and non-handwriting content are extracted.
  • the display effect of the handwriting content is enhanced, and the display effect of the non-handwriting content is weakened.
  • enhancing the display effect of the handwriting content includes: increasing the display brightness and/or color saturation of the handwriting content.
  • weakening the display effect of non-handwriting content includes: reducing the display brightness and/or color saturation of non-handwriting content; and/or increasing the transparency of non-handwriting content; and/or blurring non-handwriting content. It should be noted that when adjusting the display effect above, the adjustment range of the parameters involved is not currently limited.
  • the display effects of handwriting content and non-handwriting content can be adjusted at the same time, or the display effects of handwriting content and non-handwriting content can be adjusted successively.
  • step 230 may include steps 231 to 232:
  • Step 231 Enhance the display effect of the handwriting content to obtain the first-level sub-image.
  • the handwriting content can be extracted from the first image by cutting out the image or other methods, and the extracted handwriting content is still in the form of an image.
  • the display effect of the handwriting content is enhanced to obtain an enhanced image.
  • the enhanced image is recorded as a first-level sub-image.
  • the first-level sub-image only displays the enhanced handwriting content, and other areas are transparent.
  • the size of the image obtained when extracting handwriting content is currently not limited.
  • the image is the same size as the first image, or the image is the same size as the blackboard area in the first image, or the image is the same size as the blackboard area in the first image.
  • the image is of a set size.
  • the relative position of the handwriting content in the obtained image is the same as the relative position of the handwriting content in the first image (or in the blackboard area).
  • the size of the image obtained when extracting the handwriting content is the same as the size of the smallest rectangular area containing the handwriting content.
  • Step 232 Weaken the display effect of non-handwriting content to obtain a second-level sub-image.
  • the non-handwriting content can be extracted from the first image by cutting out the image or other methods, and the extracted non-handwriting content is still in the form of an image.
  • the display effect of the non-handwriting content is weakened to obtain a weakened image.
  • the weakened image is recorded as a second-level sub-image.
  • the second-level sub-image displays non-handwriting content, and other areas are transparent.
  • the size of the image obtained when extracting non-handwriting content is currently not limited.
  • the image is the same size as the first-level sub-image, the same size as the first image, or the size of the blackboard area in the first image.
  • the relative position of the non-handwriting content in the obtained image is the same as the relative position of the non-handwriting content in the first image (or in the blackboard area).
  • the size of the image obtained when extracting the non-handwriting content is the same as the size of the smallest rectangular area containing the non-handwriting content.
  • handwriting content and non-handwriting content can be processed at the same time, or they can be processed one after another, and there is no current limit.
  • Step 240 A second image is composed of the handwriting content and non-handwriting content after adjusting the display effect.
  • the second image is composed of handwriting content and non-handwriting content.
  • the handwriting content and non-handwriting content can be merged into one image according to their positions in the first image (currently for the second image).
  • this step may also be: superimposing the sub-image of the first level on the sub-image of the second level to obtain the third sub-image containing the content of the writing on the blackboard. Two images.
  • both the first-level sub-image and the second-level sub-image are regarded as one level of the image.
  • the materials can be placed in different layers, and the image can be regarded as a superposition of several layers of images.
  • each layer can be considered as a level.
  • each level can be processed independently without affecting the image content of other levels.
  • the sub-image of the first level is used as the first layer
  • the sub-image of the second level is used as the second layer
  • the first layer is superimposed on the second layer to obtain the second image.
  • the second image serves as the currently acquired blackboard writing content.
  • two levels of sub-images can be directly superimposed to obtain the second image.
  • two levels of sub-images are superimposed, so that the relative positions of the handwriting content and the non-handwriting content in the second image are consistent with the relative positions of the handwriting content in the first image.
  • the relative position of content and non-handwriting content is consistent.
  • the blackboard acquisition device cannot recognize the handwriting content.
  • the first-level sub-image does not display any content, that is, it is a transparent image, and no operation to enhance the display effect is required. After that, the sub-images of the two levels are superimposed to obtain a second image that only displays non-handwriting content.
  • the blackboard acquisition device cannot recognize the non-handwriting content.
  • you can Only the recognized handwriting content is extracted.
  • the second-level sub-image does not display any content, that is, it is a transparent image, and no operation to weaken the display effect is required. Afterwards, after the sub-images of the two levels are superimposed, a second image showing only the handwriting content is obtained. It should be noted that when only the target object is recognized, the blackboard surface is no longer regarded as non-handwriting content.
  • the second image does not need to display the background color of the blackboard, that is, the blackboard surface is not displayed, and only the handwriting content and the target object are displayed. If you want the second image to also display the background color of the blackboard, you can add a level when generating the second image. This level is the lowest level of the second image.
  • the background color of the blackboard is displayed in the image of this level as the second image. The image provides a background so that the second image shows the face of the blackboard.
  • the camera device is installed on the frame of the blackboard.
  • the blackboard area appears as a trapezoid instead of a rectangle in the first image.
  • the content of the blackboard writing is also the content of the blackboard writing corresponding to the trapezoid. Therefore, in one embodiment, in order to avoid the deformation of the blackboard writing content due to the shooting angle, after obtaining the second image, it also includes: performing trapezoidal correction on the blackboard area in the second image.
  • the blackboard writing content in the second image is closer to the real blackboard writing content on the blackboard, that is, the blackboard writing content in the second image is the blackboard corresponding to the rectangle. book content. It should be noted that there is no limit to the method used for trapezoidal correction, as long as trapezoidal correction can be achieved.
  • the second image is obtained by superimposing sub-images of two levels, after obtaining the sub-images of two levels, the sub-images of two levels can also be subjected to trapezoidal correction respectively, and then the two sub-images can be The sub-images of the hierarchy are superimposed to obtain the second image.
  • FIG. 5 is a schematic diagram of handwriting content provided by an embodiment of the present application.
  • the blackboard 22 displays the handwriting "Mathematics" written in chalk, and a target object eraser 21 is adsorbed.
  • Figure 6 is a schematic diagram of a second image provided by an embodiment of the present application. After the camera device takes a picture of the blackboard 22 displaying the handwriting content shown in Figure 5, the blackboard acquisition device processes the corresponding first image and performs The second image obtained after keystone correction. Referring to FIG. 6 , the display effect of the handwriting content in the second image (the handwriting content in FIG. 5 is “mathematics”) is obviously stronger than the display effect of the eraser 21 . It should be noted that the camera equipment at the edge of the blackboard is not shown in Figure 5 .
  • Step 250 Send the second image to the display device, so that the display device displays the second image and/or stores the second image.
  • the blackboard writing acquisition device sends the second image to the display device, so that the display device acquires real-time blackboard writing content.
  • the content on the blackboard can be accurately obtained. Even if there are objects such as erasers and teaching aids adsorbed on the blackboard, the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction. Case. Furthermore, by obtaining the second image through the recognized handwriting content and non-handwriting content, the non-blackboard area in the first image can be eliminated, so that the second image only contains the content of the blackboard area. Moreover, through hierarchical processing, handwriting content and non-handwriting content are corresponding to the first level and the second level, which facilitates separate processing of handwriting content and non-handwriting content and improves processing flexibility.
  • FIG. 7 is a schematic structural diagram of a device for obtaining blackboard writing provided by an embodiment of the present application.
  • the blackboard acquisition device includes: an image acquisition unit 301 , a content recognition unit 302 , an effect adjustment unit 303 and an image sending unit 304 .
  • the image acquisition unit 301 is used to acquire the first image collected in real time by a camera device used to photograph the blackboard;
  • the content recognition unit 302 is used to identify the handwriting content and content in the first image. /or non-handwriting content, the handwriting content and the non-handwriting content are both located in the blackboard area;
  • the effect adjustment unit 303 is used to adjust the display effect of the handwriting content and/or the non-handwriting content to obtain the second image , the second image is used as the currently acquired blackboard writing content, the display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened;
  • the image sending unit 304 is used to send the second image to the display device to cause the display device to display the second image and/or store the second image.
  • the effect adjustment unit 303 is used to adjust the display effect of the handwriting content and the non-handwriting content.
  • the second image includes: a display effect adjustment sub-unit, used to adjust the handwriting content.
  • the display effect is enhanced, and the display effect of non-handwriting content is weakened; the image composition subunit is used to form a second image from the handwriting content and the non-handwriting content after adjusting the display effect.
  • the display effect adjustment sub-unit includes: an effect enhancement sub-unit, used to adjust the content of the handwriting The display effect is enhanced to obtain the sub-image of the first level; the effect weakening unit is used to weaken the display effect of the non-handwriting content to obtain the sub-image of the second level.
  • the image composition subunit is specifically configured to superimpose the first-level sub-image on the second-level sub-image to obtain a second image containing the content of the blackboard writing on the blackboard.
  • the camera equipment is installed on the frame of the blackboard, and the device further includes: a trapezoidal correction unit for adjusting the display effect of the handwriting content and/or the non-handwriting content, so as to obtain After the second image, keystone correction is performed on the blackboard area in the second image.
  • a trapezoidal correction unit for adjusting the display effect of the handwriting content and/or the non-handwriting content, so as to obtain After the second image, keystone correction is performed on the blackboard area in the second image.
  • the display effect adjustment subunit when used to enhance the display effect of the handwriting content, it is specifically used to: increase the display brightness and/or color saturation of the handwriting content.
  • the display effect adjustment subunit when used to weaken the display effect of the non-handwriting content, it is specifically used to: reduce the display brightness and/or color saturation of the non-handwriting content; and/or increase the display effect of the non-handwriting content. Transparency; and/or, blurring the non-handwriting content.
  • the image sending unit 304 is specifically configured to: send the second image to a display device through a first USB transmission channel or a multimedia transmission channel, so that the display device displays the second image and/or Or store the second image.
  • the non-handwriting content includes a target object, and the target object is in contact with the surface of the blackboard.
  • the device further includes: an occlusion detection unit for identifying the handwriting content in the first image and After non-handwriting content, when it is detected that the handwriting content in the first image is blocked by the target object, the historical handwriting content is obtained and used as the currently recognized handwriting content.
  • the historical handwriting content is the content blocked by the target object.
  • the handwriting content recognized before describing the handwriting content.
  • the image acquisition unit 301 is specifically configured to receive the first image collected in real time by a camera device through a second USB transmission channel or a MIPI transmission channel, and the camera device is used to capture the blackboard.
  • the blackboard writing acquisition device provided by the embodiment of the present application is included in the blackboard writing acquisition device, and can be used to execute the blackboard writing acquisition method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • An embodiment of the present application also provides a blackboard writing acquisition device.
  • the blackboard writing acquisition device includes one or more processors. When the one or more processors execute one or more programs, the blackboard writing acquisition method as provided in any of the above embodiments is implemented.
  • the blackboard acquisition device also includes a memory, and the processor and the memory can be connected through a bus or other means.
  • the memory can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the blackboard writing acquisition method in the embodiment of the present application.
  • the processor executes various functional applications and data processing of the blackboard writing acquisition device by running software programs, instructions and modules stored in the memory, that is, implementing the above blackboard writing acquisition method.
  • the memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system and at least one application required for a function; the stored data area may store data created based on the use of the blackboard acquisition device, etc. Additionally, memory may include high speed random access memory
  • the device may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device.
  • the memory may further include memory located remotely relative to the processor, and these remote memories may be connected to the blackboard acquisition device via a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • the blackboard writing acquisition device may also include a communication device, which is used to implement communication functions, such as data transmission with camera equipment and display equipment.
  • the blackboard writing acquisition device may further include an input device operable to receive input numeric or character information and generate key signal input related to user settings and function control of the blackboard writing acquisition device.
  • the above-mentioned blackboard writing acquisition device includes a blackboard writing acquisition device, and can be used to execute the blackboard writing acquisition method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
  • FIG. 8 is a schematic structural diagram of a blackboard writing acquisition system provided by an embodiment of the present application.
  • the blackboard writing acquisition system includes: a blackboard writing acquisition device 41 , a camera device 42 and a display device 43 .
  • the camera device 41 is used to photograph the blackboard to obtain a real-time first image; the blackboard acquisition device 42 is used to obtain the first image; identify the handwriting content and/or non-handwriting content in the first image, the handwriting The content and the non-handwriting content are both located in the blackboard area; adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image, the second image is used as the currently acquired blackboard content, the handwriting The display effect of the content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened; the second image is sent to the display device; the display device 43 is used to display the second image and/or store the second image.
  • the blackboard writing acquisition device 41 is built in the camera device 42 and shares a processor with the camera device 42 . That is, the blackboard writing acquisition device 41 and the camera device 42 are one physical entity. At this time, the processor of the camera device 42 can not only control the collection of the first image, but also implement the above blackboard writing acquisition method.
  • the blackboard writing acquisition system further includes: at least one blackboard, and a corresponding camera device 41 is provided on the frame of each blackboard.
  • the display device is located in the middle of the two blackboards, and the camera device is installed at the middle position of the upper frame of the blackboard.
  • the display device includes a power supply, and the power supply supplies power to the blackboard writing acquisition device, that is, the display device is also used to provide power to the blackboard writing acquisition device.
  • the blackboard acquisition device when the blackboard acquisition device is started based on the power supply of the display device, it can also provide power to the camera device.
  • Embodiments of the present application also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the method for obtaining blackboard writing provided in any embodiment of the present application, And have corresponding functions and beneficial effects.
  • the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects.
  • the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • the present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions.
  • These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • Memory may include non-volatile memory in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
  • Information may be computer-readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • read-only memory read-only memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • compact disc read-only memory CD-ROM
  • DVD digital versatile disc
  • Magnetic tape cassettes tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

Abstract

Provided in the embodiments of the present application are a method and apparatus for acquiring writing on a blackboard, and a device, a system and a storage medium. The method comprises: acquiring a first image collected by a photographic device in real time, wherein the photographic device is used for photographing a blackboard; identifying handwriting content and/or non-handwriting content from the first image, wherein the handwriting content and the non-handwriting content are both located in a blackboard area; adjusting display effects of the handwriting content and/or the non-handwriting content, so as to obtain a second image, wherein the second image is taken as currently acquired written content on the blackboard, the display effect of the handwriting content in the second image is correspondingly enhanced, and the display effect of the non-handwriting content in the second image is correspondingly weakened; and sending the second image to a display device, such that the display device displays the second image and/or stores the second image. By using the method, the technical problem in the relevant art of the accuracy of written content acquired by means of infrared touch detection on a blackboard being low can be solved.

Description

黑板板书获取方法、装置、设备、系统及存储介质Blackboard writing method, device, equipment, system and storage medium
本申请要求于2022年07月04日提交中国专利局、申请号为202210787911.8、发明名称为“黑板板书获取方法、装置、设备、系统及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on July 4, 2022, with the application number 202210787911.8 and the invention name "Blackboard Writing Obtaining Method, Device, Equipment, System and Storage Medium". All its contents have been approved. This reference is incorporated into this application.
技术领域Technical field
本申请实施例涉及图像处理技术领域,尤其涉及一种黑板板书获取方法、装置、设备、系统及存储介质。Embodiments of the present application relate to the field of image processing technology, and in particular, to a method, device, equipment, system and storage medium for obtaining blackboard writing.
背景技术Background technique
黑板是常用的教学辅助用具,教学过程中,教师在黑板上进行书写、画图等操作,以形成辅助教学的板书内容,当黑板上的板书内容不再被需要时,可以通过板擦擦除板书内容。The blackboard is a commonly used teaching aid. During the teaching process, teachers write, draw, and other operations on the blackboard to form blackboard content to assist teaching. When the blackboard content is no longer needed, the blackboard content can be erased through a blackboard eraser. .
随着教学水平的提升,对教学过程中形成的板书内容进行保存的需求日益提高。相关技术中,为了保存板书内容,在黑板的四周安装了红外触摸框,通过红外触摸检测的方式检测作用于黑板上的书写操作并获取书写操作对应的书写坐标,通过书写坐标得到书写轨迹进而保存书写轨迹,以实现保存板书内容。然而,当黑板上存在吸附的物品(如板擦或教具等)时,由于物品遮挡了部分红外光线,那么,当教师在物体周边的区域进行书写时,红外触摸框将无法准确检测出书写操作,进而导致无法保存正确的板书内容。With the improvement of teaching level, there is an increasing need to preserve the blackboard writing content formed during the teaching process. In related technology, in order to save the content written on the blackboard, an infrared touch frame is installed around the blackboard. The writing operation on the blackboard is detected through infrared touch detection and the writing coordinates corresponding to the writing operation are obtained. The writing track is obtained through the writing coordinates and then saved. Write tracks to save the content written on the blackboard. However, when there are adsorbed objects on the blackboard (such as erasers or teaching aids, etc.), because the objects block part of the infrared light, when the teacher writes in the area around the object, the infrared touch box will not be able to accurately detect the writing operation. As a result, the correct blackboard writing content cannot be saved.
发明内容Contents of the invention
本申请实施例提供了一种黑板板书获取方法、装置、设备、系统及存储介质,以解决相关技术中通过红外触摸检测的方式获取的板书内容准确性低的技术问题。Embodiments of the present application provide a method, device, equipment, system and storage medium for obtaining blackboard writing, so as to solve the technical problem of low accuracy of blackboard writing content obtained through infrared touch detection in related technologies.
第一方面,在本申请的一个实施例中,提供了一种黑板板书获取方法,该方法包括:In a first aspect, in an embodiment of the present application, a method for obtaining blackboard writing is provided, which method includes:
获取摄像设备实时采集的第一图像,所述摄像设备用于对黑板进行拍摄;Obtaining a first image collected in real time by a camera device used to photograph the blackboard;
识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;Identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and the non-handwriting content are located in the blackboard area;
调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;Adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image. The second image is used as the currently acquired blackboard writing content. The display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly enhanced. The display effect is correspondingly weakened;
将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。The second image is sent to a display device so that the display device displays the second image and/or stores the second image.
第二方面,在本申请的一个实施例中,还提供了一种黑板板书获取装置,该装置包括:In a second aspect, in one embodiment of the present application, a device for obtaining blackboard writing is also provided, which device includes:
图像获取单元,用于获取摄像设备实时采集的第一图像,所述摄像设备用于对黑板进行拍摄; An image acquisition unit, used to acquire the first image collected in real time by the camera device, which is used to photograph the blackboard;
内容识别单元,用于识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;A content recognition unit configured to identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and the non-handwriting content are located in the blackboard area;
效果调整单元,用于调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;The effect adjustment unit is used to adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image. The second image is used as the currently acquired blackboard writing content, and the display effect of the handwriting content is correspondingly enhanced, The display effect of the non-handwriting content is correspondingly weakened;
图像发送单元,用于将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。An image sending unit, configured to send the second image to a display device, so that the display device displays the second image and/or stores the second image.
第三方面,在本申请的一个实施例中,还提供了一种黑板板书获取设备,包括:一个或多个处理器,In a third aspect, in one embodiment of the present application, a blackboard acquisition device is also provided, including: one or more processors,
所述一个或多个处理器执行一个或多个程序时,实现如第一方面所述的黑板板书获取方法。When the one or more processors execute one or more programs, the blackboard writing acquisition method as described in the first aspect is implemented.
第四方面,在本申请的一个实施例中,还提供了一种黑板板书获取系统,包括:黑板板书获取设备、摄像设备和显示设备,In the fourth aspect, in an embodiment of the present application, a blackboard writing acquisition system is also provided, including: a blackboard writing acquisition device, a camera device, and a display device,
所述摄像设备用于对黑板进行拍摄,以得到实时的第一图像;The camera equipment is used to photograph the blackboard to obtain a real-time first image;
所述黑板板书获取设备用于获取所述第一图像;识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;将所述第二图像发送至显示设备;The blackboard acquisition device is used to acquire the first image; identify the handwriting content and/or non-handwriting content in the first image, and the handwriting content and the non-handwriting content are located in the blackboard area; adjust the The display effect of the handwriting content and/or the non-handwriting content is obtained to obtain a second image. The second image is used as the currently obtained blackboard writing content. The display effect of the handwriting content is correspondingly enhanced. The display effect of the non-handwriting content is obtained. Corresponding weakening; sending the second image to the display device;
所述显示设备用于显示所述第二图像和/或存储所述第二图像。The display device is used to display the second image and/or store the second image.
第五方面,本申请一个实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所述的黑板板书获取方法。In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the blackboard writing acquisition method as described in the first aspect is implemented.
本申请一个实施例中,通过获取摄像设备对黑板拍摄后得到的第一图像,并识别第一图像中位于黑板区域内的笔迹内容和/或非笔迹内容,之后,调整笔迹内容和/或非笔迹内容的显示效果,其中,对笔迹内容进行显示效果增强,对非笔迹内容进行显示效果弱化,以得到第二图像,第二图像作为当前获取的板书内容,之后,将第二图像发送至显示设备,以使显示设备显示第二图像和/或存储第二图像的技术手段,解决了相关技术中,通过红外触摸检测的方式获取的板书内容准确性低的技术问题,使用拍摄图像的方式取代红外触摸检测,可以准确获取到黑板中的内容,即使黑板上吸附有板擦、教具等物体,摄像设备也可清晰拍摄板擦、教具周围的区域,不会出现遮挡的情况,并且,拍摄的图像可以包含粉笔书写时的颜色以及书写出的笔锋等内容,并且不会出现断线的情况,保证了板书内容的还原度,并且,通过拍摄的图像识别到黑板中的笔迹内容和/或非笔迹内容,并调整相应的显示效果,可以使得笔迹内容更加突出,进而使得第二图像中的板书内容更加突出,并且,将第二图像发送至显示设备后,可以实现板书内容的实时显示、实时保存等,便于后续使用。 In one embodiment of the present application, a first image obtained by photographing a blackboard with a camera device is obtained, and the handwriting content and/or non-handwriting content located in the blackboard area in the first image is identified, and then the handwriting content and/or non-handwriting content is adjusted. The display effect of the handwriting content, in which the display effect of the handwriting content is enhanced and the display effect of the non-handwriting content is weakened to obtain the second image. The second image is used as the currently obtained blackboard writing content. After that, the second image is sent to the display The device is a technical means to enable the display device to display the second image and/or store the second image, which solves the technical problem of low accuracy of blackboard writing content obtained through infrared touch detection in related technologies, and uses the method of photographing images to replace Infrared touch detection can accurately obtain the content on the blackboard. Even if there are objects such as erasers and teaching aids adsorbed on the blackboard, the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction, and the captured images can It includes the color of the chalk when writing and the strokes of the writing strokes, etc., and there will be no disconnection, ensuring the restoration of the content on the blackboard, and the handwriting content and/or non-handwriting content on the blackboard can be identified through the captured images , and adjust the corresponding display effect to make the handwriting content more prominent, thereby making the blackboard writing content in the second image more prominent, and after sending the second image to the display device, real-time display and real-time saving of the blackboard writing content can be realized, etc. , to facilitate subsequent use.
附图说明Description of the drawings
图1为本申请一个实施例提供的一种黑板板书获取方法的流程图;Figure 1 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application;
图2为本申请一个实施例提供的一种黑板板书获取方法的流程图;Figure 2 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application;
图3为本申请一个实施例提供的一种新型黑板示意图;Figure 3 is a schematic diagram of a new type of blackboard provided by an embodiment of the present application;
图4为本申请一个实施例提供的一种黑板板书获取系统的数据流向框图;Figure 4 is a data flow block diagram of a blackboard acquisition system provided by an embodiment of the present application;
图5为本申请一个实施例提供的一种笔迹内容示意图;Figure 5 is a schematic diagram of handwriting content provided by an embodiment of the present application;
图6为本申请一个实施例提供的一种第二图像示意图;Figure 6 is a schematic diagram of a second image provided by an embodiment of the present application;
图7为本申请一个实施例提供的一种黑板板书获取装置的结构示意图;Figure 7 is a schematic structural diagram of a blackboard writing acquisition device provided by an embodiment of the present application;
图8为本申请一个实施例提供的一种黑板板书获取系统的结构示意图。Figure 8 is a schematic structural diagram of a blackboard writing acquisition system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below in conjunction with the accompanying drawings and examples. It can be understood that the specific embodiments described here are used to explain the present application, but not to limit the present application. In addition, it should be noted that, for convenience of description, only some but not all structures related to the present application are shown in the drawings.
相关技术中,黑板的四周安装有红外触摸框,通过红外触摸框实现板书的记录。其中,红外触摸框是实现红外触摸的主要设备,红外触摸框设置在黑板的四周或相对的两边,并安装有红外发射装置(如红外发射灯)和红外接收装置(如红外接收灯),各红外发射装置按照一定频率发射红外光线并由相应的红外接收装置接收,此时,红外发射装置和红外接收装置之间的所有红外光线形成了覆盖在黑板上的光网,且每条红外光线均对应一个红外发射装置和一个红外接收装置。教师使用粉笔在黑板上进行书写时,粉笔会遮挡其碰触的红外光线,此时,根据红外光线的遮挡情况可以检测到书写操作并对书写操作进行定位,以得到书写的坐标,进而根据书写的坐标实现板书内容的记录和保存,之后,其他的设备通过获取书写的坐标可以还原出板书内容。可理解,红外光线的每一次发射和接收的过程可以认为是一次扫描过程,按照一定频率扫描后,可以实现对书写操作的检测以及定位。In the related technology, an infrared touch frame is installed around the blackboard, and blackboard writing is recorded through the infrared touch frame. Among them, the infrared touch frame is the main equipment for realizing infrared touch. The infrared touch frame is set around the blackboard or on the opposite sides, and is equipped with an infrared transmitting device (such as an infrared transmitting lamp) and an infrared receiving device (such as an infrared receiving lamp). The infrared transmitting device emits infrared light according to a certain frequency and is received by the corresponding infrared receiving device. At this time, all the infrared rays between the infrared transmitting device and the infrared receiving device form a light network covering the blackboard, and each infrared ray is Corresponds to an infrared transmitter and an infrared receiver. When teachers use chalk to write on the blackboard, the chalk will block the infrared light it touches. At this time, based on the blocking of infrared light, the writing operation can be detected and positioned to obtain the coordinates of the writing, and then based on the writing The coordinates are used to record and save the contents of the blackboard writing. After that, other devices can restore the contents of the blackboard writing by obtaining the written coordinates. It can be understood that each process of transmitting and receiving infrared light can be considered as a scanning process. After scanning at a certain frequency, the detection and positioning of the writing operation can be achieved.
然而,红外触摸框检测书写操作时,因为红外触摸框的硬件限制,会出现检测不准确的情况,如一些情况下,教具或板擦等物品吸附在黑板上时,由于物品与黑板的接触面积(可以通过被遮挡的红外光线确定)大于粉笔与黑板的接触面积,因此,通过接触面积可以区分出吸附的物品和粉笔。但是,由于物品遮挡了一些红外光线,所以,物品周围区域经过的红外光线的数量会减少,这样当教师在物品周围区域进行书写时(如绘制物品的边框时),会出现检测不准确的情况。另外,当教师书写文字时,出现了笔锋,但是,红外触摸框检测的书写坐标无法检测出笔锋,即根据红外触摸框检测的书写坐标还原板书内容时无法还原出板书内容中的笔锋。并且,当教师使用不同颜色的粉笔书写时,红外触摸框也无法检测出粉笔的颜色,这样在还原板书内容时,无法还原出粉笔的颜色。并且,红外触摸框检测过程中,会出现数据丢失的情况,这样在还原板书内容时,存在板书内容无法被准确还原、出现断线 的情况。如教师书写过程中,经常出现连笔书写的情况,当教师写入连笔字时,不同的字以及同一字的不同笔画是被连续书写的,若红外触摸框检测过程中出现数据丢失的情况,则红外触摸框检测到的书写坐标是非连续的,基于书写坐标还原的板书内容将出现断线的情况,不利于板书内容的准确还原。However, when the infrared touch frame detects writing operations, due to the hardware limitations of the infrared touch frame, the detection may be inaccurate. For example, in some cases, when items such as teaching aids or erasers are adsorbed on the blackboard, due to the contact area between the items and the blackboard ( It can be determined by the blocked infrared light) is larger than the contact area between the chalk and the blackboard. Therefore, the adsorbed items and the chalk can be distinguished by the contact area. However, since the object blocks some infrared light, the amount of infrared light passing through the area around the object will be reduced. In this way, when the teacher writes in the area around the object (such as when drawing the border of the object), inaccurate detection will occur. . In addition, when the teacher writes text, a pen edge appears. However, the writing coordinates detected by the infrared touch frame cannot detect the pen edge. That is, when the blackboard writing content is restored based on the writing coordinates detected by the infrared touch frame, the pen edge in the blackboard writing content cannot be restored. Moreover, when teachers use different colors of chalk to write, the infrared touch frame cannot detect the color of the chalk, so when restoring the content written on the blackboard, the color of the chalk cannot be restored. Moreover, during the infrared touch frame detection process, data may be lost, so when restoring the blackboard writing content, the blackboard writing content cannot be accurately restored and disconnections may occur. Case. For example, during the writing process of teachers, continuous writing often occurs. When teachers write connected characters, different words and different strokes of the same word are written continuously. If data is lost during the infrared touch frame detection process, , then the writing coordinates detected by the infrared touch box are discontinuous, and the blackboard writing content restored based on the writing coordinates will be disconnected, which is not conducive to the accurate restoration of the blackboard writing content.
基于上述内容可知,通过红外触摸框记录的板书内容准确性较低,不利于被准确的还原。因此,本申请实施例提供一种黑板板书获取方法、装置、设备、系统及存储介质,以在记录板书内容时,准确的获取到板书内容,保证记录准确性。Based on the above content, it can be seen that the blackboard writing content recorded through the infrared touch frame is less accurate and is not conducive to accurate restoration. Therefore, embodiments of the present application provide a method, device, equipment, system and storage medium for obtaining blackboard writing, so as to accurately obtain the content of the blackboard writing and ensure the accuracy of the recording when recording the content of the blackboard writing.
本申请一个实施例提供了一种黑板板书获取方法,该黑板板书获取方法可以由黑板板书获取设备执行,黑板板书获取设备可以通过软件和/或硬件的方式实现,该黑板板书获取设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。One embodiment of the present application provides a method for obtaining blackboard writing. The method for obtaining blackboard writing can be executed by a blackboard writing obtaining device. The blackboard writing obtaining device can be implemented through software and/or hardware. The blackboard writing obtaining device can be two It is composed of one or more physical entities, or it can be composed of one physical entity.
一个实施例中,黑板板书获取设备为具有数据处理能力的设备,例如,黑板板书获取设备可以是交互平板、平板电脑或摄像设备等,还可以仅是具有数据处理功能的处理器。当黑板板书获取设备为处理器时,若处理器运行时所执行的程序较为复杂且处理器自身的存储空间无法存储该程序,则黑板板书获取设备还可以包括存储器,由存储器存储处理器运行过程中所执行的程序。In one embodiment, the blackboard writing acquisition device is a device with data processing capabilities. For example, the blackboard writing acquisition device may be an interactive tablet, a tablet computer, a camera device, etc., or may simply be a processor with data processing capabilities. When the blackboard writing acquisition device is a processor, if the program executed when the processor is running is relatively complex and the processor's own storage space cannot store the program, the blackboard writing acquisition device may also include a memory, and the memory stores the running process of the processor. procedures performed in.
图1为本申请一个实施例提供的一种黑板板书获取方法的流程图,参考图1,黑板板书获取设备执行黑板板书获取方法时包括如下步骤:Figure 1 is a flow chart of a blackboard writing acquisition method provided by an embodiment of the present application. Referring to Figure 1, the blackboard writing acquisition device includes the following steps when executing the blackboard writing acquisition method:
步骤110、获取摄像设备实时采集的第一图像,摄像设备用于对黑板进行拍摄。Step 110: Obtain the first image collected in real time by the camera device, which is used to photograph the blackboard.
示例性的,摄像设备是指具有摄像功能的设备,如摄像机等。摄像设备也可以记为拍摄设备、拍摄终端、摄像终端等。摄像设备通过摄像头传感器接收镜头的光线,并将这些光线的光信号转换成电信号,以实现图像的采集。For example, the camera device refers to a device with a camera function, such as a video camera. The camera equipment may also be recorded as a camera device, a camera terminal, a camera terminal, etc. The camera device receives the light from the lens through the camera sensor and converts the optical signals of these lights into electrical signals to achieve image collection.
一个实施例中,摄像设备对黑板进行拍摄,以将黑板的板书内容以图像的方式进行获取。摄像设备所拍摄的黑板为传统的黑板,可以使用粉笔在其中书写。可理解,实际应用中,传统的白板也可以作为本实施例中使用的黑板。可选的,一个黑板可以由一个或多个摄像设备进行拍摄,当由多个摄像设备进行拍摄时,每个摄像设备拍摄黑板的一个区域,拍摄的各区域拼接起来可以得到黑板的完整区域。当由一个摄像设备进行拍摄时,一个摄像设备可以拍摄到黑板的完整区域。一个实施例中,以一个摄像设备拍摄一个黑板为例进行描述,可理解,当黑板数量为多个时,每块黑板均有一个摄像设备对其进行拍摄。In one embodiment, the camera device takes a picture of the blackboard to obtain the writing content on the blackboard in the form of an image. The blackboard captured by the camera equipment is a traditional blackboard on which chalk can be used to write. It can be understood that in practical applications, a traditional whiteboard can also be used as the blackboard used in this embodiment. Optionally, a blackboard can be photographed by one or more camera devices. When photographed by multiple camera devices, each camera device captures an area of the blackboard, and the captured areas can be spliced together to obtain the complete area of the blackboard. When photographed by one camera device, one camera device can capture the entire area of the blackboard. In one embodiment, a camera device takes a picture of a blackboard as an example for description. It can be understood that when there are multiple blackboards, each blackboard has a camera device to take pictures of it.
摄像设备与黑板之间的相对位置关系可以根据实际情况设置,一个实施例中,摄像设备安装在黑板的边框上,其中,摄像设备所安装的边框位置以及安装方式当前不作限定,例如,摄像设备安装在黑板的上侧边框的中间位置,并由上至下对黑板进行拍摄。摄像设备可以可拆卸的安装在黑板边框上,也可以固定安装在黑板边框上,当前不作限定。The relative positional relationship between the camera device and the blackboard can be set according to the actual situation. In one embodiment, the camera device is installed on the frame of the blackboard. The position and installation method of the frame where the camera device is installed are not currently limited. For example, the camera device Install it in the middle of the upper frame of the blackboard and photograph the blackboard from top to bottom. The camera equipment can be detachably installed on the blackboard frame, or can be fixedly installed on the blackboard frame. There are currently no restrictions.
一个实施例中,摄像设备开启后,持续进行拍摄。摄像设备拍摄时,将实时采集的图像发送至黑板板书获取设备。当前,将摄像设备采集的图像记为第一图像。可理解,第一图像至少包含其拍摄的黑板的完整区域。需要说明,黑板数量为多个时,每块黑板对应的摄像设 备均将自身实时采集的第一图像发送至黑板板书获取设备。In one embodiment, after the camera device is turned on, shooting continues. When the camera equipment shoots, the real-time collected images are sent to the blackboard writing acquisition equipment. Currently, the image collected by the camera device is recorded as the first image. It is understood that the first image contains at least the complete area of the blackboard from which it was captured. It should be noted that when the number of blackboards is multiple, the camera equipment corresponding to each blackboard The device sends the first image it collects in real time to the blackboard acquisition device.
可选的,黑板板书获取设备和摄像设备可以为同一物理实体,此时,可以使用现有的摄像设备,并在摄像设备的处理器中添加黑板板书获取设备的相关处理逻辑,即摄像设备和黑板板书获取设备共用处理器,还可以是在摄像设备中添加一个新的处理器,并通过新的处理器实现黑板板书获取设备的相关处理逻辑。此时,摄像设备采集第一图像后,通过内部的走线向黑板板书获取设备发送第一图像。还可选的,黑板板书获取设备和摄像设备可以为不同的物理实体,此时,黑板板书获取设备的放置位置当前不作限定,例如,黑板板书获取设备被隐藏放置在黑板背离用户的一侧,或者放置在其他的位置。此时,摄像设备和黑板板书获取设备可以通过有线或无线的方式传输数据,当前,以有线传输为例,摄像设备将第一图像通过有线的传输通道传输至黑板板书获取设备。Optionally, the blackboard writing acquisition device and the camera device can be the same physical entity. In this case, the existing camera device can be used, and the relevant processing logic of the blackboard writing acquisition device is added to the processor of the camera device, that is, the camera device and The blackboard writing acquisition device shares a processor, or a new processor can be added to the camera device, and the relevant processing logic of the blackboard writing acquisition device is implemented through the new processor. At this time, after the camera device collects the first image, it sends the first image to the blackboard acquisition device through internal wiring. Optionally, the blackboard writing acquisition device and the camera device can be different physical entities. At this time, the placement position of the blackboard writing acquisition device is currently not limited. For example, the blackboard writing acquisition device is hidden and placed on the side of the blackboard away from the user. Or place it in another location. At this time, the camera device and the blackboard writing acquisition device can transmit data in a wired or wireless manner. Currently, taking wired transmission as an example, the camera device transmits the first image to the blackboard writing acquisition device through a wired transmission channel.
示例性的,摄像设备和黑板板书获取设备传输第一图像时使用的传输协议当前不作限定。一个实施例中,摄像设备和黑板板书获取设备通过通用串行总线(Universal Serial Bus,USB)或者移动行业处理器接口(Mobile Industry Processor Interface,MIPI)实现有线传输。此时,本步骤可具体为:通过第二USB传输通道或MIPI传输通道接收摄像设备实时采集的第一图像。For example, the transmission protocol used by the camera device and the blackboard acquisition device when transmitting the first image is currently not limited. In one embodiment, the camera equipment and the blackboard acquisition equipment implement wired transmission through Universal Serial Bus (USB) or Mobile Industry Processor Interface (MIPI). At this time, this step may specifically include: receiving the first image collected in real time by the camera device through the second USB transmission channel or the MIPI transmission channel.
其中,USB传输通道是指使用USB协议传输数据的通道,USB传输通道所使用的USB标准当前不作限定。一个实施例中,将摄像设备和黑板板书获取设备之间的USB传输通道记为第二USB传输通道。示例性的,摄像设备采集第一图像后,将第一图像编码成适用于USB传输通道的信号,并通过第二USB传输通道发送至黑板板书获取设备。可选的,摄像设备通过图像信号处理(Image Signal Process,ISP)对第一图像编码,其中,ISP是图像处理过程中较为常用的编码技术手段,当前不另做描述。Among them, the USB transmission channel refers to a channel that uses the USB protocol to transmit data. The USB standard used by the USB transmission channel is currently not limited. In one embodiment, the USB transmission channel between the camera device and the blackboard acquisition device is recorded as the second USB transmission channel. Exemplarily, after the camera device collects the first image, it encodes the first image into a signal suitable for a USB transmission channel, and sends it to the blackboard acquisition device through the second USB transmission channel. Optionally, the camera device encodes the first image through Image Signal Process (ISP), where ISP is a commonly used encoding technology method in the image processing process and will not be described separately at this time.
MIPI传输通道是指使用MIPI标准传输数据的通道。示例性的,摄像设备采集第一图像后,将第一图像以MIPI信号的形式发送至黑板板书获取设备(通过MIPI传输通道实现)。MIPI transmission channel refers to a channel that uses the MIPI standard to transmit data. Exemplarily, after the camera device collects the first image, it sends the first image to the blackboard writing acquisition device in the form of a MIPI signal (implemented through the MIPI transmission channel).
黑板板书获取设备接收摄像设备发送的信号后,得到对应的第一图像。After the blackboard acquisition device receives the signal sent by the camera device, it obtains the corresponding first image.
步骤120、识别第一图像中的笔迹内容和/或非笔迹内容,笔迹内容和非笔迹内容均位于黑板区域内。Step 120: Identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and non-handwriting content are located in the blackboard area.
黑板区域是指第一图像中黑板所在的位置区域。笔迹内容是指黑板区域中通过粉笔等工具书写呈现的内容,笔迹内容可以是文字内容、图形内容等。非笔迹内容是指黑板区域中除笔迹内容外的其他区域的内容,非笔迹内容可以包括黑板中未被书写的板面和目标物,也可以仅包括目标物,其中,目标物包括但不限定于板擦、教具以及人的手部等,目标物与黑板板面存在接触的可能。The blackboard area refers to the area where the blackboard is located in the first image. Handwriting content refers to the content written in the blackboard area using tools such as chalk. The handwriting content can be text content, graphic content, etc. Non-handwriting content refers to the content in other areas of the blackboard area except the handwriting content. The non-handwriting content may include unwritten board surfaces and target objects on the blackboard, or may only include target objects. The target objects include but are not limited to There is a possibility of contact between the target object and the blackboard surface due to erasers, teaching aids, and human hands.
一个实施例中,黑板板书获取设备获取第一图像后,对第一图像进行图像识别,以得到第一图像中位于黑板区域内的笔迹内容。其中,图像识别时所采用的技术手段当前不作限定,例如,通过机器学习技术,预习训练一个用于识别笔迹内容的神经网络模型,之后,通过该神经网络模型识别第一图像中的笔迹内容。 In one embodiment, after the blackboard writing acquisition device acquires the first image, it performs image recognition on the first image to obtain the handwriting content located in the blackboard area in the first image. Among them, the technical means used in image recognition are not currently limited. For example, through machine learning technology, a neural network model for identifying handwriting content is pre-trained, and then the handwriting content in the first image is recognized through the neural network model.
一个实施例中,黑板板书获取设备获取第一图像后,对第一图像进行图像识别,以得到第一图像中位于黑板区域内的非笔迹内容。其中,图像识别时所采用的技术手段当前不作限定,例如,通过机器学习技术,预习训练一个用于识别非笔迹内容的神经网络模型,之后,通过该神经网络模型识别第一图像中的非笔迹内容。可选的,非笔迹内容包括目标物,识别非笔迹内容时,可以同步识别出目标物所属的类型。In one embodiment, after the blackboard acquisition device acquires the first image, it performs image recognition on the first image to obtain the non-handwriting content located in the blackboard area in the first image. Among them, the technical means used in image recognition are not currently limited. For example, through machine learning technology, a neural network model for identifying non-handwriting content is pre-trained, and then the neural network model is used to identify non-handwriting content in the first image. content. Optionally, the non-handwriting content includes the target object. When recognizing the non-handwriting content, the type of the target object can be simultaneously identified.
一个实施例中,黑板板书获取设备获取第一图像后,对第一图像进行图像识别,以得到第一图像中位于黑板区域内的笔迹内容和非笔迹内容。其中,笔迹内容和非笔迹内容的识别方式可参考前述描述,可理解,通过机器学习技术进行图像识别时,可以仅使用一个神经网络模型同时识别笔迹内容和非笔迹内容,或者采用其他的方式识别笔迹内容和非笔迹内容,当前不作限定。In one embodiment, after the blackboard acquisition device acquires the first image, it performs image recognition on the first image to obtain the handwriting content and non-handwriting content located in the blackboard area in the first image. Among them, the method of identifying handwriting content and non-handwriting content can refer to the above description. It can be understood that when performing image recognition through machine learning technology, only one neural network model can be used to identify handwriting content and non-handwriting content at the same time, or other methods can be used to identify the handwriting content and non-handwriting content. Handwriting content and non-handwriting content are currently not limited.
步骤130、调整笔迹内容和/或非笔迹内容的显示效果,得到第二图像,第二图像作为当前获取的板书内容,笔迹内容的显示效果对应增强,非笔迹内容的显示效果对应弱化。Step 130: Adjust the display effect of the handwriting content and/or non-handwriting content to obtain a second image. The second image is used as the currently acquired blackboard writing content. The display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened.
示例性的,识别第一图像中的笔迹内容时,调整笔迹内容的显示效果。其中,显示效果是指显示相应内容时呈现的效果。当前,调整笔迹内容的显示效果主要是增强笔迹内容的显示效果,显示效果被增强后,笔迹内容可以被更突出的显示,即用户观看包含笔迹内容的图像时,更容易关注到笔迹内容。一个实施例中,笔迹内容的显示效果可以通过修改显示亮度、修改色彩饱和度和/或修改其他的参数进行调整,在增强笔迹内容的显示效果时,可以是提高笔迹内容的色彩饱和度和/或提高笔迹内容的显示亮度等,进而使笔迹内容的颜色更加突出。可选的,预先设置增强显示效果时的调整策略,其中,调整策略可以包括调整的参数以及调整的幅度,识别出笔迹内容后,根据预先设置的调整策略增强笔迹内容的显示效果。需要说明,增强显示效果时,笔迹内容对应的笔迹颜色不会发生明显的变化,即用户肉眼观看调整后的笔迹内容的颜色与观看调整前的笔迹内容的颜色基本一致。可选的,识别出笔迹内容后,直接对第一图像中的笔迹内容进行显示效果的增强,并将增强后得到的第一图像记为第二图像,其中,第二图像便可以认为是当前获取的板书内容。还可选的,识别出笔迹内容后,提取笔迹内容,即将第一图像中粉笔书写的轨迹单独提取出来,之后,对提取的笔迹内容进行显示效果的增强,并生成第二图像,此时,第二图像中的板书内容仅包含粉笔书写的内容。For example, when the handwriting content in the first image is recognized, the display effect of the handwriting content is adjusted. Among them, the display effect refers to the effect when displaying the corresponding content. Currently, adjusting the display effect of handwriting content is mainly to enhance the display effect of handwriting content. After the display effect is enhanced, the handwriting content can be displayed more prominently, that is, when users view images containing handwriting content, it is easier to pay attention to the handwriting content. In one embodiment, the display effect of the handwriting content can be adjusted by modifying the display brightness, color saturation and/or modifying other parameters. When enhancing the display effect of the handwriting content, the color saturation and/or the color saturation of the handwriting content can be enhanced. Or increase the display brightness of the handwriting content, etc., thereby making the color of the handwriting content more prominent. Optionally, an adjustment strategy for enhancing the display effect is set in advance, where the adjustment strategy may include adjustment parameters and adjustment amplitudes. After the handwriting content is recognized, the display effect of the handwriting content is enhanced according to the preset adjustment strategy. It should be noted that when the display effect is enhanced, the handwriting color corresponding to the handwriting content will not change significantly, that is, the color of the adjusted handwriting content viewed by the user's naked eye is basically the same as the color of the handwriting content before adjustment. Optionally, after the handwriting content is recognized, the display effect of the handwriting content in the first image is directly enhanced, and the enhanced first image is recorded as the second image, where the second image can be considered as the current Obtained blackboard content. Optionally, after identifying the handwriting content, extract the handwriting content, that is, extract the chalk writing trajectory in the first image separately, and then enhance the display effect of the extracted handwriting content and generate a second image. At this time, The content of the blackboard writing in the second image only contains content written in chalk.
示例性的,识别第一图像中的非笔迹内容时,调整非笔迹内容的显示效果。当前,调整非笔迹内容的显示效果主要是弱化非笔迹内容的显示效果,显示效果被弱化后,用户观看时,非笔迹内容不易被用户关注到,进而使得笔迹内容更容易被关注到。同样的,预先设置弱化显示效果时的调整策略,识别出非笔迹内容后,根据预先设置的调整策略弱化非笔迹内容的显示效果。一个实施例中,非笔迹内容的显示效果可以通过修改显示亮度、修改色彩饱和度、修改透明度、进行虚化和/或其他方式进行调整。弱化显示效果与增强显示效果相对。一个实施例中,识别第一图像中的非笔迹内容后,通过增加非笔迹内容的透明度以及进行虚化的方式,弱化第一图像中非笔迹内容的显示效果,此时,位于黑板区域内的笔迹内容便会被突出,进而实现获取板书内容,当前,弱化非笔迹内容后的第一图像便作为第二图像。 For example, when non-handwriting content in the first image is recognized, the display effect of the non-handwriting content is adjusted. Currently, adjusting the display effect of non-handwriting content mainly involves weakening the display effect of non-handwriting content. After the display effect is weakened, the non-handwriting content is less likely to be noticed by the user when viewing it, which in turn makes the handwriting content more likely to be noticed. Similarly, the adjustment strategy for weakening the display effect is set in advance. After identifying the non-handwriting content, the display effect of the non-handwriting content is weakened according to the preset adjustment strategy. In one embodiment, the display effect of non-handwriting content can be adjusted by modifying the display brightness, modifying the color saturation, modifying the transparency, blurring, and/or other methods. Weakening the display effect is the opposite of enhancing the display effect. In one embodiment, after identifying the non-handwriting content in the first image, the display effect of the non-handwriting content in the first image is weakened by increasing the transparency of the non-handwriting content and blurring it. At this time, the content located in the blackboard area The handwriting content will be highlighted, thereby achieving the acquisition of the blackboard writing content. Currently, the first image after weakening the non-handwriting content is used as the second image.
示例性的,识别第一图像中的笔迹内容和非笔迹内容时,对第一图像中的笔迹内容进行显示效果的增强,对第一图像中的非笔迹内容进行显示效果的弱化,之后,将处理后的第一图像作为第二图像。或者是,提取识别到的笔迹内容和非笔迹内容,之后,对提取的笔迹内容进行显示效果的增强,对提取的非笔迹内容进行显示效果的弱化,之后,将笔迹内容和非笔迹内容合成为一张新的图像,并将新的图像作为第二图像。For example, when identifying handwriting content and non-handwriting content in the first image, the display effect of the handwriting content in the first image is enhanced, and the display effect of the non-handwriting content in the first image is weakened, and then the display effect is The processed first image is used as the second image. Or, extract the recognized handwriting content and non-handwriting content, then enhance the display effect of the extracted handwriting content, weaken the display effect of the extracted non-handwriting content, and then synthesize the handwriting content and non-handwriting content into a new image and use the new image as the second image.
可选的,摄像设备拍摄时,可能会拍摄到黑板外的其他区域(如黑板安装在墙上时,拍摄到黑板周围的墙面),此时,若对第一图像中的笔迹内容和/或非笔迹内容进行显示效果的调整,并得到第二图像,则可以在第二图像中删除其他区域,仅保留黑板区域的内容。Optionally, when the camera equipment is shooting, it may capture other areas outside the blackboard (for example, when the blackboard is installed on the wall, the wall surrounding the blackboard is captured). At this time, if the handwriting content and/or content in the first image are captured, or non-handwriting content to adjust the display effect and obtain the second image, then other areas can be deleted in the second image and only the content of the blackboard area can be retained.
可选的,黑板的形状通常为矩形。由于摄像设备拍摄时的角度限制,会使第一图像中的黑板区域呈梯形。因此摄像设备安装在所述黑板的边框上,调整笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像之后,还包括:对第二图像中的黑板区域进行梯形校正,以使第二图像中的黑板区域由梯形恢复成矩形,进而使第二图像中的板书内容恢复成矩形的黑板所呈现的内容。其中,梯形校正是摄像领域中图像处理的常用技术手段,当前不另做描述。Optionally, the blackboard is usually rectangular in shape. Due to the angle limitation of the camera equipment when shooting, the blackboard area in the first image will appear trapezoidal. Therefore, the camera equipment is installed on the frame of the blackboard, adjusts the display effect of the handwriting content and/or the non-handwriting content, and obtains the second image. It also includes: performing trapezoidal correction on the blackboard area in the second image so that the The blackboard area in the second image is restored from a trapezoid to a rectangle, thereby restoring the blackboard writing content in the second image to the content presented on the rectangular blackboard. Among them, keystone correction is a common technical means for image processing in the field of photography and will not be described separately at this time.
步骤140、将第二图像发送至显示设备,以使显示设备显示第二图像和/或存储第二图像。Step 140: Send the second image to the display device, so that the display device displays the second image and/or stores the second image.
示例性的,得到第二图像后,黑板板书获取设备将第二图像发送至其他的设备,以供其他设备对第二图像进行相应的处理,如显示第二图像和/或存储第二图像等。Exemplarily, after obtaining the second image, the blackboard acquisition device sends the second image to other devices so that the other devices can perform corresponding processing on the second image, such as displaying the second image and/or storing the second image, etc. .
一个实施例中,得到第二图像后,将第二图像发送至显示设备,其中,显示设备是具有显示功能的设备,如显示设备是指可以呈像的显示屏。可选的,显示设备还具有数据处理、存储等功能,此时,显示设备还可以是交互平板、平板电脑、笔记本电脑、手机等电子设备。可选的,黑板板书获取设备和显示设备可以为同一物理实体,此时,可以使用现有的显示设备,并在显示设备的处理器中添加黑板板书获取设备的相关处理逻辑,即显示设备和黑板板书获取设备共用处理器,还可以是在显示设备中添加一个新的处理器,并通过新的处理器实现黑板板书获取设备的相关处理逻辑。此时,黑板板书获取设备通过内部的走线将第二图像发送至显示设备。还可选的,黑板板书获取设备和摄像设备可以为不同的物理实体,此时,黑板板书获取设备和显示设备可以通过有线或无线的方式传输数据,当前,以有线传输为例,黑板板书获取设备将第二图像通过有线的传输通道传输至显示设备。In one embodiment, after obtaining the second image, the second image is sent to a display device, where the display device is a device with a display function, for example, the display device refers to a display screen that can present images. Optionally, the display device also has functions such as data processing and storage. At this time, the display device can also be an interactive tablet, a tablet computer, a notebook computer, a mobile phone and other electronic devices. Optionally, the blackboard writing acquisition device and the display device can be the same physical entity. In this case, the existing display device can be used, and the relevant processing logic of the blackboard writing acquisition device can be added to the processor of the display device, that is, the display device and The blackboard writing acquisition device shares a processor, or a new processor can be added to the display device, and the relevant processing logic of the blackboard writing acquisition device is implemented through the new processor. At this time, the blackboard acquisition device sends the second image to the display device through internal wiring. Optionally, the blackboard writing acquisition device and the camera device can be different physical entities. At this time, the blackboard writing acquisition device and the display device can transmit data through wired or wireless methods. Currently, taking wired transmission as an example, the blackboard writing acquisition device The device transmits the second image to the display device through a wired transmission channel.
需要说明,黑板板书获取设备与摄像设备为同一物理实体时,若黑板数量为多个,则黑板板书获取设备为多个,且每个黑板板书获取设备均可以得到第二图像并发送至显示设备。黑板板书获取设备与摄像设备不是同一物理实体时,若黑板数量为多个,则摄像设备为多个,此时,黑板板书获取设备可以接收各摄像设备拍摄的第一图像,并分别进行处理以得到对应的第二图像,之后,将多个第二图像发送至显示设备。显示设备接收到多个第二图像后,若需要显示第二图像,则可以同时显示多个第二图像,或者是,按照预先设定的显示逻辑或用户的指示显示其中至少一个第二图像。It should be noted that when the blackboard writing acquisition device and the camera device are the same physical entity, if there are multiple blackboards, there are multiple blackboard writing acquisition devices, and each blackboard writing acquisition device can obtain the second image and send it to the display device . When the blackboard writing acquisition device and the camera device are not the same physical entity, if the number of blackboards is multiple, the number of camera devices is multiple. At this time, the blackboard writing acquisition device can receive the first image captured by each camera device and process it respectively. Corresponding second images are obtained, and then multiple second images are sent to the display device. After the display device receives multiple second images, if it needs to display the second images, it can display multiple second images at the same time, or display at least one of the second images according to preset display logic or user instructions.
一个实施例中,将第二图像发送至显示设备包括包括:通过第一USB传输通道或多媒体传输通道将所述第二图像发送至显示设备。 In one embodiment, sending the second image to the display device includes: sending the second image to the display device through a first USB transmission channel or a multimedia transmission channel.
示例性的,黑板板书获取设备和显示设备可以使用USB传输通道传输数据,当前,将黑板板书获取设备和显示设备之间的USB传输通道记为第一USB传输通道。示例性的,黑板板书获取设备生成第二图像后,将第二图像编码成适用于USB传输通道的信号,并通过第一USB传输通道发送至显示设备。可选的,黑板板书获取设备所采用的编码规则当前不作限定,例如,对第二图像做H.264编码或H.265编码,其中,H.264和H.265均是视频编解码标准。可理解,由于黑板板书获取设备实时获取第一图像并生成对应的第二图像,因此,实时的第二图像可以以视频数据的方式进行编码并通过第一USB传输通道发送至显示设备,之后,显示设备对接收的视频数据进行解码,以得到实时的第二图像。For example, the blackboard writing acquisition device and the display device may use a USB transmission channel to transmit data. Currently, the USB transmission channel between the blackboard writing acquisition device and the display device is recorded as the first USB transmission channel. Exemplarily, after the blackboard acquisition device generates the second image, the second image is encoded into a signal suitable for a USB transmission channel, and is sent to the display device through the first USB transmission channel. Optionally, the encoding rules used by the blackboard acquisition device are currently not limited. For example, the second image may be encoded in H.264 or H.265, where both H.264 and H.265 are video codec standards. It can be understood that since the blackboard acquisition device acquires the first image in real time and generates the corresponding second image, the real-time second image can be encoded in the form of video data and sent to the display device through the first USB transmission channel, and then, The display device decodes the received video data to obtain a real-time second image.
示例性的,黑板板书获取设备和显示设备还可以使用多媒体传输通道传输数据。其中,多媒体传输通道是指采用多媒体接口进行数据传输的通道,多媒体接口包括但不限定于高清多媒体接口(High Definition Multimedia Interface,HDMI)或DisplayPort(DP)等。黑板板书获取设备生成第二图像后,将第二图像通过多媒体传输通道传输至显示设备,以使显示设备获取到第二图像。For example, the blackboard acquisition device and the display device may also use a multimedia transmission channel to transmit data. Among them, the multimedia transmission channel refers to the channel that uses multimedia interfaces for data transmission. Multimedia interfaces include but are not limited to High Definition Multimedia Interface (HDMI) or DisplayPort (DP). After the blackboard acquisition device generates the second image, the second image is transmitted to the display device through the multimedia transmission channel, so that the display device acquires the second image.
显示设备获取第二图像后,可以得到当前黑板的板书内容,并进行后续处理。一个实施例中,后续处理包括显示板书内容和/或存储板书内容等。显示设备显示板书内容时,将第二图像发送至自身的显示屏,以在显示屏中显示第二图像,可选的,第二图像可被实时显示在显示屏中。可理解,当前,由显示设备的处理器获取第二图像并发送至显示屏中,其中,显示设备的处理器通过低电压差分信号(Low-Voltage Differential Signaling,LVDS)、V-by-One(VBO)、MIPI、Embedded Display Port(EDP)等方式将第二图像发送至显示屏中进行显示。需要说明,显示设备显示第二图像时的显示规则当前不作限定。显示设备存储板书内容时,可以保存第二图像编码后的数据流。其中,显示设备所使用的编码规则当前不作限定,保存后,显示设备的用户可以随时根据需要调取数据流,以得到板书内容。可选的,显示设备还可以将存储的板书内容上传至网络中,以供网络中的其他设备获取板书内容。After the display device obtains the second image, it can obtain the writing content of the current blackboard and perform subsequent processing. In one embodiment, the subsequent processing includes displaying the content of the blackboard writing and/or storing the content of the blackboard writing, etc. When the display device displays the content of the blackboard writing, it sends the second image to its own display screen to display the second image on the display screen. Optionally, the second image can be displayed on the display screen in real time. It can be understood that currently, the second image is acquired by the processor of the display device and sent to the display screen. The processor of the display device uses Low-Voltage Differential Signaling (LVDS), V-by-One ( VBO), MIPI, Embedded Display Port (EDP) and other methods to send the second image to the display for display. It should be noted that the display rules when the display device displays the second image are currently not limited. When the display device stores the content of the blackboard writing, it can save the encoded data stream of the second image. Among them, the encoding rules used by the display device are currently not limited. After saving, the user of the display device can retrieve the data stream at any time as needed to obtain the content of the blackboard writing. Optionally, the display device can also upload the stored blackboard writing content to the network so that other devices in the network can obtain the blackboard writing content.
需要说明,摄像设备启动后实时采集第一图像并发送至黑板板书获取设备,之后,黑板板书获取设备实时获取第一图像并进行如上的处理,以得到第二图像并将第二图像实时发送至显示设备。It should be noted that after the camera equipment is started, the first image is captured in real time and sent to the blackboard acquisition device. After that, the blackboard acquisition device acquires the first image in real time and performs the above processing to obtain the second image and sends the second image to the device in real time. display screen.
上述,通过获取摄像设备对黑板拍摄后得到的第一图像,并识别第一图像中位于黑板区域内的笔迹内容和/或非笔迹内容,之后,调整笔迹内容和/或非笔迹内容的显示效果,其中,对笔迹内容进行显示效果增强,对非笔迹内容进行显示效果弱化,以得到第二图像,第二图像作为当前获取的板书内容,之后,第二图像发送至显示设备,以使显示设备显示第二图像和/或存储第二图像的技术手段,解决了相关技术中,通过红外触摸检测的方式获取的板书内容准确性低的技术问题,使用拍摄图像的方式取代红外触摸检测,可以准确获取到黑板中的内容,即使黑板上吸附有板擦、教具等物体,摄像设备也可清晰拍摄板擦、教具周围的区域,不会出现遮挡的情况,并且,拍摄的图像可以包含粉笔书写时的颜色以及书写出的笔锋等内容,并且不会出现断线的情况,保证了板书内容的还原度,并且,通过拍摄的图像识别到黑 板中的笔迹内容和/或非笔迹内容,并调整相应的显示效果,可以使得笔迹内容更加突出,进而使得第二图像中的板书内容更加突出。并且,将第二图像发送至显示设备后,可以实现板书内容的实时显示、实时保存等,便于后续使用。In the above, the first image obtained after the blackboard is photographed by the camera device is obtained, and the handwriting content and/or non-handwriting content located in the blackboard area in the first image are identified, and then the display effect of the handwriting content and/or non-handwriting content is adjusted. , wherein the display effect of the handwriting content is enhanced, and the display effect of the non-handwriting content is weakened to obtain the second image. The second image is used as the currently obtained blackboard writing content. After that, the second image is sent to the display device, so that the display device The technical means of displaying the second image and/or storing the second image solves the technical problem of low accuracy of blackboard content obtained through infrared touch detection in related technologies. Using the method of capturing images instead of infrared touch detection can accurately After obtaining the content on the blackboard, even if there are objects such as erasers and teaching aids adsorbed on the blackboard, the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction, and the captured image can contain the color of the chalk writing. As well as the written strokes and other content, there will be no disconnection, ensuring the restoration of the content written on the blackboard, and black and white can be recognized through the captured images. The handwriting content and/or non-handwriting content in the board and adjusting the corresponding display effect can make the handwriting content more prominent, thereby making the blackboard writing content in the second image more prominent. Moreover, after the second image is sent to the display device, real-time display and real-time saving of the content of the blackboard writing can be realized to facilitate subsequent use.
图2为本申请一个实施例提供的一种黑板板书获取方法的流程图。本实施例是在上述实施例的基础上,对调整所述笔迹内容和/或所述非笔迹内容的显示效果的操作作进一步的描述。Figure 2 is a flow chart of a method for obtaining blackboard writing provided by an embodiment of the present application. Based on the above embodiment, this embodiment further describes the operation of adjusting the display effect of the handwriting content and/or the non-handwriting content.
本实施例中,摄像设备拍摄的黑板(即传统黑板)和显示设备组成了新型黑板,需说明,新型黑板也可以记为智慧黑板、智能黑板、记录黑板等,无论哪种名称,只要能够实现新型黑板的功能,便等同于本申请的新型黑板。In this embodiment, the blackboard captured by the camera device (i.e., the traditional blackboard) and the display device constitute a new blackboard. It should be noted that the new blackboard can also be recorded as a smart blackboard, a smart blackboard, a recording blackboard, etc. No matter which name is used, as long as it can be realized The function of the new blackboard is equivalent to the new blackboard of this application.
新型黑板中,显示设备可以是电视、交互平板等带有显示屏的设备。其中,交互平板是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。In the new blackboard, the display device can be a TV, interactive tablet or other device with a display screen. Among them, the interactive tablet is an integrated device that uses touch technology to control the content displayed on the display tablet and realize human-computer interaction. It integrates projectors, electronic whiteboards, screens, speakers, TVs, and video conferencing terminals, etc. One or more functions.
显示设备具有一个或多个显示屏,可选的,该显示屏是液晶显示屏(Liquid Crystal Display,LCD)。一个实施例中,显示屏可以是具有触控功能也可以不具有触控功能。当显示屏具有触控功能时,其可以是电容屏、电阻屏、红外屏和/或电磁屏。用户可以通过手指或触控笔触控显示屏的方式实现对显示设备的控制。此外,显示设备还可以连接鼠标、键盘等外置设备,用户还可以通过操作外置设备的方式实现对显示设备的控制。显示设备还包括处理器和存储器,处理器通过运行存储在存储器中的软件程序、指令以及模块,从而执行显示设备的各种功能应用以及数据处理。显示设备还包括电源,显示设备连接市电后,电源工作为内部各器件(如处理器、存储器、显示屏等)供电。The display device has one or more display screens, optionally, the display screen is a liquid crystal display (Liquid Crystal Display, LCD). In one embodiment, the display screen may or may not have a touch function. When the display screen has a touch function, it can be a capacitive screen, a resistive screen, an infrared screen and/or an electromagnetic screen. Users can control the display device by touching the display screen with their fingers or stylus. In addition, the display device can also be connected to external devices such as a mouse and keyboard, and users can also control the display device by operating external devices. The display device also includes a processor and a memory. The processor executes various functional applications and data processing of the display device by running software programs, instructions and modules stored in the memory. The display device also includes a power supply. After the display device is connected to the mains, the power supply works to supply power to various internal devices (such as processors, memory, display screens, etc.).
可选的,显示设备和黑板可以一体化设计也可以独立设计。显示设备和黑板之间的排列方式可以根据实际需求设置,例如,黑板数量为一块时,安装黑板和显示设备时,黑板和显示设备水平排列,再如,黑板数量为两块时,安装黑板和显示设备时,显示设备位于两块黑板的中间。一个实施例中,以两块黑板为例。图3为本申请一个实施例提供的一种新型黑板示意图。参考图3,黑板11和黑板12中间有显示设备13。Optionally, the display device and blackboard can be designed integrally or independently. The arrangement between the display device and the blackboard can be set according to actual needs. For example, when the number of blackboards is one, when installing the blackboard and the display device, the blackboard and the display device are arranged horizontally. For another example, when the number of blackboards is two, install the blackboard and the display device. When displaying the device, the display device is located in the middle of the two blackboards. In one embodiment, two blackboards are taken as an example. Figure 3 is a schematic diagram of a new type of blackboard provided by an embodiment of the present application. Referring to Figure 3, there is a display device 13 between the blackboard 11 and the blackboard 12.
一个实施例中,摄像设备安装在黑板的边框上,以对黑板进行拍摄,当前,以摄像设备安装在黑板的上边框的中间位置处为例进行描述,例如,参考图3,黑板11上侧边缘的中间安装有摄像设备14,黑板12上侧边缘的中间也安装有摄像设备15。In one embodiment, the camera device is installed on the frame of the blackboard to take pictures of the blackboard. Currently, for description, the camera device is installed at the middle position of the upper frame of the blackboard as an example. For example, with reference to Figure 3, the upper side of the blackboard 11 A camera device 14 is installed in the middle of the edge, and a camera device 15 is also installed in the middle of the upper edge of the blackboard 12 .
可选的,黑板板书获取设备集成在显示设备的内部。还可选的,黑板板书获取设备集成在摄像设备的内部。也可选的,黑板板书获取设备和显示设备及摄像设备均相互独立。当前,以黑板板书获取设备与显示设备相互独立为例进行描述,此时,可以使用现有的显示设备,并建立显示设备与黑板板书获取设备的数据传输通道。黑板板书获取设备和显示设备之间可以采用无线连接方式,也可以采用有线连接方式,一个实施例中,以黑板板书获取设备和显示设备采用有线连接的方式进行示例性描述。有线连接时,显示设备的处理器和黑板板书获取设备的处理器之间进行传输数据,如黑板板书获取设备将第二图像发送至显示设备的处理 器,以供处理器进行后续处理。有线连接时,显示设备的电源还可以为黑板板书获取设备供电,以使黑板板书获取设备正常运行。可选的,黑板板书获取设备正常运行时,可以为摄像设备提供电源,以使摄像设备开始采集第一图像。Optionally, the blackboard acquisition device is integrated inside the display device. Optionally, the blackboard acquisition device is integrated inside the camera device. Optionally, the blackboard writing acquisition device, the display device and the camera device are all independent of each other. Currently, the description is based on the example that the blackboard writing acquisition device and the display device are independent of each other. At this time, the existing display device can be used, and a data transmission channel between the display device and the blackboard writing acquisition device can be established. The blackboard writing acquisition device and the display device may be connected in a wireless or wired manner. In one embodiment, the blackboard writing acquisition device and the display device are connected in a wired manner for exemplary description. When connected with a wire, data is transmitted between the processor of the display device and the processor of the blackboard acquisition device, such as the processing of the blackboard acquisition device sending the second image to the display device. for subsequent processing by the processor. When connected with a wire, the power supply of the display device can also provide power to the blackboard writing acquisition device so that the blackboard writing acquisition device can operate normally. Optionally, when the blackboard acquisition device is operating normally, power can be provided to the camera device so that the camera device starts to collect the first image.
图4为本申请一个实施例提供的一种黑板板书获取系统的数据流向框图。各设备间的数据传输流向如图4所示,其中,摄像头sensor(即摄像头传感器)位于摄像设备中,也可以等同于摄像设备。第一处理器位于黑板板书获取设备中,也可以等同于黑板板书获取设备。第一处理器也可以为摄像设备的处理器,即黑板板书获取设备和摄像设备为同一物理实体。第二处理器为显示设备中的处理器,液晶显示屏为显示设备中的显示屏,电源为显示设备中的电源。基于图4可知,显示设备启动后,电源可为第一处理器提供电源,之后,第一处理器开始工作(即黑板板书获取设备工作)并为摄像头sensor提供电源,摄像头sensor工作(即摄像设备工作)。摄像头sensor工作后,采集第一图像并发送至第一处理器,之后第一处理器对第一图像进行处理以得到第二图像,并将第二图像发送至第二处理器,第二处理器得到第二图像后可以控制液晶显示屏进行显示。并且,第二处理器还可以对电源进行控制。Figure 4 is a data flow block diagram of a blackboard writing acquisition system provided by an embodiment of the present application. The data transmission flow between various devices is shown in Figure 4, in which the camera sensor (i.e., camera sensor) is located in the camera device and can also be equivalent to the camera device. The first processor is located in the blackboard writing acquisition device, and may also be equivalent to the blackboard writing acquisition device. The first processor may also be the processor of the camera device, that is, the blackboard acquisition device and the camera device are the same physical entity. The second processor is a processor in the display device, the liquid crystal display screen is a display screen in the display device, and the power supply is a power supply in the display device. Based on Figure 4, it can be seen that after the display device is started, the power supply can provide power to the first processor. After that, the first processor starts to work (that is, the blackboard acquisition device works) and provides power to the camera sensor, and the camera sensor works (that is, the camera equipment Work). After the camera sensor works, it collects the first image and sends it to the first processor. Then the first processor processes the first image to obtain the second image, and sends the second image to the second processor. The second processor After obtaining the second image, the LCD screen can be controlled to display. Moreover, the second processor can also control the power supply.
本实施例中,黑板板书获取设备同时识别第一图像中位于黑板区域内的笔迹内容和非笔迹内容,并修改笔迹内容和对非笔迹内容的显示效果。此时,参考图2,黑板板书获取设备执行的黑板板书获取方法具体包括:In this embodiment, the blackboard acquisition device simultaneously identifies the handwriting content and non-handwriting content located in the blackboard area in the first image, and modifies the handwriting content and the display effect of the non-handwriting content. At this time, referring to Figure 2, the blackboard writing acquisition method executed by the blackboard writing acquisition device specifically includes:
步骤210、获取摄像设备实时采集的第一图像,摄像设备用于对黑板进行拍摄。Step 210: Obtain the first image collected in real time by the camera device, which is used to photograph the blackboard.
步骤220、识别第一图像中的笔迹内容和/或非笔迹内容,笔迹内容和非笔迹内容均位于黑板区域内。Step 220: Identify handwriting content and/or non-handwriting content in the first image, and both the handwriting content and non-handwriting content are located in the blackboard area.
一个实施例中,非笔迹内容包括目标物。其中,目标物可以是板擦、教具等物品,也可以是人的手部。可选的,识别非笔迹内容时,也可以仅是识别目标物,此时,黑板板面中未被书写的区域不再作为非笔迹内容。目标物与黑板的板面接触,且接触方式当前不作限定。一些情况下,存在目标物遮挡笔迹内容的情况,此时,识别第一图像中的笔迹内容和非笔迹内容之后,还包括:检测到笔迹内容被目标物遮挡时,获取历史笔迹内容并作为当前识别的笔迹内容,历史笔迹内容为目标物遮挡笔迹内容之前识别到的笔迹内容。示例性的,识别目标物和笔迹内容时,可以判断目标物是否遮挡笔迹内容,其中,判断方式当前不作限定,例如,检测到目标物时,确定目标物在黑板区域的位置,之后,查询检测到目标物之前该位置的识别结果,若识别结果为该位置显示有笔迹内容,则将该位置所显示的笔迹内容作为历史笔迹内容,并确定目标物遮挡了笔迹内容。若识别结果为该位置未显示笔迹内容,则确定目标物未遮挡笔迹内容。确定目标物遮挡笔迹内容后,获取目标物所在位置处的历史笔迹内容,并将历史笔迹内容作为当前对该位置识别得到的笔迹内容,并将该位置的笔迹内容和当前识别到的其他笔迹内容一同作为本次识别到的笔迹内容,以保证后续获取到的板书内容的完整性。可选的,只有在目标物满足设定类型时,才判断目标物是否遮挡笔迹内容,比如,将人的手部确定为设定类型的目标物,此时,若识别到目标物,则判断目标物体是否为人的手部,若目标物是人的手部,则继续检测目标物是否遮挡笔迹内容。若目标物不是人的手部,则不 进行遮挡笔迹内容的检测,这样设置的好处是,避免因教学需要使用教具遮挡笔迹内容或者是使用板擦擦除笔迹内容时,对遮挡的误识别。需说明,实际应用中,也可以不进行遮挡的检测,识别目标物后,直接进行后续的操作。In one embodiment, the non-handwriting content includes objects. Among them, the target object can be an eraser, teaching aids and other items, or it can be a human hand. Optionally, when identifying non-handwriting content, you can also only identify the target object. At this time, the unwritten area on the blackboard is no longer regarded as non-handwriting content. The target object is in contact with the surface of the blackboard, and the contact method is currently not limited. In some cases, there is a situation where the target object blocks the handwriting content. At this time, after identifying the handwriting content and non-handwriting content in the first image, it also includes: when detecting that the handwriting content is blocked by the target object, obtaining the historical handwriting content and using it as the current The recognized handwriting content, the historical handwriting content is the handwriting content recognized before the target object blocks the handwriting content. For example, when identifying the target object and the handwriting content, you can determine whether the target object blocks the handwriting content. The judgment method is not limited at present. For example, when the target object is detected, the position of the target object in the blackboard area is determined, and then the detection is queried. The recognition result of the position before reaching the target object. If the recognition result is that the handwriting content is displayed at the position, the handwriting content displayed at the position is regarded as the historical handwriting content, and it is determined that the target object blocks the handwriting content. If the recognition result is that the handwriting content is not displayed at the position, it is determined that the target object does not block the handwriting content. After determining that the target object blocks the handwriting content, obtain the historical handwriting content at the location of the target object, and use the historical handwriting content as the handwriting content currently recognized at the location, and combine the handwriting content at this location with other currently recognized handwriting content. Together as the handwriting content recognized this time, to ensure the integrity of the blackboard writing content subsequently obtained. Optionally, only when the target object meets the set type, it is judged whether the target object blocks the handwriting content. For example, the human hand is determined to be the target object of the set type. At this time, if the target object is recognized, it is judged Whether the target object is a human hand. If the target object is a human hand, continue to detect whether the target object blocks the handwriting content. If the target object is not a human hand, then no Detection of blocked handwriting content. The advantage of this setting is to avoid misidentification of occlusion when using teaching aids to block the handwriting content or using an eraser to erase the handwriting content due to teaching needs. It should be noted that in actual applications, occlusion detection may not be performed, and subsequent operations can be directly performed after identifying the target object.
步骤230、对笔迹内容进行显示效果增强,对非笔迹内容进行显示效果弱化。Step 230: Enhance the display effect of handwriting content and weaken the display effect of non-handwriting content.
示例性的,识别第一图像中的笔迹内容和非笔迹内容后,提取识别出的笔迹内容和非笔迹内容。For example, after identifying the handwriting content and non-handwriting content in the first image, the recognized handwriting content and non-handwriting content are extracted.
之后,对笔迹内容进行显示效果增强,并对非笔迹内容进行显示效果弱化。一个实施例中,对笔迹内容进行显示效果增强包括:提高笔迹内容的显示亮度和/或色彩饱和度。一个实施例中,对非笔迹内容进行显示效果弱化包括:降低非笔迹内容的显示亮度和/或色彩饱和度;和/或,提高非笔迹内容的透明度;和/或,虚化非笔迹内容。需要说明,上述调整显示效果时,所涉及的参数的调整幅度当前不作限定。可选的,可以同时调整笔迹内容和非笔迹内容的显示效果,也可以先后调整笔迹内容和非笔迹内容的显示效果。After that, the display effect of the handwriting content is enhanced, and the display effect of the non-handwriting content is weakened. In one embodiment, enhancing the display effect of the handwriting content includes: increasing the display brightness and/or color saturation of the handwriting content. In one embodiment, weakening the display effect of non-handwriting content includes: reducing the display brightness and/or color saturation of non-handwriting content; and/or increasing the transparency of non-handwriting content; and/or blurring non-handwriting content. It should be noted that when adjusting the display effect above, the adjustment range of the parameters involved is not currently limited. Optionally, the display effects of handwriting content and non-handwriting content can be adjusted at the same time, or the display effects of handwriting content and non-handwriting content can be adjusted successively.
一个实施例中,提取的笔迹内容仍为图像、提取的非笔迹内容也为图像。此时,步骤230可包括步骤231-步骤232:In one embodiment, the extracted handwriting content is still an image, and the extracted non-handwriting content is also an image. At this time, step 230 may include steps 231 to 232:
步骤231、对笔迹内容进行显示效果增强,得到第一层级的子图像。Step 231: Enhance the display effect of the handwriting content to obtain the first-level sub-image.
示例性的,识别出笔迹内容后,可以通过抠图或其他方式,将笔迹内容从第一图像中提取出来,并且,提取出的笔迹内容仍为图像的形式。一个实施例中,提取笔迹内容后,对笔迹内容进行显示效果的增强,以得到增强后的图像,当前,将增强后的图像记为第一层级的子图像。其中,第一层级的子图像只显示有增强后的笔迹内容,其他的区域为透明的状态。提取笔迹内容时所得到的图像的大小当前不作限定,可选的,该图像与第一图像的大小相同,或者是,该图像与第一图像中的黑板区域的大小相同,又或者是,该图像为设定大小,此时,提取笔迹内容时笔迹内容在所得到的图像中的相对位置与笔迹内容在第一图像中(或在黑板区域中)的相对位置相同。还可选的,提取笔迹内容时所得到的图像的大小与包含笔迹内容的最小矩形区域的大小相同。之后,对该图像中的笔迹内容进行显示效果的增强,并将增强后的图像记为第一层级的子图像。For example, after the handwriting content is recognized, the handwriting content can be extracted from the first image by cutting out the image or other methods, and the extracted handwriting content is still in the form of an image. In one embodiment, after extracting the handwriting content, the display effect of the handwriting content is enhanced to obtain an enhanced image. Currently, the enhanced image is recorded as a first-level sub-image. Among them, the first-level sub-image only displays the enhanced handwriting content, and other areas are transparent. The size of the image obtained when extracting handwriting content is currently not limited. Optionally, the image is the same size as the first image, or the image is the same size as the blackboard area in the first image, or the image is the same size as the blackboard area in the first image. The image is of a set size. At this time, when extracting the handwriting content, the relative position of the handwriting content in the obtained image is the same as the relative position of the handwriting content in the first image (or in the blackboard area). Optionally, the size of the image obtained when extracting the handwriting content is the same as the size of the smallest rectangular area containing the handwriting content. Afterwards, the display effect of the handwriting content in the image is enhanced, and the enhanced image is recorded as a first-level sub-image.
步骤232、对非笔迹内容进行显示效果弱化,得到第二层级的子图像。Step 232: Weaken the display effect of non-handwriting content to obtain a second-level sub-image.
示例性的,识别出非笔迹内容后,可以通过抠图或其他方式,将非笔迹内容从第一图像中提取出来,并且,提取出的非笔迹内容仍为图像的形式。一个实施例中,提取非笔迹内容后,对非笔迹内容进行显示效果的弱化,得到弱化后的图像,当前,将弱化后的图像记为第二层级的子图像。其中,第二层级的子图像显示有非笔迹内容,其他的区域为透明的状态。提取非笔迹内容时所得到的图像的大小当前不作限定,可选的,该图像与第一层级的子图像的大小相同、与第一图像的大小相同或者与第一图像中的黑板区域的大小相同,此时,提取非笔迹内容时非笔迹内容在所得到的图像中的相对位置与非笔迹内容在第一图像中(或在黑板区域中)的相对位置相同。还可选的,提取非笔迹内容时所得到的图像的大小与包含非笔迹内容的最小矩形区域的大小相同。之后,对该图像中的非笔迹内容进行显示效果的弱化, 并将弱化后的图像记为第二层级的子图像。For example, after identifying the non-handwriting content, the non-handwriting content can be extracted from the first image by cutting out the image or other methods, and the extracted non-handwriting content is still in the form of an image. In one embodiment, after extracting the non-handwriting content, the display effect of the non-handwriting content is weakened to obtain a weakened image. Currently, the weakened image is recorded as a second-level sub-image. Among them, the second-level sub-image displays non-handwriting content, and other areas are transparent. The size of the image obtained when extracting non-handwriting content is currently not limited. Optionally, the image is the same size as the first-level sub-image, the same size as the first image, or the size of the blackboard area in the first image. Similarly, at this time, when extracting non-handwriting content, the relative position of the non-handwriting content in the obtained image is the same as the relative position of the non-handwriting content in the first image (or in the blackboard area). Optionally, the size of the image obtained when extracting the non-handwriting content is the same as the size of the smallest rectangular area containing the non-handwriting content. After that, the display effect of the non-handwriting content in the image is weakened, And the weakened image is recorded as the second-level sub-image.
需说明,笔迹内容和非笔迹内容可同时被处理,也可以先后被处理,当前不作限定。It should be noted that handwriting content and non-handwriting content can be processed at the same time, or they can be processed one after another, and there is no current limit.
步骤240、由调整显示效果后的笔迹内容和非笔迹内容组成第二图像。Step 240: A second image is composed of the handwriting content and non-handwriting content after adjusting the display effect.
示例性的,由笔迹内容和非笔迹内容组成第二图像,一个实施例中,可以根据笔迹内容和非笔迹内容在第一图像中的位置,将笔迹内容和非笔迹内容合并成一张图像(当前为第二图像)。一个实施例中,笔迹内容和非笔迹内容处于不同层级的子图像时,本步骤还可以是:将第一层级的子图像叠加在第二层级的子图像上,得到包含黑板中板书内容的第二图像。For example, the second image is composed of handwriting content and non-handwriting content. In one embodiment, the handwriting content and non-handwriting content can be merged into one image according to their positions in the first image (currently for the second image). In one embodiment, when the handwriting content and the non-handwriting content are in sub-images of different levels, this step may also be: superimposing the sub-image of the first level on the sub-image of the second level to obtain the third sub-image containing the content of the writing on the blackboard. Two images.
示例性的,将第一层级的子图像和第二层级的子图像均作为图像的一个层级。其中,在计算机设计系统中,为更便捷有效地处理图像的素材,可以将素材置于不同的层中,而图像可看作是由若干层图像叠加而成的。此时,每个层便可认为是一个层级,在处理图像时,每个层级可做单独的处理,而不影响其他层级的图像内容。一个实施例中,将第一层级的子图像作为第一层,将第二层级的子图像作为第二层,并将第一层叠加在第二层之上,得到第二图像。第二图像作为当前获取的板书内容。可选的,笔迹内容和非笔迹内容在对应子图像中的相对位置与笔迹内容和非笔迹内容在第一图像中的相对位置相同时,可以直接叠加两个层级的子图像,以得到第二图像。还可选的,根据笔迹内容和非笔迹内容在第一图像中的相对位置,叠加两个层级的子图像,以使得第二图像中笔迹内容和非笔迹内容的相对位置与第一图像中笔迹内容和非笔迹内容的相对位置一致。For example, both the first-level sub-image and the second-level sub-image are regarded as one level of the image. Among them, in the computer design system, in order to process the image materials more conveniently and effectively, the materials can be placed in different layers, and the image can be regarded as a superposition of several layers of images. At this time, each layer can be considered as a level. When processing images, each level can be processed independently without affecting the image content of other levels. In one embodiment, the sub-image of the first level is used as the first layer, the sub-image of the second level is used as the second layer, and the first layer is superimposed on the second layer to obtain the second image. The second image serves as the currently acquired blackboard writing content. Optionally, when the relative positions of the handwriting content and the non-handwriting content in the corresponding sub-image are the same as the relative positions of the handwriting content and the non-handwriting content in the first image, two levels of sub-images can be directly superimposed to obtain the second image. Optionally, according to the relative positions of the handwriting content and the non-handwriting content in the first image, two levels of sub-images are superimposed, so that the relative positions of the handwriting content and the non-handwriting content in the second image are consistent with the relative positions of the handwriting content in the first image. The relative position of content and non-handwriting content is consistent.
可选的,存在黑板区域中没有笔迹内容的可能,即用户未在黑板上进行书写,此时,黑板板书获取设备识别不到笔迹内容,这种情况下,可以仅提取识别到的非笔迹内容。相应的,第一层级的子图像没有显示任何的内容,即为透明的图像,并且,可以不进行增强显示效果的操作。之后,两个层级的子图像叠加后,得到只显示非笔迹内容的第二图像。Optionally, there is a possibility that there is no handwriting content in the blackboard area, that is, the user has not written on the blackboard. At this time, the blackboard acquisition device cannot recognize the handwriting content. In this case, only the recognized non-handwriting content can be extracted. . Correspondingly, the first-level sub-image does not display any content, that is, it is a transparent image, and no operation to enhance the display effect is required. After that, the sub-images of the two levels are superimposed to obtain a second image that only displays non-handwriting content.
可选的,若识别非笔迹内容时,只识别目标物,那么,也存在黑板区域中没有非笔迹内容的可能,此时,黑板板书获取设备识别不到非笔迹内容,这种情况下,可以仅提取识别到的笔迹内容。相应的,第二层级的子图像没有显示任何的内容,即为透明的图像,并且,可以不进行弱化显示效果的操作。之后,两个层级的子图像叠加后,得到只显示笔迹内容的第二图像。需要说明,只识别目标物时,不再将黑板板面作为非笔迹内容,此时,第二图像可以不显示黑板的背景色,即不显示黑板的板面,只显示笔迹内容和目标物,若想要第二图像也显示黑板的背景色,则在生成第二图像时,可以增加一个层级,该层级为第二图像的最低层级,该层级的图像中显示黑板的背景色,以为第二图像提供背景,使得第二图像显示黑板的板面。Optionally, if only the target object is recognized when recognizing non-handwriting content, then there is also the possibility that there is no non-handwriting content in the blackboard area. At this time, the blackboard acquisition device cannot recognize the non-handwriting content. In this case, you can Only the recognized handwriting content is extracted. Correspondingly, the second-level sub-image does not display any content, that is, it is a transparent image, and no operation to weaken the display effect is required. Afterwards, after the sub-images of the two levels are superimposed, a second image showing only the handwriting content is obtained. It should be noted that when only the target object is recognized, the blackboard surface is no longer regarded as non-handwriting content. At this time, the second image does not need to display the background color of the blackboard, that is, the blackboard surface is not displayed, and only the handwriting content and the target object are displayed. If you want the second image to also display the background color of the blackboard, you can add a level when generating the second image. This level is the lowest level of the second image. The background color of the blackboard is displayed in the image of this level as the second image. The image provides a background so that the second image shows the face of the blackboard.
示例性的,摄像设备安装在黑板的边框上,此时,由于摄像设备拍摄黑板时角度的限制,黑板区域在第一图像中呈现梯形而非矩形,基于第一图像得到的第二图像中的板书内容也为梯形对应的板书内容,因此,一个实施例中,为了避免因拍摄角度对板书内容造成的形变,得到第二图像之后,还包括:对第二图像中的黑板区域进行梯形校正。梯形校正后,第二图像中的板书内容更加贴近黑板中真实的板书内容,即第二图像中的板书内容为矩形对应的板 书内容。需要说明,对于梯形校正所采用的方法不作限定,只要可以实现梯形校正即可。可选的,由于第二图像由两个层级的子图像叠加得到,所以,在得到两个层级的子图像后,也可以先对两个层级的子图像分别进行梯形校正,之后,将两个层级的子图像进行叠加,以得到第二图像。For example, the camera device is installed on the frame of the blackboard. At this time, due to the limitation of the angle when the camera device shoots the blackboard, the blackboard area appears as a trapezoid instead of a rectangle in the first image. In the second image obtained based on the first image, The content of the blackboard writing is also the content of the blackboard writing corresponding to the trapezoid. Therefore, in one embodiment, in order to avoid the deformation of the blackboard writing content due to the shooting angle, after obtaining the second image, it also includes: performing trapezoidal correction on the blackboard area in the second image. After trapezoidal correction, the blackboard writing content in the second image is closer to the real blackboard writing content on the blackboard, that is, the blackboard writing content in the second image is the blackboard corresponding to the rectangle. book content. It should be noted that there is no limit to the method used for trapezoidal correction, as long as trapezoidal correction can be achieved. Optionally, since the second image is obtained by superimposing sub-images of two levels, after obtaining the sub-images of two levels, the sub-images of two levels can also be subjected to trapezoidal correction respectively, and then the two sub-images can be The sub-images of the hierarchy are superimposed to obtain the second image.
例如,图5为本申请一个实施例提供的一种笔迹内容示意图,参考图5,黑板22中显示有粉笔写入的笔迹“数学”,以及吸附有目标物板擦21。图6为本申请一个实施例提供的一种第二图像示意图,其是摄像设备对显示有图5所示笔迹内容的黑板22进行拍摄后,黑板板书获取设备处理相应的第一图像,并进行梯形校正后得到的第二图像。参考图6,第二图像中笔迹内容(图5中笔迹内容为“数学”)的显示效果明显强于板擦21的显示效果。需说明,图5中未示出黑板边缘的摄像设备。For example, FIG. 5 is a schematic diagram of handwriting content provided by an embodiment of the present application. Referring to FIG. 5 , the blackboard 22 displays the handwriting "Mathematics" written in chalk, and a target object eraser 21 is adsorbed. Figure 6 is a schematic diagram of a second image provided by an embodiment of the present application. After the camera device takes a picture of the blackboard 22 displaying the handwriting content shown in Figure 5, the blackboard acquisition device processes the corresponding first image and performs The second image obtained after keystone correction. Referring to FIG. 6 , the display effect of the handwriting content in the second image (the handwriting content in FIG. 5 is “mathematics”) is obviously stronger than the display effect of the eraser 21 . It should be noted that the camera equipment at the edge of the blackboard is not shown in Figure 5 .
步骤250、将第二图像发送至显示设备,以使显示设备显示第二图像和/或存储第二图像。Step 250: Send the second image to the display device, so that the display device displays the second image and/or stores the second image.
示例性的,得到第二图像后,黑板板书获取设备将第二图像发送至显示设备,以使显示设备获取实时的板书内容。Exemplarily, after obtaining the second image, the blackboard writing acquisition device sends the second image to the display device, so that the display device acquires real-time blackboard writing content.
上述,通过使用拍摄图像的方式取代红外触摸检测,可以准确获取到黑板中的内容,即使黑板上吸附有板擦、教具等物体,摄像设备也可清晰拍摄板擦、教具周围的区域,不会出现遮挡的情况。并且,通过识别的笔迹内容和非笔迹内容得到第二图像,可以剔除第一图像中的非黑板区域,使得第二图像仅包含黑板区域的内容。并且,通过分层处理的方式,将笔迹内容和非笔迹内容对应为第一层级和第二层级,便于对笔迹内容和非笔迹内容的分别处理,提高了处理灵活性。As mentioned above, by using the method of capturing images instead of infrared touch detection, the content on the blackboard can be accurately obtained. Even if there are objects such as erasers and teaching aids adsorbed on the blackboard, the camera equipment can clearly capture the area around the erasers and teaching aids without obstruction. Case. Furthermore, by obtaining the second image through the recognized handwriting content and non-handwriting content, the non-blackboard area in the first image can be eliminated, so that the second image only contains the content of the blackboard area. Moreover, through hierarchical processing, handwriting content and non-handwriting content are corresponding to the first level and the second level, which facilitates separate processing of handwriting content and non-handwriting content and improves processing flexibility.
图7为本申请一个实施例提供的一种黑板板书获取装置的结构示意图。参考图7,该黑板板书获取装置包括:图像获取单元301、内容识别单元302、效果调整单元303和图像发送单元304。Figure 7 is a schematic structural diagram of a device for obtaining blackboard writing provided by an embodiment of the present application. Referring to FIG. 7 , the blackboard acquisition device includes: an image acquisition unit 301 , a content recognition unit 302 , an effect adjustment unit 303 and an image sending unit 304 .
其中,图像获取单元301,用于获取摄像设备实时采集的第一图像,所述摄像设备用于对所述黑板进行拍摄;内容识别单元302,用于识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;效果调整单元303,用于调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;图像发送单元304,用于将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。Among them, the image acquisition unit 301 is used to acquire the first image collected in real time by a camera device used to photograph the blackboard; the content recognition unit 302 is used to identify the handwriting content and content in the first image. /or non-handwriting content, the handwriting content and the non-handwriting content are both located in the blackboard area; the effect adjustment unit 303 is used to adjust the display effect of the handwriting content and/or the non-handwriting content to obtain the second image , the second image is used as the currently acquired blackboard writing content, the display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened; the image sending unit 304 is used to send the second image to the display device to cause the display device to display the second image and/or store the second image.
本申请一个实施例中,效果调整单元303用于调整所述笔迹内容和所述非笔迹内容的显示效果,得到第二图像时,包括:显示效果调整子单元,用于对所述笔迹内容进行显示效果增强,对非笔迹内容进行显示效果弱化;图像组成子单元,用于由调整显示效果后的所述笔迹内容和所述非笔迹内容组成第二图像。In one embodiment of the present application, the effect adjustment unit 303 is used to adjust the display effect of the handwriting content and the non-handwriting content. When the second image is obtained, it includes: a display effect adjustment sub-unit, used to adjust the handwriting content. The display effect is enhanced, and the display effect of non-handwriting content is weakened; the image composition subunit is used to form a second image from the handwriting content and the non-handwriting content after adjusting the display effect.
本申请一个实施例中,显示效果调整子单元包括:效果增强孙单元,用于对所述笔迹内 容进行显示效果增强,得到第一层级的子图像;效果弱化孙单元,用于对所述非笔迹内容进行显示效果弱化,得到第二层级的子图像。相应的,图像组成子单元具体用于:将所述第一层级的子图像叠加在所述第二层级的子图像上,得到包含所述黑板中板书内容的第二图像。In one embodiment of the present application, the display effect adjustment sub-unit includes: an effect enhancement sub-unit, used to adjust the content of the handwriting The display effect is enhanced to obtain the sub-image of the first level; the effect weakening unit is used to weaken the display effect of the non-handwriting content to obtain the sub-image of the second level. Correspondingly, the image composition subunit is specifically configured to superimpose the first-level sub-image on the second-level sub-image to obtain a second image containing the content of the blackboard writing on the blackboard.
本申请一个实施例中,所述摄像设备安装在所述黑板的边框上,所述装置还包括:梯形校正单元,用于调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像之后,对所述第二图像中的黑板区域进行梯形校正。In one embodiment of the present application, the camera equipment is installed on the frame of the blackboard, and the device further includes: a trapezoidal correction unit for adjusting the display effect of the handwriting content and/or the non-handwriting content, so as to obtain After the second image, keystone correction is performed on the blackboard area in the second image.
本申请一个实施例中,显示效果调整子单元用于对所述笔迹内容进行显示效果增强时,具体用于:提高所述笔迹内容的显示亮度和/或色彩饱和度。显示效果调整子单元用于对所述非笔迹内容进行显示效果弱化时,具体用于:降低所述非笔迹内容的显示亮度和/或色彩饱和度;和/或,提高所述非笔迹内容的透明度;和/或,虚化所述非笔迹内容。In one embodiment of the present application, when the display effect adjustment subunit is used to enhance the display effect of the handwriting content, it is specifically used to: increase the display brightness and/or color saturation of the handwriting content. When the display effect adjustment subunit is used to weaken the display effect of the non-handwriting content, it is specifically used to: reduce the display brightness and/or color saturation of the non-handwriting content; and/or increase the display effect of the non-handwriting content. Transparency; and/or, blurring the non-handwriting content.
本申请一个实施例中,图像发送单元304具体用于:通过第一USB传输通道或多媒体传输通道将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。In one embodiment of the present application, the image sending unit 304 is specifically configured to: send the second image to a display device through a first USB transmission channel or a multimedia transmission channel, so that the display device displays the second image and/or Or store the second image.
本申请一个实施例中,非笔迹内容包括目标物,所述目标物与所述黑板的板面接触,所述装置还包括:遮挡检测单元,用于识别所述第一图像中的笔迹内容和非笔迹内容之后,检测到所述第一图像中的所述笔迹内容被所述目标物遮挡时,获取历史笔迹内容并作为当前识别的笔迹内容,所述历史笔迹内容为所述目标物遮挡所述笔迹内容之前识别到的笔迹内容。In one embodiment of the present application, the non-handwriting content includes a target object, and the target object is in contact with the surface of the blackboard. The device further includes: an occlusion detection unit for identifying the handwriting content in the first image and After non-handwriting content, when it is detected that the handwriting content in the first image is blocked by the target object, the historical handwriting content is obtained and used as the currently recognized handwriting content. The historical handwriting content is the content blocked by the target object. The handwriting content recognized before describing the handwriting content.
本申请一个实施例中,图像获取单元301具体用于通过第二USB传输通道或MIPI传输通道接收摄像设备实时采集的第一图像,所述摄像设备用于对所述黑板进行拍摄。In one embodiment of the present application, the image acquisition unit 301 is specifically configured to receive the first image collected in real time by a camera device through a second USB transmission channel or a MIPI transmission channel, and the camera device is used to capture the blackboard.
本申请实施例提供的黑板板书获取装置包含在黑板板书获取设备中,且可用于执行上述任意实施例中提供的黑板板书获取方法,具备相应的功能和有益效果。The blackboard writing acquisition device provided by the embodiment of the present application is included in the blackboard writing acquisition device, and can be used to execute the blackboard writing acquisition method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
值得注意的是,上述黑板板书获取装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above-mentioned embodiment of the blackboard writing acquisition device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as the corresponding functions can be realized; in addition, The specific names of each functional unit are only for the convenience of distinguishing each other and are not used to limit the scope of the present invention.
本申请一个实施例还提供的一种黑板板书获取设备。该黑板板书获取设备包括一个或多个处理器,所述一个或多个处理器执行一个或多个程序时,实现如上述任意实施例中提供的黑板板书获取方法。An embodiment of the present application also provides a blackboard writing acquisition device. The blackboard writing acquisition device includes one or more processors. When the one or more processors execute one or more programs, the blackboard writing acquisition method as provided in any of the above embodiments is implemented.
可理解,一些情况下,黑板板书获取设备还包括存储器,处理器和存储器可以通过总线或其他方式连接。存储器作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的黑板板书获取方法对应的程序指令/模块。处理器通过运行存储在存储器中的软件程序、指令以及模块,从而执行黑板板书获取设备的各种功能应用以及数据处理,即实现上述的黑板板书获取方法。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据黑板板书获取设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储 器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至黑板板书获取设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。It is understandable that in some cases, the blackboard acquisition device also includes a memory, and the processor and the memory can be connected through a bus or other means. As a computer-readable storage medium, the memory can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the blackboard writing acquisition method in the embodiment of the present application. The processor executes various functional applications and data processing of the blackboard writing acquisition device by running software programs, instructions and modules stored in the memory, that is, implementing the above blackboard writing acquisition method. The memory may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system and at least one application required for a function; the stored data area may store data created based on the use of the blackboard acquisition device, etc. Additionally, memory may include high speed random access memory The device may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, the memory may further include memory located remotely relative to the processor, and these remote memories may be connected to the blackboard acquisition device via a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
可选的,黑板板书获取设备还可以包括通信装置,该通信装置用于实现通信功能,如与摄像设备、显示设备进行数据传输。黑板板书获取设备还可包括输入装置,输入装置可用于接收输入的数字或字符信息,以及产生与黑板板书获取设备的用户设置以及功能控制有关的键信号输入。Optionally, the blackboard writing acquisition device may also include a communication device, which is used to implement communication functions, such as data transmission with camera equipment and display equipment. The blackboard writing acquisition device may further include an input device operable to receive input numeric or character information and generate key signal input related to user settings and function control of the blackboard writing acquisition device.
上述黑板板书获取设备包含黑板板书获取装置,且可用于执行上述任意实施例中提供的黑板板书获取方法,具备相应的功能和有益效果。The above-mentioned blackboard writing acquisition device includes a blackboard writing acquisition device, and can be used to execute the blackboard writing acquisition method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
图8为本申请一个实施例提供的一种黑板板书获取系统的结构示意图。参考图8,该黑板板书获取系统包括:黑板板书获取设备41、摄像设备42和显示设备43。Figure 8 is a schematic structural diagram of a blackboard writing acquisition system provided by an embodiment of the present application. Referring to FIG. 8 , the blackboard writing acquisition system includes: a blackboard writing acquisition device 41 , a camera device 42 and a display device 43 .
摄像设备41用于对黑板进行拍摄,以得到实时的第一图像;黑板板书获取设备42用于获取第一图像;识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;将所述第二图像发送至显示设备;显示设备43用于显示所述第二图像和/或存储所述第二图像。The camera device 41 is used to photograph the blackboard to obtain a real-time first image; the blackboard acquisition device 42 is used to obtain the first image; identify the handwriting content and/or non-handwriting content in the first image, the handwriting The content and the non-handwriting content are both located in the blackboard area; adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image, the second image is used as the currently acquired blackboard content, the handwriting The display effect of the content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly weakened; the second image is sent to the display device; the display device 43 is used to display the second image and/or store the second image.
本申请一个实施例中,所述黑板板书获取设备41内置在所述摄像设备42中,并与所述摄像设备42共用处理器。即黑板板书获取设备41和摄像设备42为一个物理实体,此时,摄像设备42的处理器既能控制第一图像的采集,还能实现上述黑板板书获取方法。In one embodiment of the present application, the blackboard writing acquisition device 41 is built in the camera device 42 and shares a processor with the camera device 42 . That is, the blackboard writing acquisition device 41 and the camera device 42 are one physical entity. At this time, the processor of the camera device 42 can not only control the collection of the first image, but also implement the above blackboard writing acquisition method.
本申请一个实施例中,黑板板书获取系统还包括:至少一个黑板,每个黑板的边框上均设置有对应的摄像设备41。In one embodiment of the present application, the blackboard writing acquisition system further includes: at least one blackboard, and a corresponding camera device 41 is provided on the frame of each blackboard.
本申请一个实施例中,以图4为例,黑板为两个,显示设备位于两个所述黑板的中间,所述摄像设备安装在所述黑板的上边框中间位置处。In one embodiment of the present application, taking Figure 4 as an example, there are two blackboards, the display device is located in the middle of the two blackboards, and the camera device is installed at the middle position of the upper frame of the blackboard.
本申请一个实施例中,显示设备包括电源,通过电源为黑板板书获取设备供电,即显示设备还用于为黑板板书获取设备提供电源。可选的,黑板板书获取设备基于显示设备的供电启动时,还可以为摄像设备提供电源。In one embodiment of the present application, the display device includes a power supply, and the power supply supplies power to the blackboard writing acquisition device, that is, the display device is also used to provide power to the blackboard writing acquisition device. Optionally, when the blackboard acquisition device is started based on the power supply of the display device, it can also provide power to the camera device.
上述黑板板书获取系统使用过程中的技术细节可参数前述黑板板书获取方法的相关描述,并且,具备相应的功能和有益效果。The technical details in the use of the above-mentioned blackboard writing acquisition system can refer to the relevant description of the aforementioned blackboard writing acquisition method, and have corresponding functions and beneficial effects.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行本申请任意实施例中提供的黑板板书获取方法中的相关操作,且具备相应的功能和有益效果。 Embodiments of the present application also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform relevant operations in the method for obtaining blackboard writing provided in any embodiment of the present application, And have corresponding functions and beneficial effects.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products.
因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-volatile memory in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element qualified by the statement "comprises a..." does not exclude the presence of additional identical elements in the process, method, good, or device that includes the element.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申 请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。 Note that the above are only the preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that this application Please not be limited to the specific embodiments described here. Various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and may also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.

Claims (16)

  1. 一种黑板板书获取方法,其中,包括:A method for obtaining blackboard writing, which includes:
    获取摄像设备实时采集的第一图像,所述摄像设备用于对黑板进行拍摄;Obtaining a first image collected in real time by a camera device used to photograph the blackboard;
    识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;Identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and the non-handwriting content are located in the blackboard area;
    调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;Adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image. The second image is used as the currently acquired blackboard writing content. The display effect of the handwriting content is correspondingly enhanced, and the display effect of the non-handwriting content is correspondingly enhanced. The display effect is correspondingly weakened;
    将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。The second image is sent to a display device so that the display device displays the second image and/or stores the second image.
  2. 根据权利要求1所述的黑板板书获取方法,其中,调整所述笔迹内容和所述非笔迹内容的显示效果,得到第二图像包括:The blackboard writing acquisition method according to claim 1, wherein adjusting the display effect of the handwriting content and the non-handwriting content to obtain the second image includes:
    对所述笔迹内容进行显示效果增强,对所述非笔迹内容进行显示效果弱化;The display effect of the handwriting content is enhanced, and the display effect of the non-handwriting content is weakened;
    由调整显示效果后的所述笔迹内容和所述非笔迹内容组成第二图像。The second image is composed of the handwriting content and the non-handwriting content after adjusting the display effect.
  3. 根据权利要求2所述的黑板板书获取方法,其中,对所述笔迹内容进行显示效果增强,对非笔迹内容进行显示效果弱化包括:The blackboard writing acquisition method according to claim 2, wherein enhancing the display effect of the handwriting content and weakening the display effect of the non-handwriting content include:
    对所述笔迹内容进行显示效果增强,得到第一层级的子图像;Enhance the display effect of the handwriting content to obtain a first-level sub-image;
    对所述非笔迹内容进行显示效果弱化,得到第二层级的子图像;Weaken the display effect of the non-handwriting content to obtain a second-level sub-image;
    由调整显示效果后的所述笔迹内容和所述非笔迹内容组成第二图像包括:The second image composed of the handwriting content and the non-handwriting content after adjusting the display effect includes:
    将所述第一层级的子图像叠加在所述第二层级的子图像上,得到包含所述黑板中板书内容的第二图像。The sub-image of the first level is superimposed on the sub-image of the second level to obtain a second image containing the content of the writing on the blackboard.
  4. 根据权利要求1所述的黑板板书获取方法,其中,所述摄像设备安装在所述黑板的边框上,The blackboard writing acquisition method according to claim 1, wherein the camera device is installed on the frame of the blackboard,
    调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像之后,还包括:After adjusting the display effect of the handwriting content and/or the non-handwriting content to obtain the second image, it also includes:
    对所述第二图像中的黑板区域进行梯形校正。Perform keystone correction on the blackboard area in the second image.
  5. 根据权利要求2所述的黑板板书获取方法,其中,对所述笔迹内容进行显示效果增强包括:The blackboard writing acquisition method according to claim 2, wherein enhancing the display effect of the handwriting content includes:
    提高所述笔迹内容的显示亮度和/或色彩饱和度;Improve the display brightness and/or color saturation of the handwriting content;
    对所述非笔迹内容进行显示效果弱化包括:Weakening the display effect of the non-handwriting content includes:
    降低所述非笔迹内容的显示亮度和/或色彩饱和度;和/或,Reduce the display brightness and/or color saturation of the non-handwriting content; and/or,
    提高所述非笔迹内容的透明度;和/或,Increase the transparency of said non-handwriting content; and/or,
    虚化所述非笔迹内容。Blur the non-handwriting content.
  6. 根据权利要求1所述的黑板板书获取方法,其中,将所述第二图像发送至显示设备包括:The blackboard writing acquisition method according to claim 1, wherein sending the second image to the display device includes:
    通过第一USB传输通道或多媒体传输通道将所述第二图像发送至显示设备。The second image is sent to the display device through the first USB transmission channel or the multimedia transmission channel.
  7. 根据权利要求1所述的黑板板书获取方法,其中,所述非笔迹内容包括目标物,所述 目标物与所述黑板的板面接触;The blackboard writing acquisition method according to claim 1, wherein the non-handwriting content includes a target object, and the The target object is in contact with the surface of the blackboard;
    识别所述第一图像中的笔迹内容和非笔迹内容之后,还包括:After identifying the handwriting content and non-handwriting content in the first image, it also includes:
    检测到所述笔迹内容被所述目标物遮挡时,获取历史笔迹内容并作为当前识别的笔迹内容,所述历史笔迹内容为所述目标物遮挡所述笔迹内容之前识别到的笔迹内容。When it is detected that the handwriting content is blocked by the target object, historical handwriting content is obtained and used as the currently recognized handwriting content. The historical handwriting content is the handwriting content recognized before the target object blocks the handwriting content.
  8. 根据权利要求1所述的黑板板书获取方法,其中,所述获取摄像设备实时采集的第一图像包括:The blackboard writing acquisition method according to claim 1, wherein said acquiring the first image collected in real time by the camera device includes:
    通过第二USB传输通道或MIPI传输通道接收摄像设备实时采集的第一图像。Receive the first image collected in real time by the camera device through the second USB transmission channel or the MIPI transmission channel.
  9. 一种黑板板书获取装置,其中,包括:A blackboard writing acquisition device, which includes:
    图像获取单元,用于获取摄像设备实时采集的第一图像,所述摄像设备用于对黑板进行拍摄;An image acquisition unit, used to acquire the first image collected in real time by the camera device, which is used to photograph the blackboard;
    内容识别单元,用于识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;A content recognition unit configured to identify handwriting content and/or non-handwriting content in the first image, where both the handwriting content and the non-handwriting content are located in the blackboard area;
    效果调整单元,用于调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;The effect adjustment unit is used to adjust the display effect of the handwriting content and/or the non-handwriting content to obtain a second image. The second image is used as the currently acquired blackboard writing content, and the display effect of the handwriting content is correspondingly enhanced, The display effect of the non-handwriting content is correspondingly weakened;
    图像发送单元,用于将所述第二图像发送至显示设备,以使所述显示设备显示所述第二图像和/或存储所述第二图像。An image sending unit, configured to send the second image to a display device, so that the display device displays the second image and/or stores the second image.
  10. 一种黑板板书获取设备,其中,包括:一个或多个处理器,A blackboard writing acquisition device, which includes: one or more processors,
    所述一个或多个处理器执行一个或多个程序时,实现如权利要求1-8中任一所述的黑板板书获取方法。When the one or more processors execute one or more programs, the blackboard writing acquisition method as described in any one of claims 1-8 is implemented.
  11. 一种黑板板书获取系统,其中,包括:黑板板书获取设备、摄像设备和显示设备,A blackboard writing acquisition system, which includes: blackboard writing acquisition equipment, camera equipment and display equipment,
    所述摄像设备用于对黑板进行拍摄,以得到实时的第一图像;The camera equipment is used to photograph the blackboard to obtain a real-time first image;
    所述黑板板书获取设备用于获取所述第一图像;识别所述第一图像中的笔迹内容和/或非笔迹内容,所述笔迹内容和所述非笔迹内容均位于黑板区域内;调整所述笔迹内容和/或所述非笔迹内容的显示效果,得到第二图像,所述第二图像作为当前获取的板书内容,所述笔迹内容的显示效果对应增强,所述非笔迹内容的显示效果对应弱化;将所述第二图像发送至显示设备;The blackboard acquisition device is used to acquire the first image; identify the handwriting content and/or non-handwriting content in the first image, and the handwriting content and the non-handwriting content are located in the blackboard area; adjust the The display effect of the handwriting content and/or the non-handwriting content is obtained to obtain a second image. The second image is used as the currently obtained blackboard writing content. The display effect of the handwriting content is correspondingly enhanced. The display effect of the non-handwriting content is obtained. Corresponding weakening; sending the second image to the display device;
    所述显示设备用于显示所述第二图像和/或存储所述第二图像。The display device is used to display the second image and/or store the second image.
  12. 根据权利要求11所述的黑板板书获取系统,其中,所述黑板板书获取设备内置在所述摄像设备中,并与所述摄像设备共用处理器。The blackboard writing acquisition system according to claim 11, wherein the blackboard writing acquisition device is built in the camera device and shares a processor with the camera device.
  13. 根据权利要求11所述的黑板板书获取系统,其中,还包括:至少一个黑板,每个黑板的边框上均设置有对应的摄像设备。The blackboard writing acquisition system according to claim 11, further comprising: at least one blackboard, and corresponding camera equipment is provided on the frame of each blackboard.
  14. 根据权利要求13所述的黑板板书获取系统,其中,所述黑板为两个,所述显示设备位于两个所述黑板的中间,所述摄像设备安装在所述黑板的上边框中间位置处。The blackboard writing acquisition system according to claim 13, wherein there are two blackboards, the display device is located in the middle of the two blackboards, and the camera device is installed at the middle position of the upper frame of the blackboard.
  15. 根据权利要求11所述的黑板板书获取系统,其中,所述显示设备还用于为所述黑板 板书获取设备提供电源。The blackboard writing acquisition system according to claim 11, wherein the display device is further used to provide the blackboard Blackboard acquisition equipment provides power.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-8中任一所述的黑板板书获取方法。 A computer-readable storage medium on which a computer program is stored, wherein when the program is executed by a processor, the blackboard writing acquisition method as described in any one of claims 1-8 is implemented.
PCT/CN2023/099469 2022-07-04 2023-06-09 Method and apparatus for acquiring writing on blackboard, and device, system and storage medium WO2024007819A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210787911.8A CN117392681A (en) 2022-07-04 2022-07-04 Blackboard writing acquisition method, device, equipment, system and storage medium
CN202210787911.8 2022-07-04

Publications (1)

Publication Number Publication Date
WO2024007819A1 true WO2024007819A1 (en) 2024-01-11

Family

ID=89439756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/099469 WO2024007819A1 (en) 2022-07-04 2023-06-09 Method and apparatus for acquiring writing on blackboard, and device, system and storage medium

Country Status (2)

Country Link
CN (1) CN117392681A (en)
WO (1) WO2024007819A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541314A (en) * 2010-12-13 2012-07-04 株式会社理光 Information processing equipment and method
CN105027145A (en) * 2012-12-13 2015-11-04 微软技术许可有限责任公司 Automatic classification and color enhancement of a markable surface
CN109189246A (en) * 2018-07-06 2019-01-11 北京奇宝科技有限公司 A kind of scribble content and handled methods, devices and systems on pair of handwriting pad
CN110209873A (en) * 2019-06-04 2019-09-06 北京梦想加信息技术有限公司 Whiteboard secretary recording method, equipment, system and storage medium
CN114025217A (en) * 2020-07-15 2022-02-08 华为技术有限公司 Image display method, equipment and storage medium
WO2022083004A1 (en) * 2020-10-22 2022-04-28 广州视源电子科技股份有限公司 Intelligent blackboard and data processing method and apparatus therefor, and intelligent interactive board

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541314A (en) * 2010-12-13 2012-07-04 株式会社理光 Information processing equipment and method
CN105027145A (en) * 2012-12-13 2015-11-04 微软技术许可有限责任公司 Automatic classification and color enhancement of a markable surface
CN109189246A (en) * 2018-07-06 2019-01-11 北京奇宝科技有限公司 A kind of scribble content and handled methods, devices and systems on pair of handwriting pad
CN110209873A (en) * 2019-06-04 2019-09-06 北京梦想加信息技术有限公司 Whiteboard secretary recording method, equipment, system and storage medium
CN114025217A (en) * 2020-07-15 2022-02-08 华为技术有限公司 Image display method, equipment and storage medium
WO2022083004A1 (en) * 2020-10-22 2022-04-28 广州视源电子科技股份有限公司 Intelligent blackboard and data processing method and apparatus therefor, and intelligent interactive board

Also Published As

Publication number Publication date
CN117392681A (en) 2024-01-12

Similar Documents

Publication Publication Date Title
US20110102599A1 (en) Mobile terminal including projector and control method thereof
US8698873B2 (en) Video conferencing with shared drawing
US10048809B2 (en) Projector screen, touch screen projection displaying method and system
WO2019090903A1 (en) Video processing method and apparatus, terminal device, and storage medium
CN105898186A (en) Display Method For Video Conferencing And Video Conferencing System
EP3547218A1 (en) File processing device and method, and graphical user interface
JP6008076B2 (en) Projector and image drawing method
JP2012234538A (en) Interactive whiteboard using disappearing writing medium
TW200406638A (en) System and method for presenting, capturing, and modifying images on a presentation board
US20170220140A1 (en) Digital Cursor Display Linked to a Smart Pen
US10276133B2 (en) Projector and display control method for displaying split images
US20230224574A1 (en) Photographing method and apparatus
CN109743566A (en) A kind of method and apparatus of the video format of VR for identification
US20220351426A1 (en) Controlling interactivity of digital content overlaid onto displayed data via graphics processing circuitry using a frame buffer
WO2019085185A1 (en) Intelligent pen, control method, device and apparatus for intelligent pen, and storage medium
WO2024007819A1 (en) Method and apparatus for acquiring writing on blackboard, and device, system and storage medium
US20230113359A1 (en) Full color spectrum blending and digital color filtering for transparent display screens
CN114816088A (en) Online teaching method, electronic equipment and communication system
TWI482082B (en) Frame rotating method of electric device
KR101700121B1 (en) Interactive beam projector and driving method thereof
TWI828088B (en) Electronic device and display method for video conference or video teaching
JP2013250477A (en) Computer device and program
CN104184978A (en) Display method and electronic equipment
TW201426338A (en) Method and system for inserting image objects to a note software
JP7484568B2 (en) Display device, display method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23834593

Country of ref document: EP

Kind code of ref document: A1